/* Same tokens as the app (src/constants/theme.ts): dark only, flat colours, hairlines.
   No gradients, no shadows, no scripts. Fonts are served from this origin, never from a CDN. */
@font-face { font-family: Fraunces; font-weight: 600; font-display: swap; src: url(fonts/Fraunces-SemiBold.woff2) format('woff2'); }
@font-face { font-family: Atkinson; font-weight: 400; font-display: swap; src: url(fonts/AtkinsonHyperlegibleNext-Regular.woff2) format('woff2'); }
@font-face { font-family: Atkinson; font-weight: 700; font-display: swap; src: url(fonts/AtkinsonHyperlegibleNext-Bold.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #121614;
  --border: #323a35;
  --text: #dcd8cd;
  --muted: #a0a89d;
  --primary: #8fb89d;
  --primary-soft: #24332a;
  --accent: #d2a079;
  --display: Fraunces, 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --gap: clamp(3.5rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.125rem/1.6 Atkinson, system-ui, sans-serif; }
img, svg { display: block; max-width: 100%; }

h1, h2 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.25rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.15; }
h3 { margin: 2rem 0 0; font-size: 1.125rem; }
p { max-width: 34em; margin: 1rem 0 0; }
a { color: var(--primary); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--primary-soft); }

.wrap { max-width: 68rem; margin-inline: auto; padding-inline: 1.5rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; padding: 0.5rem 1rem; background: var(--bg); }

/* Header and footer */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1.5rem; }
.wordmark { display: flex; align-items: center; gap: 0.625rem; color: var(--text); font: 600 1.5rem/1 var(--display); text-decoration: none; }
.wordmark img { border-radius: 22%; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
nav a { color: var(--muted); text-decoration: none; }
footer { border-top: 1px solid var(--border); }
.bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 2rem 3rem; color: var(--muted); font-size: 1rem; }
.bottom p { margin: 0; }
.copy { flex-basis: 100%; }

/* Hero */
.hero { display: grid; gap: 3rem; align-items: center; padding-block: clamp(2rem, 6vw, 5rem) var(--gap); }
.lede { margin-top: 1.5rem; font-size: 1.3125rem; line-height: 1.5; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.soon { margin: 0; color: var(--primary); font-weight: 700; }
.button { padding: 0.9rem 1.5rem; border: 1px solid var(--primary); border-radius: 0.875rem; background: var(--primary-soft); color: var(--primary); font-weight: 700; text-decoration: none; }
.button:hover { background: #2c3f33; color: var(--primary); }
.phone { width: min(19rem, 80vw); height: auto; margin-inline: auto; border: 1px solid var(--border); border-radius: 2.25rem; }

/* Chapters: text left, the phone rises out of the next hairline */
.chapter { display: grid; gap: 2.5rem; align-items: end; padding-top: var(--gap); border-top: 1px solid var(--border); }
.chapter > div { align-self: center; }
.chapter .phone { aspect-ratio: 393 / 560; object-fit: cover; object-position: top; border-bottom: 0; border-radius: 2.25rem 2.25rem 0 0; }
.chapter .short { aspect-ratio: 393 / 480; } /* calendar: cut below the grid, not through the legend */
.when { margin: 0 0 0.75rem; color: var(--primary); font-weight: 700; }

/* Privacy, questions, closing */
.block { padding-block: var(--gap); border-top: 1px solid var(--border); }
.privacy { display: grid; gap: 2.5rem; }
.art { width: 9rem; margin-top: 2.5rem; }
dl { margin: 0; }
dt { margin-top: 1.5rem; font-weight: 700; }
dt:first-child { margin-top: 0; }
dd { max-width: 30em; margin: 0.25rem 0 0; color: var(--muted); }

.faq { max-width: 44rem; margin-top: 2rem; border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); }
summary { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--primary); font-weight: 400; }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 1.25rem; color: var(--muted); }
.note { margin-top: 3rem; padding-left: 1.25rem; border-left: 2px solid var(--accent); }

.closing { padding-top: var(--gap); border-top: 1px solid var(--border); }
.closing img { margin-bottom: 1.5rem; border-radius: 22%; }
.sky { width: 100%; aspect-ratio: 6 / 1; min-height: 11rem; margin-top: 2rem; }

/* Imprint and privacy policy */
.prose { padding-block: clamp(2rem, 6vw, 4rem) var(--gap); }
.prose h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.prose h2 { margin-top: 3rem; font-size: 1.625rem; hyphens: auto; overflow-wrap: break-word; }
.prose p, .prose ul, .prose address { max-width: 40em; }
.prose address { margin-top: 1rem; font-style: normal; }
.prose ul { margin: 1rem 0 0; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }

@media (min-width: 54rem) {
  .hero, .chapter { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(3rem, 8vw, 7rem); }
  .chapter > div { padding-bottom: var(--gap); }
  .privacy { grid-template-columns: 1fr 1fr; column-gap: 5rem; }
}
