/* Shared chrome for every page on semblen.ai.
 *
 * The landing page and the /daily feed are rendered by different paths — one a
 * static-ish Jinja render, the other a template — and their tokens and nav CSS
 * had been copy-pasted between them. This is the single source; page-specific
 * styles stay in each page's own <style> block, which must be linked AFTER
 * this file so it can override.
 *
 * Served at /site.css (see backend/main.py). */

:root {
  --blue-900: #1e293b;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-50:  #eff6ff;
  --red-600:  #dc2626;
  /* AA-safe body text on --red-50: red-600 is 4.41:1, just under the
     4.5 WCAG AA needs for normal text. red-700 is 5.91:1. */
  --red-700:  #b91c1c;
  --red-50:   #fef2f2;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  /* Footer text sits on --slate-900, where slate-500 is only 3.75:1 —
     under the 4.5 WCAG AA needs. slate-400 is 6.96:1. */
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;

  /* Technique palette — the amber family the analyzer's TechniqueCard uses.
     A technique must look the same on /daily as it does on /analyze; a reader
     clicking a feed card sees both within seconds. The analyzer carries these
     as inline styles (its bundle deliberately doesn't link this file, which
     would restyle the app shell), so tests/test_technique_palette.py pins the
     two copies to each other. */
  --amber-50:  #fffbeb;   /* technique card background */
  --amber-100: #fef3c7;   /* evidence background */
  --amber-300: #fcd34d;   /* border, both */
  --amber-800: #92400e;   /* technique name */
  --amber-900: #78350f;   /* chip text */
  --amber-950: #451a03;   /* explanation text */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
nav {
  background: var(--blue-900);
  color: var(--white);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-brand { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-size: 14px; color: rgba(255,255,255,0.75); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--white);
  color: var(--blue-900);
  border: none;
  border-radius: 6px;
  padding: 7px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
}
@media (max-width: 560px) { .nav-links { display: none; } }

/* ── Footer ── */
footer {
  background: var(--slate-900);
  color: var(--slate-400);
  text-align: center;
  padding: 28px 24px;
  font-size: 13px;
}
footer a { color: var(--slate-400); text-decoration: underline; }
