:root {
  --bg: #140a24;
  --panel: #21123b;
  --fg: #f6efff;
  --muted: #d0c3e8;
  --line: #4a3578;
  --purple: #b98cff;
  --orange: #ff8a1f;
  --orange-fg: #1a0b00;
  --orange-hover: #ffa04d;
  --green: #7dff8f;
  --stone: #b3adc4;
  --warn: #ffd24a;
  --danger: #ff9b9b;
  --code-bg: #0d0618;
  --ctl: #8a74c2;
  color-scheme: dark light;
}
/* Light theme, chosen by the visitor's system setting. tests/a11y.test.js computes every pair. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf7ff;
    --panel: #ffffff;
    --fg: #1d1230;
    --muted: #4a3d63;
    --line: #c9bce3;
    --purple: #5a2fb0;
    --orange: #a64500;
    --orange-fg: #ffffff;
    --orange-hover: #8f3b00;
    --green: #0b6b22;
    --stone: #5c566b;
    --warn: #7a4f00;
    --danger: #9b1c1c;
    --code-bg: #f1ebfa;
    --ctl: #6f5f93;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 0 16px 56px;
  overflow-wrap: break-word;
}
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: var(--panel); color: var(--fg); padding: 8px 12px; z-index: 10; }
header.top, main, footer { max-width: 760px; margin: 0 auto; }
main.wide { max-width: 860px; }
header.top { padding: 20px 0 8px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.brand { margin: 0; font-weight: 800; font-size: 1.15rem; }
.brand span { color: var(--muted); font-weight: 400; font-size: 0.95rem; }
nav a, footer a, .svc-links a { display: inline-block; padding: 5px 0; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-hover); }
.brand a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 2px; }
h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.1; margin: 28px 0 12px; color: var(--orange); letter-spacing: 0.02em; }
h2 { font-size: 1.35rem; margin: 32px 0 8px; color: var(--purple); }
p, li, dd { max-width: 70ch; }
.kicker { color: var(--green); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; margin: 0 0 4px; }
.tagline { font-size: clamp(1.25rem, 3.4vw, 1.7rem); font-weight: 800; line-height: 1.25; margin: 0 0 12px; }
.lead, .note { color: var(--muted); }
.note { font-size: 0.95rem; }
section { margin: 8px 0; }
.steps { padding-left: 1.3em; }
.defs { margin: 8px 0; }
.defs dt { font-weight: 700; margin-top: 8px; color: var(--purple); }
.defs dd { margin: 0 0 0 1em; color: var(--muted); }
.field { margin: 12px 0; }
label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input[type="checkbox"] + label { display: inline; margin-left: 8px; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select {
  width: 100%; max-width: 100%; font: inherit; color: var(--fg); background: var(--code-bg);
  border: 2px solid var(--ctl); border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
textarea { font-family: ui-monospace, Consolas, monospace; font-size: 0.95rem; }
button, .button {
  display: inline-block; min-height: 44px; padding: 8px 22px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--orange); color: var(--orange-fg); font: inherit; font-weight: 800; text-decoration: none;
}
button:hover, .button:hover { background: var(--orange-hover); color: var(--orange-fg); }
button[disabled] { opacity: 0.6; cursor: wait; }
.error { color: var(--danger); font-weight: 700; margin: 6px 0; }
.error[hidden] { display: none; }
[hidden] { display: none !important; }
.svc-list { list-style: none; margin: 8px 0; padding: 0; }
.svc { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; background: var(--panel); }
.svc input[type="checkbox"] { width: 26px; height: 26px; margin: 0; accent-color: var(--orange); }
.svc label { display: block; margin: 0; }
.svc .badge, .svc .svc-links { grid-column: 2; }
.svc-links a { margin-right: 14px; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 0.9rem; background: var(--code-bg); border: 1px solid var(--line); width: fit-content; }
.badge.ended { color: var(--stone); }
.badge.scheduled { color: var(--warn); }
.badge.moved { color: var(--purple); }
blockquote { margin: 12px 0; padding: 8px 16px; border-left: 4px solid var(--purple); background: var(--panel); }
.plain { list-style: none; padding: 0; margin: 8px 0; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
code { background: var(--code-bg); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
#paste-result, #result, #request-result, #confirm-result, #signin-result, #manage-result { margin: 8px 0; }
#paste-result:focus, #result:focus, #request-result:focus, #confirm-result:focus, #signin-result:focus, #manage-result:focus { outline: 3px solid var(--warn); }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.disclaimer { font-weight: 700; }
pre { overflow-x: auto; }
table { display: block; overflow-x: auto; }
@media (max-width: 480px) {
  body { padding: 0 12px 40px; font-size: 16px; }
  button, .button { width: 100%; text-align: center; }
  nav ul { gap: 4px 14px; }
}
