/* Organic Blobs — antjanus.com redesign 053
   Shapes come from 8-value border-radius (four elliptical corners),
   wave dividers are inline SVG paths, texture is an optional grain asset. */

:root {
  /* primitives */
  --cream-50: #fffaf1;
  --cream-100: #f5efe4;
  --cream-200: #ece3d3;
  --bark-900: #26241e;
  --bark-700: #3b382f;
  --bark-500: #5b5647;
  --moss-700: #3e5b3a;
  --moss-200: #dce5cc;
  --clay-700: #9a4424;
  --clay-200: #f1d6c2;
  --ochre-400: #c8913a;
  --ochre-200: #f2e0b5;
  --river-700: #364f6a;
  --river-200: #d5dfe9;
  --forest-950: #141913;
  --forest-900: #1d241b;
  --forest-800: #273025;
  --forest-700: #34402f;
  --linen-100: #f1eadb;
  --linen-300: #d8d0be;
  --linen-500: #aba38f;
  --moss-300: #a6c790;
  --clay-300: #ec9c76;
  --ochre-300: #e6bd6a;
  --river-300: #9dbcdd;

  /* semantic */
  --ground: var(--cream-100);
  --surface: var(--cream-50);
  --surface-2: var(--cream-200);
  --ink: var(--bark-900);
  --text: var(--bark-700);
  --muted: var(--bark-500);
  --line: #d9ceb9;
  --moss: var(--moss-700);
  --moss-soft: var(--moss-200);
  --clay: var(--clay-700);
  --clay-soft: var(--clay-200);
  --ochre: var(--ochre-400);
  --ochre-soft: var(--ochre-200);
  --river: var(--river-700);
  --river-soft: var(--river-200);
  --link: var(--river-700);
  --action: var(--moss-700);
  --on-action: var(--cream-50);
  --deep: #22301f;
  --on-deep: #f1eadb;
  --on-deep-muted: #c9c1ab;
  --code-bg: #2a2620;
  --code-ink: #efe6d2;
  --shadow: 0 1px 0 rgba(60, 50, 30, .06), 0 18px 40px -22px rgba(60, 50, 30, .35);
  --focus: #1f4f8f;

  /* shapes */
  --blob-a: 62% 38% 46% 54% / 44% 52% 48% 56%;
  --blob-b: 38% 62% 63% 37% / 41% 44% 56% 59%;
  --blob-c: 54% 46% 38% 62% / 49% 70% 30% 51%;
  --blob-d: 45% 55% 52% 48% / 58% 42% 58% 42%;
  --pebble-a: 2.4rem 1.1rem 2.8rem 1.4rem / 1.8rem 2.6rem 1.2rem 2.2rem;
  --pebble-b: 1.2rem 2.8rem 1.6rem 2.4rem / 2.2rem 1.4rem 2.6rem 1.2rem;
  --pebble-c: 2rem 2rem 1rem 2.6rem / 1.4rem 2.4rem 2.2rem 1.6rem;
  --pill: 999px 820px 999px 760px / 760px 999px 820px 999px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, monospace;
  --max: 1240px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ground: var(--forest-950);
  --surface: var(--forest-900);
  --surface-2: var(--forest-800);
  --ink: var(--linen-100);
  --text: var(--linen-300);
  --muted: var(--linen-500);
  --line: #3a4535;
  --moss: var(--moss-300);
  --moss-soft: #2b3a27;
  --clay: var(--clay-300);
  --clay-soft: #3e2a20;
  --ochre: var(--ochre-300);
  --ochre-soft: #3a321d;
  --river: var(--river-300);
  --river-soft: #213041;
  --link: var(--river-300);
  --action: var(--moss-300);
  --on-action: #172014;
  --deep: #0e130d;
  --on-deep: #f1eadb;
  --on-deep-muted: #b9b19c;
  --code-bg: #0f120e;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .8);
  --focus: #ffd98a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.125rem/1.65 var(--font-body);
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: url("assets/paper-grain.png");
  background-size: 480px;
  opacity: .35;
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] body::before { mix-blend-mode: soft-light; opacity: .25; }
body > * { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 560; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--surface); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: .5rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 900px) { .wrap { padding: 0 2rem; } }
.eyebrow {
  font: 500 .875rem/1.3 var(--font-mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--clay);
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 .8rem;
}
.eyebrow::before { content: ""; width: .8rem; height: .65rem; background: currentColor; border-radius: var(--blob-a); }
.lede { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; color: var(--text); max-width: 38ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav ---------- */
.site-head { position: sticky; top: 0; z-index: 50; padding: .75rem 0; }
.nav-shell {
  max-width: var(--max); margin: 0 auto; padding: 0 1rem;
}
.nav {
  display: flex; align-items: center; gap: 1rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: .45rem .6rem .45rem 1rem;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-words small { font: 500 .8125rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.brand-words strong { font: 650 1.2rem/1.1 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--moss); }
.nav-links { display: flex; gap: .15rem; list-style: none; margin: 0 0 0 auto; padding: 0; align-items: center; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  color: var(--text); text-decoration: none; font-weight: 650; font-size: 1rem;
  border-radius: var(--blob-d);
  transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--moss-soft); color: var(--ink); }
.nav-links a.ai-pill { background: var(--moss); color: var(--on-action); border-radius: var(--blob-b); padding: 0 1.1rem; margin-left: .3rem; }
.nav-links a.ai-pill:hover { background: var(--clay); color: var(--on-action); }
.nav-links a.ai-pill[aria-current="page"] { outline: 2px solid var(--clay); outline-offset: 2px; }
.nav-search { display: flex; align-items: center; gap: .3rem; }
.nav-search input {
  width: 9.5rem; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 1rem; border-radius: var(--pill);
}
.nav-search input::placeholder { color: var(--muted); }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; flex: none;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  border-radius: var(--blob-c); cursor: pointer; transition: border-radius .4s ease, background-color .15s;
}
.icon-btn:hover { border-radius: var(--blob-a); background: var(--ochre-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-btn { display: none; }
.mobile-menu { display: none; }
@media (max-width: 1080px) { .nav-search { display: none; } }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; margin-left: auto; }
  .nav .theme-toggle { order: 3; }
  .mobile-menu[data-open="true"] {
    display: block; margin-top: .6rem;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--pebble-a); padding: 1rem; box-shadow: var(--shadow);
  }
  .mobile-menu ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .25rem; }
  .mobile-menu a { display: flex; min-height: 48px; align-items: center; padding: 0 1rem; text-decoration: none; color: var(--ink); font-weight: 700; border-radius: var(--pebble-b); }
  .mobile-menu a[aria-current="page"] { background: var(--moss-soft); }
  .mobile-menu form { display: flex; gap: .5rem; }
  .mobile-menu input { flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; border-radius: var(--pill); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.5rem;
  font: 750 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--pebble-a);
  transition: border-radius .35s ease, transform .15s ease, background-color .15s ease;
}
.btn:hover { border-radius: var(--pebble-b); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--ink); color: var(--ground); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ochre-soft); }
.btn-quiet { color: var(--link); padding-left: .4rem; padding-right: .4rem; text-decoration: underline; text-underline-offset: .25em; font-weight: 650; }
.btn-clay { background: var(--clay); color: var(--on-action); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

/* ---------- shape helpers ---------- */
.blob-img { border-radius: var(--blob-a); overflow: hidden; background: var(--moss-soft); }
.blob-img img { width: 100%; height: 100%; object-fit: cover; }
.morph { animation: morph 18s ease-in-out infinite alternate; }
.morph-slow { animation: morph 26s ease-in-out infinite alternate-reverse; }
@keyframes morph {
  0% { border-radius: var(--blob-a); }
  33% { border-radius: var(--blob-b); }
  66% { border-radius: var(--blob-c); }
  100% { border-radius: var(--blob-d); }
}
.float { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) rotate(0); } to { transform: translate(12px, -16px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.deco { position: absolute; pointer-events: none; z-index: 0; }
.stone { position: absolute; border-radius: var(--blob-b); }

.wave { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.wave path { fill: var(--band, var(--moss-soft)); }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 6rem) 0; position: relative; }
.band { background: var(--band); }
.band-moss { --band: var(--moss-soft); }
.band-clay { --band: var(--clay-soft); }
.band-ochre { --band: var(--ochre-soft); }
.band-river { --band: var(--river-soft); }
.band-deep { --band: var(--deep); color: var(--on-deep-muted); }
.band-deep h2, .band-deep h3 { color: var(--on-deep); }
.band-deep a { color: var(--ochre-300); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: .4rem 0 0; color: var(--muted); font-size: 1.15rem; }
.more-link { font-weight: 750; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; }
.more-link:hover { text-decoration: underline; }

/* ---------- hero (home) ---------- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 2rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }
.hero h1 { max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--moss); font-weight: 450; }
.hero .lede { margin-bottom: 2rem; }
.portrait-stage { position: relative; aspect-ratio: 1 / 1.02; max-width: 580px; width: 100%; margin: 0 auto; }
.portrait-stage .blob-img { position: absolute; inset: 6% 4% 4% 8%; z-index: 2; box-shadow: var(--shadow); }
.portrait-stage .blob-img img { object-position: 22% 30%; }
.portrait-stage .s1 { width: 44%; height: 40%; background: var(--ochre); top: 0; right: 0; z-index: 1; opacity: .85; }
.portrait-stage .s2 { width: 36%; height: 34%; background: var(--moss); bottom: 0; left: 0; z-index: 1; border-radius: var(--blob-c); }
.portrait-stage .s3 { width: 16%; height: 15%; background: var(--clay); bottom: 8%; right: 4%; z-index: 3; border-radius: var(--blob-d); }
.stats { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2.2rem 0 0; padding: 0; list-style: none; }
.stat {
  display: grid; place-content: center; text-align: center;
  min-width: 8.2rem; padding: 1.1rem 1.3rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--blob-a);
}
.stat:nth-child(2) { border-radius: var(--blob-b); background: var(--moss-soft); transform: translateY(.6rem); }
.stat:nth-child(3) { border-radius: var(--blob-c); background: var(--ochre-soft); }
.stat b { font: 600 2rem/1 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink); }
.stat span { font-size: .9375rem; color: var(--text); font-weight: 650; margin-top: .3rem; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--pebble-a); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transition: border-radius .45s ease, transform .2s ease, box-shadow .2s ease;
}
.card:nth-child(3n+2) { border-radius: var(--pebble-b); }
.card:nth-child(3n) { border-radius: var(--pebble-c); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card:focus-within { box-shadow: 0 0 0 3px var(--focus); }
.card-media { aspect-ratio: 16 / 9; background: var(--moss-soft); overflow: hidden; margin: .7rem .7rem 0; border-radius: var(--pebble-b); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { font-size: 1.35rem; margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:focus-visible { outline: none; }
.card p { margin: 0; color: var(--text); font-size: 1.0625rem; }
.card .meta { font: 500 .875rem/1.3 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.card .foot { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 900px) {
  .stagger > :nth-child(3n+2) { transform: translateY(2.2rem); }
  .stagger > :nth-child(3n+2):hover { transform: translateY(calc(2.2rem - 3px)); }
  .stagger { padding-bottom: 2.2rem; }
}

.tag {
  display: inline-flex; align-items: center; min-height: 30px; padding: .1rem .75rem;
  font: 500 .875rem/1.2 var(--font-mono); color: var(--ink);
  background: var(--surface-2); border-radius: var(--blob-d); text-decoration: none;
  position: relative; z-index: 2;
}
a.tag:hover { background: var(--ochre-soft); }
.badge { display: inline-flex; padding: .15rem .65rem; font: 600 .8125rem/1.4 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; border-radius: var(--blob-b); }
.badge-new { background: var(--clay); color: var(--on-action); }
.badge-updated { background: var(--river-soft); color: var(--ink); border: 1px solid var(--river); }
.badge-moss { background: var(--moss-soft); color: var(--ink); }
.badge-ochre { background: var(--ochre-soft); color: var(--ink); }

/* lead + list */
.lead-list { display: grid; gap: 2rem; }
@media (min-width: 960px) { .lead-list { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.lead .card-media { aspect-ratio: 4 / 3; border-radius: var(--blob-a); margin: 1rem; }
.lead h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.row-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.row {
  display: grid; grid-template-columns: 92px 1fr; gap: 1.1rem; align-items: center;
  padding: .8rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--pebble-b); position: relative; transition: transform .2s ease, border-radius .4s ease;
}
.row:nth-child(even) { border-radius: var(--pebble-c); margin-left: clamp(0rem, 3vw, 2.2rem); }
.row:hover { transform: translateX(4px); }
.row:focus-within { box-shadow: 0 0 0 3px var(--focus); }
.row .thumb { width: 92px; height: 80px; border-radius: var(--blob-c); overflow: hidden; background: var(--ochre-soft); }
.row:nth-child(3n+1) .thumb { border-radius: var(--blob-a); }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row h3 { font-size: 1.2rem; margin: 0 0 .2rem; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a::after { content: ""; position: absolute; inset: 0; }
.row p { margin: 0; font-size: 1rem; color: var(--muted); }
.row .meta { font: 500 .875rem/1.3 var(--font-mono); color: var(--muted); }
.thumb-glyph { width: 100%; height: 100%; display: grid; place-items: center; font: 600 1.6rem/1 var(--font-display); color: var(--moss); }

/* garden list (text-only rows) */
.garden { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.garden li { position: relative; display: grid; grid-template-columns: 7.5rem 1fr; gap: .4rem 1.5rem; padding: 1.3rem 0; border-top: 2px dotted var(--line); }
.garden li:last-child { border-bottom: 2px dotted var(--line); }
.garden time { font: 500 .9375rem/1.4 var(--font-mono); color: var(--clay); padding-top: .3rem; }
.garden h3 { margin: 0 0 .25rem; font-size: 1.35rem; }
.garden h3 a { color: var(--ink); text-decoration: none; }
.garden h3 a:hover { text-decoration: underline; }
.garden p { margin: 0; color: var(--text); }
.garden .coll { font: 500 .875rem/1.3 var(--font-mono); color: var(--muted); }
@media (max-width: 600px) { .garden li { grid-template-columns: 1fr; } }

/* stones (experiments) */
.stones { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.stone-card {
  position: relative; padding: 2.2rem 1.8rem 2rem; min-height: 16rem;
  background: var(--surface); border-radius: var(--blob-a);
  display: flex; flex-direction: column; justify-content: center; gap: .5rem; text-align: center;
  transition: border-radius .6s ease, transform .2s ease;
}
.stone-card:nth-child(2) { border-radius: var(--blob-b); background: var(--moss-soft); }
.stone-card:nth-child(3) { border-radius: var(--blob-c); background: var(--ochre-soft); }
.stone-card:nth-child(4) { border-radius: var(--blob-d); background: var(--clay-soft); }
.stone-card:hover { border-radius: var(--blob-c); transform: rotate(-1.5deg); }
.stone-card:nth-child(even):hover { border-radius: var(--blob-a); transform: rotate(1.5deg); }
.stone-card:focus-within { box-shadow: 0 0 0 3px var(--focus); }
.stone-card h3 { margin: 0; font-size: 1.3rem; }
.stone-card h3 a { color: var(--ink); text-decoration: none; }
.stone-card h3 a::after { content: ""; position: absolute; inset: 0; }
.stone-card p { margin: 0; font-size: 1rem; }
.stone-card .glyph { width: 52px; height: 52px; margin: 0 auto .3rem; display: grid; place-items: center; background: var(--ground); border-radius: var(--blob-d); color: var(--moss); }
.stone-card .badge { align-self: center; }

/* page heads */
.page-head { padding: clamp(2rem, 5vw, 4rem) 0 1rem; }
.page-head-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .page-head-grid { grid-template-columns: 1.2fr .8fr; } }
.page-head .art { position: relative; aspect-ratio: 5 / 4; max-width: 460px; width: 100%; justify-self: center; }
.page-head .art .blob-img { position: absolute; inset: 0 0 6% 6%; z-index: 2; }
.page-head .art .stone { z-index: 1; }

/* jump pills */
.jump { position: sticky; top: 5.4rem; z-index: 20; padding: .6rem 0; }
.jump-inner { display: flex; gap: .5rem; overflow-x: auto; padding: .4rem; background: color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter: blur(8px); border-radius: var(--pill); scrollbar-width: none; }
.jump a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--blob-d); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1rem; }
.jump a:hover { background: var(--moss-soft); }
.jump a span { color: var(--muted); font-weight: 500; margin-left: .35rem; }
.jump .label { align-self: center; font: 500 .875rem var(--font-mono); color: var(--muted); padding: 0 .4rem 0 .6rem; text-transform: uppercase; flex: none; }

/* feature blob */
.feature {
  position: relative; display: grid; gap: 2rem; padding: clamp(1.6rem, 4vw, 3.4rem);
  background: var(--deep); color: var(--on-deep-muted);
  border-radius: 3.5rem 1.5rem 4rem 2rem / 2rem 3.5rem 1.8rem 4rem;
}
.feature h2, .feature h3 { color: var(--on-deep); }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; align-items: center; } }
.feature .blob-img { aspect-ratio: 4 / 3; }
.feature .btn-primary { background: var(--ochre-300); color: #231d10; }
.feature .btn-primary:hover { background: var(--on-deep); color: #231d10; }
.pebble-stats { display: flex; flex-wrap: wrap; gap: .8rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.pebble-stats li { padding: .8rem 1.2rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--blob-a); display: grid; min-width: 7rem; text-align: center; }
.pebble-stats li:nth-child(2) { border-radius: var(--blob-b); }
.pebble-stats li:nth-child(3) { border-radius: var(--blob-c); }
.pebble-stats b { font: 600 1.8rem/1.1 var(--font-display); color: var(--on-deep); }
.pebble-stats span { font-size: .9375rem; }

/* alternating landscape */
.landscape { display: grid; gap: 1.6rem 3rem; align-items: center; padding: 2rem 0; }
@media (min-width: 900px) {
  .landscape { grid-template-columns: 1fr 1.1fr; }
  .landscape:nth-child(even) .blob-img { order: 2; }
}
.landscape .blob-img { aspect-ratio: 16 / 10; background: var(--deep); }
.landscape:nth-child(2) .blob-img { border-radius: var(--blob-b); }
.landscape:nth-child(3) .blob-img { border-radius: var(--blob-c); }
.landscape:nth-child(4) .blob-img { border-radius: var(--blob-d); }
.landscape .blob-img img { object-fit: contain; background: #1b1b1b; }
.landscape .blob-img.cover img { object-fit: cover; }
.landscape h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.landscape h3 a { color: var(--ink); text-decoration: none; }
.landscape h3 a:hover { text-decoration: underline; }
.kv { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }

/* bottom trio */
.trio { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .trio { grid-template-columns: 1fr 1fr 1.2fr; align-items: stretch; } }
.trio .card { padding: 1.8rem; }
.link-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; }
.link-list a { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: .35rem .9rem; border-radius: var(--pebble-b); color: var(--ink); font-weight: 700; text-decoration: none; }
.link-list a:hover { background: var(--surface-2); }
.link-list small { font-weight: 500; color: var(--muted); font-size: .9375rem; }
.work-blob {
  background: var(--clay); color: #fff7ee; padding: 2.4rem 2.2rem;
  border-radius: var(--blob-b); display: flex; flex-direction: column; justify-content: center; gap: .8rem; min-height: 18rem;
}
:root[data-theme="dark"] .work-blob { background: #8f3f22; }
.work-blob h3 { color: #fff7ee; font-size: 1.8rem; margin: 0; }
.work-blob .btn { background: #fff7ee; color: #6d2d16; align-self: flex-start; }
.work-blob .btn:hover { background: var(--ochre-300); }

/* forms */
.field { display: flex; flex-wrap: wrap; gap: .6rem; }
.field input[type="email"], .field input[type="search"], .input {
  flex: 1 1 14rem; min-width: 0; min-height: 50px; padding: 0 1.2rem;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--pill);
}
.field input:focus-visible, .input:focus-visible { border-color: var(--moss); }
.form-note { font-size: 1rem; margin-top: .6rem; }
.form-note[data-state="success"] { color: var(--moss); font-weight: 700; }
.form-note[data-state="error"] { color: var(--clay); font-weight: 700; }

/* footer */
.site-foot { --band: var(--deep); margin-top: 4rem; color: var(--on-deep-muted); }
.site-foot .wave path { fill: var(--deep); }
.foot-body { background: var(--deep); padding: 2rem 0 2.5rem; }
.foot-grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.3fr .8fr .8fr 1.4fr; } }
.site-foot h2 { font-size: 1.15rem; color: var(--on-deep); font-family: var(--font-mono); font-variation-settings: normal; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.site-foot a { color: var(--on-deep); text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.site-foot a:hover { text-decoration: underline; color: var(--ochre-300); }
.site-foot .brand strong { color: var(--moss-300); }
.site-foot .brand small { color: var(--on-deep-muted); }
.site-foot .field input { background: rgba(255, 255, 255, .08); color: var(--on-deep); border-color: rgba(255, 255, 255, .25); }
.site-foot .field input::placeholder { color: #b9b19c; }
.site-foot .btn-primary { background: var(--ochre-300); color: #231d10; }
.site-foot .form-note[data-state="success"] { color: var(--moss-300); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 1rem; }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 60; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--moss), var(--ochre), var(--clay)); border-radius: 0 999px 999px 0; }
.progress-pct { position: fixed; right: .8rem; top: .7rem; z-index: 61; font: 500 .875rem var(--font-mono); background: var(--surface); color: var(--ink); padding: .2rem .6rem; border-radius: var(--blob-d); border: 1px solid var(--line); opacity: 0; transition: opacity .2s; }
.progress-pct.show { opacity: 1; }
.art-hero { padding: 1.5rem 0 0; }
.art-hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .art-hero-grid { grid-template-columns: 1.15fr .85fr; } }
.art-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 16ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; font-weight: 700; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.art-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; font: 500 .9375rem/1.4 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 1.4rem; }
.art-hero .blob-img { aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: center; }
.art-layout { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 1180px) { .art-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 4rem; } }
.toc-side { display: none; }
@media (min-width: 1180px) {
  .toc-side { display: block; }
  .toc-side nav { position: sticky; top: 7rem; padding: 1.5rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pebble-a); }
  .toc-mobile { display: none; }
}
.toc-title { font: 500 .875rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--clay); margin: 0 0 .7rem; }
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.toc-list a { display: flex; gap: .6rem; align-items: center; padding: .45rem .7rem; min-height: 40px; border-radius: var(--pebble-b); color: var(--text); text-decoration: none; font-size: 1rem; line-height: 1.3; font-weight: 600; }
.toc-list a::before { content: ""; flex: none; width: .55rem; height: .5rem; border-radius: var(--blob-a); background: var(--line); transition: background .2s, transform .2s; }
.toc-list a:hover { background: var(--surface-2); }
.toc-list a.active { background: var(--moss-soft); color: var(--ink); }
.toc-list a.active::before { background: var(--moss); transform: scale(1.5); }
.toc-mobile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--pebble-b); padding: .2rem 1.2rem; margin-bottom: 2rem; }
.toc-mobile summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font: 500 .9375rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.toc-mobile[open] { padding-bottom: 1rem; }

.prose { max-width: 42rem; font-size: 1.1875rem; line-height: 1.75; }
.prose > * { margin-top: 0; margin-bottom: 1.3rem; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-top: 3.4rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .8rem; }
.prose h2::before { content: ""; flex: none; width: 1.1rem; height: 1rem; background: var(--ochre); border-radius: var(--blob-b); }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--clay); font-weight: 700; }
.prose code:not(pre code) { font-family: var(--font-mono); font-size: .92em; background: var(--surface-2); padding: .1em .4em; border-radius: .4em .6em .5em .7em; color: var(--ink); }
.prose .wide { max-width: none; }
@media (min-width: 1180px) { .prose .wide { margin-right: -6rem; } }
.code {
  background: var(--code-bg); color: var(--code-ink);
  border-radius: 1.6rem 1rem 2rem 1.2rem / 1.2rem 1.8rem 1rem 2rem; overflow: hidden;
}
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: .5rem .6rem .5rem 1.3rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.code-bar .lang { font: 500 .875rem var(--font-mono); letter-spacing: .08em; color: #e6bd6a; text-transform: uppercase; }
.copy-btn { min-height: 40px; padding: 0 1rem; background: rgba(255, 255, 255, .1); color: #f1eadb; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--blob-d); font: 600 .9375rem var(--font-body); cursor: pointer; }
.copy-btn:hover { background: rgba(255, 255, 255, .2); }
.code pre { margin: 0; padding: 1.2rem 1.4rem 1.4rem; overflow-x: auto; font: 400 .9375rem/1.65 var(--font-mono); tab-size: 2; }
.code pre code { font: inherit; background: none; padding: 0; color: inherit; }
.token.comment { color: #a89f8a; font-style: italic; }
.token.keyword, .token.operator { color: #f0a07c; }
.token.string, .token.template-string { color: #b8d49a; }
.token.function { color: #f2cc7a; }
.token.class-name, .token.builtin { color: #9fc4e8; }
.token.punctuation { color: #cfc6b2; }
.token.tag { color: #f0a07c; }
.token.attr-name { color: #f2cc7a; }
.token.number, .token.boolean { color: #e3a8d6; }
.callout { position: relative; padding: 1.3rem 1.5rem 1.3rem 4.3rem; border-radius: var(--pebble-a); background: var(--surface); border: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.65; }
.callout p { margin: 0; }
.callout::before { content: ""; position: absolute; left: 1.2rem; top: 1.25rem; width: 2rem; height: 1.9rem; border-radius: var(--blob-a); background: var(--line); }
.callout .label { display: block; font: 500 .875rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; color: var(--ink); }
.callout-skill { background: var(--river-soft); border-color: transparent; }
.callout-skill::before { background: var(--river); }
.callout-note { background: var(--surface-2); border-color: transparent; }
.callout-note::before { background: var(--muted); border-radius: var(--blob-c); }
.callout-why { background: var(--moss-soft); border-color: transparent; border-radius: var(--pebble-b); }
.callout-why::before { background: var(--moss); border-radius: 0 100% 0 100%; transform: rotate(-10deg); }
.callout-q { background: var(--ochre-soft); border-color: transparent; border-radius: var(--pebble-c); }
.callout-q::before { background: var(--ochre); border-radius: 50% 50% 50% 8%; }
.art-end { max-width: 42rem; }
.filed { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 2.5rem 0 1rem; }
.filed .label { font: 500 .875rem var(--font-mono); text-transform: uppercase; color: var(--muted); margin-right: .4rem; }
.share-zone { margin-top: 3rem; padding: 2rem; background: var(--surface-2); border-radius: var(--pebble-c); display: grid; gap: 1.4rem; }
.share-zone h2 { font-size: 1.4rem; margin: 0; }
.news-blob {
  background: var(--moss); color: var(--on-action); padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 3.2rem 1.6rem 3.6rem 2rem / 2.2rem 3.4rem 1.6rem 3rem;
}
.news-blob h2, .news-blob h3 { color: var(--on-action); }
.news-blob p { color: var(--on-action); }
.news-blob .field input { background: var(--surface); }
.news-blob .btn-primary { background: var(--ochre-300); color: #231d10; }
.news-blob .btn-primary:hover { background: var(--surface); color: var(--ink); }
.news-blob .form-note[data-state="success"] { color: var(--on-action); }

/* ---------- patterns ---------- */
.three-ways { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 1.5rem 0; }
.way { padding: 1.6rem; background: var(--surface); border-radius: var(--blob-a); border: 1px solid var(--line); }
.way:nth-child(2) { border-radius: var(--blob-b); background: var(--moss-soft); border-color: transparent; }
.way:nth-child(3) { border-radius: var(--blob-c); background: var(--ochre-soft); border-color: transparent; }
.way h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.way p { margin: 0; font-size: 1.0625rem; }
.filters { display: grid; gap: 1rem; margin: 2rem 0 1.5rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-row button {
  min-height: 44px; padding: 0 1.1rem; font: 700 1rem var(--font-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--blob-d); cursor: pointer;
}
.pill-row button:hover { background: var(--surface-2); }
.pill-row button[aria-pressed="true"] { background: var(--moss); color: var(--on-action); border-color: var(--moss); border-radius: var(--blob-b); }
.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; }
.result-bar output { font-weight: 700; color: var(--ink); }
.result-bar select { min-height: 44px; padding: 0 1rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); }
.linkish { background: none; border: 0; color: var(--link); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 44px; }
.pcard .specimen { height: 200px; margin: .7rem .7rem 0; border-radius: var(--pebble-b); display: grid; place-items: center; background: var(--surface-2); overflow: hidden; }
.pcard .specimen svg { width: 78%; height: 80%; }
.pcard[data-cat="Layout"] .specimen { background: var(--moss-soft); }
.pcard[data-cat="Interaction"] .specimen { background: var(--ochre-soft); }
.pcard[data-cat="Forms"] .specimen { background: var(--clay-soft); }
.pcard[data-cat="Color"] .specimen { background: var(--river-soft); }
.pcard .row-top { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pcard .good { font-size: 1rem; color: var(--text); }
.empty { text-align: center; padding: 3rem 1rem; background: var(--surface); border-radius: var(--blob-a); max-width: 560px; margin: 2rem auto; }
.empty h2 { font-size: 1.6rem; }

.detail { max-width: 1060px; }
.back { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; text-decoration: none; }
.back:hover { text-decoration: underline; }
.uses { columns: 2 16rem; margin: 0 0 1.4rem; padding-left: 1.3rem; }
.uses li { margin-bottom: .35rem; break-inside: avoid; }
.panes { margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 2.2rem 1.4rem 2.6rem 1.6rem / 1.6rem 2.4rem 1.4rem 2.4rem; overflow: hidden; }
.panes-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding: .7rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tabs { display: flex; flex-wrap: wrap; gap: .3rem; }
.tabs [role="tab"] { min-height: 44px; padding: 0 1rem; font: 700 1rem var(--font-body); color: var(--text); background: transparent; border: 0; border-radius: var(--blob-d); cursor: pointer; }
.tabs [role="tab"]:hover { background: var(--surface); }
.tabs [role="tab"][aria-selected="true"] { background: var(--moss); color: var(--on-action); border-radius: var(--blob-b); }
.pane-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.pane-actions button { min-height: 44px; padding: 0 1rem; font: 700 .9375rem var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--blob-d); cursor: pointer; }
.pane-actions button:hover { background: var(--ochre-soft); }
[role="tabpanel"] { padding: clamp(1rem, 3vw, 2rem); }
[role="tabpanel"] pre { margin: 0; overflow-x: auto; font: 400 .9375rem/1.6 var(--font-mono); background: var(--code-bg); color: var(--code-ink); padding: 1.2rem; border-radius: 1.2rem .8rem 1.4rem 1rem; white-space: pre; }
.pane-note { padding: .9rem 1.2rem; background: var(--river-soft); border-radius: var(--pebble-b); margin-bottom: 1rem; font-size: 1.0625rem; }
.prompt-text { max-width: 44rem; font-size: 1.125rem; }
.stage { background: var(--ground); padding: clamp(1rem, 3vw, 2rem); border-radius: 1.4rem; }

/* the demo pattern: hairline stat strip, drawn in this site's palette */
.hss-cap { font-size: 1rem; color: var(--muted); margin: 0 0 .8rem; }
.hss-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 42rem) { .hss-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 52rem) { .hss-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hss-tile { background: var(--surface); padding: 1rem 1.1rem; display: grid; gap: .2rem; min-width: 0; text-align: left; font: inherit; color: inherit; border: 0; }
.hss-tile .l { font: 500 .8125rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); overflow-wrap: anywhere; }
.hss-tile .v { font: 700 1.6rem/1.15 var(--font-body); font-variant-numeric: tabular-nums; color: var(--ink); }
.hss-tile .v.none { color: var(--muted); font-weight: 400; }
.hss-tile .s { font-size: .9375rem; color: var(--muted); }
button.hss-tile { cursor: pointer; }
button.hss-tile:hover { background: var(--surface-2); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--moss) 16%, var(--surface)); box-shadow: inset 0 -4px 0 var(--moss); }
button.hss-tile:focus-visible { outline-offset: -4px; }
.hss-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.hss-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-top: 1px solid var(--line); font-size: 1.0625rem; }
.hss-list li:first-child { border-top: 0; }
.hss-list li[hidden] { display: none; }
.status { font: 500 .875rem var(--font-mono); padding: .1rem .6rem; border-radius: var(--blob-d); background: var(--surface-2); color: var(--ink); white-space: nowrap; align-self: center; }
.status[data-s="Done"] { background: var(--moss-soft); }
.status[data-s="Failed"] { background: var(--clay-soft); }
.status[data-s="Downloading"] { background: var(--river-soft); }
.status[data-s="Queued"] { background: var(--ochre-soft); }
.hss-status { margin-top: .8rem; font-size: 1rem; color: var(--text); }

/* ---------- about ---------- */
.career { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.5rem 0 2.5rem; padding: 0; }
.career li { padding: .6rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--blob-a); display: grid; }
.career li:nth-child(odd) { border-radius: var(--blob-c); }
.career li:first-child { background: var(--moss); color: var(--on-action); border-color: var(--moss); }
.career li:first-child span { color: var(--on-action); }
.career b { color: inherit; font-size: 1.0625rem; }
.career span { font: 500 .875rem var(--font-mono); color: var(--muted); }
.phases { display: grid; gap: 1.4rem; position: relative; }
.phase { display: grid; gap: .3rem 2rem; padding: 1.6rem 1.8rem; background: var(--surface); border-radius: var(--pebble-a); border: 1px solid var(--line); }
.phase:nth-child(even) { border-radius: var(--pebble-b); margin-left: clamp(0rem, 4vw, 3rem); }
@media (min-width: 900px) { .phase { grid-template-columns: 12rem 1fr; } }
.phase .when { font: 500 .9375rem var(--font-mono); color: var(--clay); }
.phase h3 { margin: 0 0 .3rem; }
.phase ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.phase li { margin-bottom: .3rem; }
details.history > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.history > summary::-webkit-details-marker { display: none; }
details.history[open] > summary .show { display: none; }
details.history:not([open]) > summary .hide { display: none; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: p; }
.principles li { counter-increment: p; font: italic 400 clamp(1.3rem, 2.4vw, 1.75rem)/1.35 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--on-deep); display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.principles li::before { content: counter(p); font: 600 1.1rem/2.6rem var(--font-mono); font-style: normal; text-align: center; width: 2.6rem; height: 2.6rem; background: var(--ochre-300); color: #231d10; border-radius: var(--blob-a); }
.principles li:nth-child(even)::before { border-radius: var(--blob-c); background: var(--moss-300); }
.cap-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.cap { padding: 1.6rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--pebble-a); }
.cap:nth-child(even) { border-radius: var(--pebble-b); }
.cap h3 { font-size: 1.3rem; }
.cap p { color: var(--on-deep-muted); font-size: 1.0625rem; }
.cap ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.cap li { padding: .25rem .7rem; font-size: .9375rem; background: rgba(255, 255, 255, .1); color: var(--on-deep); border-radius: var(--blob-d); }
.beyond { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .beyond { grid-template-columns: .9fr 1.1fr; } }
.beyond .blob-img { aspect-ratio: 4 / 5; max-width: 440px; width: 100%; justify-self: center; }
.beyond .blob-img img { object-position: 50% 30%; }
.beyond dl { margin: 0; display: grid; gap: 1.3rem; }
.beyond dt { font: 600 1.35rem/1.2 var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink); }
.beyond dd { margin: .3rem 0 0; }

.notice { padding: 1.1rem 1.4rem; background: var(--ochre-soft); border-radius: var(--pebble-b); font-size: 1.0625rem; }
.consult { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding: 1.4rem 1.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); }
@media (max-width: 700px) { .consult { border-radius: var(--pebble-a); } }
.consult p { margin: 0; font-size: 1.15rem; color: var(--ink); font-weight: 650; }
.story { display: grid; gap: 1.2rem 2rem; align-items: center; padding: 1.2rem 0; }
@media (min-width: 800px) { .story { grid-template-columns: 300px 1fr; } }
.story .blob-img { aspect-ratio: 1; max-width: 300px; }
.story:nth-child(2) .blob-img { border-radius: var(--blob-b); }
.story:nth-child(3) .blob-img { border-radius: var(--blob-c); }
.story h3 { font-size: 1.6rem; }
.story h3 a { color: var(--ink); text-decoration: none; }
.story h3 a:hover { text-decoration: underline; }
.story.soon { opacity: .9; }
.story.soon .blob-img { background: repeating-radial-gradient(circle at 30% 40%, var(--moss-soft) 0 14px, var(--surface-2) 14px 28px); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.tag-cloud a { padding: .35rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--blob-a); text-decoration: none; color: var(--ink); font-weight: 700; }
.tag-cloud a:nth-child(3n) { border-radius: var(--blob-c); background: var(--moss-soft); }
.tag-cloud a:nth-child(4n) { background: var(--ochre-soft); border-radius: var(--blob-b); }
.tag-cloud a.lg { font-size: 1.3rem; }
.tag-cloud a small { font: 500 .875rem var(--font-mono); color: var(--muted); margin-left: .3rem; }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.shelf { padding: 1.8rem; background: var(--surface); border-radius: var(--pebble-a); border: 1px solid var(--line); }
.shelf:nth-child(2) { border-radius: var(--pebble-c); background: var(--moss-soft); border-color: transparent; }
.shelf h2 { font-size: 1.7rem; margin-bottom: .2rem; }
.shelf ol { margin: 1rem 0 0; padding-left: 1.4rem; display: grid; gap: .9rem; }
.shelf li::marker { font-family: var(--font-display); color: var(--clay); font-weight: 700; }
.shelf a { font-weight: 750; font-size: 1.15rem; color: var(--ink); }
.shelf p { margin: .2rem 0 0; font-size: 1rem; }

/* fixes after screenshot pass */
.code .token.tag { display: inline; min-height: 0; padding: 0; background: none; border-radius: 0; font: inherit; color: #f0a07c; position: static; }
.art-layout { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1180px) { .art-layout { grid-template-columns: 250px minmax(0, 1fr); } }
.art-layout > div { min-width: 0; }
.art-hero-grid.solo { grid-template-columns: 1fr; }
.art-hero-grid.solo h1 { max-width: 20ch; }
.banner-stage { position: relative; margin-top: 2.5rem; padding: 0 1rem 1rem 0; }
.banner-blob { position: relative; z-index: 2; aspect-ratio: 1000 / 420; overflow: hidden; background: #000; border-radius: 3.6rem 1.8rem 4.4rem 2.2rem / 2.6rem 4rem 2rem 3.6rem; box-shadow: var(--shadow); }
.banner-blob img { width: 100%; height: 100%; object-fit: cover; }
.banner-stage .b1 { width: 22%; aspect-ratio: 1; right: -1%; top: -12%; background: var(--river); z-index: 1; }
.banner-stage .b2 { width: 12%; aspect-ratio: 1; left: -2%; bottom: -8%; background: var(--ochre); z-index: 3; border-radius: var(--blob-c); }
@media (max-width: 600px) { .banner-blob { border-radius: 1.8rem 1rem 2.2rem 1.2rem / 1.4rem 2rem 1rem 1.8rem; } }

.prose-fig { margin-left: 0; margin-right: 0; }
.prose-fig img { display: block; width: 100%; height: auto; border-radius: var(--pebble-a); }
.prose code { overflow-wrap: anywhere; }
