/* Shared page pieces on top of the design system. Colours come from tokens.css. */
@font-face { font-family: "Geist"; src: url(fonts/geist-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Geist"; src: url(fonts/geist-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--card); color: var(--ink); font-family: var(--font-sans); font-variant-numeric: tabular-nums; line-height: 1.35; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
a, button { touch-action: manipulation; }
button, .ds-btn { user-select: none; -webkit-user-select: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1360px; margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; padding: 12px 16px; background: var(--primary); color: var(--on-primary); border-radius: var(--radius-field); }
.suggest { display: flex; justify-content: center; background: var(--page); }
.lead { max-width: 520px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--ink-muted); }
/* The home page's story and the 404 page share this rhythm. */
.sec { padding-block: 40px 56px; }
.title { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.04em; }

/* actions: every press answers; hover only where a pointer can hover */
.ds-btn { transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out); }
.ds-btn:active { transform: scale(.97); }
a.ds-btn.pri { color: var(--on-primary); }
.cta__main { min-height: 56px; padding-inline: 24px; }
.ds-lk { transition: opacity var(--duration-fast) var(--ease-out); }
.ds-lk:active { opacity: .6; }
@media (hover: hover) and (pointer: fine) {
  .ds-btn:hover { background: var(--inset); }
  .ds-btn.pri:hover { background: var(--primary-hover); }
  .ds-lk:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* The menu stays put and the page scrolls under it. */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--card); border-bottom: 1px solid var(--hairline); }
.nav { display: flex; align-items: center; gap: 12px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; min-height: var(--size-touch); margin-right: auto; color: var(--ink); font-size: 20px; letter-spacing: -.03em; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { display: block; width: auto; height: 28px; }
.nav > .ds-lk { padding-inline: 10px; }
.nav .lang { min-width: var(--size-touch); justify-content: center; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* A block below the fold arrives once; the class is added by reveal.js, so nothing hides without it. */
.will-reveal { opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.will-reveal:nth-child(even) { transition-delay: 70ms; }
.will-reveal.is-in { opacity: 1; transform: none; }

.foot { background: var(--ink); color: var(--on-primary); }
.foot :focus-visible { outline-color: var(--on-primary); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 32px; }
.foot .brand { color: var(--on-primary); }
.foot p { color: var(--on-ink-muted); user-select: all; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot a.ds-lk { color: var(--on-primary); }

@media (max-width: 820px) {
  .wide-only { display: none; }
}
@media (max-width: 560px) {
  .nav { gap: 4px; }
}
@media (max-width: 360px) {
  .wrap { padding-inline: 16px; }
  .nav .ds-btn { padding-inline: 10px; font-size: 14px; }
}
/* A short landscape screen has no height to spare for a fixed menu. */
@media (max-height: 500px) {
  html { scroll-padding-top: 0; }
  .topbar { position: static; }
}
/* Gentler, not zero: colour and opacity still answer, nothing travels. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ds-btn { transition: background-color var(--duration-fast) var(--ease-out); }
  .ds-btn:active { transform: none; opacity: .75; }
  .will-reveal { opacity: 1; transform: none; transition: none; }
}
