/* Editorial layout: Newsreader for display, Public Sans for reading. Tinted neutrals,
   one accent per vertical (set inline on <html> as --accent). */
:root {
  --paper: oklch(97.5% 0.006 240);
  --ink: oklch(23% 0.02 255);
  --muted: oklch(43% 0.02 255);
  --rule: oklch(86% 0.012 240);
  --accent: oklch(40% 0.08 165);
  --accent-ink: oklch(98% 0.006 240);
  --accent-deep: color-mix(in oklch, var(--accent) 80%, black);

  --display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --text: 'Public Sans', 'Segoe UI', sans-serif;

  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.1vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.75rem);

  --gutter: clamp(1.25rem, 0.8rem + 2.5vw, 3rem);
  --section: clamp(3.5rem, 2.5rem + 5vw, 7.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--text);
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

.mark {
  padding-block: 1.25rem;
  font: 500 1.0625rem/1 var(--display);
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  max-width: none;
}

/* Hero: text column left, situation pull-quote anchored right */
.hero {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2rem, 1rem + 5vw, 5.5rem) var(--section);
}
@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: 4.5rem; align-items: end; }
}
h1, h2 { font-family: var(--display); font-weight: 500; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 1.25rem; max-width: 18ch; }
h2 { font-size: var(--step-2); line-height: 1.15; margin: 0 0 1.25rem; }
p { margin: 0 0 1rem; max-width: 62ch; }
.ideal { color: var(--muted); font-size: var(--step-1); line-height: 1.45; margin-bottom: 2rem; max-width: 40ch; }

.cta-row { display: grid; gap: 0.75rem; justify-items: start; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.85rem 1.6rem;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1.0625rem/1.2 var(--text);
  text-decoration: none; border-radius: 0.4rem;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn[aria-disabled='true'] { opacity: 0.55; pointer-events: none; }
.reassure { font-size: 0.95rem; color: var(--muted); margin: 0; max-width: 46ch; }
.addr { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.pull {
  margin: 0; padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  font: 400 var(--step-1)/1.45 var(--display);
  color: var(--ink);
}

/* Reading sections: left-aligned, separated by hairlines, not cards */
.section { padding-block: var(--section); border-top: 1px solid var(--rule); }
.section-grid { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) {
  .section-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 4.5rem; }
}
.lede { font-size: var(--step-1); line-height: 1.5; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr);
  padding-block: 1.25rem; border-bottom: 1px solid var(--rule);
}
.steps li:first-child { padding-top: 0; }
.steps li::before {
  content: counter(step);
  font: 500 var(--step-1)/1.3 var(--display);
  color: var(--accent);
}
.steps strong { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--muted); }


.close { padding-block: var(--section); border-top: 1px solid var(--rule); }
.close h2 { max-width: 20ch; }
.sign { font-family: var(--display); font-size: var(--step-1); margin-top: 2rem; }

.foot { padding-block: 2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.875rem; }
.foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* Sample films: full column width, 16:9, caption under each */
.films { display: grid; gap: 2.5rem; }
.film { margin: 0; }
.film iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 0.4rem; background: var(--rule); }
.film figcaption { margin-top: 0.9rem; color: var(--muted); max-width: 62ch; }
.film figcaption strong { color: var(--ink); font-weight: 600; margin-right: 0.35rem; }

:root { --accent: oklch(40% 0.09 130); }
