/* =====================================================================
   OATH RESEARCH RATING — Vintage Editorial Cover-of-Quarterly
   Dark-mode mid-century quarterly review. Deep-slate paper-stone ground
   #1B1D1F + bone-cool ink #EDE9E0 + ONE oxide-iron #9F3B1A print accent.
   Fraunces (display, variable opsz) + Work Sans (body) + JetBrains Mono
   (sub-score numerals). Squared corners. Hairline-rule discipline.
   ===================================================================== */

:root {
  /* Bone-cool primary ramp */
  --primary:            #EDE9E0;
  --primary-50:         #F6F4EF;
  --primary-100:        #EFECE4;
  --primary-200:        #D9D4C7;
  --primary-500:        #B9B2A1;
  --primary-700:        #7E7868;
  --primary-900:        #5A554A;

  /* Oxide-iron print accent + teal-slate hyperlink rest */
  --oxide:              #9F3B1A;
  --oxide-700:          #7E2C12;
  --oxide-50:           #F4E3DC;
  --accent-teal:        #3E5B61;

  /* Slate paper-stone ramp */
  --neutral-50:         #F6F4EF;
  --neutral-100:        #EFECE4;
  --neutral-150:        #D9D4C7;
  --neutral-200:        #B9B2A1;
  --neutral-400:        #7E7868;
  --neutral-500:        #5A554A;
  --neutral-700:        #3A3C3E;
  --neutral-800:        #28292B;
  --neutral-900:        #1B1D1F;

  /* Surfaces + grounds */
  --bg:                 #1B1D1F;
  --bg-panel:           #23262A;
  --bg-panel-quiet:     #1F2123;
  --surface:            #23262A;
  --surface-inset:      #1F2123;

  /* Text */
  --text:               #EDE9E0;
  --text-strong:        #F6F4EF;
  --text-muted:         #B9B2A1;
  --text-faint:         #7E7868;

  /* Rules */
  --rule:               #3A3C3E;
  --rule-strong:        #5A554A;
  --rule-bone:          #B9B2A1;
  --rule-oxide:         #9F3B1A;

  /* Status (used sparingly) */
  --success:            #7AA98C;
  --warning:            #C4A66A;
  --danger:             #B86A52;

  /* Layout */
  --max-width:          76rem;
  --content-width:      44rem;
  --snapshot-width:     64rem;
  --container-px:       clamp(1.25rem, 3.5vw, 2.5rem);

  /* Type stacks */
  --font-serif:         'Fraunces', 'Times New Roman', Georgia, serif;
  --font-sans:          'Work Sans', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:          'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Motion (vintage-editorial = 300ms) */
  --transition:         300ms ease-out;
}

/* ======= RESET ======= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: transparent; border: 0; color: inherit; }
ul, ol { list-style: none; }

/* ======= LAYOUT CONTAINERS ======= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--container-px);
}
.container--content { max-width: calc(var(--content-width) + 2 * var(--container-px)); }
.container--snapshot { max-width: calc(var(--snapshot-width) + 2 * var(--container-px)); }

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
  font-variation-settings: 'opsz' 36;
}
h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 72;
  font-weight: 600;
}
h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  font-variation-settings: 'opsz' 42;
}
h2:first-child { margin-top: 0; }
h3 {
  font-size: 1.375rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-variation-settings: 'opsz' 20;
}
h4 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-variation-settings: 'opsz' 18;
}
p { margin: 0 0 1.1em; max-width: 64ch; }
.article-body p { font-size: 1.0625rem; line-height: 1.7; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--text-muted); max-width: 56ch; }

strong { font-weight: 600; color: var(--text-strong); }
em { font-style: italic; }

/* Inline code: CLIA numbers, CAS numbers, percentages */
code {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  background: var(--surface-inset);
  color: var(--text-strong);
  padding: 1px 6px;
  border-radius: 0;
}

/* Inline body-copy links: typographic baseline-rule, never blue underline */
.article-body a, .inline-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--text-faint);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}
.article-body a:hover, .inline-link:hover {
  color: var(--accent-teal);
  border-bottom-color: var(--accent-teal);
}

/* ======= HEADER / MASTHEAD ======= */
.site-header {
  background: var(--bg);
  position: relative;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 0.5px solid var(--oxide);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6.5px;
  height: 2px;
  background: var(--oxide);
}
.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--container-px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  min-height: 64px;
}
.brand-block { display: flex; flex-direction: column; gap: 0.125rem; }
.site-brand {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-strong);
  text-decoration: none;
  letter-spacing: -0.005em;
  font-variation-settings: 'opsz' 24;
  line-height: 1.05;
}
.site-brand .brand-slash { color: var(--primary-700); margin: 0 0.25em; }
.brand-folio {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.6875rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  font-variation-settings: 'opsz' 14;
}
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}
.site-nav li { display: flex; align-items: center; }
.site-nav li + li::before {
  content: '·';
  color: var(--primary-700);
  padding: 0 0.625rem;
  font-size: 0.875rem;
}
.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--text-strong);
  border-bottom-color: var(--rule-bone);
}

/* ======= HERO — Composite numeral centerpiece ======= */
.hero {
  background: var(--bg);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 5vw, 4.5rem);
  border-bottom: 0.5px solid var(--oxide);
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6.5px;
  height: 2px;
  background: var(--oxide);
}
.hero-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--container-px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr 1px 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
  }
  .hero-rule-vertical {
    width: 1px;
    background: var(--rule-bone);
    align-self: stretch;
    min-height: 28rem;
  }
}
@media (max-width: 879.98px) {
  .hero-rule-vertical { display: none; }
  .hero-right { border-top: 1px solid var(--rule-oxide); padding-top: 2.5rem; }
}

/* LEFT HALF — Composite numeral */
.hero-left { display: flex; flex-direction: column; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.eyebrow-square {
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--oxide);
}
.composite-numeral-block {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
  text-wrap: nowrap;
}
.composite-numeral {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(9rem, 18vw, 15rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--text-strong);
  font-variation-settings: 'opsz' 144;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.composite-unit {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-700);
  font-variation-settings: 'opsz' 48;
  line-height: 1;
  letter-spacing: -0.01em;
}
.composite-underline {
  width: 4em;
  height: 1px;
  background: var(--oxide);
  margin: 0.5rem 0 1.25rem;
}
.composite-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 30ch;
  line-height: 1.5;
  font-variation-settings: 'opsz' 14;
}

/* RIGHT HALF — Headline, lede, sub-score chips, CTAs */
.hero-right { display: flex; flex-direction: column; }
.hero-h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0.5rem 0 1.5rem;
  max-width: 22ch;
  font-variation-settings: 'opsz' 72;
  text-wrap: balance;
}
.hero-subhead {
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 2rem;
}

/* Sub-score chip strip */
.sub-score-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) { .sub-score-strip { grid-template-columns: repeat(4, 1fr); } }
.sub-score-chip {
  border: 1px solid var(--rule-bone);
  padding: 0.625rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: transparent;
}
.sub-score-chip-label {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}
.sub-score-chip-value {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: 0.005em;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

/* ======= BUTTONS ======= */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.cta-row--center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 0;
  border: 1.5px solid transparent;
  text-decoration: none;
  letter-spacing: 0;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--text-strong); border-color: var(--text-strong); color: var(--bg); }
.btn-primary:active { background: var(--primary-200); border-color: var(--primary-200); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--rule-bone);
}
.btn-secondary:hover { color: var(--text-strong); border-color: var(--text-strong); }
.btn-ghost {
  background: transparent;
  color: var(--oxide);
  border: 0;
  padding: 0 0 2px;
  position: relative;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--oxide);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-ghost:hover::after { opacity: 1; }
.btn:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
}

/* ======= ARTICLE BODY ======= */
.article-body { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.article-body section { margin-bottom: 2.5rem; }
.article-body section:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol {
  margin: 0 0 1.25em 1.5em;
  padding: 0;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.5em; max-width: 64ch; }
.article-body li::marker { color: var(--text-faint); }

/* Drop cap on opening lede */
.dropcap::first-letter {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 4.5em;
  float: left;
  line-height: 0.88;
  padding: 0.075em 0.12em 0 0;
  color: var(--text-strong);
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.05em;
}

/* ======= SCORE PANEL — sub-score primitive ======= */
.score-panel {
  border: 1px solid var(--rule-bone);
  background: var(--surface);
  padding: clamp(2rem, 4vw, 3rem);
  margin: 2.5rem 0;
}
.score-panel-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.score-panel-numeral-block {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.score-panel-numeral {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  font-variation-settings: 'opsz' 96;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.score-panel-unit {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--primary-700);
  font-variation-settings: 'opsz' 36;
}
.score-panel-rule {
  width: 3em;
  height: 1px;
  background: var(--oxide);
  margin: 0.5rem 0 1rem;
}
.score-panel-band {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-variation-settings: 'opsz' 18;
}
.score-panel-rationale {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 52ch;
  margin-bottom: 1.5rem;
}
.score-panel-link {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--oxide);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.score-panel-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--oxide);
  opacity: 0;
  transition: opacity var(--transition);
}
.score-panel-link:hover::after { opacity: 1; }

/* Sub-score grid (for /, /methodology) */
.score-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0;
}
@media (min-width: 720px) { .score-panel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .score-panel-grid { grid-template-columns: repeat(4, 1fr); } }
.score-panel-grid .score-panel { margin: 0; }
.score-panel-grid .score-panel-numeral { font-size: clamp(3rem, 5vw, 4.5rem); }

/* ======= PULL-QUOTE CALLOUT ======= */
.callout {
  border-left: 3px solid var(--rule-bone);
  padding: 0.75rem 0 0.75rem 1.5rem;
  margin: 2rem 0;
}
.callout-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-variation-settings: 'opsz' 24;
}
.callout-attribution {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}
.callout--oxide { border-left-color: var(--rule-oxide); }
.callout--oxide .callout-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--oxide);
  margin-bottom: 0.5rem;
  font-variation-settings: 'opsz' 14;
}

/* ======= CHIPS — confidence flags ======= */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  border: 1px solid var(--rule-bone);
  padding: 0.25rem 0.625rem;
  border-radius: 0;
  background: transparent;
  margin-left: 0.375em;
  vertical-align: 0.075em;
}
.chip--active { color: var(--text-strong); border-color: var(--rule-bone); }
.chip--oxide { color: var(--oxide); border-color: var(--oxide); }
.chip--verified::before { content: ''; }

/* ======= TABLES — vintage editorial review table ======= */
.editorial-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}
.editorial-table thead th {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-align: left;
  padding: 0.625rem 1rem 0.875rem;
  border-bottom: 1px solid var(--rule-bone);
}
.editorial-table td {
  padding: 0.875rem 1rem;
  border-bottom: 0.5px solid var(--rule-strong);
  color: var(--text);
  vertical-align: top;
}
.editorial-table td.num,
.editorial-table th.num {
  font-family: var(--font-mono);
  text-align: right;
  color: var(--text-strong);
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.editorial-table tr:last-child td { border-bottom: 0; }

/* ======= IMAGE PLATES ======= */
.figure-plate {
  margin: 2.5rem 0;
}
.figure-plate img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-bone);
  background: var(--surface);
}
.figure-plate figcaption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.625rem;
  font-variation-settings: 'opsz' 14;
}

/* ======= REFERENCES LIST ======= */
.references-list {
  list-style: none;
  counter-reset: ref;
  margin: 1.75rem 0;
  padding: 0;
}
.references-list li {
  counter-increment: ref;
  margin-bottom: 1.25rem;
  padding-left: 2.75rem;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
}
.references-list li::before {
  content: counter(ref) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--oxide);
  width: 2.25rem;
  text-align: right;
  padding-right: 0.5rem;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.references-list a {
  color: var(--accent-teal);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  margin-left: 0.375em;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: color var(--transition), border-color var(--transition);
}
.references-list a:hover { color: var(--text-strong); border-bottom-color: var(--rule-bone); }

/* Inline citation superscript */
sup.citation { font-size: 0.6875em; vertical-align: super; line-height: 0; }
sup.citation a {
  color: var(--oxide);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 0 0.125em;
  border-bottom: 0;
}
sup.citation a:hover { color: var(--text-strong); }

/* ======= FAQ — semantic list ======= */
.faq-list { display: flex; flex-direction: column; gap: 0; margin: 2rem 0; border-top: 0.5px solid var(--rule-strong); }
.faq-item {
  border-bottom: 0.5px solid var(--rule-strong);
  padding: 1.5rem 0;
}
.faq-q {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-strong);
  margin-bottom: 0.625rem;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 24;
}
.faq-a {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 64ch;
}
.faq-a p { margin-bottom: 0.85em; }
.faq-a p:last-child { margin-bottom: 0; }

/* ======= FORMS ======= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
  max-width: 36rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}
.form-row input,
.form-row textarea,
.form-row select {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-strong);
  background: var(--surface-inset);
  border: 1px solid var(--rule-bone);
  border-radius: 0;
  padding: 0.75rem 0.875rem;
  transition: border-color var(--transition);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--text-strong);
}
.form-row textarea { resize: vertical; min-height: 8rem; }

/* ======= FOOTER ======= */
.site-footer {
  background: var(--bg);
  padding: clamp(5rem, 8vw, 8rem) 0 clamp(4rem, 6vw, 6rem);
  border-top: 0.5px solid var(--oxide);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -6.5px;
  height: 2px;
  background: var(--oxide);
}
.footer-disclaimer {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 64ch;
  margin: 0 auto;
  line-height: 1.55;
  font-variation-settings: 'opsz' 18;
}
.footer-divider {
  width: 4em;
  height: 1px;
  background: var(--rule-bone);
  margin: 2.5rem auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--container-px);
}
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin: 0 0 0.625rem;
  padding-bottom: 0.625rem;
  border-bottom: 0.5px solid var(--rule-strong);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.15rem; }
.footer-col a {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.85;
  transition: color var(--transition);
  font-variation-settings: 'opsz' 14;
}
.footer-col a:hover { color: var(--text-strong); }
.footer-divider-full {
  width: calc(100% - 2 * var(--container-px));
  height: 1px;
  background: var(--rule-bone);
  margin: 2.5rem auto 1.25rem;
  max-width: var(--max-width);
}
.footer-colophon {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-faint);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--container-px);
}
.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-faint);
  max-width: var(--max-width);
  margin: 0.5rem auto 0;
  padding-inline: var(--container-px);
}

/* ======= TIPPY (citation tooltips) ======= */
.tippy-box[data-theme~='oath-vintage'] {
  background-color: var(--surface-inset);
  color: var(--text);
  border: 1px solid var(--rule-bone);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: none;
}
.tippy-box[data-theme~='oath-vintage'] .tippy-content {
  padding: 0.875rem 1rem;
}
.tippy-box[data-theme~='oath-vintage'] .tippy-arrow {
  color: var(--rule-bone);
}
.tippy-citation-text {
  color: var(--text-strong);
  margin-bottom: 0.5rem;
}
.tippy-citation-mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.tippy-citation-link {
  display: inline-block;
  margin-top: 0.625rem;
  color: var(--accent-teal);
  text-decoration: none;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

/* ======= UTILITIES ======= */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-mono {
  font-family: var(--font-mono);
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}

/* ======= FLEURON RULE — closing ornament ======= */
.fleuron-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  margin: 3rem auto;
  max-width: 24rem;
  color: var(--oxide);
}
.fleuron-rule::before,
.fleuron-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--oxide);
}
.fleuron-rule .diamond {
  width: 8px; height: 8px;
  background: var(--oxide);
  transform: rotate(45deg);
}

/* ======= 404 PAGE ======= */
.error-page {
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.error-numeral {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(7rem, 16vw, 13rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--text-strong);
  font-variation-settings: 'opsz' 144;
}
.error-page h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 1rem 0 0.75rem;
}
.error-page p { margin: 0 auto 1.25rem; }

/* ======= MOBILE NAV ======= */
@media (max-width: 879.98px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 0.5px solid var(--rule-bone);
    display: none;
    z-index: 50;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--container-px) 1.5rem;
    gap: 0.5rem;
  }
  .site-nav li + li::before { display: none; }
  .site-nav a {
    display: block;
    padding: 0.625rem 0;
    border-bottom: 0.5px solid var(--rule);
  }
}

/* ======= RESPONSIVE TWEAKS ======= */
@media (max-width: 600px) {
  .composite-numeral-block { flex-wrap: nowrap; }
  .hero-h1 { font-size: clamp(1.875rem, 7vw, 2.5rem); }
}
