/*
 * Shared by all four pages.
 *
 * Colours are the app's own tokens (apps/mobile/src/theme/tokens.ts), so the
 * site and the app cannot drift apart: accent is water and only water
 * (DESIGN-BRIEF §3.1), and both schemes are defined rather than one being
 * derived from the other.
 *
 * No web fonts. Schibsted Grotesk is what the app uses, but loading it from a
 * font CDN would send every visitor's IP to a third party from the page that
 * tells them we do not do that. A system stack is the honest choice here.
 */

:root {
  color-scheme: light dark;

  --surface: #ffffff;
  --surface-sunken: #f1f3f6;
  --ink: #0b0f14;
  --ink-secondary: #3c4650;
  --muted: #8a9199;
  --border: #e4e8ee;
  --border-soft: #eef1f5;
  --accent: #1b4fc4;
  --accent-soft: #eef2fa;
  --on-accent: #ffffff;
  --warning: #c2472f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0f151c;
    --surface-sunken: #1a222c;
    --ink: #e9eff5;
    --ink-secondary: #b4bfca;
    --muted: #8794a1;
    --border: #232d39;
    --border-soft: #1e2731;
    --accent: #78a6ff;
    --accent-soft: #182438;
    --on-accent: #0a1120;
    --warning: #f0785c;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 22px 80px;
  background: var(--surface);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 660px;
  margin: 0 auto;
}

/* ------------------------------------------------------------------ header */

header {
  max-width: 660px;
  margin: 0 auto;
  padding: 28px 0 44px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.95px;
  color: var(--ink);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current='page'] {
  color: var(--ink);
}

/* -------------------------------------------------------------- type roles */

h1 {
  font-size: 38px;
  line-height: 1.14;
  letter-spacing: -1.4px;
  font-weight: 900;
  margin: 0 0 18px;
}

h2 {
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 46px 0 14px;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 30px 0 8px;
}

p {
  margin: 0 0 16px;
  color: var(--ink-secondary);
}

.lede {
  font-size: 20px;
  color: var(--ink);
}

strong {
  color: var(--ink);
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-secondary);
}

li {
  margin-bottom: 6px;
}

/* ---------------------------------------------------------------- surfaces */

.card {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 16px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

/* The one place the warning colour appears, for the one thing it means here:
   this app is not for navigation. Reserved elsewhere (DESIGN-BRIEF §3.1). */
.notice {
  border-left: 3px solid var(--warning);
  border-radius: 0 14px 14px 0;
}

.notice strong {
  color: var(--warning);
}

.email {
  font-size: 20px;
  font-weight: 700;
}

footer {
  max-width: 660px;
  margin: 72px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 15px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
}

.updated {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 480px) {
  h1 {
    font-size: 31px;
    letter-spacing: -1.1px;
  }
  body {
    font-size: 16px;
  }
}
