/*
 * site.css — the whole of the zwole.app site's styling.
 *
 * ONE stylesheet, hand-written, no framework and no build step
 * (decision:D-IOS-SITE-1: "static, hand-written HTML under apps/site/ — no
 * framework, no Expo web export, no build step beyond copying files").
 *
 * WHY A SHARED FILE RATHER THAN A <style> BLOCK PER PAGE. The console's
 * 404.html inlines its styles because it is ONE page that must render when the
 * app cannot. This is four pages that must agree with each other, and four
 * copies of a palette is the shape that drifts. The cost is one extra request;
 * every page is served `no-cache` and revalidates, so a palette fix reaches all
 * four at once.
 *
 * THE PALETTE IS THE APP'S, not a second one invented for the web
 * (spec:10-screen-spec§THEME SPECIFICATION). Both themes are declared, keyed off
 * `prefers-color-scheme`, because a support page is read on whatever the reader
 * has. Hot orange #FF6B2B is the single accent, and the spec's own warning is
 * respected: it "meets WCAG AA for UI components and large text on white
 * (~3.3:1). Do not use for small body text on --bg-primary in light mode" — so
 * in light mode links carry an underline and body text is never the accent.
 */

:root {
  color-scheme: light dark;

  /* Light theme — spec:10-screen-spec§Light theme */
  --bg-primary: #ffffff;
  --bg-card: #f5f5f7;
  --text-primary: #1c1c1e;
  --text-secondary: #636366;
  --accent: #cc4a10; /* --accent-deep: the AA-safe accent for small text on white */
  --accent-plain: #ff6b2b; /* the brand accent, for large text and rules only */
  --border: #e5e5e7;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark theme — spec:10-screen-spec§Dark theme */
    --bg-primary: #1c1c1e;
    --bg-card: #2c2c2e;
    --text-primary: #ffffff;
    --text-secondary: #ababab;
    --accent: #ff6b2b;
    --accent-plain: #ff6b2b;
    --border: #3a3a3c;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 32px 20px 64px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

/* The wordmark is lowercase everywhere — Axel, 2026-09-07: the name is `zwole`. */
.wordmark {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.wordmark::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 6px;
  background: var(--accent-plain);
  border-radius: 2px;
}

h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 8px;
}

h2 {
  font-size: 18px;
  margin: 36px 0 8px;
}

p,
li {
  color: var(--text-primary);
}

.lede {
  color: var(--text-secondary);
  margin-top: 0;
}

ul {
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
}

.card p:first-child {
  margin-top: 0;
}

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

/* A child of body, not main (the contentinfo landmark), so it takes main's column itself. */
footer {
  max-width: 640px;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}

footer a {
  color: var(--text-secondary);
}

/* The honest 404 centres itself; every other page reads top-down. */
body.centred {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 20px;
}

body.centred main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 480px;
}
