:root {
  color-scheme: light dark;
  --canvas: #10131a;
  --surface: #181e29;
  --ink: #f8f5ed;
  --muted: #bac2d0;
  --accent: #e7c982;
  --accent-ink: #1c1a16;
  --line: rgba(255, 255, 255, .14);
  --focus: #9dd9ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at top, #243147 0, var(--canvas) 38rem);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: #ffe19c; text-underline-offset: .18em; }
a:hover { color: #fff1c6; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: .7rem 1rem;
  font-weight: 700;
  z-index: 2;
}
.skip-link:focus { top: 1rem; }
.wrap { width: min(100% - 2rem, 58rem); margin-inline: auto; }
header { padding: 1.25rem 0 2.5rem; }
.brand { color: var(--ink); font-weight: 800; letter-spacing: .04em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .9rem; }
.hero { padding: 1rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: .84rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 7vw, 4.25rem); max-width: 14ch; margin: .45rem 0 1rem; }
h2 { font-size: 1.55rem; margin: 2.8rem 0 .8rem; }
h3 { font-size: 1.1rem; margin: 1.8rem 0 .55rem; }
p, li { max-width: 78ch; }
.lede { color: var(--muted); font-size: 1.15rem; }
main { padding: 1.25rem 0 4rem; }
section { scroll-margin-top: 1rem; }
.notice, .card {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: 1.1rem 1.2rem;
  margin: 1.25rem 0;
}
.notice { border-left: 4px solid var(--accent); }
.notice p:last-child, .card p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: .35rem; }
dl { margin: 1.25rem 0; }
dt { font-weight: 750; margin-top: 1rem; }
dd { margin: .2rem 0 0; color: var(--muted); }
details { margin: .9rem 0; border: 1px solid var(--line); border-radius: .6rem; padding: .75rem 1rem; background: var(--surface); }
summary { cursor: pointer; font-weight: 700; }
details > *:last-child { margin-bottom: 0; }
.toc { columns: 2 15rem; gap: 1.5rem; padding-left: 1.25rem; }
.toc li { break-inside: avoid; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; padding: 2rem 0 3rem; }
.hidden { display: none !important; }
main, footer { overflow-wrap: anywhere; }
nav a[aria-current="page"] { font-weight: 750; }
.table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: .6rem; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; }
th, td { padding: .9rem; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--surface); }
td:first-child { width: 28%; font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.deletion-card { background: var(--surface); border: 1px solid var(--line); border-radius: .8rem; padding: 1.2rem; margin-top: 2rem; }
.deletion-card h2 { margin-top: .5rem; }
.form-grid { display: grid; gap: .8rem; max-width: 32rem; }
label { display: block; margin: .8rem 0 .3rem; font-weight: 650; }
input { width: 100%; min-height: 2.75rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--canvas); color: var(--ink); font: inherit; }
input[type="checkbox"] { width: 1.2rem; min-height: 1.2rem; margin-right: .45rem; vertical-align: middle; }
.checkbox-row { display: flex; align-items: flex-start; gap: .5rem; }
.checkbox-row input { flex: 0 0 1.2rem; margin-top: .35rem; }
button { padding: .75rem 1rem; margin: .35rem .4rem .35rem 0; border: 1px solid var(--line); border-radius: .45rem; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
button.secondary { background: var(--canvas); color: var(--ink); }
button.danger { background: #b43138; color: #fff; }
button:disabled { opacity: .55; cursor: not-allowed; }
.small, .muted { font-size: .9rem; color: var(--muted); }
.status { padding: .8rem; border-left: 3px solid var(--accent); background: var(--canvas); }
.status:empty { display: none; }
.status.error { border-color: #ec8a8a; }
.status.success { border-color: #78b77c; }
.deletion-card button { width: 100%; margin-right: 0; }
@media (max-width: 480px) { th, td { padding: .65rem; } th { overflow-wrap: normal; } td:first-child { width: 34%; } h2 { font-size: 1.35rem; } }
@media (prefers-color-scheme: light) {
  :root { --canvas: #f6f4ee; --surface: #fffefa; --ink: #172033; --muted: #4e5a6f; --line: rgba(23, 32, 51, .16); --focus: #005a8f; }
  body { background: radial-gradient(circle at top, #dceafa 0, var(--canvas) 38rem); }
  a { color: #614900; }
  a:hover { color: #342700; }
  .eyebrow { color: #614900; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
