/* Black, white and greys; green and red only for meaning, never as the only signal (ADR 0004). */
:root {
  --bg: #fff; --fg: #111; --muted: #595959; --line: #d4d4d4; --soft: #f4f4f4;
  --ok: #146c2e; --ok-bg: #e8f3eb; --bad: #b3261e; --bad-bg: #fbeae9; --focus: #111;
  --measure: 68ch; --gap: 1rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f0f0f; --fg: #ededed; --muted: #a3a3a3; --line: #333; --soft: #1a1a1a;
          --ok: #6fcf8a; --ok-bg: #12261a; --bad: #f2867d; --bad-bg: #2c1514; --focus: #ededed; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body > * { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }
h1, h2 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 1.5rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 2.5rem 0 .75rem; }
img, video { max-width: 100%; height: auto; display: block; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--fg); color: var(--bg); padding: .5rem 1rem; z-index: 1; }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
  padding-block: 1rem; border-bottom: 1px solid var(--line); }
.mark { font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -.02em; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.top nav a { text-decoration: none; padding-block: .5rem; }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.top form { margin: 0; }
.link { font: inherit; color: inherit; background: none; border: 0; padding: .5rem 0; cursor: pointer; }
.link:hover { text-decoration: underline; }

.bottom { margin-top: 4rem; padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }

.lead p, .measure { max-width: var(--measure); }
.lead > p:first-of-type, .lede { font-size: 1.1875rem; }
.facts { padding-left: 1.25rem; max-width: var(--measure); }
.facts li { margin-block: .25rem; }
.quiet, .hint, .meta, .crumbs { color: var(--muted); }
.meta { font-size: .875rem; font-variant-numeric: tabular-nums; }
.crumbs { margin: 1.5rem 0 0; font-size: .9375rem; }

.button { display: inline-block; font: inherit; font-weight: 600; background: var(--fg); color: var(--bg);
  border: 2px solid var(--fg); border-radius: 4px; padding: .625rem 1.125rem; text-decoration: none; cursor: pointer; min-height: 44px; }
.button:hover { background: var(--bg); color: var(--fg); }

.grid { list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.card a { display: grid; gap: .25rem; text-decoration: none; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--soft); border: 1px solid var(--line); }
.card .title { font-weight: 600; }
.card a:hover .title { text-decoration: underline; }
.list { list-style: none; padding: 0; border-top: 1px solid var(--line); max-width: 48rem; }
.list li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.list .meta { display: inline-block; min-width: 2ch; margin-right: .5rem; }

.player { width: 100%; max-width: 60rem; background: #000; aspect-ratio: 16 / 9; }

.status { display: inline-block; font-size: .8125rem; font-weight: 600; padding: .125rem .5rem; border: 1px solid var(--line); border-radius: 999px; }
.status.ok { color: var(--ok); background: var(--ok-bg); border-color: currentColor; }
.status.ok::before { content: "● "; }

.notice { max-width: var(--measure); padding: .75rem 1rem; border: 1px solid var(--line); border-left-width: 4px; background: var(--soft); }
.notice.ok { border-color: var(--ok); background: var(--ok-bg); }
.notice.bad { border-color: var(--bad); background: var(--bad-bg); }

.form { max-width: 40rem; }
.field { margin-block: 1.25rem; }
.field label, legend { display: block; font-weight: 600; }
.hint { margin: .125rem 0 .375rem; font-size: .9375rem; }
input[type=text], input[type=email], textarea { width: 100%; font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--muted); border-radius: 4px; padding: .5rem .625rem; min-height: 44px; }
.field label + input, .field label + textarea { margin-top: .375rem; }
.invalid input, .invalid textarea { border: 2px solid var(--bad); }
.error { color: var(--bad); font-weight: 600; margin: .375rem 0 0; }
.error::before { content: "✕ "; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0 .625rem; align-items: center; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--fg); }
.check .hint { grid-column: 2; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 4px; padding: .5rem 1rem; margin-block: 1.25rem; }
legend { padding-inline: .25rem; }

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