/* ON3WOO blog. Design: design/ON3WOO Blog v2.dc.html. */

/* ---- fonts (self-hosted, OFL) ---- */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-ext-opsz-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(/fonts/newsreader-latin-opsz-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* IBM Plex Sans and Mono: weights 400, 500, 600 */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---- tokens ---- */
:root {
  color-scheme: light dark;
  --bg: oklch(0.972 0.008 85);
  --ink: oklch(0.2 0.01 85);
  --muted: oklch(0.45 0.01 85);
  --rule: oklch(0.85 0.01 85);
  --panel: oklch(0.94 0.01 85);
  --mast: oklch(0.2 0.01 85);
  --mastInk: oklch(0.96 0.008 85);
  --mastText: oklch(0.85 0.01 85);
  --mastMuted: oklch(0.78 0.01 85);
  --mastDim: oklch(0.68 0.01 85);
  --mastLine: oklch(0.4 0.01 85);
  --mastOff: oklch(0.32 0.01 85);
  --dmr: oklch(0.68 0.17 45);
  --tetra: oklch(0.68 0.13 245);
  --lte: oklch(0.68 0.15 150);
  --analog: oklch(0.68 0.14 330);
  --on-color: oklch(0.17 0.02 85);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: 32px;
}
@media (max-width: 640px) { :root { --pad: 18px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(0.17 0.008 85);
    --ink: oklch(0.94 0.008 85);
    --muted: oklch(0.72 0.01 85);
    --rule: oklch(0.32 0.01 85);
    --panel: oklch(0.22 0.008 85);
    --mast: oklch(0.12 0.006 85);
    --mastInk: oklch(0.96 0.008 85);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.17 0.008 85);
  --ink: oklch(0.94 0.008 85);
  --muted: oklch(0.72 0.01 85);
  --rule: oklch(0.32 0.01 85);
  --panel: oklch(0.22 0.008 85);
  --mast: oklch(0.12 0.006 85);
  --mastInk: oklch(0.96 0.008 85);
}
:root[data-theme="light"] { color-scheme: light; }

/* category colours: set --c on any element */
.c-dmr { --c: var(--dmr); }
.c-tetra { --c: var(--tetra); }
.c-lte { --c: var(--lte); }
.c-analog { --c: var(--analog); }
.c-all { --c: var(--muted); }
.c-band { --c: var(--panel); }

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration-color: var(--muted); text-underline-offset: 3px; }
a:hover { color: var(--dmr); }
:focus-visible { outline: 3px solid var(--dmr); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 8px 14px; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 13px; }
.skip:focus { top: 8px; }

/* ---- masthead ---- */
.mast { background: var(--mast); color: var(--mastInk); }
.mast a { color: inherit; }
.mast a:hover { color: var(--dmr); }
.mast :focus-visible { outline-color: var(--mastInk); }
.strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap;
  padding-top: 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mastMuted);
}
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.status li { display: flex; align-items: center; gap: 8px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lte); }
.tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.tools > a { text-decoration: none; padding: 6px 0; }
.tools > a:hover, .tools > a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.langs { display: flex; border: 1px solid var(--mastLine); }
.langs a { padding: 4px 9px; text-decoration: none; }
.langs a[aria-current] { background: var(--mastInk); color: var(--mast); }
.theme {
  font: inherit; color: inherit; background: transparent; border: 1px solid var(--mastLine);
  padding: 4px 10px; cursor: pointer; text-transform: uppercase; letter-spacing: .06em;
}
.theme[hidden] { display: none; }
.hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; align-items: flex-end;
  padding: 44px 0 28px;
}
.logo { margin: 0; font-size: clamp(80px, 14vw, 184px); font-weight: 500; letter-spacing: -.045em; line-height: .8; }
.logo a { text-decoration: none; }
.logo i { font-style: italic; color: var(--dmr); }
.lede { margin: 0; flex: 1 1 300px; max-width: 420px; font-size: 22px; line-height: 1.35; color: var(--mastText); text-wrap: pretty; }
.slots { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 14px; }
.slots i { display: block; background: var(--mastOff); }
.slots .on-a { background: var(--mastInk); }
.slots .on-b { background: var(--dmr); }
.slot-labels {
  display: flex; justify-content: space-between; gap: 8px; padding: 8px 0 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--mastDim);
}
.cats { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 20px; }
.cat-list { display: flex; gap: 4px; flex-wrap: wrap; align-items: flex-end; margin: 0; padding: 0; list-style: none; }
.cat-item { display: flex; flex-direction: column; gap: 6px; }
.group {
  min-height: 12px; padding-left: 18px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mastDim);
}
.cat {
  display: flex; gap: 10px; align-items: center; padding: 12px 18px; text-decoration: none; color: var(--mastText);
  font-family: var(--mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
}
.cat .sq { width: 10px; height: 10px; background: var(--c); }
.cat .n { opacity: .7; }
.cat:hover { color: var(--mastInk); background: oklch(0.3 0.01 85 / .6); }
.cat[aria-current] { background: var(--bg); color: var(--ink); }
.bands { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; padding-bottom: 6px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.bands-label { color: var(--mastDim); margin-right: 8px; }
.chip { border: 1px solid var(--mastLine); padding: 5px 10px; text-decoration: none; color: var(--mastText); }
.chip[aria-current] { background: var(--mastInk); color: var(--mast); }
@media (max-width: 640px) {
  .hero { padding-top: 32px; }
  .lede { font-size: 19px; }
  .cat { padding: 10px 12px; }
  .group { padding-left: 12px; }
}

/* ---- list pages ---- */
.page { padding: 56px 0 96px; }
.feature { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100vw - 2 * var(--pad)), 1fr)); border: 1px solid var(--ink); }
.feature a { text-decoration: none; color: inherit; }
.feature a::after { content: ""; position: absolute; inset: 0; }
.feature:hover { background: var(--panel); }
.feature-art {
  background: var(--c); color: var(--on-color); padding: 32px; min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.feature-top { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.feature-no { margin: 0; font-family: var(--mono); font-weight: 500; font-size: clamp(56px, 8vw, 112px); letter-spacing: -.04em; line-height: .9; }
.feature-foot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid oklch(0.17 0.02 85 / .4); }
.feature-foot .tags li { border-color: oklch(0.17 0.02 85 / .5); color: var(--on-color); }
.feature-text { padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; }
.feature h2 { margin: 0; font-size: clamp(34px, 4.8vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
.dek { margin: 0; font-size: 21px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.feature-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; padding-top: 18px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.feature-meta .go { color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100vw - 2 * var(--pad)), 1fr)); gap: 16px; margin-top: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 28px; min-height: 220px; padding: 24px;
  background: var(--c); color: var(--on-color); text-decoration: none;
}
.tile:hover { color: var(--on-color); filter: brightness(1.05); }
.tile-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tile-name { font-family: var(--sans); font-weight: 600; font-size: clamp(38px, 3.5vw, 46px); letter-spacing: -.04em; line-height: .95; overflow-wrap: normal; hyphens: manual; }
.tile-intro { font-size: 18px; line-height: 1.35; text-wrap: pretty; }
.cathead {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  background: var(--c); color: var(--on-color); padding: 40px 32px;
}
.c-band.cathead { color: var(--ink); border: 1px solid var(--rule); }
.cathead h1 { margin: 0; padding-bottom: 8px; font-family: var(--sans); font-weight: 600; font-size: clamp(60px, 12vw, 160px); letter-spacing: -.05em; line-height: .95; overflow-wrap: anywhere; }
.cathead p { margin: 0; max-width: 380px; font-size: 22px; line-height: 1.35; text-wrap: pretty; }
.listhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 64px 0 16px; border-bottom: 2px solid var(--ink); }
.cathead + .listhead { padding-top: 56px; }
.listhead h2 { margin: 0; font-size: 40px; font-weight: 500; letter-spacing: -.02em; font-style: italic; }
.listhead span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.empty { margin: 0; padding: 40px 0; font-size: 21px; font-style: italic; color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr) 150px; gap: 28px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.row:hover { background: var(--panel); }
.row-no { font-family: var(--mono); font-size: 44px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--muted); }
.row-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row h3 { margin: 0; font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.row h3 a { text-decoration: none; }
.row h3 a::after { content: ""; position: absolute; inset: 0; }
.row-body p { margin: 0; font-size: 18px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.row-meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.pill, .tag { position: relative; z-index: 1; text-decoration: none; }
.pill { border: 1px solid var(--ink); padding: 3px 7px; color: var(--ink); }
.tag { background: var(--c); color: var(--on-color); padding: 4px 8px; font-weight: 600; }
.pill:hover, .tag:hover { color: var(--on-color); background: var(--dmr); border-color: var(--dmr); }
.badge {
  display: inline-block; vertical-align: middle; margin-left: .5rem; padding: .05rem .4rem; border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted);
}
@media (max-width: 760px) {
  .page { padding: 32px 0 64px; }
  .feature-art { min-height: 0; padding: 24px; gap: 28px; }
  .feature-text { padding: 24px; }
  .dek { font-size: 19px; }
  .cathead { padding: 28px var(--pad); }
  .listhead { padding-top: 40px; }
  .listhead h2 { font-size: 32px; }
  .row { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; }
  .row-no { font-size: 26px; padding-top: 4px; }
  .row h3 { font-size: 24px; }
  .row-body p { font-size: 17px; }
  .row-meta { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 14px; margin-top: 8px; }
  .chips { justify-content: flex-start; }
}

/* ---- article ---- */
.post-hero { background: var(--c); color: var(--on-color); }
.post-hero .wrap { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.post-hero a { color: inherit; }
.post-hero a:hover { color: var(--on-color); text-decoration-thickness: 2px; }
.post-hero :focus-visible { outline-color: var(--on-color); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.post-hero h1 { margin: 0; max-width: 1000px; font-size: clamp(38px, 6.6vw, 92px); font-weight: 500; line-height: .96; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.post-sub { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid oklch(0.17 0.02 85 / .35); }
.post-sub-text { max-width: 620px; }
.post-sub .dek { color: inherit; font-size: 23px; line-height: 1.4; }
.post-sub-text > * + * { margin-top: 12px; }
.byline { display: flex; flex-direction: column; gap: 4px; margin: 0; text-align: right; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.translated, .langswitch { margin: 0; font-family: var(--sans); font-size: 15px; }
.translated { padding: 8px 12px; border-left: 3px solid currentColor; background: oklch(1 0 0 / .25); }
.langswitch { font-weight: 600; }
.post-wrap { padding-top: 48px; padding-bottom: 32px; display: block; }
.post-wrap.has-side { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 720px); gap: 48px 64px; align-items: start; }
.post-main { min-width: 0; max-width: 720px; }
.side { display: flex; flex-direction: column; gap: 32px; font-family: var(--sans); font-size: 14px; position: sticky; top: 24px; }
.label, .card-head { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.label { color: var(--muted); font-weight: 400; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.toc li { display: flex; gap: 12px; line-height: 1.35; }
.toc .l3 { padding-left: 32px; }
.toc .no { font-family: var(--mono); color: var(--dmr); font-weight: 600; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.card { border: 2px solid var(--ink); }
.card-head { padding: 10px 14px; background: var(--ink); color: var(--bg); }
.card .tags { padding: 14px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li { border: 1px solid var(--rule); padding: 2px 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .post-wrap.has-side { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-width: none; }
  .post-hero .wrap { padding-top: 36px; padding-bottom: 32px; gap: 22px; }
  .post-sub .dek { font-size: 20px; }
  .byline { text-align: left; }
  .post-wrap { padding-top: 32px; }
}

/* article body (content from content/*.html) */
.prose { font-size: 21px; line-height: 1.62; counter-reset: sec; overflow-wrap: break-word; }
.prose > * { margin: 0 0 24px; text-wrap: pretty; }
.prose a { text-decoration-color: var(--dmr); text-decoration-thickness: 1.5px; }
.prose.dropcap > p:first-child::first-letter {
  float: left; font-size: 96px; line-height: .8; font-weight: 500; padding: 8px 12px 0 0; color: var(--dmr);
}
.prose h2 {
  display: flex; gap: 16px; align-items: baseline; margin: 48px 0 24px; scroll-margin-top: 24px;
  font-size: 36px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; counter-increment: sec; text-wrap: balance;
}
.prose h2::before {
  content: counter(sec, decimal-leading-zero); flex: none;
  font-family: var(--mono); font-size: 15px; font-weight: 600; background: var(--dmr); color: var(--on-color); padding: 2px 8px;
}
.prose h3 { margin: 32px 0 16px; scroll-margin-top: 24px; font-size: 28px; font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.prose h4 { margin: 24px 0 12px; font-size: 22px; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--muted); font-family: var(--mono); font-size: .8em; }
.prose strong, .prose b { font-weight: 600; }
.prose blockquote {
  margin: 16px 0 24px; padding: 18px 20px; background: var(--panel);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  font-family: var(--mono); font-size: 16px; line-height: 1.6; overflow-x: auto;
}
.prose blockquote > * { margin: 0; }
.prose blockquote > * + * { margin-top: 12px; }
.prose pre { margin: 0 0 24px; padding: 18px 16px; overflow-x: auto; background: oklch(0.2 0.01 85); color: oklch(0.92 0.01 85); font-family: var(--mono); font-size: 14px; line-height: 1.7; }
.prose code { font-family: var(--mono); font-size: .82em; background: var(--panel); padding: 1px 6px; }
.prose pre code { font-size: inherit; background: none; padding: 0; }
.prose img { display: block; margin: 8px 0; border: 1px solid var(--rule); }
.prose figure { margin: 8px 0 24px; }
.prose figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.4; }
.prose th { text-align: left; padding: 12px; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.prose td { padding: 12px; border-top: 1px solid var(--rule); }
.prose a[href$=".pdf"]::after {
  content: "PDF ↓"; margin-left: .5em; padding: 1px 6px; display: inline-block;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1.6;
  border: 2px solid var(--ink); text-decoration: none;
}
.video { position: relative; aspect-ratio: 16 / 9; margin: 8px 0 24px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.note { margin: 8px 0 24px; padding: 14px 18px; border: 2px solid var(--ink); background: var(--panel); font-family: var(--sans); font-size: 16px; color: var(--muted); }
.note p { margin: 0; }
.original { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); overflow-wrap: anywhere; }
.original p { margin: 0; }
@media (max-width: 640px) {
  .prose { font-size: 19px; }
  .prose h2 { font-size: 28px; gap: 12px; margin-top: 36px; }
  .prose.dropcap > p:first-child::first-letter { font-size: 76px; padding-right: 10px; }
}

/* further reading */
.related { margin-top: 64px; padding-bottom: 64px; }
.related h3 { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); font-size: 40px; font-weight: 500; font-style: italic; letter-spacing: -.02em; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100vw - 2 * var(--pad)), 1fr)); gap: 16px; }
.rel { position: relative; display: flex; flex-direction: column; gap: 20px; border-top: 8px solid var(--c); padding-top: 16px; }
.rel-top { display: flex; justify-content: space-between; margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.rel-top span + span { color: var(--muted); }
.rel h4 { margin: 0; font-size: 26px; font-weight: 500; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.rel h4 a { text-decoration: none; }
.rel h4 a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 640px) { .related h3 { font-size: 30px; } }

/* 404 */
.nf h1 { margin: 0 0 12px; font-size: clamp(36px, 6vw, 64px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.nf p { margin: 0 0 12px; font-size: 21px; }
.nf + .nf { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--ink); }

/* ---- footer ---- */
.foot { background: var(--mast); color: var(--mastMuted); }
.foot .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.foot a { color: inherit; }
.foot a:hover { color: var(--dmr); }
.foot :focus-visible { outline-color: var(--mastInk); }
.seventy-three { font-family: var(--serif); font-size: 56px; font-style: italic; text-transform: none; letter-spacing: -.03em; color: var(--mastInk); line-height: 1; }

@media print { .mast, .foot, .side, .related { display: none; } .post-hero { background: none; color: inherit; } }
