/* ==========================================================================
   podcastadvertis.ing — design system
   Warm editorial: paper + ink + flame. Newsreader display, Hanken Grotesk text.
   ========================================================================== */

:root {
  --paper: #FBF8F2;
  --paper-raised: #FFFFFF;
  --paper-sunken: #F3EEE4;
  --ink: #191512;
  --ink-soft: #4E463D;
  --ink-faint: #8A8175;
  --line: #E4DCCE;
  --flame: #E4572E;
  --flame-deep: #C23E17;
  --flame-wash: #FCEAE2;
  --night: #16120E;
  --night-raised: #211B15;
  --night-line: #352C22;
  --cream: #F5EFE4;
  --cream-soft: #C9BFAE;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-text: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --size-hero: clamp(2.75rem, 6.5vw, 5.25rem);
  --size-h1: clamp(2.4rem, 5vw, 3.9rem);
  --size-h2: clamp(1.7rem, 3vw, 2.4rem);
  --size-h3: clamp(1.25rem, 2vw, 1.5rem);
  --size-body: 1.0625rem;
  --size-small: 0.9375rem;
  --size-tiny: 0.8125rem;

  --measure: 44rem;
  --wide: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 1px 2px rgba(25, 21, 18, .04), 0 8px 28px rgba(25, 21, 18, .07);
  --shadow-lift: 0 2px 4px rgba(25, 21, 18, .05), 0 18px 50px rgba(25, 21, 18, .12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--size-body);
  line-height: 1.72;
  font-feature-settings: "cv05", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

::selection { background: var(--flame); color: #fff; }

/* ---- Type ---------------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); margin-top: 3.25rem; }
h3 { font-size: var(--size-h3); margin-top: 2.25rem; line-height: 1.25; font-weight: 600; }
h4 { font-family: var(--font-text); font-size: 1rem; font-weight: 700; margin: 1.75rem 0 .5rem; }

p { margin: 0 0 1.35rem; }

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--flame) 55%, transparent); text-underline-offset: 3px; transition: text-decoration-color .15s ease, color .15s ease; }
a:hover { color: var(--flame-deep); text-decoration-color: var(--flame-deep); }

strong { font-weight: 650; }

.lede {
  font-size: clamp(1.15rem, 1.8vw, 1.32rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--measure);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--size-tiny);
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--flame-deep);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--flame);
  border-radius: 2px;
}

/* ---- Layout -------------------------------------------------------------- */

.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }
.prose > h2 { scroll-margin-top: 6rem; }
.prose > h3 { scroll-margin-top: 6rem; }

section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
section.tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* ---- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand .wm { white-space: nowrap; }
.brand .tld { color: var(--flame); }
.brand svg { flex: none; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
.site-nav a {
  font-size: var(--size-small);
  font-weight: 550;
  text-decoration: none;
  color: var(--ink-soft);
  padding: .35rem 0;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--flame);
}

.nav-cta {
  font-size: var(--size-small);
  font-weight: 620;
  text-decoration: none;
  color: var(--cream) !important;
  background: var(--ink);
  padding: .55rem 1.05rem !important;
  border-radius: 999px;
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--flame-deep); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .5rem .65rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-size: var(--size-small); }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--paper-sunken); }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--flame-deep); }
  .nav-cta { margin-top: 1rem; text-align: center; }
}

/* ---- Hero ---------------------------------------------------------------- */

.hero { padding-block: clamp(4rem, 9vw, 8rem) clamp(3rem, 6vw, 5rem); position: relative; overflow: clip; }

.hero h1 {
  font-size: var(--size-hero);
  max-width: 15ch;
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--flame-deep);
}

.hero .lede { margin-bottom: 2.2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

.hero-meta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  font-size: var(--size-tiny);
  color: var(--ink-faint);
  letter-spacing: .02em;
}

/* Animated waveform */
.wave {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 54px;
  margin-bottom: 2.4rem;
}
.wave i {
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--flame), var(--flame-deep));
  animation: wave 1.6s ease-in-out infinite;
  transform-origin: bottom;
}
.wave i:nth-child(4n+1) { height: 42%; animation-delay: -.2s; }
.wave i:nth-child(4n+2) { height: 88%; animation-delay: -.9s; }
.wave i:nth-child(4n+3) { height: 60%; animation-delay: -1.3s; }
.wave i:nth-child(4n+4) { height: 30%; animation-delay: -.5s; }

@keyframes wave { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  .wave i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 620;
  text-decoration: none;
  border-radius: 999px;
  padding: .85rem 1.65rem;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  cursor: pointer;
  border: 0;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--cream); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--flame-deep); color: #fff; }

.btn-flame { background: var(--flame); color: #fff; box-shadow: var(--shadow-soft); }
.btn-flame:hover { background: var(--flame-deep); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---- Dark band (stats, CTA) ---------------------------------------------- */

.band {
  background: var(--night);
  color: var(--cream);
}
.band ::selection { background: var(--flame); }
.band h2, .band h3 { color: var(--cream); }
.band a { color: var(--cream); }
.band .eyebrow { color: var(--flame); }
.band .lede { color: var(--cream-soft); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 2.5rem 3rem;
  margin-top: 3rem;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--cream);
  display: block;
  margin-bottom: .55rem;
}
.stat .num sup { font-size: .45em; color: var(--flame); font-weight: 600; }
.stat .label { font-size: var(--size-small); color: var(--cream-soft); line-height: 1.5; display: block; max-width: 24ch; }
.stat .src { font-size: var(--size-tiny); color: color-mix(in srgb, var(--cream-soft) 65%, transparent); display: block; margin-top: .4rem; }

/* ---- Cards --------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.75rem 1.7rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--flame) 40%, var(--line));
  color: inherit;
}
.card .k {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.card p { font-size: var(--size-small); color: var(--ink-soft); margin: 0; }
.card .go {
  margin-top: auto;
  padding-top: 1rem;
  font-size: var(--size-small);
  font-weight: 620;
  color: var(--flame-deep);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
a.card:hover .go .arr { transform: translateX(3px); }
.card .go .arr { transition: transform .18s ease; }
.card .num-chip {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--flame-deep);
  font-weight: 600;
  margin-bottom: .35rem;
}

/* ---- Tables -------------------------------------------------------------- */

.table-scroll { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); }
table { border-collapse: collapse; width: 100%; font-size: var(--size-small); min-width: 560px; }
caption { caption-side: bottom; text-align: left; font-size: var(--size-tiny); color: var(--ink-faint); padding: .8rem 1.1rem; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--paper-sunken); vertical-align: top; }
thead th {
  font-size: var(--size-tiny);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  background: var(--paper-sunken);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td .range { font-weight: 650; white-space: nowrap; }

/* ---- Lists --------------------------------------------------------------- */

.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.35rem; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--flame); font-weight: 600; }

.checklist { list-style: none; padding: 0; }
.checklist li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: .85rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background: var(--flame-wash) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"><path d="M4 8.5l2.5 2.5L12 5.5" stroke="%23C23E17" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/70% no-repeat;
}

/* Numbered steps */
.steps { list-style: none; padding: 0; counter-reset: step; margin: 2.5rem 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2.2rem 3.6rem;
  border-left: 1px solid var(--line);
  margin-left: 1.15rem;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -1.2rem; top: -.25rem;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.steps > li > strong:first-child, .steps h3 { display: block; font-size: 1.15rem; margin: 0 0 .4rem; }
.steps p { color: var(--ink-soft); font-size: var(--size-small); margin-bottom: .6rem; }

/* ---- Callouts / pull quotes ---------------------------------------------- */

.callout {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--flame);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
  margin: 2.2rem 0;
  font-size: var(--size-small);
}
.callout.key {
  background: var(--flame-wash);
  border-color: color-mix(in srgb, var(--flame) 30%, var(--line));
  border-left-color: var(--flame);
}
.callout .tag {
  display: block;
  font-size: var(--size-tiny);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--flame-deep);
  margin-bottom: .45rem;
}
.callout p:last-child { margin-bottom: 0; }

blockquote.pull {
  margin: 3rem 0;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -.01em;
  max-width: 30ch;
}
blockquote.pull::before { content: "\201C"; color: var(--flame); }
blockquote.pull::after { content: "\201D"; color: var(--flame); }
blockquote.pull footer { font-family: var(--font-text); font-size: var(--size-small); color: var(--ink-faint); margin-top: 1rem; }

/* ---- FAQ ------------------------------------------------------------------ */

.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 3rem 1.35rem 0;
  font-weight: 620;
  font-size: 1.06rem;
  position: relative;
  transition: color .15s ease;
}
.faq summary:hover { color: var(--flame-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .35rem;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--flame);
  transition: rotate .2s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq .a { padding: 0 0 1.5rem; max-width: var(--measure); color: var(--ink-soft); }
.faq .a p:last-child { margin-bottom: 0; }

/* ---- TOC ------------------------------------------------------------------ */

.toc {
  background: var(--paper-sunken);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0 3rem;
  font-size: var(--size-small);
  max-width: var(--measure);
}
.toc .toc-title {
  font-size: var(--size-tiny);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-faint);
  margin-bottom: .8rem;
}
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2.5rem; }
.toc li { margin-bottom: .45rem; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.toc a:hover { color: var(--flame-deep); }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---- Breadcrumbs / article meta ------------------------------------------- */

.crumbs {
  font-size: var(--size-tiny);
  color: var(--ink-faint);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--flame-deep); }
.crumbs .sep { color: var(--line); }

.byline {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 2rem 0 0;
  font-size: var(--size-small);
  color: var(--ink-soft);
}
.byline .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  flex: none;
}
.byline .who strong { display: block; color: var(--ink); }
.byline .who span { font-size: var(--size-tiny); color: var(--ink-faint); }

/* ---- Calculator ----------------------------------------------------------- */

.calc {
  background: var(--night);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

.calc label { display: block; font-size: var(--size-tiny); font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--cream-soft); margin: 1.4rem 0 .5rem; }
.calc label:first-child { margin-top: 0; }
.calc select, .calc input[type="number"] {
  width: 100%;
  background: var(--night-raised);
  color: var(--cream);
  border: 1px solid #3A3128;
  border-radius: 10px;
  padding: .8rem 1rem;
  font: inherit;
  font-size: 1rem;
}
.calc input[type="range"] { width: 100%; accent-color: var(--flame); margin-top: .4rem; }
.calc output.inline { font-weight: 650; color: var(--cream); font-variant-numeric: tabular-nums; }

.calc .result { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #3A3128; padding-left: 2.5rem; }
@media (max-width: 760px) { .calc .result { border-left: 0; padding-left: 0; border-top: 1px solid #3A3128; padding-top: 1.75rem; } }
.calc .result .big {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.calc .result .sub { color: var(--cream-soft); font-size: var(--size-small); margin-top: .8rem; }
.calc .result .row { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--size-small); color: var(--cream-soft); padding: .45rem 0; border-bottom: 1px dashed #3A3128; }
.calc .result .row b { color: var(--cream); font-variant-numeric: tabular-nums; }
.calc .note { grid-column: 1 / -1; font-size: var(--size-tiny); color: color-mix(in srgb, var(--cream-soft) 70%, transparent); margin: 0; }

/* ---- Contact form --------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  max-width: 62rem;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.lead-form {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.field { margin-bottom: 1.15rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.lead-form label {
  display: block;
  font-size: var(--size-small);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .45rem;
}
.lead-form label .opt { font-weight: 400; color: var(--ink-faint); font-size: var(--size-tiny); }

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem .85rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--flame);
  box-shadow: 0 0 0 3px var(--flame-wash);
}
.lead-form textarea { resize: vertical; min-height: 7rem; line-height: 1.6; }
.lead-form .consent label { display: flex; align-items: flex-start; gap: .55rem; font-weight: 450; color: var(--ink-soft); }
.lead-form .consent input { width: auto; margin-top: .25rem; accent-color: var(--flame); }
.lead-form button[type="submit"] { margin-top: .35rem; }
.lead-form input:user-invalid,
.lead-form textarea:user-invalid { border-color: color-mix(in srgb, var(--flame) 60%, var(--line)); }

.form-status { font-size: var(--size-small); margin: 1rem 0 0; min-height: 1.2em; }
.form-status.ok { color: var(--flame-deep); font-weight: 600; }
.form-status.err { color: var(--flame-deep); }
.form-status a { color: var(--flame-deep); }

.contact-aside { display: flex; flex-direction: column; gap: 1rem; }
.aside-card {
  background: var(--paper-sunken);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.aside-card h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.aside-card p { margin: 0; font-size: var(--size-small); color: var(--ink-soft); }
.aside-card.quiet { background: transparent; border: 1px dashed var(--line); }
.next-steps { margin: 0; padding-left: 1.15rem; font-size: var(--size-small); color: var(--ink-soft); }
.next-steps li { margin-bottom: .55rem; }
.next-steps li::marker { color: var(--flame); font-weight: 600; }

/* ---- Glossary -------------------------------------------------------------- */

.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 2rem 0 2.5rem;
}
.glossary-nav a {
  font-size: var(--size-tiny);
  font-weight: 650;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .3rem .65rem;
  color: var(--ink-soft);
  background: var(--paper-raised);
}
.glossary-nav a:hover { border-color: var(--flame); color: var(--flame-deep); }

.term { padding: 1.6rem 0; border-bottom: 1px solid var(--paper-sunken); max-width: var(--measure); scroll-margin-top: 6rem; }
.term dt {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .45rem;
}
.term dd { margin: 0; color: var(--ink-soft); font-size: var(--size-small); }
.term .also { display: block; margin-top: .5rem; font-size: var(--size-tiny); color: var(--ink-faint); }
.letter-head {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--flame);
  margin: 3rem 0 0;
  scroll-margin-top: 6rem;
}

/* ---- Logo strip ------------------------------------------------------------ */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.75rem;
  align-items: baseline;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: .01em;
}

/* ---- CTA panel ------------------------------------------------------------- */

.cta-panel {
  background: var(--night);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  position: relative;
  overflow: clip;
}
.cta-panel h2 { margin-top: 0; max-width: 22ch; color: var(--cream); }
.cta-panel .lede { color: var(--cream-soft); max-width: 52ch; }
.cta-panel .fine { font-size: var(--size-tiny); color: color-mix(in srgb, var(--cream-soft) 70%, transparent); margin-top: 1.5rem; margin-bottom: 0; }
.cta-panel a:not(.btn) { color: var(--cream); text-decoration: underline; text-decoration-color: var(--flame); text-underline-offset: 2px; }
.cta-panel a:not(.btn):hover { color: #fff; }
.cta-panel .wave { position: absolute; right: 3rem; top: 2.5rem; opacity: .5; height: 40px; }
@media (max-width: 700px) { .cta-panel .wave { display: none; } }

/* ---- Footer ----------------------------------------------------------------- */

.site-footer {
  background: var(--night);
  color: var(--cream-soft);
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(3rem, 5vw, 4.5rem) 0 2.5rem;
  font-size: var(--size-small);
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--flame); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid .brand { color: var(--cream); font-size: 1.15rem; margin-bottom: .9rem; }
.footer-grid .col-title {
  font-size: var(--size-tiny);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .6rem; }
.footer-grid .about-blurb { max-width: 34ch; line-height: 1.65; }

.footer-legal {
  border-top: 1px solid #2B241C;
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--size-tiny);
  color: color-mix(in srgb, var(--cream-soft) 70%, transparent);
}
.footer-legal a { color: inherit; }

/* ---- Reveal on scroll -------------------------------------------------------- */

@keyframes rv-fallback { to { opacity: 1; translate: 0 0; } }
html.js .rv {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .6s ease, translate .6s ease;
  animation: rv-fallback .6s ease 1.4s forwards; /* guarantees visibility even if the observer never fires */
}
html.js .rv.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { html.js .rv { opacity: 1; translate: none; transition: none; animation: none; } }

/* ---- Misc ---------------------------------------------------------------------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.sources { font-size: var(--size-tiny); color: var(--ink-faint); border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 1.25rem; max-width: var(--measure); }
.sources ol { padding-left: 1.2rem; margin: .5rem 0 0; }
.sources li { margin-bottom: .35rem; }
.sources a { color: var(--ink-soft); }

.updated-stamp { font-size: var(--size-tiny); color: var(--ink-faint); letter-spacing: .02em; }

.kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: .75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
