/* Shared by index.html and download.html */
@font-face { font-family: "Inter Tight"; src: url(fonts/inter-tight.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #15110f; --soft: #69625d; --ground: #f6f4f2; --night: #0c0a09; --line: #dcd7d3;
  --orange: #ff6418; --brand: linear-gradient(150deg, #ff9d3d, #ff6418 50%, #eb391d);
  --gutter: max(4vw, 20px);
  color-scheme: light;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body { margin: 0; background: #fff; color: var(--ink); overflow-x: clip; font: 18px/1.5 "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol { margin: 0; }
h1, h2 { font-weight: 640; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.4vw, 92px); }
h2 { font-size: clamp(38px, 5vw, 72px); }
h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 620; letter-spacing: -.025em; line-height: 1.15; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 30px; height: 56px; padding: 0 var(--gutter); background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--soft); }
.nav .name { display: flex; align-items: center; gap: 9px; margin-right: auto; font-size: 20px; font-weight: 640; letter-spacing: -.03em; }
.nav .name:hover { color: inherit; }
.nav .name img { width: 30px; height: 30px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 99px; background: var(--ink); color: #fff; font-size: 18px; font-weight: 560; text-decoration: none; transition: background .2s; }
.pill:hover { background: #453a34; }
.pill.light { background: #fff; color: var(--ink); }
.pill.light:hover { background: #ffe7d8; }
.nav .pill { min-height: 36px; padding: 0 17px; font-size: 15px; }
.nav .pill:hover { color: #fff; }
.link { min-height: 54px; padding: 0 12px; border: 0; background: none; font-size: 18px; font-weight: 560; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.center { text-align: center; }
.lead { max-width: 33em; margin-inline: auto; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: var(--soft); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.count { font-variant-numeric: tabular-nums; }
.segments { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--ground); }
.segments button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 99px; background: none; font-size: 16px; font-weight: 560; }
.segments [aria-pressed=true] { background: var(--ink); color: #fff; }

/* The orange stage widens to the screen's edges as it scrolls in. */
.stage { background: var(--brand); clip-path: inset(0 2vw round 36px); overflow: hidden; }
@supports (animation-timeline: view()) {
  .stage { animation: widen linear both; animation-timeline: view(); animation-range: entry 35% cover 55%; }
}
@keyframes widen { from { clip-path: inset(0 4vw round 40px); } to { clip-path: inset(0 0 round 0px); } }

footer { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 28px var(--gutter); background: var(--ground); color: var(--soft); font-size: 15px; }
footer span { margin-right: auto; }

@media (max-width: 640px) {
  .nav { gap: 18px; }
  .nav .minor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
