:root {
  --paper: #f6f4ee;
  --paper-raised: #ffffff;
  --ink: #0d1a2e;
  --muted: #56626f;
  --line: #dcd7c9;
  --accent: #a9822f;
  --accent-ink: #7d611f;
  --accent-soft: #f1e6cd;
  --navy: #0d1a2e;
  --navy-soft: #12233d;
  --mono-bg: #eeebe0;
  --focus: #a9822f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1220;
    --paper-raised: #101c30;
    --ink: #eef1ee;
    --muted: #9aa7b4;
    --line: #22314a;
    --accent: #d4b876;
    --accent-ink: #e6cd93;
    --accent-soft: #23324a;
    --mono-bg: #16233a;
  }
}

:root[data-theme="dark"] {
  --paper: #0a1220;
  --paper-raised: #101c30;
  --ink: #eef1ee;
  --muted: #9aa7b4;
  --line: #22314a;
  --accent: #d4b876;
  --accent-ink: #e6cd93;
  --accent-soft: #23324a;
  --mono-bg: #16233a;
}

* { box-sizing: border-box; }
html { text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, Segoe UI, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding-inline: 24px; }

header.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--navy);
}

.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-block: 18px;
}

.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; color: #f3efe2; }
.brand .mark { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); display: inline-block; transform: translateY(-1px); }
.brand .name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }

nav.toplinks { display: flex; gap: 22px; font-size: 0.9rem; }
nav.toplinks a { color: #b9c2cf; text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px; }
nav.toplinks a:hover, nav.toplinks a[aria-current="page"] { color: var(--accent-ink); border-bottom-color: var(--accent); }

main { padding-block: 48px 72px; }

.eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-ink); margin: 0 0 10px;
}

h1 {
  font-weight: 700; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 14px; color: var(--ink);
}

.lede {
  font-family: "IBM Plex Serif", Georgia, serif; font-size: 1.1rem;
  color: var(--muted); max-width: 62ch; margin: 0 0 8px;
}

h2 {
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em;
  margin: 2.6em 0 0.7em; padding-top: 0.9em; border-top: 1px solid var(--line); color: var(--ink);
}
h2:first-of-type { border-top: none; padding-top: 0; margin-top: 2em; }

h3 { font-weight: 600; font-size: 1rem; margin: 1.6em 0 0.5em; color: var(--ink); }

p, li { font-family: "IBM Plex Serif", Georgia, serif; font-size: 1rem; max-width: 68ch; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

a { color: var(--accent-ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

code, .term {
  font-family: "IBM Plex Mono", monospace; font-size: 0.88em;
  background: var(--mono-bg); padding: 0.1em 0.4em; border-radius: 3px;
}

.card {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: 8px;
  padding: 20px 22px; margin-bottom: 14px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin: 1.6em 0 2em;
}

.status-row {
  display: flex; gap: 10px; align-items: baseline; font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line);
}
.status-row .k { color: var(--ink); min-width: 220px; }

.meta-block {
  font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 18px; margin-top: 3em;
}

.attribution {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  margin-top: 1.4em; padding: 16px 18px; background: var(--accent-soft);
  border-radius: 8px; font-size: 0.9rem;
}
.attribution a { font-weight: 600; }

footer.sitefoot {
  border-top: 1px solid var(--line); padding-block: 28px; font-size: 0.85rem;
  color: var(--muted); background: var(--navy);
}
footer.sitefoot .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; color: #b9c2cf; }
footer.sitefoot a { color: #b9c2cf; }
footer.sitefoot nav { display: flex; gap: 16px; flex-wrap: wrap; }

.notice {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 12px 16px; border-radius: 0 6px 6px 0; font-size: 0.92rem; margin: 1.4em 0;
}
.notice p { margin: 0; max-width: none; }

@media (max-width: 480px) {
  .status-row { flex-direction: column; gap: 2px; }
  .status-row .k { min-width: 0; }
}
