/* Guest It public site — "Race day". Plain CSS, no framework.
   Tokens first; two surfaces (ink default, .surface-chalk for reading). */

:root {
  --bg: #0E0E12;
  --panel: #17171D;
  --text: #F1EFE9;
  --muted: #B9B6AD;
  --line: rgba(255, 255, 255, .14);
  --accent: #6D3BFF;
  --accent-ink: #fff;
  --lilac: #C4B5FD;
  --ok: #3DD68C;
  --err: #FF6B6B;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: Barlow, "Helvetica Neue", Arial, sans-serif;
  --gx: 20px;
  --radius: 4px;
  --max: 1440px;
  --nav-h: 64px;
}
@media (min-width: 1024px) { :root { --gx: 48px; --nav-h: 72px; } }

.surface-chalk {
  --bg: #F1EFE9; --panel: #fff; --text: #141318; --muted: #5C5A55; --line: #D8D5CC;
  --accent: #5B2BD9; --accent-ink: #fff; --lilac: #5B2BD9; --ok: #1E8E5A; --err: #C2372F;
  background: var(--bg); color: var(--text);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
@media (max-width: 640px) { body { font-size: 16px; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--lilac); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--accent); color: #fff; border-radius: var(--radius); }
.skip:focus { left: 8px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gx); }
.section { padding-block: 56px; }
.section--tight { padding-block: 40px; }
@media (min-width: 1024px) { .section { padding-block: 88px; } .section--tight { padding-block: 56px; } }
.section__head { display: grid; gap: 14px; margin-bottom: 32px; max-width: 900px; }
@media (min-width: 1024px) { .section__head { margin-bottom: 44px; } }
.section__head--row { max-width: none; }
@media (min-width: 1024px) { .section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; } .section__head--row > p { max-width: 520px; } }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 641px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.stack { display: grid; gap: 12px; }
.stack--lg { gap: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { text-align: center; }
.muted { color: var(--muted); }
.rule { border-top: 1px solid var(--line); }
.rule--strong { border-top: 1px solid var(--text); }

/* ---------- type ---------- */
.cond, .h1, .h2, .h3, .h4, .btn, .label { font-family: var(--display); text-transform: uppercase; }
.h1 { font-size: clamp(56px, 8.5vw, 132px); line-height: .86; font-weight: 800; letter-spacing: .01em; text-wrap: balance; }
.h1--page { font-size: clamp(48px, 7vw, 104px); }
.h2 { font-size: clamp(40px, 5vw, 72px); line-height: .9; font-weight: 800; letter-spacing: .01em; text-wrap: balance; }
.h3 { font-size: clamp(26px, 2.6vw, 40px); line-height: .95; font-weight: 700; letter-spacing: .01em; }
.h4 { font-size: 22px; line-height: 1; font-weight: 700; letter-spacing: .02em; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.label--accent { color: var(--lilac); }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; max-width: 60ch; }
.small { font-size: 14px; color: var(--muted); }
.num { font-family: var(--display); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.prose-sm { max-width: 62ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius); font-size: 18px; font-weight: 700; letter-spacing: .06em; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-line { border-color: currentColor; color: var(--text); background: transparent; }
.btn-line:hover { background: rgba(127, 127, 127, .12); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn .icon { width: 18px; height: 18px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(14, 14, 18, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); color: #F1EFE9; }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.nav__logo { display: block; }
.nav__logo img { height: 26px; width: auto; filter: brightness(0) invert(1); }
@media (min-width: 1024px) { .nav__logo img { height: 30px; } }
.nav__links { display: none; }
.nav__links a, .nav__links button { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 17px; font-weight: 600; color: #F1EFE9; display: inline-flex; align-items: center; gap: 6px; }
.nav__links a:hover, .nav__links button:hover { text-decoration: none; color: var(--lilac); }
.nav__links a[aria-current="page"] { color: var(--lilac); }
.nav__muted { color: #B9B6AD !important; }
.nav__item { position: relative; }
.nav__item .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.nav__item[data-open="true"] .icon, .nav__item:hover .icon { transform: rotate(180deg); }
.nav__dropdown { position: absolute; top: calc(100% + 10px); left: 0; width: 360px; max-width: calc(100vw - 2 * var(--gx)); background: #17171D; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: none; z-index: 60; }
.nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown, .nav__item[data-open="true"] .nav__dropdown { display: grid; }
.nav__dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__dropdown a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius); font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; }
.nav__dropdown a:hover { background: rgba(255, 255, 255, .06); color: #F1EFE9; }
.nav__dropdown small { font-weight: 400; color: #B9B6AD; font-size: 13px; }
.nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); color: #F1EFE9; }
@media (min-width: 1024px) { .nav__links { display: flex; align-items: center; gap: 26px; } .nav__toggle { display: none; } }
.nav__backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 55; display: none; }
.nav__backdrop[data-open="true"] { display: block; }
.nav__drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(85vw, 380px); background: #17171D; color: #F1EFE9; border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; z-index: 60; overflow-y: auto; display: flex; flex-direction: column; }
.nav__drawer[data-open="true"] { transform: none; visibility: visible; transition: transform .25s ease; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line); min-height: var(--nav-h); }
.drawer__head img { height: 24px; width: auto; filter: brightness(0) invert(1); }
.drawer__links { display: grid; padding: 12px 8px; }
.drawer__links a, .drawer__links summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; border-radius: var(--radius); font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 20px; font-weight: 600; color: #F1EFE9; cursor: pointer; list-style: none; }
.drawer__links summary::-webkit-details-marker { display: none; }
.drawer__links a:hover, .drawer__links summary:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.drawer__links details a { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 500; padding: 10px 12px 10px 24px; color: #D9D6CD; }
.drawer__links details[open] summary .icon { transform: rotate(180deg); }
.drawer__cta { padding: 12px 20px 24px; margin-top: auto; display: grid; gap: 10px; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding-block: 14px; font-size: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { color: var(--muted); display: inline-block; padding-block: 6px; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.hero .crumbs { padding-inline: 0; margin-bottom: 4px; }
.hero .crumbs li, .hero .crumbs a { color: rgba(241, 239, 233, .75); }
.hero .crumbs [aria-current] { color: #F1EFE9; }

/* ---------- flash + banner ---------- */
.flash { padding: 12px var(--gx); border-bottom: 1px solid var(--line); font-weight: 500; }
.flash--ok { color: var(--ok); }
.flash--err { color: var(--err); }
.banner { position: fixed; left: var(--gx); right: var(--gx); bottom: 16px; z-index: 70; max-width: 520px; margin-inline: auto; background: #17171D; color: #F1EFE9; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 12px; font-size: 15px; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
@media (min-width: 1024px) { .banner { left: auto; right: 24px; bottom: 24px; margin: 0; } }
.banner a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #F1EFE9; overflow: hidden; }
.hero--page { min-height: 62vh; }
.hero--short { min-height: 44vh; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.pos-top { object-position: 50% 18%; }
.pos-right { object-position: 72% 50%; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 18, .62) 0%, rgba(14, 14, 18, .38) 40%, rgba(14, 14, 18, .95) 100%); }
.hero__body { position: relative; width: 100%; padding-block: 40px 44px; display: grid; gap: 22px; }
@media (min-width: 1024px) { .hero__body { grid-template-columns: 1.5fr 1fr; align-items: end; column-gap: 48px; padding-block: 72px 64px; } .hero__body > .crumbs { grid-column: 1 / -1; } }
.hero__main { display: grid; gap: 16px; }
.hero__aside { display: grid; gap: 20px; }
.hero__aside .lede { color: #E4E1D8; }
.hero .label--accent { color: var(--lilac); }

/* ---------- ticker ---------- */
.ticker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .ticker { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ticker__cell { padding: 18px var(--gx); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.ticker__cell:nth-child(2n) { border-right: 0; }
.ticker__cell:nth-child(n+3) { border-bottom: 0; }
@media (min-width: 1024px) { .ticker__cell { padding: 28px var(--gx); border-bottom: 0; } .ticker__cell:nth-child(2n) { border-right: 1px solid var(--line); } .ticker__cell:last-child { border-right: 0; } }
.ticker__num { font-family: var(--display); font-size: clamp(40px, 4.5vw, 64px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- tiles ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 641px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; display: block; height: 260px; overflow: hidden; border-radius: var(--radius); color: #F1EFE9; background: #17171D; }
@media (min-width: 1024px) { .tile { height: 340px; } }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.03); }
.tile:hover, .tile:focus-visible { text-decoration: none; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 18, 0) 40%, rgba(14, 14, 18, .92) 100%); }
.tile__body { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: grid; gap: 6px; }
.tile__title { font-family: var(--display); text-transform: uppercase; font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: .01em; }
@media (min-width: 1024px) { .tile__title { font-size: 30px; } }
.tile__body p { font-size: 15px; color: #D9D6CD; }

/* ---------- cards / split / band ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; align-content: start; }
.card--flush { padding: 0; overflow: hidden; }
.card--flush .card__body { padding: 20px 22px 24px; display: grid; gap: 10px; }
.card__img { width: 100%; height: 200px; object-fit: cover; }
.card .h4 { margin-top: 2px; }
.card p { color: var(--muted); font-size: 16px; }
.card--link { color: var(--text); }
.card--link:hover { text-decoration: none; border-color: rgba(127, 127, 127, .5); }
.data-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; font-size: 14px; }
.data-card .label { font-size: 11px; }
.data-card__row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } .split--media-right > .split__media { order: 2; } }
.split__media img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.split__body { display: grid; gap: 16px; }
.band { position: relative; overflow: hidden; color: #F1EFE9; min-height: 380px; display: flex; align-items: center; }
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.band__scrim { position: absolute; inset: 0; background: rgba(14, 14, 18, .66); }
.band__body { position: relative; width: 100%; padding-block: 64px; display: grid; gap: 18px; }
.band__body .h2 { max-width: 16ch; }
@media (min-width: 1024px) { .band__body { padding-block: 96px; } }
.band__body p { color: #E4E1D8; max-width: 640px; }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: step; border-top: 1px solid var(--text); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 12px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
@media (min-width: 1024px) { .step { grid-template-columns: 120px 1fr 260px; gap: 32px; padding: 26px 0; align-items: center; } }
.step__n { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; color: var(--lilac); }
@media (min-width: 1024px) { .step__n { font-size: 44px; } }
.step__body { display: grid; gap: 6px; }
.step__title { font-size: 20px; font-weight: 600; line-height: 1.25; }
.step__body p { color: var(--muted); font-size: 16px; }
.step__media { grid-column: 2; max-width: 360px; }
.step__media img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 1024px) { .step__media { grid-column: auto; } .step__media img { width: 260px; } }

/* ---------- three-up columns (before / day / after) ---------- */
.cols { display: grid; gap: 28px; }
@media (min-width: 1024px) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } .cols > * { padding-right: 24px; } }
.cols > * { display: grid; gap: 12px; align-content: start; }
.cols p { color: var(--muted); }

/* ---------- faq ---------- */
.faq { display: grid; border-top: 1px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 641px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 600; font-size: 15px; }
.field__label small { font-weight: 400; color: var(--muted); }
.field__input { min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); font: inherit; width: 100%; }
.field__input::placeholder { color: var(--muted); opacity: .8; }
.field__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea.field__input { min-height: 140px; padding: 12px 14px; resize: vertical; }
.field--error .field__input { border-color: var(--err); }
.field__error { color: var(--err); font-size: 14px; }
.field__help { color: var(--muted); font-size: 14px; }
.form__summary { border: 1px solid var(--err); color: var(--err); padding: 12px 14px; border-radius: var(--radius); }
.form__success { border: 1px solid var(--ok); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 15px; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- newsletter ---------- */
.newsletter { display: grid; gap: 20px; }
@media (min-width: 1024px) { .newsletter--footer { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; } }
.newsletter__intro { display: grid; gap: 8px; }
.newsletter__row { display: grid; gap: 10px; }
@media (min-width: 641px) { .newsletter__row { grid-template-columns: 1fr auto; align-items: end; } }
.newsletter form { display: grid; gap: 10px; }
.newsletter--section { padding-block: 48px; border-top: 1px solid var(--line); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: 15px; }
.footer__grid { display: grid; gap: 28px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; } }
.footer__brand { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; }
@media (min-width: 1024px) { .footer__brand { grid-column: auto; } }
.footer__brand img { height: 24px; width: auto; filter: brightness(0) invert(1); }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__col a { color: var(--muted); display: inline-block; padding-block: 4px; }
.footer__col a:hover { color: var(--text); }
.footer__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- reading (legal, thanks) ---------- */
.legal { display: grid; gap: 32px; padding-block: 40px 72px; }
@media (min-width: 1024px) { .legal { grid-template-columns: 280px minmax(0, 1fr); gap: 64px; } }
.toc { align-self: start; }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--nav-h) + 24px); } }
.toc summary { cursor: pointer; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 18px; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc details[open] summary .icon { transform: rotate(180deg); }
.toc summary .icon { transition: transform .2s ease; }
@media (min-width: 1024px) { .toc summary { pointer-events: none; } .toc summary .icon { display: none; } .toc details { display: contents; } }
.toc ol { list-style: none; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.toc a { display: block; padding: 8px 0; color: var(--muted); font-size: 15px; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--text); text-decoration: none; }
.prose { max-width: 68ch; font-size: 17px; }
.prose h2 { font-family: var(--display); text-transform: uppercase; font-size: 30px; line-height: 1; font-weight: 700; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.prose .callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.2em; background: var(--panel); }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: rgba(127, 127, 127, .15); padding: 1px 5px; border-radius: 3px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.page-title { padding-block: 40px 8px; display: grid; gap: 12px; }
@media (min-width: 1024px) { .page-title { padding-block: 64px 12px; } }

/* ---------- related / cta ---------- */
.related { display: grid; gap: 16px; }
@media (min-width: 641px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .related { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.cta { text-align: center; display: grid; gap: 20px; justify-items: center; }
.cta .h2 { max-width: 20ch; }
.cta p { max-width: 56ch; color: var(--muted); }

/* ---------- motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; }
html.js .reveal.in, html.js.reveal-all .reveal { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__main > *, .hero__aside > * { animation: rise .6s ease both; }
.hero__main > :nth-child(2), .hero__aside > :nth-child(1) { animation-delay: 80ms; }
.hero__main > :nth-child(3), .hero__aside > :nth-child(2) { animation-delay: 160ms; }
.hero__media img { animation: fade .9s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- auth (login) ---------- */
.auth { display: grid; gap: 32px; padding-block: 40px 64px; }
.auth__media { order: 2; }
.auth__img { width: 100%; height: 100%; min-height: 320px; max-height: 640px; object-fit: cover; border-radius: var(--radius); }
.auth__body { display: grid; gap: 18px; max-width: 520px; }
@media (min-width: 1024px) { .auth { grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; padding-block: 72px 96px; } .auth__media { order: 0; display: grid; } .auth__body { align-self: center; } }
/* no hero on the auth page, so it enters the way a hero does: text rises, photo fades */
.auth__body > * { animation: rise .6s ease both; }
.auth__body > :nth-child(2) { animation-delay: 80ms; }
.auth__body > :nth-child(3) { animation-delay: 160ms; }
.auth__body > :nth-child(n+4) { animation-delay: 240ms; }
.auth__media img { animation: fade .9s ease both; }
