/* RoundRect: black on white, plus ONE accent colour (--accent) and tints of it. DESIGN.md is the guide. */
:root {
  --accent: #ff7a1a;                                           /* black text on it: 8.05:1 */
  --tint: color-mix(in oklch, var(--accent) 55%, white);       /* bands, chips, table heads */
  --tint-soft: color-mix(in oklch, var(--accent) 24%, white);  /* quiet fills, inline code */
  --ink: #000;
  --ink-2: #2b2b2d;               /* secondary text */
  --hair: rgb(0 0 0 / .22);       /* hairlines */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --navh: 48px;
}
@supports not (color: color-mix(in oklch, red 50%, white)) { :root { --tint: #94bfff; --tint-soft: #d8e8ff; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--navh); }
body { margin: 0; background: #fff; color: #000; font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #000; outline-offset: 3px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 16px; top: 8px; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 50; min-height: var(--navh); background: #fff; border-bottom: 1px solid #000; }
.nav-in { max-width: 1080px; margin: 0 auto; padding: 4px 16px; min-height: var(--navh); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.nav-name { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.mark { display: inline-block; width: 24px; height: 17px; border: 2px solid #000; border-radius: 7px; background: var(--accent); box-shadow: 0 2px 0 #000; }
.nav nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.nav nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.nav nav a:hover, .nav nav a[aria-current] { color: #000; text-decoration: underline; }
.pill { display: inline-block; background: var(--accent); color: #000; border: 1px solid #000; border-radius: 980px; padding: 3px 12px; font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.5; }
a.pill:hover { background: #000; color: #fff; }
.pill.big { font-size: 17px; padding: 9px 22px; }
.pill.plain { background: #fff; }

/* ---------- bands ---------- */
.band { padding: 80px 0; }
.tone { background: var(--tint); border-bottom: 1px solid #000; }
.band h1, .band h2 { font-weight: 700; letter-spacing: -.035em; line-height: 1.06; margin: 0 0 16px; text-wrap: balance; }
.band h1 { font-size: clamp(40px, 8vw, 80px); }
.band h2 { font-size: clamp(28px, 4.6vw, 44px); }
.lede { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.35; color: var(--ink-2); max-width: 32em; margin: 0 0 24px; letter-spacing: -.01em; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
.home .wrap, .band .wrap { max-width: 1080px; padding: 0 24px; }
.row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.fine { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.card { background: #fff; border: 1px solid #000; border-radius: 18px; padding: 24px; box-shadow: 0 4px 0 #000; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.card h3 { margin: 0; font-size: 28px; letter-spacing: -.025em; line-height: 1.1; }
.card p { margin: 0; color: var(--ink-2); }
.card .pill { margin-top: auto; }
.status { display: inline-block; border: 1px solid #000; border-radius: 980px; padding: 1px 10px; font-size: 12px; font-weight: 600; line-height: 1.6; background: #fff; }
.notice { border: 1px solid #000; border-radius: 14px; background: var(--tint); padding: 14px 18px; max-width: 40em; }
.notice p { margin: 0; }

/* ---------- reading column ---------- */
.prose { max-width: 70ch; margin: 0 auto; padding: 56px 16px 88px; font-size: 17px; line-height: 1.65; }
.prose h1 { font-size: clamp(34px, 6vw, 46px); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 14px; text-wrap: balance; }
.prose h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.025em; margin: 2.2em 0 .6em; padding-top: 1em; border-top: 1px solid var(--hair); scroll-margin-top: 64px; }
.prose h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.015em; margin: 1.9em 0 .5em; scroll-margin-top: 64px; }
.prose h4 { font-size: 17px; margin: 1.6em 0 .4em; }
.prose p { margin: 0 0 1.1em; overflow-wrap: break-word; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: 0 0 .4em; overflow-wrap: break-word; }
.prose code { background: var(--tint-soft); padding: .08em .35em; border-radius: 5px; font-size: .88em; overflow-wrap: anywhere; }
.prose a:hover { background: var(--accent); text-decoration-thickness: 2px; }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 2em 0; }
.prose kbd { background: #fff; border: 1px solid #000; border-bottom-width: 2px; border-radius: 6px; padding: 0 .4em; font-size: .88em; font-weight: 600; }
.lead { font-size: 21px; line-height: 1.45; color: var(--ink-2); }
.toc { border: 1px solid #000; border-radius: 16px; padding: 14px 20px 8px; margin: 22px 0 8px; background: var(--tint-soft); }
.toc-h { font-size: 13px; font-weight: 700; letter-spacing: .02em; margin: 0 0 6px !important; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.5; }
.anchor { margin-left: .4em; font-size: .7em; text-decoration: none; opacity: 0; color: #555; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .anchor { opacity: .45; } }

/* code, tables, quotes, figures (from the Markdown renderer and hand-written pages) */
figure { margin: 0 0 1.4em; }
figure.code { background: #fff; border: 1px solid #000; border-radius: 14px; box-shadow: 0 4px 0 #000; overflow: hidden; margin-bottom: 1.6em; }
figure.code figcaption { background: var(--tint-soft); border-bottom: 1px solid #000; padding: 4px 14px; font: 600 12px/1.6 var(--mono); }
figure.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 14.5px; line-height: 1.5; tab-size: 4; }
figure.code code { background: none; padding: 0; font-size: inherit; white-space: pre; overflow-wrap: normal; }
figure.code.diagram pre { line-height: 1.3; }
.c { color: #555; }
.tablewrap, .tbl { overflow-x: auto; border: 1px solid #000; border-radius: 14px; margin: 0 0 1.4em; background: #fff; }
.tablewrap table, .tbl table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; min-width: 520px; }
.tablewrap th, .tablewrap td, .tbl th, .tbl td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.tablewrap thead th, .tbl thead th { border-bottom: 1px solid #000; background: var(--tint); font-size: 14px; }
.tablewrap tbody tr:last-child td, .tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tablewrap td:first-child, .tbl tbody th { font-weight: 700; }
.tablewrap code, .tbl code { white-space: nowrap; }
.tablewrap:focus-visible, .tbl:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
blockquote { margin: 0 0 1.2em; }
blockquote.note { border-left: 4px solid #000; padding-left: 16px; }
blockquote.example { border: 1px solid #000; border-radius: 14px; background: var(--tint-soft); padding: 12px 16px 0; font-family: var(--mono); font-size: 15px; }
blockquote.callout { border: 1px solid #000; border-radius: 14px; background: var(--tint); padding: 12px 16px 0; }
.shot .frame { border: 1px solid #000; border-radius: 14px; box-shadow: 0 4px 0 #000; overflow: hidden; line-height: 0; }
.shot img { display: block; width: 100%; }
.shot figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

/* ---------- blog ---------- */
.blog .prose { padding-top: 40px; padding-bottom: 56px; }
.crumbs { font-size: 14px; margin: 0 0 18px; }
.crumbs a { color: var(--ink-2); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--ink-2); margin: 0 0 10px !important; }
.chip { display: inline-block; border: 1px solid #000; border-radius: 980px; padding: 1px 10px; font-size: 12px; font-weight: 600; color: #000; background: var(--tint); line-height: 1.6; }
.post-head { border-bottom: 1px solid #000; margin-bottom: 8px; }
.post-head h1 { margin-bottom: 12px; }
.post-summary { font-size: 19px; line-height: 1.45; color: var(--ink-2); margin: 0 0 26px !important; }
.post h2 { border-top: 0; padding-top: 0; }
.post-items { margin-top: 8px; }
.post-item { border-top: 1px solid #000; padding: 22px 0 6px; }
.post-item h2 { border: 0 !important; padding: 0 !important; margin: 0 0 8px !important; font-size: 26px; }
.post-item h2 a { text-decoration: none; }
.post-item h2 a:hover { text-decoration: underline; background: var(--accent); }
.post-item p { color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { background: #fff; color: #000; padding: 32px 0 56px; font-size: 14px; border-top: 1px solid #000; }
.foot .wrap { max-width: 1080px; padding: 0 24px; }
.foot ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: #000; }
.foot p { margin: 0 0 6px; color: var(--ink-2); }

@media (max-width: 600px) {
  .band { padding: 48px 0; }
  .home .wrap, .band .wrap, .foot .wrap { padding: 0 16px; }
  .prose { font-size: 16px; padding-top: 36px; }
  .prose h2 { font-size: 24px; }
  figure.code pre { font-size: 13px; }
  .card { padding: 18px; }
}
@media print { .nav, .skip { display: none; } .card, figure.code { box-shadow: none; } }
.ulink { font-size: 17px; font-weight: 600; text-underline-offset: 5px; }
