/* Solarpunk — antjanus.com redesign 022
   Greenhouse arches, leaf-cut chips, sun-disc accents, botanical vines.
   Light = "noon greenhouse", dark = "night garden with lamplight". */

:root {
  /* primitives */
  --cream-50: #fbf7ea;
  --cream-100: #f5eed8;
  --cream-200: #ebe0c0;
  --forest-950: #0d1b14;
  --forest-900: #132519;
  --forest-850: #1a3022;
  --forest-800: #203b2a;
  --forest-700: #2b4a36;
  --forest-600: #1c3326;
  --moss-700: #2e6a31;
  --moss-500: #5a8f3c;
  --leaf-300: #a9d67c;
  --sun-400: #f2c14e;
  --sun-500: #e5a92b;
  --sun-800: #7f5300;
  --clay-600: #a4451d;
  --clay-300: #f09368;
  --sky-600: #2f6780;
  --sky-300: #8cc6dc;

  /* semantic (light) */
  --bg: var(--cream-100);
  --surface: var(--cream-50);
  --surface-2: #efe6c9;
  --ink: var(--forest-600);
  --text: #2c4234;
  --muted: #56634f;
  --line: #d6c9a1;
  --link: var(--moss-700);
  --link-hover: var(--clay-600);
  --accent: var(--moss-700);
  --accent-soft: #dfe9c4;
  --gold: var(--sun-800);
  --gold-fill: var(--sun-400);
  --on-gold: #2a1f00;
  --clay: var(--clay-600);
  --sky: var(--sky-600);
  --code-bg: #15281d;
  --code-ink: #e7ecd5;
  --panel: #1c3326;
  --panel-ink: #eef1dc;
  --panel-muted: #b9c7a8;
  --glow-a: rgba(242, 193, 78, 0.42);
  --glow-b: rgba(90, 143, 60, 0.18);
  --shadow: 0 1px 0 rgba(28, 51, 38, 0.06), 0 14px 30px -18px rgba(28, 51, 38, 0.35);
  --focus: #b3470f;

  --f-display: "Young Serif", "Georgia", serif;
  --f-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", monospace;

  --r-arch: 14rem 14rem 1.25rem 1.25rem;
  --r-leaf: 1.4rem 0.35rem 1.4rem 0.35rem;
  --r-card: 1.75rem 1.75rem 1.75rem 0.45rem;
  --wrap: 1240px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--forest-950);
    --surface: var(--forest-900);
    --surface-2: var(--forest-850);
    --ink: #eef0dc;
    --text: #d3dbc4;
    --muted: #a3b398;
    --line: #2f4a38;
    --link: var(--leaf-300);
    --link-hover: var(--sun-400);
    --accent: var(--leaf-300);
    --accent-soft: #223f2a;
    --gold: var(--sun-400);
    --clay: var(--clay-300);
    --sky: var(--sky-300);
    --code-bg: #0a150f;
    --panel: #182d20;
    --glow-a: rgba(242, 193, 78, 0.16);
    --glow-b: rgba(169, 214, 124, 0.08);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 16px 34px -20px rgba(0, 0, 0, 0.8);
    --focus: var(--sun-400);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--forest-950);
  --surface: var(--forest-900);
  --surface-2: var(--forest-850);
  --ink: #eef0dc;
  --text: #d3dbc4;
  --muted: #a3b398;
  --line: #2f4a38;
  --link: var(--leaf-300);
  --link-hover: var(--sun-400);
  --accent: var(--leaf-300);
  --accent-soft: #223f2a;
  --gold: var(--sun-400);
  --clay: var(--clay-300);
  --sky: var(--sky-300);
  --code-bg: #0a150f;
  --panel: #182d20;
  --glow-a: rgba(242, 193, 78, 0.16);
  --glow-b: rgba(169, 214, 124, 0.08);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 16px 34px -20px rgba(0, 0, 0, 0.8);
  --focus: var(--sun-400);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 36rem at 92% -6%, var(--glow-a), transparent 60%),
    radial-gradient(48rem 40rem at -10% 55%, var(--glow-b), transparent 65%),
    url("assets/paper-fibre.png");
  background-size: auto, auto, 600px;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold-fill); color: var(--on-gold); padding: 0.6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- eyebrow, chips, buttons ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold); display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--gold-fill); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-fill) 30%, transparent); }
.chip {
  display: inline-block; font-family: var(--f-mono); font-size: 0.8125rem; padding: 0.2rem 0.7rem;
  border-radius: var(--r-leaf); background: var(--accent-soft); color: var(--ink); text-decoration: none; border: 1px solid transparent;
}
a.chip:hover { border-color: var(--accent); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.badge { font-family: var(--f-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--gold-fill); color: var(--on-gold); }
.badge.new { background: var(--clay); color: #fff; }
:root[data-theme="dark"] .badge.new { color: #2a0f00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.new { color: #2a0f00; } }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.4rem;
  border-radius: 999px; font-family: var(--f-body); font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.btn-sun { background: var(--gold-fill); color: var(--on-gold); box-shadow: 0 6px 0 -1px var(--sun-500), 0 12px 24px -12px rgba(229,169,43,.9); }
.btn-sun:hover { color: var(--on-gold); transform: translateY(-2px); background: #f7cf6a; }
.btn-sun:active { transform: translateY(2px); box-shadow: 0 2px 0 -1px var(--sun-500); }
.btn-leaf { background: transparent; color: var(--ink); border-color: var(--accent); }
.btn-leaf:hover { background: var(--accent-soft); color: var(--ink); }
.btn-quiet { color: var(--muted); padding-inline: 0.4rem; }
.btn-quiet:hover { color: var(--link-hover); }
.btn-forest { background: var(--moss-700); color: #fff; }
.btn-forest:hover { background: #245826; color: #fff; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; padding: 0.8rem 0; }
.site-head .bar {
  display: flex; align-items: center; gap: 1rem; padding: 0.45rem 0.6rem 0.45rem 1rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-words small { font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.brand-words b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.95rem; border-radius: 999px;
  text-decoration: none; color: var(--text); font-weight: 700; font-size: 1rem;
}
.nav a:hover { background: var(--accent-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav a.ai-pill { background: linear-gradient(120deg, var(--moss-500), var(--sun-500)); color: #13220f; }
.nav a.ai-pill[aria-current="page"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.head-tools { display: flex; align-items: center; gap: 0.4rem; }
.search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding-left: 0.9rem; }
.search input { border: 0; background: transparent; font: inherit; font-size: 0.9375rem; color: var(--ink); width: 8.5rem; min-height: 42px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search button { border: 0; background: transparent; color: var(--ink); min-width: 44px; min-height: 42px; cursor: pointer; border-radius: 999px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu-btn { display: none; }
@media (max-width: 1060px) {
  .search { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .site-head .bar { border-radius: 1.6rem; flex-wrap: wrap; }
  .nav-wrap { display: none; order: 5; width: 100%; padding: 0.5rem 0 0.6rem; }
  .site-head.open .nav-wrap { display: block; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav a { justify-content: flex-start; }
  .nav-wrap .search { display: flex; margin-top: 0.6rem; }
  .nav-wrap .search input { width: 100%; }
}
@media (min-width: 861px) { .nav-wrap .search { display: none; } }

/* ---------- vine divider ---------- */
.vine { display: block; width: 100%; max-width: 760px; height: 44px; margin: 3.5rem auto; color: var(--accent); }
.vine .l { fill: var(--moss-500); }
.vine .b { fill: var(--gold-fill); }

/* ---------- sections ---------- */
.section { padding: 3.5rem 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.125rem; max-width: 52ch; }
.section-head h2 { margin-bottom: 0.2rem; }
.more-link { font-weight: 800; text-decoration: none; display: inline-flex; gap: 0.35rem; align-items: center; min-height: 44px; }
.more-link:hover { text-decoration: underline; }

/* ---------- hero (home) ---------- */
.hero { padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3.5rem; align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--accent); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold-fill) 55%, transparent) 62%); padding: 0 0.1em; }
.hero .lede { font-size: 1.3rem; line-height: 1.55; max-width: 34ch; color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; margin-top: 1.8rem; }
.link-under { font-weight: 800; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-fill); text-decoration-thickness: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.link-under:hover { color: var(--clay); }

.arch-frame { position: relative; aspect-ratio: 4 / 5; max-width: 480px; margin-left: auto; width: 100%; }
.arch-frame .sun {
  position: absolute; inset: -10% -14% auto auto; width: 78%; aspect-ratio: 1; color: var(--gold-fill); z-index: 0;
}
.arch-frame .sun svg { width: 100%; height: 100%; animation: spin 90s linear infinite; }
.arch-frame .glass {
  position: absolute; inset: 0; border-radius: var(--r-arch); overflow: hidden; z-index: 1;
  border: 6px solid var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow);
  background: linear-gradient(160deg, var(--moss-500), var(--forest-700));
}
.arch-frame .glass img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.arch-frame .mullion { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: var(--r-arch); }
.arch-frame .mullion svg { width: 100%; height: 100%; }
.arch-frame .fronds { position: absolute; left: -12%; bottom: -6%; width: 58%; z-index: 3; color: var(--moss-500); pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.seed-stats { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; list-style: none; padding: 0; }
.seed-stats li {
  display: flex; align-items: baseline; gap: 0.5rem; background: var(--surface); border: 1px solid var(--line);
  padding: 0.55rem 1.1rem; border-radius: var(--r-leaf);
}
.seed-stats b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: var(--ink); }
.seed-stats span { color: var(--muted); font-size: 0.9375rem; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.6rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); transition: transform 180ms ease, border-color 180ms ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card:focus-within { border-color: var(--accent); }
.card .media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card.arch-top .media { margin: 0.8rem 0.8rem 0; border-radius: 10rem 10rem 0.8rem 0.8rem; aspect-ratio: 5 / 4; }
.card .body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card h3 { font-size: 1.3rem; 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:hover { color: var(--accent); }
.card p { margin: 0; color: var(--text); }
.card .meta { font-family: var(--f-mono); font-size: 0.875rem; color: var(--muted); display: flex; gap: 0.6rem; flex-wrap: wrap; }
.card .chips { margin-top: auto; padding-top: 0.5rem; position: relative; z-index: 2; }
.card .noimg {
  display: grid; place-items: center; height: 100%; color: var(--accent);
  background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--gold-fill) 50%, transparent), transparent 45%), linear-gradient(160deg, var(--accent-soft), var(--surface-2));
}
.card .noimg svg { width: 38%; max-width: 120px; }

/* featured shelf: greenhouse arches */
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 900px) { .shelf { grid-template-columns: minmax(0, 1fr); } }
.shelf .card { border-radius: 14rem 14rem 1.5rem 1.5rem; }
.shelf .card .media { aspect-ratio: 1 / 1; }
.shelf .num { font-family: var(--f-display); font-size: 3rem; color: var(--gold); line-height: 1; }

/* list rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a.row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 1.2rem; align-items: baseline; padding: 1.1rem 0.4rem; text-decoration: none; color: var(--text); }
.rows a.row:hover { background: var(--accent-soft); }
.rows .date { font-family: var(--f-mono); font-size: 0.875rem; color: var(--muted); }
.rows .t { font-family: var(--f-display); font-size: 1.25rem; color: var(--ink); display: block; }
.rows .d { color: var(--muted); display: block; margin-top: 0.2rem; }
.rows .arrow { color: var(--accent); font-weight: 800; }
@media (max-width: 640px) { .rows a.row { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; } .rows .arrow { display: none; } }

/* sprout (icon) cards */
.sprout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem; position: relative; }
.sprout .ico { width: 56px; height: 56px; border-radius: 50% 50% 50% 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem; }
.sprout .ico svg { width: 28px; height: 28px; }
.sprout h3 { font-size: 1.25rem; }
.sprout h3 a { color: var(--ink); text-decoration: none; }
.sprout h3 a::after { content: ""; position: absolute; inset: 0; }
.sprout:hover { border-color: var(--accent); }
.sprout .type { font-family: var(--f-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }

/* dark lamp panel */
.panel { background: var(--panel); color: var(--panel-ink); border-radius: 2.2rem 2.2rem 2.2rem 0.6rem; padding: 2.4rem; position: relative; overflow: hidden; }
.panel h2, .panel h3 { color: var(--panel-ink); }
.panel p { color: var(--panel-muted); }
.panel a:not(.btn) { color: var(--sun-400); }
.panel::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,193,78,.45), transparent 65%); pointer-events: none;
}
.panel .eyebrow { color: var(--sun-400); }

/* page hero (inner pages) */
.page-hero { padding: 2.5rem 0 1rem; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 3rem; align-items: center; }
.page-hero .lede { font-size: 1.3rem; max-width: 46ch; }
.window { border-radius: var(--r-arch); overflow: hidden; border: 6px solid var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); aspect-ratio: 4 / 4.2; background: linear-gradient(160deg, var(--moss-500), var(--forest-700)); }
.window img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero-grid, .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .arch-frame { margin: 1rem auto 0; max-width: 340px; }
  .window { max-width: 360px; aspect-ratio: 4 / 3.4; }
}

/* jump pills */
.jump { position: sticky; top: 92px; z-index: 20; display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.6rem 0; margin: 1rem 0 0; scrollbar-width: thin; }
.jump a { flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-leaf); padding: 0.45rem 1rem; text-decoration: none; color: var(--ink); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.jump a:hover { border-color: var(--accent); }

/* landscape project rows */
.plot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: 2rem 0; }
.plot:nth-child(even) .plot-media { order: 2; }
.plot-media { border-radius: 2rem 2rem 2rem 0.5rem; overflow: hidden; border: 1px solid var(--line); background: #0f1a13; aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.plot-media img { width: 100%; height: 100%; object-fit: cover; }
.plot h3 { font-size: 1.8rem; }
.plot .facts { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0.8rem 0 1rem; }
.plot .facts div { font-family: var(--f-mono); font-size: 0.875rem; color: var(--muted); }
.plot .facts b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: var(--ink); }
@media (max-width: 800px) { .plot { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; } .plot:nth-child(even) .plot-media { order: 0; } }

.stars { font-family: var(--f-mono); font-size: 0.875rem; color: var(--gold); font-weight: 500; }

/* featured project */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 2.4rem 2.4rem 2.4rem 0.6rem; overflow: hidden; box-shadow: var(--shadow); }
.feature .fx { padding: 2.4rem; }
.feature .fimg { position: relative; min-height: 320px; background: #102033; }
.feature .fimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.statline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; margin: 1.4rem 0; }
.statline div { background: var(--surface-2); padding: 0.8rem 1rem; }
.statline b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; color: var(--ink); }
.statline span { font-family: var(--f-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature .fimg { min-height: 220px; } .feature .fx { padding: 1.6rem; } }

/* ---------- 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-500), var(--sun-400)); border-radius: 0 999px 999px 0; }
.art-hero { padding: 2rem 0 1rem; }
.art-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 3rem; align-items: end; }
.crumb { font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; }
.art-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.art-hero .desc { font-size: 1.3rem; color: var(--text); }
.art-meta { font-family: var(--f-mono); font-size: 0.9375rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; }
.art-meta a { text-transform: none; letter-spacing: 0; }
.art-window { border-radius: 16rem 16rem 1.4rem 1.4rem; overflow: hidden; aspect-ratio: 5 / 4; border: 6px solid var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); background: #20364a; }
.art-window img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .art-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .art-window { aspect-ratio: 16 / 10; border-radius: 10rem 10rem 1rem 1rem; } }

.art-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; margin-top: 2.5rem; }
.toc { position: sticky; top: 110px; align-self: start; }
.toc h2 { font-family: var(--f-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 0.9rem; border-left: 2px dashed var(--line); }
.toc a { display: block; padding: 0.4rem 0.6rem; color: var(--muted); text-decoration: none; border-radius: 0.6rem; position: relative; font-size: 1rem; }
.toc a:hover { color: var(--ink); background: var(--accent-soft); }
.toc a.active { color: var(--ink); font-weight: 800; }
.toc a.active::before { content: ""; position: absolute; left: -1.35rem; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50% 0 50% 0; background: var(--moss-500); }
.toc-mobile { display: none; }
@media (max-width: 1060px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .toc-mobile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 1.2rem; padding: 0.4rem 1.1rem; margin-bottom: 2rem; }
  .toc-mobile summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.875rem; color: var(--gold); }
  .toc-mobile ol { margin: 0 0 0.8rem; padding-left: 1.3rem; }
  .toc-mobile a { display: block; padding: 0.3rem 0; }
}

.prose { max-width: 720px; font-size: 1.125rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.2em; }
.prose p, .prose ul, .prose ol, .prose pre, .prose blockquote { margin-bottom: 0; }
.prose h2 { font-size: 2rem; margin-top: 2.4em; scroll-margin-top: 110px; display: flex; gap: 0.7rem; align-items: center; }
.prose h2::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50% 0 50% 0; background: var(--moss-500); transform: rotate(-10deg); }
.prose code { font-family: var(--f-mono); font-size: 0.92em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 0.35em; color: var(--ink); }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--gold); font-family: var(--f-mono); }

.codeblock { margin-inline: -3rem; border-radius: 1.4rem 1.4rem 1.4rem 0.4rem; overflow: hidden; background: var(--code-bg); border: 1px solid #2c4a36; }
.codeblock header { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0.6rem 0.35rem 1.1rem; background: #1d3527; color: #cfdcb8; font-family: var(--f-mono); font-size: 0.875rem; }
.codeblock header span::before { content: "● "; color: var(--sun-400); }
.copy-btn { font: inherit; background: transparent; color: #e7ecd5; border: 1px solid #3d6049; border-radius: 999px; padding: 0.3rem 0.9rem; min-height: 36px; cursor: pointer; }
.copy-btn:hover { background: #2b4a36; }
.codeblock pre { margin: 0; padding: 1.2rem 1.3rem; overflow-x: auto; font-family: var(--f-mono); font-size: 0.9375rem; line-height: 1.6; color: var(--code-ink); tab-size: 2; }
.codeblock code { background: none; padding: 0; color: inherit; font-size: inherit; }
.tok-c { color: #9fb28e; font-style: italic; }
.tok-s { color: #f2c86e; }
.tok-k { color: #9ed97a; }
.tok-t { color: #8cc6dc; }
@media (max-width: 1060px) { .codeblock { margin-inline: 0; } }

.callout { border-radius: 1.4rem 1.4rem 1.4rem 0.35rem; padding: 1.1rem 1.3rem 1.1rem 4rem; position: relative; border: 1px solid; }
.callout::before { position: absolute; left: 1.1rem; top: 1rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-family: var(--f-display); }
.callout p { margin: 0; }
.callout.why { background: color-mix(in srgb, var(--gold-fill) 18%, var(--surface)); border-color: color-mix(in srgb, var(--gold-fill) 70%, var(--line)); }
.callout.why::before { content: "?"; background: var(--gold-fill); color: var(--on-gold); }
.callout.ask { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.callout.ask::before { content: "✎"; background: var(--moss-700); color: #fff; }
.callout.note { background: color-mix(in srgb, var(--sky) 12%, var(--surface)); border-color: color-mix(in srgb, var(--sky) 45%, var(--line)); }
.callout.note::before { content: "i"; background: var(--sky-600); color: #fff; }
.callout.skill { background: var(--surface); border-color: var(--line); border-style: dashed; }
.callout.skill::before { content: "⚛"; background: var(--ink); color: var(--bg); }
.callout .lbl { display: block; font-family: var(--f-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.2rem; }

.filed { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.share { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.share .btn { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9375rem; }

/* newsletter */
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.nl-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.nl-form input[type=email] { flex: 1 1 14rem; min-height: 50px; border-radius: 999px; border: 1px solid #4b6b54; background: rgba(255,255,255,.08); color: var(--panel-ink); padding: 0 1.2rem; font: inherit; }
.nl-form input::placeholder { color: #aebd9d; }
.nl-form .gdpr { flex-basis: 100%; font-size: 0.9375rem; color: var(--panel-muted); display: flex; gap: 0.5rem; align-items: flex-start; }
.nl-form .gdpr input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--sun-400); }
.nl-status { flex-basis: 100%; color: var(--sun-400); min-height: 1.5em; margin: 0; font-weight: 700; }
@media (max-width: 800px) { .newsletter { grid-template-columns: minmax(0, 1fr); } }

/* timeline stem */
.stem { list-style: none; padding: 0 0 0 2.2rem; margin: 0; position: relative; }
.stem::before { content: ""; position: absolute; left: 0.7rem; top: 0.5rem; bottom: 0.5rem; width: 4px; border-radius: 4px; background: linear-gradient(var(--sun-400), var(--moss-500) 40%, var(--forest-700)); }
.stem > li { position: relative; padding-bottom: 2.2rem; }
.stem > li::before { content: ""; position: absolute; left: -2.05rem; top: 0.35rem; width: 24px; height: 24px; border-radius: 50% 0 50% 0; background: var(--moss-500); border: 3px solid var(--bg); }
.stem > li:first-child::before { background: var(--sun-400); border-radius: 50%; }
.stem .period { font-family: var(--f-mono); font-size: 0.875rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.stem h3 { margin: 0.1rem 0 0.4rem; }
.roles { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.35rem; }
.roles li { padding-left: 1.2rem; position: relative; }
.roles li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.roles small { color: var(--muted); font-size: 0.9375rem; }
.career { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.2rem 0 2rem; padding: 0; list-style: none; }
.career li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-leaf); padding: 0.35rem 0.8rem; font-size: 0.9375rem; }
.career li b { color: var(--ink); }
.career li span { color: var(--muted); font-family: var(--f-mono); font-size: 0.8125rem; margin-left: 0.3rem; }
details.history > summary { list-style: none; cursor: pointer; }
details.history > summary::-webkit-details-marker { display: none; }
details.history[open] .show-lbl { display: none; }
details.history:not([open]) .hide-lbl { display: none; }

.quotes { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; counter-reset: q; }
.quotes li { counter-increment: q; font-family: var(--f-display); font-size: 1.35rem; color: var(--panel-ink); display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.6rem; line-height: 1.35; }
.quotes li::before { content: counter(q, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.875rem; color: var(--sun-400); padding-top: 0.45rem; }

.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.5rem; }
.cap { background: rgba(255,255,255,0.05); border: 1px solid #36563f; border-radius: 1.4rem 1.4rem 1.4rem 0.35rem; padding: 1.3rem; }
.cap h3 { font-size: 1.25rem; }
.cap p { font-size: 1rem; }
.cap .chips .chip { background: #27452f; color: #e6edd2; }
@media (max-width: 760px) { .cap-grid { grid-template-columns: minmax(0, 1fr); } .panel { padding: 1.6rem; } }

/* ---------- patterns: seed packets ---------- */
.pat-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1.5rem 0; }
.pat-search { flex: 1 1 22rem; display: flex; align-items: center; gap: 0.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 1.2rem; min-height: 52px; }
.pat-search input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--ink); min-height: 48px; min-width: 0; }
.pat-search input:focus { outline: none; }
.pat-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button { font: inherit; font-weight: 700; font-size: 0.9375rem; min-height: 44px; padding: 0 1rem; border-radius: var(--r-leaf); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pat-count { font-family: var(--f-mono); font-size: 0.9375rem; color: var(--muted); }
.clear-btn { font: inherit; background: none; border: 0; color: var(--link); text-decoration: underline; cursor: pointer; min-height: 44px; }
select.sort { font: inherit; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 1rem; }

.packets { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.6rem; }
.packet { --hue: var(--moss-500); position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 0.6rem 0.6rem 1.4rem 1.4rem; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform 180ms ease; }
.packet:hover { transform: translateY(-3px) rotate(-0.4deg); }
.packet::before { content: ""; height: 12px; border-radius: 0.6rem 0.6rem 0 0; background: repeating-linear-gradient(90deg, var(--hue) 0 10px, transparent 10px 14px); opacity: 0.8; }
.packet .face { margin: 0.9rem 0.9rem 0; height: 150px; border-radius: 8rem 8rem 0.8rem 0.8rem; background: radial-gradient(circle at var(--sx, 50%) 110%, color-mix(in srgb, var(--hue) 55%, transparent), transparent 70%), var(--surface-2); display: grid; place-items: center; color: var(--hue); position: relative; overflow: hidden; }
.packet .face svg { width: 88px; height: 88px; }
.packet .no { position: absolute; top: 0.6rem; right: 0.8rem; font-family: var(--f-mono); font-size: 0.8125rem; color: var(--muted); }
.packet .pbody { padding: 1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.packet .cat { font-family: var(--f-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.packet h2 { font-size: 1.3rem; margin: 0; }
.packet h2 a { color: var(--ink); text-decoration: none; }
.packet h2 a::after { content: ""; position: absolute; inset: 0; }
.packet p { margin: 0; font-size: 1rem; }
.packet .added { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--muted); }
.packet .chips { margin-top: auto; padding-top: 0.4rem; }
.packet[data-cat="Data display"] { --hue: #3f8a5a; }
.packet[data-cat="Layout"] { --hue: #c98a12; }
.packet[data-cat="Interaction"] { --hue: #2f7fa0; }
.packet[data-cat="Forms"] { --hue: #b85a2e; }
.packet[data-cat="Color"] { --hue: #8a5fb0; }
.empty { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--line); border-radius: 2rem; }
.empty[hidden] { display: none; }

.three-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 1.2rem 0; }
.three-ways div { background: var(--surface); border: 1px solid var(--line); border-radius: 1.2rem 1.2rem 1.2rem 0.3rem; padding: 1.1rem 1.2rem; }
.three-ways b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; color: var(--ink); display: block; }
@media (max-width: 800px) { .three-ways { grid-template-columns: minmax(0, 1fr); } }

/* pattern detail */
.uses { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
@media (max-width: 640px) { .uses { columns: 1; } }
.panes { background: var(--surface); border: 1px solid var(--line); border-radius: 1.6rem 1.6rem 1.6rem 0.4rem; overflow: hidden; box-shadow: var(--shadow); margin-top: 2rem; }
.panes-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 0.6rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tabs button { font: inherit; font-weight: 700; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.pane-actions { display: flex; gap: 0.4rem; }
.pane-actions button { font: inherit; font-weight: 700; font-size: 0.9375rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.pane { padding: 1.6rem; }
.pane[hidden] { display: none; }
.pane pre { margin: 0; font-family: var(--f-mono); font-size: 0.9375rem; line-height: 1.6; background: var(--code-bg); color: var(--code-ink); padding: 1.2rem; border-radius: 1rem; overflow-x: auto; }
.pane .prompt { max-width: 70ch; font-size: 1.0625rem; }
.pane-note { font-size: 1rem; color: var(--muted); margin-bottom: 1rem; }

/* the hairline stat strip demo itself */
.stage { background: var(--bg); border: 1px dashed var(--line); border-radius: 1.2rem; padding: 1.4rem; }
.hss-cap { color: var(--muted); font-size: 1rem; margin: 0 0 0.8rem; }
.hss-cap + .hss-strip, .hss-strip + .hss-cap { margin-top: 0; }
.stage > .hss-strip + .hss-cap, .stage > .hss-status + .hss-cap { margin-top: 2rem; }
.hss-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 30rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 52rem) { .hss-strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .hss-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hss-tile { background: var(--surface); padding: 0.9rem 1rem; min-width: 0; text-align: left; font: inherit; color: inherit; border: 0; }
.hss-tile .lab { display: block; font-family: var(--f-mono); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); overflow-wrap: anywhere; }
.hss-tile .fig { display: block; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.hss-tile .fig.none { color: var(--muted); font-weight: 400; }
.hss-tile .sub { display: block; font-size: 0.9375rem; color: var(--muted); }
button.hss-tile { cursor: pointer; min-height: 44px; }
button.hss-tile:hover { background: var(--surface-2); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); box-shadow: inset 0 -3px 0 var(--accent); }
.dl-list { list-style: none; padding: 0; margin: 1rem 0 0.4rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dl-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; background: var(--surface); border-top: 1px solid var(--line); flex-wrap: wrap; }
.dl-list li:first-child { border-top: 0; }
.dl-list li[hidden] { display: none; }
.dl-list .st { font-family: var(--f-mono); font-size: 0.875rem; color: var(--muted); }
.hss-status { font-size: 1rem; color: var(--muted); margin: 0.5rem 0 0; }

/* ---------- footer ---------- */
.site-foot { margin-top: 5rem; background: var(--panel); color: var(--panel-ink); border-radius: 3rem 3rem 0 0; position: relative; }
.site-foot .canopy { position: absolute; top: -46px; left: 0; right: 0; height: 50px; color: var(--panel); pointer-events: none; }
.site-foot .canopy svg { width: 100%; height: 100%; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 2.5rem; padding: 4rem 0 2.5rem; }
.site-foot h2 { font-family: var(--f-mono); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sun-400); margin-bottom: 1rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.site-foot a { color: var(--panel-ink); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.site-foot a:hover { color: var(--sun-400); text-decoration: underline; }
.site-foot p { color: var(--panel-muted); }
.site-foot .brand b, .site-foot .brand { color: var(--panel-ink); }
.site-foot .brand small { color: var(--panel-muted); }
.foot-bottom { border-top: 1px solid #36563f; padding: 1.4rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--panel-muted); font-size: 0.9375rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } .wrap { padding: 0 1rem; } }

/* utility */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.8rem; }
.box h2 { font-size: 1.6rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.notice { background: color-mix(in srgb, var(--gold-fill) 20%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold-fill) 60%, var(--line)); border-radius: 1.2rem; padding: 1rem 1.2rem; }
.soon { opacity: 0.85; border-style: dashed; }
.soon:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.packet[hidden] { display: none; }
html, body { overflow-x: clip; }
.hero { overflow-x: clip; }
@media (max-width: 860px) { .arch-frame .sun { inset: -8% -6% auto auto; width: 66%; } }
.art-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.art-window { aspect-ratio: 1000 / 420; border-radius: 4rem 4rem 1.2rem 1.2rem; }
@media (max-width: 860px) { .art-hero-grid { grid-template-columns: minmax(0, 1fr); } .art-window { aspect-ratio: 1000 / 420; border-radius: 2.5rem 2.5rem 1rem 1rem; } }
.hero h1 em { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.crumb { display: flex; width: max-content; }
@media (max-width: 560px) {
  .seed-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .seed-stats li { flex-direction: column; gap: 0; padding: 0.6rem 0.8rem; }
  .seed-stats b { font-size: 1.4rem; }
}
.hero h1 em { background: linear-gradient(transparent 64%, var(--hl, rgba(242, 193, 78, 0.55)) 64%); }
:root[data-theme="dark"] { --hl: rgba(242, 193, 78, 0.2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hl: rgba(242, 193, 78, 0.2); } }
.plot-media img[src$=".gif"], .card .media img[src$=".gif"] { object-fit: contain; background: #0f1a13; }

/* UI pattern library article */
.prose .prose-fig { margin: 1.8rem 0; aspect-ratio: auto; border-radius: 1.4rem; }
.prose .prose-fig img { height: auto; object-fit: contain; display: block; }
.prose .callout.lib::before { content: "◫"; }
.prose .callout p + p { margin-top: .8em; }
.prose .live-pattern a.btn { white-space: normal; text-decoration: none; height: auto; }
.prose p code { overflow-wrap: anywhere; }
