:root {
  color-scheme: light;
  --bg: oklch(1 0 0);
  --surface: oklch(.97 0 0);
  --ink: oklch(.25 .012 3);
  --muted: oklch(.46 .015 3);
  --brand: oklch(.43 .15 3);
  --accent: oklch(.93 .025 170);
  --line: oklch(.86 .006 3);
  --focus: oklch(.36 .13 3);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.7 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--brand); text-underline-offset: .22em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 2px; }
.wrap { width: min(100% - 3rem, 1000px); margin-inline: auto; }
.skip { position: absolute; top: -10rem; left: 1rem; z-index: 2; padding: .6rem 1rem; color: var(--bg); background: var(--brand); }
.skip:focus { top: 1rem; }
header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-size: 1.35rem; font-weight: 750; text-decoration: none; }
.brand-mark { width: 25px; height: 30px; border: 2px solid var(--brand); border-radius: 2px 7px 2px 2px; display: inline-block; position: relative; }
.brand-mark::after { content: ""; position: absolute; width: 11px; height: 2px; top: 9px; left: 5px; background: var(--brand); box-shadow: 0 6px 0 var(--brand); }
nav a { display: inline-block; padding-block: .7rem; font-size: .92rem; }
main { padding-block: clamp(2.5rem, 7vw, 5rem) 4.5rem; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { margin: 0 0 1.4rem; font-size: clamp(2.15rem, 5vw, 3.6rem); font-weight: 760; letter-spacing: -.035em; max-width: 18ch; }
h2 { font-size: 1.6rem; margin-top: 2.8rem; letter-spacing: -.02em; }
h3 { font-size: 1.12rem; margin-top: 1.8rem; }
p { text-wrap: pretty; }
.lead { max-width: 62ch; margin: 0; font-size: 1.12rem; color: var(--muted); }
.intro { padding-bottom: 3rem; }
.notes { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.notes li { padding: 1.9rem 0 2rem; border-bottom: 1px solid var(--line); }
.notes h2 { margin: 0 0 .6rem; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.notes h2 a { text-decoration: none; }
.notes h2 a:hover { text-decoration: underline; }
.notes p { max-width: 65ch; margin: 0; color: var(--muted); }
.topic { display: inline-block; margin: 0 0 .65rem; font-size: .85rem; color: var(--muted); }
.reading-note { margin-top: 2.4rem; max-width: 64ch; font-size: .95rem; }
.article { max-width: 740px; }
.article h1 { max-width: 22ch; font-size: clamp(2rem, 4.6vw, 3.15rem); }
.back { display: inline-block; margin-bottom: 2rem; padding-block: .3rem; font-size: .9rem; }
.article .lead { margin-bottom: 2.2rem; }
.article p, .article ul, .article ol { max-width: 70ch; }
li { padding-left: .25rem; }
.article li + li { margin-top: .65rem; }
.summary { margin-block: 2.3rem; padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.summary h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.summary p { margin: 0; }
.summary ul { margin: .4rem 0 0; padding-left: 1.3rem; }
.article code { background: var(--surface); padding: .15em .35em; border-radius: 3px; font-size: .89em; overflow-wrap: anywhere; }
.example { margin-block: 1.6rem; padding: 1.2rem 1.4rem; background: var(--accent); border-radius: 6px; }
.example p { margin: .4rem 0; }
.related { margin-top: 3.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related p { margin: .4rem 0; }
footer { border-top: 1px solid var(--line); padding-block: 1.8rem 2.2rem; color: var(--muted); font-size: .85rem; }
footer p { margin: 0; }
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { width: min(100% - 2rem, 1000px); }
  .header-inner { min-height: 80px; }
  nav a { font-size: .85rem; }
  .intro { padding-bottom: 2.3rem; }
  .summary, .example { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { color: black; font-size: 11pt; }
  header, footer, .back, .related, .skip { display: none; }
  .wrap, .article { width: 100%; max-width: none; }
  main { padding: 0; }
  h1 { font-size: 24pt !important; }
  h2 { break-after: avoid; }
  .summary, .example { break-inside: avoid; }
  a { color: inherit; }
}
