/* AXESS pool site.
   Design constraints, deliberate:
   - No JavaScript, no web fonts, no tracking, no cookies.
   - Colour never carries meaning on its own (colourblind-safe: blue/orange/violet,
     never red/green as the only signal).
   - Follows the reader's light/dark and reduced-motion preferences.
   - Body text >= 1rem, line length capped near 70 characters. */

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #4a4f5a;
  --accent: #1d4ed8;        /* blue   */
  --accent-2: #b45309;      /* orange */
  --accent-3: #6d28d9;      /* violet */
  --line: #d7dae2;
  --focus: #b45309;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101317;
    --surface: #171b21;
    --text: #edeff3;
    --muted: #b6bcc8;
    --accent: #93b4ff;
    --accent-2: #f6b76b;
    --accent-3: #c4a8ff;
    --line: #2b313a;
    --focus: #f6b76b;
  }
}
:root[data-theme="dark"] {
  --bg: #101317; --surface: #171b21; --text: #edeff3; --muted: #b6bcc8;
  --accent: #93b4ff; --accent-2: #f6b76b; --accent-3: #c4a8ff;
  --line: #2b313a; --focus: #f6b76b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 16px 4rem;
  background: var(--bg);
  color: var(--text);
  font: 1.05rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header, main, footer { max-width: 42rem; margin: 0 auto; }

/* Keyboard users land here first. */
.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 .4rem 0;
}
.skip:focus { left: 0; top: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

header { padding: 3rem 0 1.5rem; border-bottom: 1px solid var(--line); }

.ticker {
  font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .75rem;
}
.ticker strong { color: var(--accent-3); }

h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.75rem 0 .75rem; }

.lede { font-size: 1.15rem; color: var(--text); margin: 0 0 1.25rem; }

.tagline {
  font-size: 1.05rem; font-weight: 700; color: var(--accent-3);
  margin: 0 0 1.25rem; letter-spacing: .01em;
}

.status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  padding: .75rem 1rem; border-radius: .4rem; margin: 0;
}

dl { margin: 1rem 0; }
dt {
  font-weight: 700; color: var(--accent);
  margin-top: 1rem; padding-bottom: .15rem;
  border-bottom: 1px solid var(--line);
}
dd { margin: .4rem 0 0; }

ol { padding-left: 1.25rem; }
li { margin: .4rem 0; }

.note, footer p {
  color: var(--muted); font-size: .97rem;
}
.note {
  border-left: 3px solid var(--accent-3);
  padding-left: .9rem; margin-top: 1.25rem;
}

/* Marked as unfinished in text, not by colour alone. */
.todo::before {
  content: "To do: ";
  font-weight: 700; color: var(--accent-2);
}

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

code {
  background: var(--surface); border: 1px solid var(--line);
  padding: .05em .35em; border-radius: .25rem; font-size: .95em;
}

footer {
  margin-top: 3rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

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