/* site-chrome.css — 28 October 2026.
   Everything that looks the same on every page outside /verify: the canvas,
   the nav, the footer, the type scale, links, buttons,
   focus states and spacing.

   Each page links this file after site.css and BEFORE its own <style>, so a
   page's own rules win over these. /verify pages are attested artifacts and
   do not link this file; they keep their own inline styles.

   Type: Inter for all prose and headings, JetBrains Mono for identifiers,
   hashes and data only. Five sizes, two text colours (gold is the accent,
   not a text level). Body text contrast: --text-1 16.3:1, --text-2 7.3:1
   on --bg. */

:root {
  --bg:        #07090e;
  --surface:   #0b0e17;
  --surface-2: #111525;
  --text-1:    #ede8dc;
  --text-2:    #a59c8b;
  --text-3:    var(--text-2);          /* two levels only: legacy name kept */
  --gold:      #c8a96e;
  --gold-dim:  rgba(200,169,110,0.14);
  --border:    rgba(200,169,110,0.12);
  --border-hi: rgba(200,169,110,0.28);
  --line:      rgba(200,169,110,0.12);
  --line-hi:   rgba(200,169,110,0.28);
  --scrim:     rgba(7,9,14,0.82);
  --surface-gradient: linear-gradient(180deg, rgba(17,21,37,0.72), rgba(11,14,23,0.82));
  --surface-2-translucent: rgba(17,21,37,0.55);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-ui:   var(--font-sans);       /* was Barlow Condensed: one family now */
  --font-data: 'JetBrains Mono', ui-monospace, monospace;

  /* the scale: five sizes */
  --fs-1: 13px;                         /* labels, meta, data, footer */
  --fs-2: 15px;                         /* interface: nav, buttons, cards */
  --fs-3: 17px;                         /* body */
  --fs-4: clamp(24px, 2.8vw, 36px);     /* section headings */
  --fs-5: clamp(38px, 4.4vw, 58px);     /* page titles */

  --wrap: 1200px;
  --pad: 40px;
  --section: 88px;
  --radius: 10px;
  --radius-lg: 16px;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Horizontal clipping on the root with overflow-x: clip (hidden as the
   fallback). clip never creates a scroll container, so the viewport owns
   vertical scrolling in every engine. */
html {
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;                 /* anchors and focus clear the sticky nav */
}
html:has(.nav-menu[open]) { scroll-padding-top: 320px; }   /* and the open phone menu */

body {
  position: relative;
  min-height: 100vh;
  background: transparent;
  color: var(--text-1);
  font: 400 var(--fs-3)/1.6 var(--font-sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: visible;
}

img { display: block; max-width: 100%; }

h1, h2, h3, h4 { text-wrap: balance; }
p, li, td { text-wrap: pretty; }

a { color: inherit; }
main a, .body-copy a, .hero-copy a, .mission-text a, .footer-line a {
  color: var(--text-1);
  text-decoration: underline;
  text-decoration-color: rgba(200,169,110,0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
main a:hover, .body-copy a:hover, .hero-copy a:hover, .mission-text a:hover, .footer-line a:hover { text-decoration-color: var(--gold); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

::selection { background: rgba(200,169,110,0.35); color: var(--text-1); }

code, kbd, samp { font-family: var(--font-data); font-size: 0.88em; }

/* ── NAV (markup is the shared partial, byte identical everywhere) ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
  border-bottom: 1px solid rgba(200,169,110,0.08);
  background: rgba(7,9,14,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
nav::before { content: none; }
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-1);
  text-decoration: none;
  font: 600 var(--fs-2) var(--font-sans);
  letter-spacing: 0.01em;
  text-transform: none;
}
.nav { display: flex; gap: 8px; align-items: center; }
.nav > a, .nav-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text-2);
  text-decoration: none;
  font: 500 var(--fs-2) var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  border: 0;
  transition: color .2s;
}
.nav > a:hover, .nav-menu summary:hover, .nav-menu[open] summary { color: var(--text-1); background: none; }
.nav > a.cta {
  margin-left: 10px;
  padding: 0 16px;
  color: var(--gold);
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(200,169,110,0.55);
  font-weight: 600;
}
.nav > a.cta:hover { color: var(--text-1); background: var(--gold-dim); box-shadow: inset 0 0 0 1px var(--gold); }
.nav-menu { display: none; position: static; }
.nav-menu summary { list-style: none; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-menu-panel a {
  display: block;
  padding: 14px 24px;
  color: var(--text-2);
  font: 500 var(--fs-2) var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border-top: 1px solid var(--border);
}
.nav-menu-panel a:hover { color: var(--text-1); }

/* ── FOOTER (two markups on the site; one look) ── */
footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  width: auto;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--pad) 36px;
  color: var(--text-2);
  font: 400 var(--fs-1)/1.5 var(--font-sans);
}
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-line, .footer-name { font: 400 var(--fs-1)/1.5 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--text-2); }
footer .mono { font-family: var(--font-data); }
.footer-name { display: inline-flex; align-items: center; min-height: 44px; }
.footer-line a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--text-2); }
.footer-right { display: flex; gap: 0 18px; flex-wrap: wrap; }
.footer-right a, .footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
  font: 400 var(--fs-1) var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
}
.footer-right a:hover, .footer-link:hover, .footer-line a:hover { color: var(--text-1); }

/* ── BUTTONS ── */
.btn, .section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font: 600 var(--fs-2) var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: #d6b97f; }
.btn-ghost, .section-link { color: var(--text-1); border: 1px solid var(--line-hi); background: rgba(200,169,110,0.03); }
.btn-ghost:hover, .section-link:hover { border-color: var(--gold); background: var(--gold-dim); }

/* ── DOCUMENT PAGES (accountability, privacy, cases, writing) ── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding: 88px var(--pad) 56px;
  border: 0;
}
.page-title {
  font: 500 var(--fs-1) var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 {
  font: 600 var(--fs-5)/1.05 var(--font-sans);
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 22px;
  max-width: 22ch;
}
.hero-copy, .body-copy, .notice-copy {
  font: 400 var(--fs-3)/1.6 var(--font-sans);
  color: var(--text-2);
  max-width: var(--measure);
  overflow-wrap: break-word;
}
.hero-copy { color: var(--text-1); }
.body-copy + .body-copy { margin-top: 16px; }
.hero-note, .guardrail {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(200,169,110,0.04);
  max-width: var(--measure);
}
main {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding: 0 var(--pad) var(--section);
}
.section {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  padding: 44px 0;
  border: 0;
}
.section > :only-child { grid-column: 1 / -1; }
.section-kicker {
  font: 500 var(--fs-1)/1.5 var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
  padding-top: 8px;
}
.section-title {
  font: 600 var(--fs-4)/1.15 var(--font-sans);
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 16px;
  max-width: 28ch;
}
.section-card, .meta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-gradient);
  padding: 24px;
  min-width: 0;
}
.section-stack { display: grid; gap: 16px; }
.section-card { max-width: calc(var(--measure) + 48px); }
.section-card .section-title { font: 600 var(--fs-3)/1.3 var(--font-sans); letter-spacing: -0.01em; margin-bottom: 8px; max-width: none; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 32px; }
.meta-label {
  font: 500 var(--fs-1) var(--font-sans);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold);
  margin-bottom: 8px;
}
.meta-value { font: 400 var(--fs-3)/1.45 var(--font-sans); color: var(--text-1); }
.sig-block { margin-top: 40px; }
.sig-name { font: 600 var(--fs-3) var(--font-sans); color: var(--text-1); margin-bottom: 4px; }
.sig-title { font: 400 var(--fs-1) var(--font-sans); color: var(--text-2); }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
/* title links: a 44px hit area without moving the layout */
.section-title a { display: inline-block; padding: 8px 0; margin: -8px 0; }

/* ── FOOTER MARK ── */
footer .mono::before, .footer-name::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  vertical-align: -3px;
  background: url(/static/img/aos-star-64.png) center / contain no-repeat;
}

/* ── LINKS: the underline warms on hover ── */
main a, .body-copy a, .hero-copy a, .mission-text a, .footer-line a { transition: text-decoration-color .2s, color .2s; }


/* ── DOCUMENT PAGES: sticky labels, reveals ── */
@keyframes section-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main .section { animation: section-in linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    main .section:first-child { animation: none; }
  }
}
@media (min-width: 921px) {
  .section-kicker { position: sticky; top: 96px; align-self: start; }
  /* an article's signature sits in the text column, under the last section */
  main:has(> .section) > .sig-block { margin-left: 232px; }
}
/* links in article prose: one style, whatever the page's inline colour; long URLs wrap cleanly */
main a[style*="color:var(--gold)"] { color: var(--text-1) !important; }
main a[style*="break-all"] { word-break: normal !important; overflow-wrap: anywhere; }

/* ── SEPARATORS: a hairline that fades in from each edge, between sections and above the footer ── */
:root { --sep: linear-gradient(90deg, transparent, rgba(237,232,220,0.13) 14%, rgba(237,232,220,0.13) 86%, transparent); }
.section { position: relative; }
.section + .section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--sep);
  pointer-events: none;
}
footer { position: relative; }
footer::before {
  content: '';
  position: absolute;
  top: 0; left: var(--pad); right: var(--pad);
  height: 1px;
  background: var(--sep);
  pointer-events: none;
}

/* ── ACCENTS: in place of rules, a pill for the page eyebrow and a dot for each section label ── */
.page-title, .section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 12px;
  border: 1px solid var(--line-hi);
  border-radius: 99px;
  background: rgba(200,169,110,0.06);
}
.section-kicker::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  vertical-align: 2px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .85;
}

/* ── CARDS ── */
.section-card, .meta-card { transition: border-color .25s; }
.section-card:hover, .meta-card:hover { border-color: var(--line-hi); }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  nav { position: sticky; padding: 0 var(--pad); background: rgba(7,9,14,0.88); }
  .nav > a:not(.cta) { display: none; }
  .nav-menu { display: block; }
}

@media (max-width: 920px) {
  .section { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 36px 0; }
  .section-kicker { padding-top: 0; }
  .meta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --pad: 20px; --section: 60px; }
  nav { height: 60px; flex-wrap: nowrap; row-gap: 0; }
  .brand { flex-basis: auto; }
  .hero { padding: 56px var(--pad) 40px; }
}

@media (max-width: 460px) {
  /* phones: a quiet gold outline pill, 34px tall inside an unchanged 44px tap area
     (the transparent 5px border); the inset shadow draws the outline */
  .nav > a.cta { padding: 0 11px; font-size: var(--fs-1); font-weight: 500; margin-left: 2px; letter-spacing: 0; white-space: nowrap;
    border: 5px solid transparent; border-radius: 99px; background: transparent; color: var(--gold);
    box-shadow: inset 0 0 0 1px rgba(200,169,110,0.55); }
  .nav > a.cta:hover { background: transparent; color: var(--text-1); box-shadow: inset 0 0 0 1px var(--gold); }
  .nav { gap: 4px; }
}

/* phones: the star alone carries the brand so the full CTA fits one row */
@media (max-width: 420px) {
  nav { padding: 0 16px; }
  .brand { font-size: 0; letter-spacing: 0; min-width: 44px; justify-content: center; }
  .brand img { width: 26px !important; height: 26px !important; margin-right: 0 !important; }
  .nav-menu summary { padding: 0 6px; font-size: var(--fs-1); }
}

/* the smallest phones (below 360px): tighter spacing so the bar fits on one line */
@media (max-width: 359px) {
  nav { padding: 0 8px; }
  .nav-menu summary { padding: 0 4px; }
  .nav > a.cta { padding: 0 7px; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
