/* Also served by Caddy to the standalone legal pages: the Dockerfile ships this
   copy to the proxy, so both always match the application. */
:root {
  color-scheme: light;
  --canvas: #f7f6f2;
  --surface: #ffffff;
  --text: #282723;
  --muted: #625f59;
  --line: #d8d5ce;
  --field: #ffffff;
  --edge: #908b81;
  --accent: #785817;
  --wash: #efede6;
  --hover: #eae7de;
  --accent-wash: #f4ecd9;
  --accent-edge: #a78a4d;
  --danger: #aa3028;
  --danger-wash: #fae9e6;
  --gauge: #16805d;
  --gauge-track: #d8d5ce;
  --focus-field: #fffdf7;
  --serif-font: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --app-font: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --title-font: var(--serif-font);
  --title-weight: 400;
  --color-slate-50: #282723;
  --color-slate-100: #282723;
  --color-slate-200: #282723;
  --color-slate-300: #494640;
  --color-slate-400: #625f59;
  --color-slate-500: #625f59;
  --color-slate-600: #625f59;
  --color-slate-700: #908b81;
  --color-slate-800: #e7e3da;
  --color-slate-900: #ffffff;
  --color-slate-950: #f7f6f2;
  --color-amber-100: #785817;
  --color-amber-200: #785817;
  --color-amber-300: #785817;
  --color-amber-400: #9a711a;
  --color-amber-500: #9a711a;
  --color-amber-600: #9a711a;
  --color-amber-700: #a78a4d;
  --color-amber-900: #d8c69e;
  --color-amber-950: #f4ecd9;
  --color-emerald-300: #16805d;
  --color-emerald-400: #16805d;
  --color-emerald-500: #16805d;
  --color-emerald-600: #16805d;
  --color-red-300: #aa3028;
  --color-red-400: #aa3028;
  --color-red-500: #aa3028;
  --color-red-700: #aa3028;
  --color-red-900: #e7bbb5;
  --color-red-950: #fae9e6;
}
:root[data-theme='night'] {
  color-scheme: dark;
  --canvas: #0c1424;
  --surface: #131f34;
  --text: #e7edf6;
  --muted: #b2c1d5;
  --line: #30425e;
  --field: #101b2e;
  --edge: #7086a6;
  --accent: #dac592;
  --wash: #17243b;
  --hover: #223652;
  --accent-wash: #2c2b30;
  --accent-edge: #a59065;
  --danger: #f0aaa5;
  --danger-wash: #3e2530;
  --gauge: #8db4d9;
  --gauge-track: #304763;
  --focus-field: #1b2c45;
  --color-slate-50: #edf2f9;
  --color-slate-100: #edf2f9;
  --color-slate-200: #dce5f2;
  --color-slate-300: #c7d4e6;
  --color-slate-400: #b2c1d5;
  --color-slate-500: #a9bbd1;
  --color-slate-600: #92a7c3;
  --color-slate-700: #415977;
  --color-slate-800: #20314d;
  --color-slate-900: #17243b;
  --color-slate-950: #0c1424;
  --color-amber-100: #efe0b9;
  --color-amber-200: #dac592;
  --color-amber-300: #dac592;
  --color-amber-400: #d1b67c;
  --color-amber-500: #c6a464;
  --color-amber-600: #b69960;
  --color-amber-700: #a59065;
  --color-amber-900: #433b30;
  --color-amber-950: #2c2b30;
  --color-emerald-300: #b0d0eb;
  --color-emerald-400: #8db4d9;
  --color-emerald-500: #7ba5ca;
  --color-emerald-600: #628bad;
  --color-red-300: #f0aaa5;
  --color-red-400: #f0aaa5;
  --color-red-500: #f0aaa5;
  --color-red-700: #c38280;
  --color-red-900: #613746;
  --color-red-950: #3e2530;
}
html { background: var(--canvas); font-family: var(--app-font); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--app-font);
  -webkit-font-smoothing: antialiased;
}
html[data-theme='night'] body {
  /* Static stars: no animation, image request or change in document geometry. */
  background-color: var(--canvas);
  background-image:
    radial-gradient(1px 1px at 28px 38px, #b8d0ee55 70%, transparent 100%),
    radial-gradient(1px 1px at 156px 117px, #dce8f744 70%, transparent 100%),
    radial-gradient(1.25px 1.25px at 294px 62px, #e6d5ac44 70%, transparent 100%),
    radial-gradient(ellipse 900px 480px at 50% 0, #1c345366, transparent 80%);
  background-size: 347px 281px, 439px 359px, 571px 433px, 100% 100%;
}
button, input, select, textarea { box-sizing: border-box; font-family: inherit; }
code { font-family: var(--app-font); }
button { cursor: pointer; }
button:disabled { cursor: default; }
:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input, select, select option { color: var(--text); }
select option { background: var(--field); }
input::placeholder { color: var(--muted); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Typefaces (window.arcaFont): Atkinson by default, the others on request and
   only downloaded once chosen. Titles keep the serif. Licences sit next to the
   fonts. size-adjust gives every face the same rendered x-height, 0.469 em, the
   size the interface was tuned for, so switching font never resizes the page. */
@font-face { font-family: 'Luciole'; src: url('/assets/fonts/luciole-regular.woff') format('woff'); font-weight: 400; font-display: swap; size-adjust: 85.7%; }
@font-face { font-family: 'Luciole'; src: url('/assets/fonts/luciole-bold.woff') format('woff'); font-weight: 700; font-display: swap; size-adjust: 85.7%; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('/assets/fonts/atkinson-hyperlegible-next.woff') format('woff'); font-weight: 200 800; font-display: swap; size-adjust: 93.8%; }
@font-face { font-family: 'Lexend'; src: url('/assets/fonts/lexend.woff') format('woff'); font-weight: 100 900; font-display: swap; size-adjust: 88.2%; }
/* Official files, unmodified: the OFL reserves the OpenDyslexic name for them. */
@font-face { font-family: 'OpenDyslexic'; src: url('/assets/fonts/opendyslexic-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; size-adjust: 83.3%; }
@font-face { font-family: 'OpenDyslexic'; src: url('/assets/fonts/opendyslexic-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; size-adjust: 83.3%; }
html[data-font='luciole'] { --app-font: 'Luciole', system-ui, sans-serif; }
html[data-font='lexend'] { --app-font: 'Lexend', system-ui, sans-serif; }
html[data-font='opendyslexic'] { --app-font: 'OpenDyslexic', system-ui, sans-serif; }
/* Lexend reads heavy at 400. */
html[data-font='lexend'] body { font-weight: 300; }
