/* weracer website, the editorial layer of docs/design/DESIGN.md (section 5.4). Colours are Theme.swift's. Change tokens here only. */

@font-face { font-family: "Sora"; src: url("fonts/Sora-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/Sora-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/Sora-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --midnight: #02070A;
  --canvas: var(--midnight);
  --surface: #0A1217;
  --surface-raised: #111C23;
  --ink: #E6DCB4;
  --ink-secondary: #B5AD8D;
  --ink-tertiary: #8F8870;
  --hairline: rgba(230, 220, 180, 0.14);
  --control-edge: #6B7478;
  --accent: #0297DE;
  --accent-ink: #0297DE;
  --on-accent: #02070A;
  --success: #3FCF86;
  --warning: #E8C84A;
  --focus: #E6DCB4;
  --glass-tint: rgba(2, 7, 10, 0.9);
  --gutter: clamp(16px, 3.4vw, 48px);
  --grid-gap: clamp(16px, 1.7vw, 24px);
  --section: clamp(80px, 11vw, 160px);
  --display: clamp(2.75rem, 7.1vw, 6rem);
  --headline: clamp(2.2rem, 4.6vw, 4.2rem);
  --title: clamp(1.5rem, 2.5vw, 2.1rem);
}

/* The one light passage of the page, and any other light block. */
.paper {
  --canvas: #F6F1DD;
  --surface: #FCFAF1;
  --surface-raised: #EFE8CE;
  --ink: #02070A;
  --ink-secondary: #4F5246;
  --ink-tertiary: #5B5F54;
  --hairline: rgba(2, 7, 10, 0.14);
  --control-edge: #80826F;
  --accent-ink: #0069A0;
  --success: #0A6B3A;
  --focus: #02070A;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--control-edge) var(--midnight); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: "Sora", sans-serif; font-size: clamp(1.125rem, 1.25vw, 1.25rem); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
::selection { background: var(--accent); color: var(--on-accent); }
img, svg { display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
h1 { font-size: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: var(--headline); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: var(--title); font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap); }
.lead { max-width: 34em; color: var(--ink-secondary); }
.numbers, .fig { font-weight: 600; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.note { font-size: 0.8125rem; line-height: 1.4; color: var(--ink-tertiary); }

.skip-link { position: absolute; left: var(--gutter); top: -80px; z-index: 20; padding: 12px 16px; background: var(--accent); color: var(--on-accent); font-weight: 600; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Buttons and links */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 8px;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: #0288C8; }
.button-primary:active { background: #0279B2; }
.button[hidden] { display: none; }
.button-outline { border-color: var(--control-edge); color: var(--ink); background: transparent; }
.button-outline:hover { background: var(--surface-raised); }
.button-dark { background: var(--midnight); color: #E6DCB4; }
.button-dark:hover { background: #111C23; }
.button-small { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; border-radius: 999px; }
.text-link { color: var(--accent-ink); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* The early-access action: the track goes straight into the email. */

.signup { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.signup label { flex: 1 1 100%; font-size: 0.9375rem; font-weight: 600; }
.signup input {
  flex: 1 1 200px; min-width: 0; min-height: 52px; padding: 0 16px;
  background: transparent; color: var(--ink); caret-color: var(--accent);
  border: 1px solid var(--control-edge); border-radius: 8px; font: inherit; font-size: 1rem;
}
.signup input::placeholder { color: var(--ink-tertiary); opacity: 1; }
.signup input:hover { border-color: var(--ink-secondary); }

/* Header, the one glass exception (DESIGN.md section 1) */

.site-header { position: sticky; top: 0; z-index: 10; background: var(--glass-tint); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid transparent; transition: border-color 150ms ease-out; }
.site-header.is-scrolled { border-bottom-color: var(--hairline); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 1.3rem; letter-spacing: -0.03em; }
.brand img { width: 60px; height: 18px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 0.9375rem; font-weight: 600; text-decoration: none; color: var(--ink-secondary); }
.site-nav a:not(.button):hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .button { margin-left: 8px; }
@media (max-width: 720px) { .site-nav a:not(.button) { display: none; } }
@media (max-width: 400px) { .site-nav .button { padding-inline: 12px; font-size: 0.875rem; } }
@media (max-width: 340px) { .site-nav .button { display: none; } }

/* Opening: the headline and a board that works */

.opening { position: relative; padding-block: clamp(32px, 4.4vw, 64px) clamp(48px, 6vw, 96px); overflow: clip; }
.opening .grid { position: relative; row-gap: clamp(32px, 3.4vw, 48px); }
.opening h1 { grid-column: 1 / span 10; }
.opening-side { grid-column: 1 / span 4; display: grid; align-content: start; gap: 32px; }
.opening-board { grid-column: 5 / -1; margin: 0; background: var(--canvas); }
.facts { font-size: 0.875rem; line-height: 1.5; color: var(--ink-tertiary); }

.circuit { position: absolute; top: -1vw; right: 2vw; width: 43vw; height: auto; pointer-events: none; }
.circuit path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.circuit .bed { stroke: var(--hairline); stroke-width: 14; }
.circuit .lap { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .circuit .lap { animation: lap-draw linear both; animation-timeline: scroll(root); animation-range: 0 110vh; }
  }
}
@keyframes lap-draw { from { stroke-dashoffset: 0.74; } to { stroke-dashoffset: 0; } }

/* Leaderboard, Swiss rows on the grid (DESIGN.md 5.10) */

.board-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-bottom: 16px; }
.board-title { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.board-title strong { font-weight: 600; }
.board-title span { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--ink-secondary); }
.layouts { display: flex; gap: 4px; }
.layouts[hidden] { display: none; }
.layouts button {
  min-height: 44px; min-width: 44px; padding: 0 16px; border: 1px solid var(--control-edge); border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
  transition: background-color 150ms ease-out;
}
.layouts button:hover { background: var(--surface-raised); }
.layouts button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--canvas); }

.board { position: relative; border-top: 1px solid var(--ink); }
.board li {
  position: relative; display: grid; align-items: center; gap: 0 clamp(8px, 1.7vw, 24px);
  grid-template-columns: 2.2em minmax(0, 1fr) auto 5.4em minmax(5.2em, auto);
  min-height: clamp(52px, 4.6vw, 64px); padding-block: 8px; padding-left: 16px;
  border-bottom: 1px solid var(--hairline); background: var(--canvas);
}
.board .pos { color: var(--ink-secondary); }
.board .name { min-width: 0; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .state { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--ink-secondary); white-space: nowrap; }
.board .state svg { width: 14px; height: 14px; flex: none; }
.board .state.is-verified svg { color: var(--accent-ink); }
.board .state.is-unverified { color: var(--warning); }
.board .time { font-size: 1.25rem; text-align: right; letter-spacing: -0.01em; }
.board .gap { font-size: 0.875rem; font-weight: 400; color: var(--ink-tertiary); text-align: right; }
.board .is-you { z-index: 1; }
.board .is-you::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent-ink); }
.board .is-you .name { font-weight: 700; }
.board .is-you .pos { color: var(--ink); }

.board-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; }
.board-status { min-height: 1.5em; font-size: 0.9375rem; font-weight: 600; color: var(--success); }

@media (max-width: 1040px) {
  .opening h1 { grid-column: 1 / -1; }
  .opening-side { grid-column: 1 / span 12; max-width: 620px; }
  .opening-board { grid-column: 1 / -1; }
  .circuit { display: none; }
}
@media (max-width: 620px) {
  .board li { grid-template-columns: 1.8em minmax(0, 1fr) auto; grid-template-areas: "pos name time" "pos state gap"; padding-block: 12px; row-gap: 2px; }
  .board .pos { grid-area: pos; align-self: start; }
  .board .name { grid-area: name; }
  .board .state { grid-area: state; }
  .board .time { grid-area: time; font-size: 1.125rem; }
  .board .gap { grid-area: gap; }
}

/* The ticket passage, on the light canvas */

.section { padding-block: var(--section); }
.passage { background: var(--canvas); color: var(--ink); }
.passage h2 { grid-column: 1 / span 9; }
.passage .lead { grid-column: 1 / span 5; margin-top: 24px; }
.passage-body { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin-top: clamp(48px, 7vw, 96px); align-items: start; }

.ticket-stage { grid-column: 1 / span 5; }
.lap-ticket {
  max-width: 460px; padding: 32px 32px 40px; transform: rotate(-2.5deg); transform-origin: 30% 40%;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 16px 32px -16px rgba(2, 7, 10, 0.32);
  font-size: 0.9375rem; line-height: 1.4;
}
.lap-ticket header { padding-bottom: 16px; border-bottom: 1px dashed var(--control-edge); font-weight: 600; }
.lap-ticket header span { display: block; font-weight: 400; color: var(--ink-secondary); font-size: 0.875rem; }
.lap-ticket ol { padding-block: 16px; color: var(--ink-secondary); }
.lap-ticket ol li { display: flex; justify-content: space-between; padding-block: 2px; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.lap-ticket .best { padding-top: 16px; border-top: 1px dashed var(--control-edge); }
.lap-ticket .best strong { display: block; font-size: clamp(3rem, 5.6vw, 4.8rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.ticket-caption { max-width: 460px; margin-top: 32px; }

.steps { grid-column: 7 / -1; counter-reset: step; }
.steps li { display: grid; grid-template-columns: clamp(56px, 7vw, 112px) 1fr; padding-block: 32px; border-top: 1px solid var(--hairline); counter-increment: step; }
.steps li:first-child { border-top-color: var(--ink); }
.steps li::before { content: counter(step); font-size: var(--title); font-weight: 600; line-height: 1.18; color: var(--accent-ink); font-feature-settings: "tnum"; }
.steps p { margin-top: 8px; color: var(--ink-secondary); max-width: 34em; }

@media (max-width: 860px) {
  .passage h2, .passage .lead, .ticket-stage, .steps { grid-column: 1 / -1; }
  .steps { margin-top: 64px; }
  .lap-ticket { max-width: 400px; }
}

/* Posts and social: Swiss flat, no shadows (DESIGN.md 5.2) */

.social h2 { grid-column: 1 / span 9; }
.social > .grid > .lead { grid-column: 1 / span 6; margin-top: 24px; }
.social-body { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin-top: clamp(48px, 7vw, 96px); align-items: start; }
.post { grid-column: 1 / span 7; }
.post-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; }
.post-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--surface-raised); font-size: 0.875rem; font-weight: 600; }
.post-who { flex: 1; min-width: 0; font-size: 1rem; line-height: 1.3; }
.post-who strong { display: block; font-weight: 600; }
.post-who span { font-size: 0.875rem; color: var(--ink-tertiary); }
.button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.button:disabled { cursor: default; }

.post-visual { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-raised); }
.post-track { position: absolute; right: 4%; top: 4%; width: 78%; height: auto; }
.post-track path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linejoin: round; }
.post-lap { position: absolute; left: clamp(16px, 3vw, 40px); right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); }
.post-pb { font-size: 1rem; font-weight: 600; color: var(--success); }
.post-time { font-size: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px; font-size: 0.9375rem; color: var(--ink-secondary); }
.post-verified { display: inline-flex; align-items: center; gap: 6px; }
.post-verified svg { width: 14px; height: 14px; color: var(--accent-ink); }

.post-text { margin-top: 16px; max-width: 34em; }
.post-mention { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.post-actions { display: flex; align-items: center; gap: 24px; margin-top: 8px; border-bottom: 1px solid var(--hairline); }
.post-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none; color: var(--ink-secondary); font: inherit; font-size: 0.9375rem; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.post-action svg { width: 20px; height: 20px; flex: none; }
button.post-action:not(:disabled) { cursor: pointer; }
button.post-action:not(:disabled):hover { color: var(--ink); }
.post-action[aria-pressed="true"] { color: var(--accent-ink); font-weight: 600; }
.post-action[aria-pressed="true"] svg { fill: currentColor; }
.post-share { margin-left: auto; justify-content: flex-end; }

.talk { grid-column: 9 / -1; }
.talk h3 { padding-bottom: 16px; }
.comments, .coming { border-top: 1px solid var(--ink); }
.comments li, .coming li { padding-block: 16px; border-bottom: 1px solid var(--hairline); font-size: 1rem; }
.comments strong, .coming strong { font-weight: 600; }
.comments p, .coming p { margin-top: 4px; color: var(--ink-secondary); }
.coming-title { margin-top: 64px; }
.talk .note { margin-top: 16px; }

@media (max-width: 860px) {
  .social h2, .social > .grid > .lead, .post, .talk { grid-column: 1 / -1; }
  .talk { margin-top: 64px; }
  .post { max-width: 640px; }
}

@media (max-width: 720px) { .post-visual { aspect-ratio: 4 / 5; } }

/* Real circuits */

.circuits { border-top: 1px solid var(--hairline); }
.circuits h2 { grid-column: 1 / span 9; }
.circuits .lead { grid-column: 1 / span 6; margin-top: 24px; }
.circuit-list { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 48px; margin-top: clamp(48px, 7vw, 96px); }
.circuit-list li { grid-column: span 3; border-top: 1px solid var(--ink); padding-top: 16px; }
.circuit-list li:first-child { grid-column: span 6; grid-row: span 2; }
.circuit-list svg { width: 100%; height: auto; }
.circuit-list path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.circuit-list h3 { margin-top: 16px; font-size: 1.125rem; font-weight: 600; }
.circuit-list li:first-child h3 { font-size: var(--title); }
.circuit-list p { margin-top: 4px; font-size: 0.9375rem; color: var(--ink-secondary); }
.circuits > .grid > .note { grid-column: 1 / -1; margin-top: 32px; }
@media (max-width: 860px) {
  .circuits h2, .circuits .lead { grid-column: 1 / -1; }
  .circuit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); row-gap: 32px; }
  .circuit-list li, .circuit-list li:first-child { grid-column: span 1; grid-row: auto; }
  .circuit-list li:first-child { grid-column: 1 / -1; }
}

.circuit-list h3 a, .circuit-list a { color: inherit; text-decoration: none; }
.circuit-list a:hover h2, .circuit-list h3 a:hover { color: var(--accent-ink); }
.circuit-list h2 { margin-top: 16px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.circuit-index { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.circuit-index h1 { grid-column: 1 / span 10; }
.circuit-index .lead { grid-column: 1 / span 6; margin-top: 24px; }
.circuit-index .note { grid-column: 1 / -1; margin-top: 32px; }
.circuit-page { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.circuit-page .grid { row-gap: 48px; }
.circuit-page h1 { grid-column: 1 / -1; }
.circuit-side { grid-column: 1 / span 4; display: grid; align-content: start; gap: 24px; }
.circuit-facts { font-size: var(--title); line-height: 1.2; letter-spacing: -0.02em; }
.circuit-back { justify-self: start; }
.circuit-side .text-link { font-weight: 600; }
.circuit-outline { grid-column: 5 / -1; width: 100%; height: auto; }
.circuit-outline path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
@media (max-width: 860px) {
  .circuit-index h1, .circuit-index .lead { grid-column: 1 / -1; }
  .circuit-side, .circuit-outline { grid-column: 1 / -1; }
  .circuit-outline { grid-row: 2; }
}

/* What it does: long rows, not cards */

.does h2 { grid-column: 3 / -1; }
.feature { padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--hairline); align-items: start; row-gap: 16px; }
.does-list { margin-top: clamp(48px, 7vw, 96px); }
.feature h3 { grid-column: 3 / span 4; }
.feature > p { grid-column: 7 / span 5; color: var(--ink-secondary); }
.feature .tag { grid-column: 1 / span 2; font-size: 0.875rem; font-weight: 600; color: var(--ink-tertiary); padding-top: 0.4em; }
.progress { grid-column: 3 / -1; margin-top: 32px; }
.progress svg { width: 100%; height: auto; overflow: visible; }
.progress .rule { stroke: var(--hairline); stroke-width: 1; }
.progress .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.progress .dot { fill: var(--accent); }
.progress text { fill: var(--ink-secondary); font-family: "Sora", sans-serif; font-size: 16px; font-feature-settings: "tnum"; }
.progress text.big { fill: var(--ink); font-size: 44px; font-weight: 700; letter-spacing: -0.03em; }

@media (max-width: 860px) {
  .does h2, .feature h3, .feature > p, .feature .tag, .progress { grid-column: 1 / -1; }
  .progress text { font-size: 26px; }
  .progress text.big { font-size: 58px; }
}

/* Promises */

.promises-sec { border-top: 1px solid var(--hairline); }
.promises-head { grid-column: 1 / span 5; position: sticky; top: 112px; align-self: start; }
.promises-head .lead { margin-top: 24px; }
.promises-head .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; }
.promises { grid-column: 7 / -1; }
.promises li { padding-block: 28px; border-top: 1px solid var(--hairline); }
.promises li:first-child { border-top-color: var(--ink); }
.promises p { margin-top: 8px; color: var(--ink-secondary); max-width: 34em; }
@media (max-width: 860px) {
  .promises-head { grid-column: 1 / -1; position: static; margin-bottom: 48px; }
  .promises { grid-column: 1 / -1; }
}

/* Close: the one field of colour */

.close { --ink: #02070A; --ink-secondary: #02070A; --control-edge: #02070A; --focus: #02070A; background: #0297DE; color: #02070A; }
.close h2 { grid-column: 1 / span 10; font-size: var(--display); }
.close .lead { grid-column: 1 / span 5; margin-top: 32px; }
.close .signup { grid-column: 7 / -1; margin-top: 32px; align-self: end; }
.close .signup input { caret-color: #02070A; }
.close .signup input::placeholder { color: #02070A; }
.close ::selection { background: #02070A; color: #E6DCB4; }
@media (max-width: 860px) {
  .close h2, .close .lead, .close .signup { grid-column: 1 / -1; }
}

/* Inner pages (privacy, support, invite, 404) */

.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); }
.page-head h1 { max-width: 14em; }
.page-head .lead { margin-top: 24px; }
.prose { max-width: 44rem; padding-bottom: var(--section); }
.prose h2 { font-size: var(--title); font-weight: 600; letter-spacing: -0.02em; line-height: 1.18; margin: 64px 0 16px; }
.prose p + p { margin-top: 16px; }
.prose p, .prose li { color: var(--ink-secondary); }
.prose ul { margin: 16px 0 0; padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .updated { margin-top: 48px; font-size: 0.875rem; color: var(--ink-tertiary); }

.notice { display: flex; gap: 12px; padding: 16px 20px; margin-bottom: 48px; border: 1px solid var(--control-edge); border-radius: 8px; font-size: 1rem; }
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--ink-secondary); }
.prose .notice p { color: var(--ink); }

.prose .promise-list { margin: 0; padding: 0; list-style: none; }
.prose .promise-list li { margin: 0; padding-block: 20px; border-top: 1px solid var(--hairline); }
.prose .promise-list h3 { font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.prose .promise-list p { margin-top: 4px; font-size: 1rem; }

.table-wrap { overflow-x: auto; margin-top: 16px; border-top: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--hairline); color: var(--ink-secondary); }
th { font-size: 0.875rem; font-weight: 600; color: var(--ink-tertiary); }
td:first-child { font-weight: 600; color: var(--ink); }

.contact-card { --focus: #02070A; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 32px; margin-bottom: 64px; background: #0297DE; border-radius: 8px; color: #02070A; }
.prose .contact-card h2 { margin: 0 0 4px; color: #02070A; }
.prose .contact-card p { color: #02070A; max-width: 26em; }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-block: 16px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--ink-secondary); border-bottom: 2px solid var(--ink-secondary); transform: translateY(-3px) rotate(45deg); transition: transform 150ms ease-out; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details > div { padding-bottom: 24px; }
.faq details > div p + p { margin-top: 12px; }

.invite { padding-block: clamp(64px, 10vw, 144px); }
.invite h1 { max-width: 12em; }
.invite .lead { margin-top: 24px; }
.ticket { display: inline-grid; gap: 4px; margin-top: 40px; padding: 24px 32px; background: #FCFAF1; color: #02070A; transform: rotate(-1.5deg); font-size: 0.9375rem; }
.ticket .numbers { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: 0.04em; word-break: break-all; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.invite small { display: block; max-width: 34em; margin-top: 32px; color: var(--ink-tertiary); font-size: 0.875rem; }

/* Footer */

.site-footer { padding-block: 48px; font-size: 0.9375rem; border-top: 1px solid var(--hairline); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.site-footer p { margin-top: 8px; color: var(--ink-tertiary); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Accessibility fallbacks (DESIGN.md section 6) */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--surface); border-bottom-color: var(--control-edge); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root, .paper { --ink-secondary: var(--ink); --ink-tertiary: var(--ink); --control-edge: var(--ink); --hairline: var(--ink); }
  .button-outline, .layouts button, .signup input { border-width: 2px; }
}
@media (max-width: 600px) {
  .table-wrap thead { display: none; }
  .table-wrap tr { display: block; padding-block: 16px; border-bottom: 1px solid var(--hairline); }
  .table-wrap td { display: block; padding: 0; border: 0; }
  .table-wrap td + td { margin-top: 8px; }
  .table-wrap td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8125rem; font-weight: 600; color: var(--ink-tertiary); }
}
