/* ============================================================================
   Bulletin — marketing site
   Signal design system. Tokens mirrored from the design lead's
   signal-style-guide.html (11 Aug 2026); this file is the marketing-site copy,
   deliberately duplicated rather than imported across repos.

   Three layers, same as the product:
     1  primitives      — OKLCH ramps on Radix step semantics
     2a brand semantic  — theme-able
     2b safety semantic — LOCKED; descends from its own primitives so no theme
                          can reach it. This site only uses the audience ramp.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ── LAYER 1 · PRIMITIVES ───────────────────────────────────────────── */
  --neutral-1:  oklch(99.2% 0.002 255);  --neutral-2:  oklch(98.0% 0.004 255);
  --neutral-3:  oklch(95.7% 0.006 255);  --neutral-4:  oklch(93.6% 0.008 255);
  --neutral-5:  oklch(91.2% 0.010 255);  --neutral-6:  oklch(88.4% 0.012 255);
  --neutral-7:  oklch(84.0% 0.014 255);  --neutral-8:  oklch(76.5% 0.018 255);
  --neutral-9:  oklch(64.5% 0.022 255);  --neutral-11: oklch(47.5% 0.021 255);
  --neutral-12: oklch(21.0% 0.016 255);

  --accent-1:   oklch(99.3% 0.004 265);  --accent-2:   oklch(98.2% 0.010 265);
  --accent-3:   oklch(96.0% 0.022 265);  --accent-6:   oklch(86.5% 0.074 265);
  --accent-9:   oklch(48.0% 0.205 265);  --accent-10:  oklch(43.0% 0.195 265);
  --accent-12:  oklch(28.0% 0.110 265);

  /* LOCKED primitives — these names appear in no theme block. */
  --safe-grey-7:  oklch(83.5% 0.004 255);
  --safe-grey-11: oklch(47.0% 0.006 255);

  /* ── LAYER 2A · BRAND SEMANTIC ─────────────────────────────────────── */
  --ground: var(--neutral-2);          --surface: var(--neutral-1);
  --surface-sunken: var(--neutral-3);  --line-soft: var(--neutral-5);
  --line: var(--neutral-6);            --line-strong: var(--neutral-8);
  --ink: var(--neutral-12);            --ink-2: var(--neutral-11);
  --ink-3: var(--neutral-9);
  --accent: var(--accent-9);           --accent-hover: var(--accent-10);
  --accent-active: var(--accent-12);   --accent-tint: var(--accent-3);
  --accent-line: var(--accent-6);      --accent-ink: #fff;
  --focus-ring: var(--accent-9);

  /* ── LAYER 2B · SAFETY SEMANTIC ── LOCKED ──────────────────────────── */
  --safety-office-fg: var(--safe-grey-11);
  --safety-office-line: var(--safe-grey-7);

  /* ── shape, depth, motion ──────────────────────────────────────────── */
  --r-sm: 5px; --r-md: 7px; --r-lg: 11px; --r-pill: 999px;
  --e1: 0 1px 2px rgba(12, 17, 22, .08);
  --e2: 0 2px 10px -3px rgba(12, 17, 22, .12);
  --e3: 0 12px 32px -12px rgba(12, 17, 22, .28);
  --dur-state: 120ms; --ease: cubic-bezier(.2, .6, .3, 1);

  /* ── type ──────────────────────────────────────────────────────────── */
  --font-sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
    Consolas, monospace;
  --measure-answer: 68ch;

  /* ── space ── 4px base, eight steps, nothing between ───────────────── */
  --s-1: 4px; --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  --wrap: 1080px;
  color-scheme: light;
}

/* OKLCH fallback. Layer 1 only — the semantic layers above are unchanged, so a
   browser without oklch() gets the same system in sRGB rather than a different
   design. Values are the sRGB conversions of the primitives above. */
@supports not (color: oklch(50% 0 0)) {
  :root {
    --neutral-1: #fbfcfe;  --neutral-2: #f7f9fb;  --neutral-3: #eef1f5;
    --neutral-4: #e6eaef;  --neutral-5: #dee2e9;  --neutral-6: #d4d9e1;
    --neutral-7: #c5cbd4;  --neutral-8: #abb3be;  --neutral-9: #858f9b;
    --neutral-11: #545d68; --neutral-12: #131920;
    --accent-1: #fbfdff;   --accent-2: #f6f9ff;   --accent-3: #ebf2ff;
    --accent-6: #bbd3ff;   --accent-9: #224dcf;   --accent-10: #193fb8;
    --accent-12: #0d225e;
    --safe-grey-7: #c7c9cb; --safe-grey-11: #595b5e;
  }
}

/* ── reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv05", "ss03";
}

h1, h2, h3, p, ul, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: var(--s-2);
  background: var(--surface); color: var(--ink); padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); z-index: 10;
}
.skip:focus { left: var(--s-4); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-5); }
.nowrap { white-space: nowrap; }

/* The header is sticky, so anchored sections have to clear it. */
[id] { scroll-margin-top: 76px; }

/* ── type ramp ──────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(34px, 5.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -.028em;
  font-weight: 650;
  max-width: 19ch;
}
h2 {
  font-size: clamp(25px, 3.1vw, 33px);
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 650;
  max-width: 26ch;
}
h3 { font-size: 18.5px; line-height: 1.4; letter-spacing: -.008em; font-weight: 650; }

.eyebrow {
  font-size: 12.5px; line-height: 1.4; letter-spacing: .13em;
  text-transform: uppercase; font-weight: 700; color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.lead {
  font-size: clamp(18.5px, 2.1vw, 21px); line-height: 1.5;
  letter-spacing: -.008em; color: var(--ink);
  max-width: 40ch; margin-top: var(--s-4);
}
.sub { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; margin-top: var(--s-4); }
.section-lead {
  font-size: 18px; line-height: 1.6; color: var(--ink-2);
  max-width: 58ch; margin-top: var(--s-4);
}

/* ── header ─────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 5;
  background: var(--ground);
  background: color-mix(in oklab, var(--ground) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); min-height: 60px;
}
.wordmark {
  font-size: 20px; font-weight: 650; letter-spacing: -.03em;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.wordmark-sm { font-size: 17px; }
.head-nav { display: flex; align-items: center; gap: var(--s-5); }
.head-nav > a:not(.btn) {
  font-size: 14.5px; font-weight: 550; color: var(--ink-2); text-decoration: none;
}
.head-nav > a:not(.btn):hover { color: var(--ink); }

/* ── button ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.35;
  padding: 9px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); color: var(--ink-2);
  background: var(--surface); box-shadow: var(--e1);
  text-decoration: none; white-space: nowrap;
  transition: background var(--dur-state) var(--ease), color var(--dur-state) var(--ease);
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-sm { font-size: 14px; padding: 6px 12px; }
.btn-lg { font-size: 16.5px; padding: 12px 22px; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { padding: clamp(var(--s-7), 7vw, 96px) 0 clamp(var(--s-7), 6vw, 80px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(var(--s-6), 5vw, var(--s-8)); align-items: center;
}
.cta-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--s-4); margin-top: var(--s-6);
}
.cta-note { font-size: 14.5px; color: var(--ink-3); max-width: 30ch; }

/* ── specimen card — the product's own atom, drawn honestly ─────────────── */
.specimen figcaption {
  margin-top: var(--s-3); font-size: 13.5px; line-height: 1.5;
  color: var(--ink-3); max-width: 46ch;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--e2);
  padding: var(--s-5);
}
.card-q {
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  padding-bottom: var(--s-3); margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--line-soft);
}
.card-a {
  font-size: 18.5px; line-height: 1.62; letter-spacing: -.005em;
  max-width: var(--measure-answer);
}
.card-a strong { font-weight: 650; }
.card-a-none { color: var(--ink); font-weight: 650; }
.card-note { margin-top: var(--s-2); font-size: 14.5px; color: var(--ink-2); }
.card-src {
  display: flex; gap: var(--s-2); align-items: flex-start;
  margin-top: var(--s-4); font-size: 14px; color: var(--ink-2);
}
.src-n {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 0 5px; line-height: 1.6; flex: none; margin-top: 2px;
}
.src-date { display: block; font-size: 12.5px; color: var(--ink-3); }
.card-foot {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
}
.card-quiet { box-shadow: var(--e1); }

/* audience chip — LOCKED safety layer; never gets its own row */
.aud {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 660; letter-spacing: .03em; line-height: 1.6;
  border-radius: var(--r-pill); padding: 2px 10px; white-space: nowrap;
}
.aud-office {
  color: var(--safety-office-fg);
  border: 1px solid var(--safety-office-line);
  background: transparent;
}

/* ── bands ──────────────────────────────────────────────────────────────── */
.band { padding: clamp(var(--s-7), 6vw, 88px) 0; border-top: 1px solid var(--line-soft); }
.band-tint { background: var(--accent-tint); border-top-color: var(--accent-line); }
.band-cta { background: var(--surface); }
/* No inline styles anywhere: the CSP in deploy/nginx.conf is `style-src 'self'`,
   which blocks style attributes as well as <style> blocks. */
.band-flush { border-top: 0; }

/* ── pillars ────────────────────────────────────────────────────────────── */
.pillars {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin-top: clamp(var(--s-6), 4vw, var(--s-7));
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.pillar { background: var(--surface); padding: var(--s-6) var(--s-5); }
.pillar-n {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  margin-bottom: var(--s-3);
}
.pillar h3 { margin-bottom: var(--s-3); }
.pillar p { font-size: 15.5px; line-height: 1.62; color: var(--ink-2); }

/* ── knowledge layer band ───────────────────────────────────────────────── */
.layer-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(var(--s-5), 4vw, var(--s-7)); align-items: start;
}
.layer-body { font-size: 18px; line-height: 1.62; color: var(--accent-12); max-width: 60ch; }

/* ── trust ──────────────────────────────────────────────────────────────── */
.trust-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  margin-top: clamp(var(--s-6), 4vw, var(--s-7));
}
.facts { display: grid; gap: var(--s-5); align-content: start; }
.facts li { padding-left: var(--s-4); border-left: 2px solid var(--accent-line); }
.facts h3 { margin-bottom: var(--s-1); }
.facts p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 48ch; }
.trust-aside { display: grid; gap: var(--s-6); align-content: start; }
.pull {
  font-size: clamp(20px, 2.4vw, 24px); line-height: 1.32; letter-spacing: -.018em;
  font-weight: 650; color: var(--ink);
  padding-left: var(--s-5); border-left: 3px solid var(--accent);
}

/* ── cta ────────────────────────────────────────────────────────────────── */
.cta-actions { margin-top: clamp(var(--s-6), 4vw, var(--s-7)); }
.cta-fine { margin-top: var(--s-4); font-size: 14.5px; color: var(--ink-3); }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line);
  padding: var(--s-6) 0 var(--s-7);
  background: var(--ground);
}
.foot-inner {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-3);
}
.foot-mark { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.foot-tag { font-size: 14.5px; color: var(--ink-3); }
.foot-meta { font-size: 14px; color: var(--ink-3); }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .trust-grid, .layer-grid { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  h1 { max-width: 24ch; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 var(--s-4); }
  .head-nav { gap: var(--s-4); }
  .head-nav > a:not(.btn) { display: none; }
  .card { padding: var(--s-4); }
}
