/* =============================================================
   Is Oath Peptides Legit — Soft Editorial
   Cormorant Garamond + EB Garamond on cool vellum
   Sage / blush / lemon three-color editorial accent grammar
   ============================================================= */

:root {
  /* Palette */
  --primary: #3E4A5C;
  --primary-50: #E9ECF2;
  --primary-100: #CFD5E0;
  --primary-300: #8A95A8;
  --primary-500: #3E4A5C;
  --primary-700: #2A3343;
  --primary-900: #171D29;

  --sage: #9CB392;
  --sage-50: #E9EFE6;
  --sage-200: #C7D6BF;
  --blush: #D7A0BC;
  --blush-50: #F7E8EE;
  --blush-200: #EDC8D5;
  --lemon: #C8D04A;
  --lemon-50: #F4F5DE;
  --lemon-200: #E2E68C;

  --neutral-0: #FFFFFF;
  --neutral-50: #F7F8FB;
  --neutral-100: #EEF1F4;
  --neutral-150: #E1E5EC;
  --neutral-200: #D1D7E0;
  --neutral-300: #B0B8C5;
  --neutral-400: #8A92A0;
  --neutral-500: #666D7B;
  --neutral-600: #4A5160;
  --neutral-700: #343A48;
  --neutral-800: #22272F;
  --neutral-900: #171D29;

  --bg: #EEF1F4;
  --bg-paper: #FFFFFF;
  --surface: #FFFFFF;
  --surface-quiet: #F7F8FB;
  --surface-sage: #E9EFE6;
  --surface-blush: #F7E8EE;
  --surface-lemon: #F4F5DE;

  --text: #22272F;
  --text-strong: #171D29;
  --text-muted: #4A5160;
  --text-dim: #666D7B;
  --text-on-dark: #EEF1F4;
  --text-quiet-caps: #666D7B;
  --text-quiet-caps-dark: #B0B8C5;

  --rule: #E1E5EC;
  --rule-strong: #D1D7E0;

  /* Layout */
  --max-width: 68rem;
  --content-max: 52rem;
  --container-px: clamp(1.25rem, 4vw, 2.5rem);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'EB Garamond', 'Adobe Garamond Pro', Garamond, Georgia, serif;
  --font-body: 'EB Garamond', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
}

/* ---------- 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; }
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography scale ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-strong);
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.25rem, 4.25vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 1.5rem;
}
h2 {
  font-size: clamp(1.625rem, 2.75vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.008em;
  margin: 0 0 1rem;
}
h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h4 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

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

a {
  color: var(--primary);
  border-bottom: 1px solid transparent;
  transition: color 220ms ease-out, border-color 220ms ease-out;
}
a:hover { color: var(--primary-700); border-bottom-color: var(--sage); }
a:focus-visible { outline: 2.5px solid var(--sage); outline-offset: 3px; border-radius: 1px; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}
.reading-column {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 241, 244, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: 76px;
  display: flex;
  align-items: center;
  transition: box-shadow 220ms ease-out;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-brand {
  display: flex;
  flex-direction: column;
  border-bottom: 0;
}
.site-brand:hover { border-bottom: 0; color: inherit; }
.site-brand__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text-strong);
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.site-brand__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
  line-height: 1.2;
}
.site-nav { font-family: var(--font-ui); }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}
.site-nav li {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}
.site-nav li + li::before {
  content: "·";
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  margin-right: 1.25rem;
  margin-left: -1.25rem;
}
.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.25rem 0;
  position: relative;
  border-bottom: 0;
  display: inline-block;
  transition: color 220ms ease-out;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease-out;
}
.site-nav a:hover {
  color: var(--primary);
  border-bottom: 0;
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"]::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    flex-basis: 100%;
    display: none;
  }
  .site-nav.is-open { display: block; padding-top: 0.75rem; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .site-nav li + li::before { display: none; }
  .site-nav li { gap: 0; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(3rem, 7vh, 5rem);
}
.hero-eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-quiet-caps);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.hero h1 { color: var(--text-strong); }
.hero__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3125rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 2rem;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin: 2rem 0 2.5rem;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  align-items: center;
  margin-top: 2.5rem;
}
.hero-rule {
  height: 1px;
  background: var(--sage);
  width: 100%;
  margin-bottom: 0;
  border: 0;
  display: block;
}

/* ---------- Accent mark (the 6px flat square) ---------- */
.mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--sage);
  flex-shrink: 0;
}
.mark--sage { background: var(--sage); }
.mark--blush { background: var(--blush); }
.mark--lemon { background: var(--lemon); }
.mark--ink { background: var(--text-strong); }
.mark--dim { background: var(--text-dim); }

/* ---------- Chips (typographic, hairline underline) ---------- */
.chip {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-strong);
  padding-bottom: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1.5px solid var(--sage);
}
.chip--sage { border-bottom-color: var(--sage); }
.chip--blush { border-bottom-color: var(--blush); }
.chip--lemon { border-bottom-color: var(--lemon); }
.chip--dim { border-bottom-color: var(--rule-strong); color: var(--text-muted); }
.chip__inline {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  padding-bottom: 0.25rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0;
  padding: 0.875rem 1.75rem;
  border: 1.5px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 220ms ease-out, color 220ms ease-out, border-color 220ms ease-out;
  position: relative;
}
.btn-primary {
  background: var(--primary);
  color: var(--text-on-dark);
}
.btn-primary:hover {
  background: var(--primary-700);
  color: var(--text-on-dark);
  border-bottom: 1.5px solid transparent;
}
.btn-primary:active { background: var(--primary-900); }
.btn-primary:focus-visible {
  outline: 2.5px solid var(--sage);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--bg);
}
.btn-secondary {
  background: transparent;
  color: var(--text-strong);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover {
  color: var(--sage);
  border-color: var(--sage);
  border-bottom-color: var(--sage);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0.25rem 0;
  position: relative;
  border-bottom: 0;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease-out;
}
.btn-ghost:hover::after { transform: scaleX(1); }

/* ---------- Sections ---------- */
section { margin: clamp(3.5rem, 7vh, 5rem) 0; }
section:first-child { margin-top: 0; }
section h2 {
  position: relative;
  padding-bottom: 0.75rem;
}
section h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  background: var(--sage);
  margin-top: 0.5rem;
}
section.blush-section h2::after { background: var(--blush); }
section.lemon-section h2::after { background: var(--lemon); }

.section-eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-quiet-caps);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.section-break {
  border: 0;
  height: 1px;
  background: var(--sage);
  max-width: 120px;
  margin: 3rem 0 3rem;
}
.section-break--blush { background: var(--blush); }
.section-break--lemon { background: var(--lemon); }

/* ---------- Q&A block (signature primitive) ---------- */
.qa {
  margin: 2rem 0;
}
.qa + .qa { margin-top: 0; }
.qa__q {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3125rem;
  line-height: 1.4;
  color: var(--text-strong);
  margin: 0 0 1rem;
  padding-left: 1.125rem;
  position: relative;
  max-width: 60ch;
}
.qa__q::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--sage);
}
.qa--sage .qa__q::before { background: var(--sage); }
.qa--blush .qa__q::before { background: var(--blush); }
.qa--lemon .qa__q::before { background: var(--lemon); }
.qa__a {
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 60ch;
  margin: 0;
}
.qa__a p { margin: 0 0 1em; }
.qa__a p:last-child { margin-bottom: 0; }
.qa__break {
  border: 0;
  height: 1px;
  background: var(--sage);
  max-width: 80px;
  margin: 2.5rem 0;
}
.qa--blush + .qa__break,
.qa--blush ~ .qa__break.qa__break--blush { background: var(--blush); }
.qa__break--blush { background: var(--blush); }
.qa__break--lemon { background: var(--lemon); }

/* ---------- Drop cap ---------- */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 500;
  float: left;
  font-size: clamp(3.5rem, 6vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0.05em 0.75rem 0.25rem 0;
  color: var(--text-strong);
}

/* ---------- Callouts ---------- */
.callout {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem 1.5rem 1.5rem;
  border-left: 4px solid var(--sage);
  background: transparent;
}
.callout--verified { border-left-color: var(--sage); }
.callout--claim-examined { border-left-color: var(--blush); }
.callout--editorial-pause {
  border-left-color: var(--lemon);
  background: var(--surface-lemon);
}
.callout__eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.callout__body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}
.callout__body p { margin: 0 0 0.8em; }
.callout__body p:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 1.75rem;
  margin: 2rem 0;
}
.card--surface-quiet {
  background: var(--surface-quiet);
  border-left: 1.5px solid var(--text-dim);
}
.card--sage-rule { border-left: 1.5px solid var(--sage); }
.card--blush-rule { border-left: 1.5px solid var(--blush); }
.card__eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-quiet-caps);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--text-strong);
  margin: 0 0 0.75rem;
}
.card__body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}
.card__body p { margin: 0 0 0.8em; }
.card__body p:last-child { margin-bottom: 0; }
.card__body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.card__body ul li {
  padding-left: 1.125rem;
  position: relative;
  margin-bottom: 0.4em;
}
.card__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  background: var(--sage);
}
.card--blush-rule .card__body ul li::before { background: var(--blush); }

/* ---------- Verdict block ---------- */
.verdict-block {
  margin: 3rem 0;
}
.verdict-rule {
  border: 0;
  height: 1px;
  background: var(--sage);
  position: relative;
  margin: 0 0 3rem;
}
.verdict-rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2.5px;
  width: 6px;
  height: 6px;
  background: var(--sage);
}
.verdict-triptych {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .verdict-triptych { grid-template-columns: 1fr 1fr 1fr; gap: 3rem; }
}
.verdict-segment__eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  padding-bottom: 0.375rem;
  border-bottom: 1.5px solid var(--sage);
}
.verdict-segment--sage .verdict-segment__eyebrow { border-bottom-color: var(--sage); }
.verdict-segment--blush .verdict-segment__eyebrow { border-bottom-color: var(--blush); }
.verdict-segment--lemon .verdict-segment__eyebrow { border-bottom-color: var(--lemon); }
.verdict-segment p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 0.8em;
}
.verdict-segment p:last-child { margin-bottom: 0; }
.verdict-closing {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3125rem;
  line-height: 1.55;
  color: var(--text-strong);
  margin: 3rem 0 0;
  max-width: 56ch;
}

/* ---------- Figure ---------- */
.figure {
  margin: 3rem 0;
  padding: 0;
  background: var(--bg-paper);
  border: 1px solid var(--rule);
}
.figure img {
  width: 100%;
  height: auto;
  display: block;
}
.figure figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-dim);
  padding: 0.875rem 1rem;
  text-align: left;
  border-top: 1px solid var(--rule);
  line-height: 1.5;
}

/* ---------- Inline citations (sup) ---------- */
sup.cite {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  vertical-align: super;
  margin-left: 0.125rem;
}
sup.cite a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 0;
  padding: 0 0.15em;
}
sup.cite a:hover { color: var(--primary-700); border-bottom: 0; }

/* ---------- Mono inline (technical identifiers) ---------- */
.mono-cite, code {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
  background: transparent;
  border: 0;
  padding: 0;
  border-bottom: 1px solid var(--text-dim);
  text-underline-offset: 4px;
}

/* ---------- Body content links ---------- */
.body-content a {
  color: var(--primary);
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 220ms ease-out, color 220ms ease-out;
}
.body-content a:hover { border-bottom-color: var(--sage); color: var(--primary-700); }

/* ---------- Lists in body content ---------- */
.body-content ul, .body-content ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
.body-content li { margin-bottom: 0.4em; }
.body-content ul { list-style: none; padding-left: 0; }
.body-content ul li {
  padding-left: 1.125rem;
  position: relative;
}
.body-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  background: var(--sage);
}
.body-content ol { padding-left: 1.5rem; }

/* ---------- References list ---------- */
.references-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ref-counter;
}
.references-list li {
  counter-increment: ref-counter;
  padding: 1.25rem 0 1.25rem 3.25rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.references-list li::before {
  content: "[" counter(ref-counter) "]";
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  width: 2.5rem;
}
.references-list li:first-child { padding-top: 0; }
.references-list li:first-child::before { top: 0; }
.references-list .ref-source-type {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-quiet-caps);
  margin-bottom: 0.375rem;
  display: block;
}

/* ---------- Page header / hero rule ---------- */
.page-header {
  padding: clamp(3rem, 8vh, 5rem) 0 clamp(2rem, 5vh, 3.5rem);
}
.page-header__eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-quiet-caps);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}
.page-header h1 { color: var(--text-strong); }
.page-header__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3125rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 1.5rem;
}

/* ---------- Body wrapper ---------- */
main { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: var(--text-on-dark);
  margin-top: clamp(4rem, 10vh, 7rem);
  padding: 4rem 0 2rem;
  position: relative;
}
.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--sage);
  margin-bottom: 4rem;
}
.site-footer__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 720px) {
  .site-footer__columns { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .site-footer__columns { grid-template-columns: repeat(4, 1fr); gap: 3rem; }
}
.site-footer__col-head {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-quiet-caps-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1.25rem;
  padding: 0;
}
.site-footer__col-head .mark { background: var(--sage); }
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__col li { margin-bottom: 0.75rem; }
.site-footer__col a {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease-out, color 220ms ease-out;
  line-height: 1.45;
  display: inline-block;
}
.site-footer__col a:hover { border-bottom-color: var(--sage); color: var(--text-on-dark); }
.site-footer__rule {
  border: 0;
  height: 1px;
  background: var(--sage);
  margin: 2rem 0;
}
.site-footer__base {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .site-footer__base { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.site-footer__disclaimer {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-on-dark);
  max-width: 60ch;
  margin: 0;
}
.site-footer__colophon {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-quiet-caps-dark);
  margin: 0;
  text-align: left;
}
@media (min-width: 720px) {
  .site-footer__colophon { text-align: right; }
}
.site-footer__copyright {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--text-quiet-caps-dark);
  margin: 1.5rem 0 0;
  line-height: 1.55;
  max-width: 80ch;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--primary);
  color: var(--text-on-dark);
  padding: 0.5rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* ---------- Markdown-rendered paragraph margin reset for QA answers ---------- */
.qa__a > p:first-child { margin-top: 0; }
.qa__a > p:last-child { margin-bottom: 0; }

/* ---------- Contact form ---------- */
.contact-form {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
  margin: 2rem 0;
}
.contact-form label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-quiet-caps);
  display: block;
  margin-bottom: 0.5rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0.75rem 0.875rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2.5px solid var(--sage);
  outline-offset: 1px;
  border-color: var(--primary);
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form .form-actions { margin-top: 0.5rem; }

/* ---------- 404 ---------- */
.error-page {
  text-align: left;
  padding: clamp(4rem, 12vh, 8rem) 0;
}
.error-page__code {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

/* ---------- Honest limits / quiet supporting text ---------- */
.honest-limits-card .card__body {
  font-style: italic;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
  html { scroll-behavior: auto; }
  .site-nav a::after { transition: none; }
}

/* ---------- Tippy theme override (light-border, ours) ---------- */
.tippy-box[data-theme~='soft-editorial'] {
  background: var(--bg-paper);
  color: var(--text);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--sage);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  padding: 0.5rem 0.25rem;
  max-width: 360px;
}
.tippy-box[data-theme~='soft-editorial'] .tippy-content { padding: 0.5rem 0.75rem; }
.tippy-box[data-theme~='soft-editorial'] .tippy-arrow { color: var(--bg-paper); }
.tippy-box[data-theme~='soft-editorial'] .tippy-arrow::before {
  border-top-color: var(--bg-paper);
}
.tippy-box[data-theme~='soft-editorial'] .ref-type {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-quiet-caps);
  display: block;
  margin-bottom: 0.375rem;
}
.tippy-box[data-theme~='soft-editorial'] .ref-body { display: block; }
