/* generated by tools/site-pages.mjs: the tokens are ae.css's own */
:root { --ds-bg: oklch(0.145 0 0); --ds-s1: oklch(0.178 0 0); --ds-s2: oklch(0.218 0 0); --ds-edge: oklch(0.255 0 0); --ds-edge-control: oklch(0.31 0 0); --ds-t1: oklch(0.94 0 0); --ds-t2: oklch(0.72 0 0); --ds-t3: oklch(0.6 0 0); --ds-accent: oklch(0.7 0.18 44); --ds-accent-hover: oklch(0.76 0.16 50); --ds-on-accent: oklch(0.16 0 0); --ds-ring: oklch(0.7 0.18 44); --ds-ok: oklch(0.74 0.13 155); --ds-warn: oklch(0.8 0.12 80); --ds-bad: oklch(0.66 0.17 25); --ds-scrim: rgb(0 0 0 / 0.7); --ds-on-media: #ffffff; --ds-block: oklch(0.315 0 0); --ds-shadow: 0 0 0 1px var(--ds-edge-control), 0 16px 32px -12px rgb(0 0 0 / 0.6); --ds-lift: drop-shadow(0 10px 14px rgb(0 0 0 / 0.5)); --ds-r-in: 4px; --ds-r-ctl: 6px; --ds-r-panel: 6px; --ds-r-dialog: 8px; --ds-h-ctl: 34px; --ds-h-ctl-sm: 30px; --ds-h-row: 44px; --ds-h-row-lg: 56px; --ds-font: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; --ds-mono: "Geist Mono", ui-monospace, Menlo, monospace; --text-2xs: 11px; --text-xs: 12px; --text-sm: 13px; --text-base: 14px; --text-lg: 16px; --text-xl: 20px; --text-2xl: 26px; }
/* The static pages (legal, status, changelog, 404, 500): plain HTML written by tools/site-pages.mjs, no React. Their
   tokens are not copied: site-pages.mjs puts ae.css's own :root tokens in front of this file when it writes /site.css,
   so every colour, radius and size here is a var() of ae.css and lint:design checks this file like any other. */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--ds-bg); color: var(--ds-t1); font-family: var(--ds-font); font-size: 16px; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; font-size: var(--text-base); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ds-ring); outline-offset: 2px; border-radius: var(--ds-r-in); }
::selection { background: color-mix(in oklab, var(--ds-accent) 35%, transparent); }

/* one centred column, the landing's gutters */
.col { width: 100%; max-width: 1088px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1140px) { .col { padding: 0; } } /* the landing's column: its edges at 1140 px and up */

/* the top bar: the mark and the name on the left, as on the landing; two links on the right */
.top { height: 64px; display: flex; align-items: center; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; height: var(--ds-h-ctl); font-size: var(--text-lg); font-weight: 500; }
.brand svg { width: 18px; height: 18px; color: var(--ds-accent); }
.top nav { margin-left: auto; margin-right: -12px; display: flex; gap: 4px; font-size: var(--text-sm); }
.top nav a { display: flex; align-items: center; height: var(--ds-h-ctl-sm); padding: 0 12px; border-radius: var(--ds-r-ctl); color: var(--ds-t2); transition: color 150ms ease; }
.top nav a:hover { color: var(--ds-t1); }
.top nav a.primary { color: var(--ds-on-accent); background: var(--ds-accent); font-weight: 500; transition: background-color 150ms ease; }
.top nav a.primary:hover { color: var(--ds-on-accent); background: var(--ds-accent-hover); }

main { flex: 1; padding-top: 56px; padding-bottom: 96px; }
@media (max-width: 640px) { main { padding-top: 32px; padding-bottom: 64px; } .top nav a.quiet { display: none; } }

/* a page's head: a kicker, the title, one line under it */
.kicker { margin: 0 0 12px; font-size: var(--text-xs); color: var(--ds-t3); }
.kicker a:hover { color: var(--ds-t1); }
.meta a { color: var(--ds-accent); }
.meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { margin: 0; font-size: var(--text-2xl); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.lede { margin: 12px 0 0; font-size: var(--text-lg); color: var(--ds-t2); max-width: 560px; }
.meta { margin: 12px 0 0; font-size: var(--text-xs); color: var(--ds-t3); }

/* long text: 14 px at a reading measure, headings at 16 */
.prose { max-width: 680px; margin-top: 40px; color: var(--ds-t2); line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 44px 0 0; font-size: var(--text-lg); line-height: 1.4; font-weight: 500; color: var(--ds-t1); scroll-margin-top: 24px; }
.prose h3 { margin: 28px 0 0; font-size: var(--text-base); font-weight: 500; color: var(--ds-t1); }
.prose p, .prose ul, .prose ol, .prose table { margin: 12px 0 0; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--ds-t3); }
.prose strong { font-weight: 500; color: var(--ds-t1); }
.prose a { color: var(--ds-accent); }
.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--ds-mono); font-size: 0.92em; color: var(--ds-t1); }
.prose .scroll { overflow-x: auto; margin: 12px 0 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.5; }
.prose .scroll table { margin: 0; }
.prose th { text-align: left; font-weight: 500; font-size: var(--text-xs); color: var(--ds-t3); padding: 0 16px 8px 0; border-bottom: 1px solid var(--ds-edge); }
.prose td { padding: 10px 16px 10px 0; vertical-align: top; }
.prose td:first-child { color: var(--ds-t1); }

/* a legal page: the text, and "On this page" beside it from 1100 px (hidden below: the headings are the outline) */
.doc { display: block; }
.toc { display: none; }
@media (min-width: 1100px) {
  .doc { display: grid; grid-template-columns: 680px 1fr; gap: 64px; align-items: start; }
  .toc { display: flex; flex-direction: column; position: sticky; top: 24px; margin-top: 40px; font-size: var(--text-xs); }
  .toc p { margin: 0 0 8px; color: var(--ds-t3); }
  .toc a { padding: 4px 0; color: var(--ds-t2); transition: color 150ms ease; }
  .toc a:hover { color: var(--ds-t1); }
}

/* the draft notice: a state is a dot and words, on a panel */
.note { display: flex; gap: 10px; align-items: baseline; margin-top: 28px; max-width: 680px; padding: 12px 16px; border-radius: var(--ds-r-panel); background: var(--ds-s1); font-size: var(--text-sm); color: var(--ds-t2); }
.note strong { color: var(--ds-warn); font-weight: 500; }
.dot { flex: none; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-t3); transform: translateY(-1px); }
.dot.ok { background: var(--ds-ok); }
.dot.warn { background: var(--ds-warn); }
.dot.bad { background: var(--ds-bad); }

/* a list of pages (the legal index): rows on one panel, a hover of surface 2 */
.rows { margin: 40px 0 0; padding: 4px; list-style: none; max-width: 680px; border-radius: var(--ds-r-panel); background: var(--ds-s1); }
.rows a { display: flex; flex-direction: column; justify-content: center; min-height: var(--ds-h-row-lg); padding: 8px 14px; border-radius: var(--ds-r-ctl); transition: background-color 150ms ease; }
.rows a:hover { background: var(--ds-s2); }
.rows b { font-weight: 500; font-size: var(--text-sm); }
.rows span { font-size: var(--text-xs); color: var(--ds-t3); }

/* the status page: one panel of rows, a dot and words each */
.status { margin: 40px 0 0; padding: 4px 18px; max-width: 680px; border-radius: var(--ds-r-panel); background: var(--ds-s1); }
.status div { display: flex; align-items: center; gap: 16px; min-height: var(--ds-h-row); font-size: var(--text-sm); }
.status div + div { border-top: 1px solid var(--ds-edge); }
.status dt { flex: 1; color: var(--ds-t2); }
.status dd { margin: 0; display: flex; align-items: center; gap: 8px; text-align: right; font-variant-numeric: tabular-nums; }
.status dd.bad { color: var(--ds-bad); }
.summary { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: var(--text-lg); color: var(--ds-t2); }
.summary .dot { width: 8px; height: 8px; transform: none; }
.summary.bad { color: var(--ds-bad); }

/* the changelog: dates on the left at the width of a column, on wide screens */
.log { margin-top: 40px; max-width: 880px; }
.log article { display: grid; gap: 8px; }
.log article + article { margin-top: 48px; }
.log time { font-size: var(--text-xs); color: var(--ds-t3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.log h2 { margin: 0; font-size: var(--text-lg); font-weight: 500; color: var(--ds-t1); }
.log .prose { margin-top: 8px; }
@media (min-width: 760px) { .log article { grid-template-columns: 160px 1fr; gap: 24px; } }

/* 404 and 500: the mark, one line, the way home, in the middle of the window */
.lost { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 48px 24px; text-align: center; }
.lost svg { width: 36px; height: 36px; color: var(--ds-accent); }
.lost p { margin: 0; font-size: var(--text-lg); color: var(--ds-t2); }
.lost .code { font-family: var(--ds-mono); font-size: var(--text-xs); color: var(--ds-t3); }
.button { display: inline-flex; align-items: center; height: var(--ds-h-ctl); padding: 0 14px; border-radius: var(--ds-r-ctl); border: 1px solid var(--ds-edge-control); font-size: var(--text-sm); font-weight: 500; transition: background-color 150ms ease; }
.button:hover { background: var(--ds-s2); }

/* the footer: the landing's links, the company line */
.foot { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: var(--text-sm); color: var(--ds-t2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a:hover { color: var(--ds-t1); }
.foot small { margin-left: auto; font-size: var(--text-xs); color: var(--ds-t3); }
@media (max-width: 640px) { .foot small { margin-left: 0; width: 100%; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
