@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #f3f5f8;
  --sheet: #ffffff;
  --ink: #1d2531;
  --muted: #576274;
  --rule: #d5dbe4;
  --accent: #1f4fb8;
  --accent-ink: #ffffff;
  --ok: #1d6b45;
  --code: #e8ecf2;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141922; --sheet: #1b2230; --ink: #e2e7ef; --muted: #9aa5b6; --rule: #2f3a4c;
    --accent: #8fb0ff; --accent-ink: #0f1830; --ok: #7fd3a6; --code: #232c3c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.7 var(--serif);
}
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1rem; }

.site-head { padding: 1.5rem 0 0; font-family: var(--sans); }
.site-head .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.site-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.site-name span { color: var(--muted); font-weight: 400; }
.site-head nav a { font-size: 0.95rem; margin-left: 1rem; }

main { padding: 2.5rem 0 4rem; }
h1, h2, h3 { font-family: var(--sans); line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.75rem); margin: 0 0 0.75rem; font-weight: 700; }
h2 { font-size: 1.45rem; margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1.1rem; }
li { margin-bottom: 0.35rem; }
.lede { font-size: 1.28rem; line-height: 1.55; color: var(--muted); margin-bottom: 2rem; }
.meta { font-family: var(--sans); font-size: 0.92rem; color: var(--muted); margin-bottom: 1.5rem; }
code, kbd { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: 0.86em; background: var(--code); padding: 0.1em 0.35em; border-radius: 3px; }
pre { background: var(--code); padding: 0.9rem 1rem; border-radius: 4px; overflow-x: auto; font-size: 0.95rem; line-height: 1.5; margin: 0 0 1.25rem; }
pre code { background: none; padding: 0; }
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.95rem; margin: 0 0 1.5rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem 0.5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 700; }

/* The release slip: the one strong element on the page. */
.release {
  background: var(--sheet); border: 1px solid var(--rule); border-left: 6px solid var(--accent);
  border-radius: 6px; padding: 1.4rem 1.5rem 1.3rem; margin: 0 0 2.5rem; font-family: var(--sans);
}
.release-version { font-size: clamp(2.2rem, 1.7rem + 2vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; margin: 0 0 0.35rem; }
.release-version small { font-size: 1rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 0.5rem; }
.release-note { color: var(--muted); margin: 0 0 1.1rem; font-size: 1rem; }
.release-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.1rem; }
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 0.65rem 1.1rem; border-radius: 5px; border: 2px solid var(--accent); color: var(--accent); background: transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.release dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0; font-size: 0.92rem; }
.release dt { color: var(--muted); }
.release dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.release dd code { font-size: 0.85em; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.post-list a { font-family: var(--sans); font-weight: 700; font-size: 1.3rem; text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.post-list p { margin: 0.35rem 0 0; color: var(--muted); }

.changelog h2 { font-size: 1.3rem; }
.site-foot { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); padding: 2rem 0 3rem; border-top: 1px solid var(--rule); }

@media (max-width: 30rem) {
  body { font-size: 1.06rem; }
  .release { padding: 1.1rem 1rem; }
  .release dl { grid-template-columns: 1fr; }
  .release dt { margin-top: 0.4rem; }
}
