/* Neo-Brutalism — antjanus.com redesign 004
   Thick ink outlines, zero-blur offset shadows, flat saturated fills. */

/* ---------- primitives ---------- */
:root {
  --ink-900: #111111;
  --cream-50: #fff6e5;
  --cream-100: #fbe9c9;
  --cream-200: #f5ecdc;
  --paper-0: #ffffff;
  --umber-700: #4a4034;
  --umber-400: #b8ab96;
  --night-900: #15120e;
  --night-800: #221e18;
  --night-700: #2e2821;

  --yellow-400: #ffd23f;
  --pink-400: #ff8fd0;
  --mint-400: #7ee8b0;
  --violet-400: #b9a4ff;
  --orange-400: #ff9a5a;
  --cyan-400: #7fd6ff;
  --slate-600: #364f6a; /* the brand slate, used as a solid block fill */
  --blue-700: #0047d6;

  /* ---------- semantic ---------- */
  --bg: var(--cream-50);
  --surface: var(--paper-0);
  --surface-alt: var(--cream-100);
  --text: var(--ink-900);
  --text-muted: var(--umber-700);
  --line: var(--ink-900);
  --shadow-color: var(--ink-900);
  --focus: var(--blue-700);
  --link: var(--blue-700);
  --on-fill: var(--ink-900);
  --band: var(--ink-900);
  --band-text: var(--cream-50);

  --fill-ai: var(--violet-400);
  --fill-garden: var(--mint-400);
  --fill-tools: var(--yellow-400);
  --fill-story: var(--pink-400);
  --fill-patterns: var(--orange-400);
  --fill-info: var(--cyan-400);
  --fill-brand: var(--slate-600);

  /* ---------- component ---------- */
  --bw: 3px;
  --bw-thin: 2px;
  --sh: 6px;
  --sh-sm: 4px;
  --sh-lg: 10px;
  --radius: 0;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--night-900);
    --surface: var(--night-800);
    --surface-alt: var(--night-700);
    --text: var(--cream-200);
    --text-muted: var(--umber-400);
    --line: var(--cream-200);
    --shadow-color: var(--yellow-400);
    --focus: var(--cyan-400);
    --link: var(--cyan-400);
    --band: var(--yellow-400);
    --band-text: var(--ink-900);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--night-900);
  --surface: var(--night-800);
  --surface-alt: var(--night-700);
  --text: var(--cream-200);
  --text-muted: var(--umber-400);
  --line: var(--cream-200);
  --shadow-color: var(--yellow-400);
  --focus: var(--cyan-400);
  --link: var(--cyan-400);
  --band: var(--yellow-400);
  --band-text: var(--ink-900);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(color-mix(in srgb, var(--line) 14%, transparent) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--font-mono); }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--yellow-400); color: var(--on-fill); border: var(--bw) solid var(--ink-900); padding: 10px 16px; font-weight: 800; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

/* ---------- fills: text on a fill is always ink ---------- */
.f-ai { background: var(--fill-ai); color: var(--on-fill); }
.f-garden { background: var(--fill-garden); color: var(--on-fill); }
.f-tools { background: var(--fill-tools); color: var(--on-fill); }
.f-story { background: var(--fill-story); color: var(--on-fill); }
.f-patterns { background: var(--fill-patterns); color: var(--on-fill); }
.f-info { background: var(--fill-info); color: var(--on-fill); }
.f-brand { background: var(--fill-brand); color: #fff; }
.f-ink { background: var(--ink-900); color: var(--cream-50); }
.f-surface { background: var(--surface); color: var(--text); }
[class*="f-"]:not(.f-surface):not(.f-brand):not(.f-ink) a:not(.btn) { color: var(--on-fill); }
.f-brand a:not(.btn), .f-ink a:not(.btn) { color: inherit; }

/* ---------- boxes ---------- */
.box {
  border: var(--bw) solid var(--line);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow-color);
  border-radius: var(--radius);
}
.box-flat { border: var(--bw) solid var(--line); }
.card {
  position: relative;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  box-shadow: var(--sh) var(--sh) 0 var(--shadow-color);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card.is-link:hover, .card.is-link:focus-within {
  transform: translate(-3px, -3px);
  box-shadow: calc(var(--sh) + 3px) calc(var(--sh) + 3px) 0 var(--shadow-color);
}
.card .stretch::after { content: ""; position: absolute; inset: 0; }
.card .stretch { text-decoration: none; color: inherit; }
.card .stretch:focus-visible { outline: none; }
.card:has(.stretch:focus-visible) { outline: 4px solid var(--focus); outline-offset: 4px; }
.card-media { border-bottom: var(--bw) solid var(--line); aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-title { font-size: 1.45rem; }
.card p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.3rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  color: var(--btn-fg); background: var(--btn-bg);
  border: var(--bw) solid var(--line);
  box-shadow: var(--sh-sm) var(--sh-sm) 0 var(--shadow-color);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--sh-sm) + 2px) calc(var(--sh-sm) + 2px) 0 var(--shadow-color); text-decoration: none; }
.btn:active { transform: translate(var(--sh-sm), var(--sh-sm)); box-shadow: 0 0 0 var(--shadow-color); }
.btn-primary { --btn-bg: var(--yellow-400); --btn-fg: var(--ink-900); }
.btn-pink { --btn-bg: var(--pink-400); --btn-fg: var(--ink-900); }
.btn-mint { --btn-bg: var(--mint-400); --btn-fg: var(--ink-900); }
.btn-ink { --btn-bg: var(--ink-900); --btn-fg: var(--cream-50); }
.btn-sm { min-height: 44px; padding: .45rem .9rem; font-size: 1rem; }
.btn.is-done { --btn-bg: var(--mint-400); --btn-fg: var(--ink-900); }
.link-arrow { font-family: var(--font-display); font-weight: 800; color: var(--text); text-decoration: underline; text-decoration-color: var(--pink-400); text-decoration-thickness: 4px; text-underline-offset: 5px; }
.link-arrow:hover { text-decoration-color: var(--yellow-400); text-decoration-thickness: 8px; }

/* ---------- chips, labels, stickers ---------- */
.label {
  display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: .875rem;
  text-transform: uppercase; letter-spacing: .06em; line-height: 1.2;
  padding: .3rem .55rem; border: var(--bw-thin) solid var(--line); background: var(--surface); color: var(--text);
}
.label[class*="f-"] { border-color: var(--ink-900); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 32px;
  font-family: var(--font-mono); font-size: .875rem; line-height: 1.2;
  padding: .2rem .55rem; border: var(--bw-thin) solid var(--line);
  color: var(--text); background: var(--surface); text-decoration: none; position: relative; z-index: 1;
}
a.chip:hover { background: var(--yellow-400); color: var(--ink-900); }
.sticker {
  display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.05;
  padding: .55rem .8rem; border: var(--bw) solid var(--ink-900); color: var(--ink-900);
  box-shadow: var(--sh-sm) var(--sh-sm) 0 var(--ink-900); transform: rotate(-4deg);
}
.sticker b { display: block; font-size: 2rem; letter-spacing: -.03em; }
.meta { font-family: var(--font-mono); font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
[class*="f-"] .meta { color: inherit; }

/* ---------- nav ---------- */
.progress { position: fixed; top: 0; left: 0; height: 8px; width: 0; background: var(--pink-400); border-bottom: var(--bw-thin) solid var(--ink-900); border-right: var(--bw-thin) solid var(--ink-900); z-index: 60; }
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: var(--bw) solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand-mark { width: 46px; height: 46px; flex: none; border: var(--bw) solid var(--ink-900); background: var(--yellow-400); box-shadow: 3px 3px 0 var(--shadow-color); display: grid; place-items: center; }
.brand-mark svg { width: 32px; height: 32px; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1; }
.brand-word small { display: block; font-family: var(--font-mono); font-size: .8125rem; font-weight: 400; letter-spacing: .08em; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: .35rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .85rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none;
  border: var(--bw) solid transparent;
}
.nav-links a:hover { border-color: var(--line); background: var(--surface); }
.nav-links a[aria-current="page"] { border-color: var(--line); background: var(--yellow-400); color: var(--ink-900); box-shadow: 3px 3px 0 var(--shadow-color); }
.nav-links a.nav-ai { background: var(--pink-400); color: var(--ink-900); border-color: var(--ink-900); box-shadow: 3px 3px 0 var(--shadow-color); margin-left: .35rem; }
.nav-links a.nav-ai[aria-current="page"] { background: var(--violet-400); }
.icon-btn {
  width: 48px; height: 48px; display: inline-grid; place-items: center; flex: none; cursor: pointer;
  background: var(--surface); color: var(--text); border: var(--bw) solid var(--line); box-shadow: 3px 3px 0 var(--shadow-color);
  transition: transform .12s ease, box-shadow .12s ease;
}
.icon-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow-color); }
.icon-btn:active { transform: translate(3px, 3px); box-shadow: none; }
.icon-btn svg { width: 22px; height: 22px; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: block; }
}
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav-inner { min-height: 68px; }
  .menu-btn { display: inline-grid; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .5rem; margin: 0;
    padding: 1rem var(--gutter) 1.4rem; background: var(--bg); border-bottom: var(--bw) solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { border-color: var(--line); background: var(--surface); font-size: 1.25rem; min-height: 52px; }
  .nav-links a.nav-ai { margin-left: 0; }
  .theme-btn { margin-left: auto; }
  .brand-word small { display: none; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--band); color: var(--band-text); border-block: var(--bw) solid var(--line); overflow: hidden; }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; padding: .8rem 0; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; white-space: nowrap; letter-spacing: -.01em; }
.marquee span::after { content: "✶"; margin-left: 2.5rem; color: var(--pink-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- page headers ---------- */
.page-head { border-bottom: var(--bw) solid var(--line); }
.page-head .wrap { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 960px) { .page-head .wrap { grid-template-columns: 1.3fr 1fr; } }
.page-head h1 { font-size: clamp(3rem, 9vw, 7rem); line-height: .92; letter-spacing: -.045em; }
.page-head .lede { font-size: clamp(1.2rem, 2vw, 1.45rem); max-width: 40ch; margin-top: 1.25rem; line-height: 1.45; }
.page-head .frame { transform: rotate(2deg); background: var(--surface); }
.page-head .frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.eyebrow { margin-bottom: 1.1rem; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: var(--bw) solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.sec-head h2 { font-size: clamp(2.3rem, 5.5vw, 4rem); letter-spacing: -.04em; }
.sec-head p { margin: .6rem 0 0; font-size: 1.2rem; color: var(--text-muted); }
.sec-head .label { margin-bottom: .8rem; }

.grid { display: grid; gap: 1.75rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ---------- home hero ---------- */
.hero { border-bottom: var(--bw) solid var(--line); overflow-x: clip; }
.page-head { overflow-x: clip; }
.hero .wrap { display: grid; gap: 3rem; padding-block: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: 1.25fr 1fr; } }
.hero h1 { font-size: clamp(3rem, 8.2vw, 6.6rem); line-height: .9; letter-spacing: -.05em; }
.hl { display: inline-block; padding: 0 .12em; border: var(--bw) solid var(--ink-900); box-shadow: 5px 5px 0 var(--shadow-color); color: var(--ink-900); transform: rotate(-2deg); line-height: 1; }
.ul { background: linear-gradient(transparent 62%, var(--yellow-400) 62%, var(--yellow-400) 92%, transparent 92%); }
:root[data-theme="dark"] .ul { background: linear-gradient(transparent 62%, var(--slate-600) 62%, var(--slate-600) 92%, transparent 92%); }
.hero .sub { font-size: clamp(1.2rem, 2vw, 1.4rem); max-width: 36ch; margin: 1.6rem 0 2rem; line-height: 1.45; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.portrait { position: relative; max-width: 460px; justify-self: center; width: 100%; }
.portrait .photo { transform: rotate(2.5deg); background: var(--surface); padding: 12px; }
.portrait .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 20% center; border: var(--bw) solid var(--ink-900); }
.portrait .s1 { position: absolute; left: -18px; top: 28px; }
.portrait .s2 { position: absolute; right: -14px; top: 44%; transform: rotate(5deg); }
.portrait .s3 { position: absolute; left: 10%; bottom: -22px; transform: rotate(-2deg); }
@media (max-width: 560px) {
  .portrait .s1 { left: -6px; top: 12px; }
  .portrait .s2 { right: -4px; }
  .sticker b { font-size: 1.6rem; }
  .portrait .photo { transform: rotate(1.5deg); }
  .portrait .photo img { aspect-ratio: 1 / 1; object-position: 30% 12%; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.25rem; }
.stat { padding: 1.3rem 1.4rem; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.5rem); line-height: .95; letter-spacing: -.05em; }
.stat span { font-family: var(--font-mono); font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- list rows ---------- */
.rows { list-style: none; padding: 0; margin: 0; border: var(--bw) solid var(--line); box-shadow: var(--sh) var(--sh) 0 var(--shadow-color); background: var(--surface); }
.row { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: .4rem 1.25rem; align-items: start; padding: 1.2rem 1.3rem; border-top: var(--bw) solid var(--line); }
.row:first-child { border-top: 0; }
.row:hover { background: var(--surface-alt); }
.row-num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: var(--bw-thin) solid var(--ink-900); }
.row h3 { font-size: 1.35rem; line-height: 1.15; }
.row h3 a { color: var(--text); text-decoration: none; }
.row h3 a::after { content: ""; position: absolute; inset: 0; }
.row h3 a:hover { text-decoration: underline; }
.row:has(a:focus-visible) { outline: 4px solid var(--focus); outline-offset: -6px; }
.row h3 a:focus-visible { outline: none; }
.row p { margin: .35rem 0 0; color: var(--text-muted); }
.row .meta { white-space: nowrap; padding-top: .3rem; }
@media (max-width: 640px) {
  .row { grid-template-columns: auto 1fr; }
  .row .meta { grid-column: 2; padding-top: 0; }
}

/* ---------- feature bento ---------- */
.bento { display: grid; gap: 1.75rem; }
@media (min-width: 1000px) { .bento { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.big-card .card-media { aspect-ratio: 16 / 10; }
.big-card .card-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink-900); color: var(--cream-50); border-top: var(--bw) solid var(--line); margin-top: 0; }
.site-foot a { color: var(--cream-50); }
.foot-top { display: grid; gap: 2.5rem; padding-block: 4rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr 1.6fr; } }
.foot-top h2 { font-size: 1.1rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; color: var(--yellow-400); }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.foot-top li a { display: inline-block; padding: .2rem 0; text-decoration: none; }
.foot-top li a:hover { text-decoration: underline; text-decoration-color: var(--pink-400); }
.foot-wordmark { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.5rem, 13vw, 11rem); line-height: .8; letter-spacing: -.06em; color: var(--yellow-400); padding-block: 1rem 2rem; border-top: var(--bw) solid var(--cream-50); overflow: hidden; white-space: nowrap; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.25rem 2rem; font-family: var(--font-mono); font-size: .9rem; color: #d9cdb8; }
.site-foot :focus-visible { outline-color: var(--yellow-400); }

/* ---------- forms ---------- */
.field { display: flex; flex-wrap: wrap; gap: .75rem; }
.input {
  flex: 1 1 220px; min-height: 52px; padding: .6rem .9rem;
  font: inherit; font-size: 1.05rem; color: var(--ink-900); background: #fff;
  border: var(--bw) solid var(--ink-900); border-radius: 0;
}
.input::placeholder { color: #6b6152; }
.form-msg { margin-top: .8rem; font-weight: 700; min-height: 1.6em; }

/* ---------- article ---------- */
.a-head .wrap { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.4rem; }
.a-head h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .93; letter-spacing: -.045em; max-width: 16ch; }
.a-head .lede { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 1.25rem 0 1.5rem; max-width: 44ch; }
.a-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.a-hero { margin-bottom: -4rem; position: relative; z-index: 2; background: var(--surface); padding: 12px; }
.a-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border: var(--bw) solid var(--ink-900); }
.a-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: 6.5rem 4rem; }
@media (min-width: 1100px) { .a-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 4rem; } }
.toc { align-self: start; background: var(--surface); }
@media (min-width: 1100px) { .toc { position: sticky; top: 100px; } }
.toc summary { list-style: none; cursor: pointer; padding: .9rem 1.1rem; font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; display: flex; justify-content: space-between; min-height: 48px; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.4rem; font-family: var(--font-display); }
.toc[open] summary::after { content: "–"; }
.toc[open] summary { border-bottom: var(--bw) solid var(--line); background: var(--yellow-400); color: var(--ink-900); }
.toc ol { list-style: none; margin: 0; padding: .6rem; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc ol a { display: flex; gap: .6rem; padding: .5rem .55rem; color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.3; border: var(--bw-thin) solid transparent; }
.toc ol a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: .875rem; padding-top: .15rem; color: var(--text-muted); }
.toc ol a:hover { border-color: var(--line); }
.toc a.is-active { background: var(--pink-400); color: var(--ink-900); border-color: var(--ink-900); }
.toc a.is-active::before { color: var(--ink-900); }
.toc-extra { padding: .2rem 1.1rem 1.1rem; display: grid; gap: .6rem; }

.prose { max-width: 70ch; font-size: 1.1875rem; line-height: 1.72; counter-reset: h2; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 { counter-increment: h2; font-size: clamp(2rem, 4vw, 2.75rem); margin-top: 3.75rem; display: flex; gap: .9rem; align-items: center; scroll-margin-top: 100px; }
.prose h2::before { content: counter(h2, decimal-leading-zero); font-size: 1.05rem; font-family: var(--font-mono); background: var(--yellow-400); color: var(--ink-900); border: var(--bw) solid var(--ink-900); box-shadow: 3px 3px 0 var(--shadow-color); padding: .35rem .5rem; flex: none; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose li + li { margin-top: .4rem; }
.prose li::marker { font-family: var(--font-mono); font-weight: 700; }
.prose :not(pre) > code { font-size: .9em; background: var(--surface-alt); border: var(--bw-thin) solid var(--line); padding: .05em .3em; }
.prose em { font-style: italic; }
.callout { position: relative; border: var(--bw) solid var(--ink-900); box-shadow: var(--sh-sm) var(--sh-sm) 0 var(--shadow-color); padding: 1.5rem 1.3rem 1.1rem; margin-top: 2rem !important; color: var(--ink-900); }
.callout .callout-tag { position: absolute; top: -1rem; left: 1rem; font-family: var(--font-mono); font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; background: var(--ink-900); color: var(--cream-50); padding: .25rem .55rem; }
.callout p { margin: 0; }
.callout a { color: var(--ink-900); }
.callout code { background: rgba(255, 255, 255, .6) !important; border-color: var(--ink-900) !important; color: var(--ink-900); }
.callout.why { background: var(--yellow-400); }
.callout.q { background: var(--pink-400); transform: rotate(-.6deg); }
.callout.note { background: var(--cyan-400); }
.callout.skill { background: var(--violet-400); }

.code {
  border: var(--bw) solid var(--line); box-shadow: var(--sh) var(--sh) 0 var(--shadow-color);
  background: #16140f; color: #f5ecdc; margin-top: 2rem !important;
}
@media (min-width: 1500px) { .prose .code { margin-right: -6rem; } }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .6rem .5rem .8rem; border-bottom: var(--bw) solid var(--line); background: #26221b; }
.code-bar .label { background: var(--yellow-400); color: var(--ink-900); border-color: var(--ink-900); }
.code pre { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: .95rem; line-height: 1.6; tab-size: 2; }
.code pre code { font-family: var(--font-mono); }
.code .copy { --btn-bg: #f5ecdc; --btn-fg: var(--ink-900); box-shadow: 3px 3px 0 var(--yellow-400); border-color: var(--ink-900); }
.code .copy.is-done { --btn-bg: var(--mint-400); }
/* prism tokens */
.token.comment { color: #b3a791; font-style: italic; }
.token.keyword, .token.module, .token.control-flow { color: #ff8fd0; }
.token.string, .token.template-string { color: #7ee8b0; }
.token.function { color: #ffd23f; }
.token.class-name, .token.builtin { color: #7fd6ff; }
.token.tag, .token.boolean, .token.number { color: #ff9a5a; }
.token.attr-name, .token.property { color: #b9a4ff; }
.token.punctuation, .token.operator { color: #e7dcc7; }

.post-foot { display: grid; gap: 2rem; margin-top: 4rem; }
.share { display: flex; flex-wrap: wrap; gap: .8rem; }
.news { padding: clamp(1.5rem, 4vw, 2.5rem); }
.news h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .6rem; }

/* ---------- tabs / filter pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill {
  min-height: 44px; padding: .45rem 1rem; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  background: var(--surface); color: var(--text); border: var(--bw) solid var(--line);
  box-shadow: 3px 3px 0 var(--shadow-color); transition: transform .12s ease, box-shadow .12s ease;
}
.pill:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow-color); }
.pill[aria-pressed="true"], .pill[aria-selected="true"] { background: var(--ink-900); color: var(--yellow-400); transform: translate(3px, 3px); box-shadow: none; border-color: var(--line); }
:root[data-theme="dark"] .pill[aria-pressed="true"], :root[data-theme="dark"] .pill[aria-selected="true"] { background: var(--yellow-400); color: var(--ink-900); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill[aria-pressed="true"], :root:not([data-theme="light"]) .pill[aria-selected="true"] { background: var(--yellow-400); color: var(--ink-900); }
}
.pill .count { font-family: var(--font-mono); font-size: .875rem; margin-left: .35rem; }

.toolbar { display: grid; gap: 1rem; padding: 1.25rem; background: var(--surface); margin-bottom: 2rem; }
.toolbar-row { display: flex; flex-wrap: wrap; gap: .8rem 1.25rem; align-items: center; justify-content: space-between; }
.select { min-height: 48px; font: inherit; font-weight: 700; padding: .4rem .7rem; border: var(--bw) solid var(--line); background: var(--surface); color: var(--text); border-radius: 0; }
.empty { padding: 2.5rem 1.5rem; text-align: center; }
.empty h3 { font-size: 2rem; margin-bottom: .5rem; }

/* ---------- patterns ---------- */
.p-card .p-top { display: flex; align-items: stretch; border-bottom: var(--bw) solid var(--line); }
.p-num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.05em; padding: .4rem 1rem; border-right: var(--bw) solid var(--ink-900); line-height: 1; display: grid; place-items: center; min-width: 5.2rem; }
.p-cat { display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding: .5rem .9rem; flex: 1; min-width: 0; }
.p-badge { align-self: flex-start; }
.badge-new { background: var(--pink-400); color: var(--ink-900); border-color: var(--ink-900); transform: rotate(-3deg); }
.badge-upd { background: var(--cyan-400); color: var(--ink-900); border-color: var(--ink-900); }
.three-ways { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.three-ways > div { padding: 1.3rem; }
.three-ways h3 { font-size: 1.7rem; margin-bottom: .4rem; }
.hero-art { position: relative; aspect-ratio: 4 / 3; background: var(--surface); overflow: hidden; }
.hero-art .shapes { position: absolute; inset: 0; }
.hero-art .photo-layer { position: absolute; inset: 0; background-size: cover; background-position: center; }

.panes { background: var(--surface); }
.pane-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; padding: .9rem; border-bottom: var(--bw) solid var(--line); background: var(--surface-alt); }
.pane-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.pane { padding: 1.25rem; }
.pane[hidden] { display: none; }
.pane pre { margin: 0; background: #16140f; color: #f5ecdc; border: var(--bw) solid var(--line); padding: 1rem 1.1rem; overflow-x: auto; font-size: .95rem; line-height: 1.6; }
.pane .note { margin-bottom: 1rem; padding: .9rem 1rem; }

/* hairline stat strip preview — pattern tokens, deliberately not brutalist */
.stage {
  --ground: #eef0f3; --p-surface: #ffffff; --p-border: #d2d8e0; --p-ink: #161b22; --p-dim: #56606e; --p-accent: #364f6a;
  --ok: #1c6e52; --warn: #7e610f; --bad: #a03227;
  background: var(--ground); color: var(--p-ink); padding: clamp(1rem, 3vw, 2rem); border: var(--bw) solid var(--line);
  font-family: var(--font-body); font-size: 1rem;
}
:root[data-theme="dark"] .stage { --ground: #10141a; --p-surface: #191f27; --p-border: #2c3743; --p-ink: #e6ecf3; --p-dim: #97a4b4; --p-accent: #6f92bd; --ok: #4fbe93; --warn: #ddb44a; --bad: #ee8579; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage { --ground: #10141a; --p-surface: #191f27; --p-border: #2c3743; --p-ink: #e6ecf3; --p-dim: #97a4b4; --p-accent: #6f92bd; --ok: #4fbe93; --warn: #ddb44a; --bad: #ee8579; } }
.stage .cap { color: var(--p-dim); margin: 0 0 .7rem; }
.hss-strip { display: grid; gap: 1px; background: var(--p-border); border: 1px solid var(--p-border); border-radius: 10px; overflow: hidden; grid-template-columns: 1fr; margin-bottom: 1.6rem; }
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 42rem) { .hss-strip { grid-template-columns: repeat(4, 1fr); } .hss-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hss-tile { background: var(--p-surface); padding: .85rem 1rem; display: flex; flex-direction: column; gap: .15rem; min-width: 0; text-align: left; border: 0; font: inherit; color: inherit; }
.hss-label { font-family: var(--font-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--p-dim); overflow-wrap: anywhere; }
.hss-fig { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.hss-fig.none { color: var(--p-dim); }
.hss-sub { font-size: .875rem; color: var(--p-dim); }
button.hss-tile { cursor: pointer; }
button.hss-tile:hover { background: color-mix(in srgb, var(--p-accent) 7%, var(--p-surface)); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--p-accent) 14%, var(--p-surface)); box-shadow: inset 0 -3px 0 var(--p-accent); }
button.hss-tile:focus-visible { outline: 3px solid var(--p-accent); outline-offset: -3px; }
.dl-list { list-style: none; margin: 0; padding: 0; background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 10px; }
.dl-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 1rem; border-top: 1px solid var(--p-border); }
.dl-list li:first-child { border-top: 0; }
.dl-list li[hidden] { display: none; }
.st { font-family: var(--font-mono); font-size: .875rem; white-space: nowrap; }
.st-done { color: var(--ok); } .st-failed { color: var(--bad); } .st-downloading { color: var(--p-accent); } .st-queued { color: var(--p-dim); }
.stage .status { margin: .8rem 0 0; color: var(--p-dim); }

/* ---------- misc layouts ---------- */
.split { display: grid; gap: 2rem; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split-3-2 { grid-template-columns: 3fr 2fr; } }
.panel { padding: clamp(1.5rem, 4vw, 2.5rem); }
.alt { display: grid; gap: 0; }
@media (min-width: 900px) { .alt { grid-template-columns: 1fr 1fr; } .alt.flip .alt-media { order: 2; } }
.alt-media { background: #16140f; border-bottom: var(--bw) solid var(--line); min-height: 240px; }
@media (min-width: 900px) { .alt-media { border-bottom: 0; border-right: var(--bw) solid var(--line); } .alt.flip .alt-media { border-right: 0; border-left: var(--bw) solid var(--line); } }
.alt-media img { width: 100%; height: 100%; object-fit: cover; }
.alt-body { padding: clamp(1.4rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: .9rem; }
.alt-body h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.jump { position: sticky; top: 76px; z-index: 40; background: var(--bg); border-bottom: var(--bw) solid var(--line); }
@media (max-width: 900px) { .jump { top: 68px; } }
.jump .wrap { display: flex; gap: .6rem; align-items: center; overflow-x: auto; padding-block: .75rem; scrollbar-width: thin; }
.jump .wrap > * { flex: none; }
.jump a.pill { text-decoration: none; display: inline-flex; align-items: center; }

.career { display: flex; flex-wrap: wrap; border: var(--bw) solid var(--line); box-shadow: var(--sh) var(--sh) 0 var(--shadow-color); }
.career > div { flex: 1 1 140px; padding: .8rem .9rem; border-right: var(--bw) solid var(--ink-900); border-bottom: var(--bw) solid var(--ink-900); margin: 0 -3px -3px 0; color: var(--ink-900); }
.career b { display: block; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.15; }
.career span { font-family: var(--font-mono); font-size: .875rem; }
.disclose summary { list-style: none; display: inline-flex; }
.disclose summary::-webkit-details-marker { display: none; }
.disclose[open] .show-label { display: none; }
.disclose:not([open]) .hide-label { display: none; }
.phases { display: grid; gap: 1.5rem; margin-top: 2rem; }
.phase { display: grid; gap: 1rem; padding: 1.4rem; background: var(--surface); }
@media (min-width: 800px) { .phase { grid-template-columns: 220px 1fr; } }
.phase h3 { font-size: 1.7rem; }
.phase ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.quotes { list-style: none; margin: 0; padding: 0; counter-reset: q; display: grid; gap: 1.1rem; }
.quotes li { counter-increment: q; display: flex; gap: 1rem; align-items: baseline; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; }
.quotes li::before { content: counter(q); font-family: var(--font-mono); font-size: 1rem; background: var(--yellow-400); color: var(--ink-900); padding: .15rem .5rem; border: var(--bw-thin) solid var(--yellow-400); flex: none; }
.skill-list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: .8rem 0 0; }
.skill-list li { border: var(--bw-thin) solid var(--ink-900); background: #fff; color: var(--ink-900); padding: .25rem .6rem; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .marquee-track { width: auto; flex-wrap: wrap; }
}

[hidden] { display: none !important; }
@media (min-width: 21rem) and (max-width: 41.99rem) { .hss-strip.five > :last-child { grid-column: span 2; } }

/* UI pattern library article */
.prose .prose-fig { margin-top: 2rem; margin-bottom: 2rem; overflow: hidden; }
.prose .prose-fig img { width: 100%; height: auto; display: block; }
.prose .callout p + p { margin-top: .8rem; }
.prose .live-pattern a.btn { white-space: normal; text-decoration: none; }
.prose p code { overflow-wrap: anywhere; }
