/* amin.id — design system v4 (2026-09-15, GSAP/Lenis pass).
   Display face (Bricolage Grotesque) reserved for real headline sizes (>=20px)
   only — everything at UI/metadata scale uses system-ui, so the brand font
   isn't set on badges/nav/captions. Mono is genuine-data-only (dates, code).
   Motion is GSAP + ScrollTrigger + SplitText + Lenis (see templates.ts's
   pageScript) — this file only holds the base, always-visible state so a
   failed CDN load or prefers-reduced-motion leaves the page fully readable.
   Case studies are three actually different structures: multi-column prose,
   an asymmetric bleed-to-the-edge stat layout, and a flow + pull quote. */

:root {
  --bg: #f7f8fa;
  --ink: #12181f;
  --muted: #5b6570;
  --line: #e1e4e8;
  --card: #ffffff;
  --accent: #1d618f;
  --accent-soft: #dce8f0;
  --code-bg: #eef1f4;
  --btn-text: #fafbfc;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117;
    --ink: #e6e9ec;
    --muted: #8b96a1;
    --line: #232a33;
    --card: #151b23;
    --accent: #5aa1d8;
    --accent-soft: #16283a;
    --code-bg: #131920;
    --btn-text: #0d1117;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d1117;
  --ink: #e6e9ec;
  --muted: #8b96a1;
  --line: #232a33;
  --card: #151b23;
  --accent: #5aa1d8;
  --accent-soft: #16283a;
  --code-bg: #131920;
  --btn-text: #0d1117;
  color-scheme: dark;
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: var(--btn-text);
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 12px; }

html, body { overflow-x: clip; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}

#work, #lab, #about { scroll-margin-top: 88px; }

/* fixed 3px scroll-progress rail — pure CSS scroll-driven animation, no JS.
   Silently stays at 0 width (invisible, harmless) in browsers that don't
   support animation-timeline: scroll() yet. */
.scroll-rail { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-rail-fill { height: 100%; width: 0; background: var(--accent); transform-origin: left; }
@supports (animation-timeline: scroll()) {
  .scroll-rail-fill {
    width: 100%;
    transform: scaleX(0);
    animation: rail-fill linear;
    animation-timeline: scroll(root);
  }
}
@keyframes rail-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .scroll-rail { display: none; } }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
p, h1, h2, h3 { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

@media (max-width: 900px) {
  .cs-prose { columns: 1; }
}
.display { font-family: "Bricolage Grotesque", system-ui, sans-serif; }

/* section marker: a short accent rule that grows in + label text (system-ui,
   utility scale — not the display face) */
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
.label::before { content: ""; display: block; width: 22px; height: 3px; background: var(--accent); border-radius: 2px; transform-origin: left; }

.quiet { color: var(--muted); }
.icon { flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  background: var(--accent);
  color: var(--btn-text);
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
}
.btn:hover { color: var(--btn-text); opacity: 0.92; }

.icon-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* nav */
.nav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.monogram {
  view-transition-name: brand-mark;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.wordmark { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 17px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links > a { font-size: 15px; color: var(--muted); position: relative; padding: 4px 0; }
.nav-links > a:hover { color: var(--ink); }
.nav-links > a[aria-current="true"] { color: var(--ink); }
.nav-links > a[aria-current="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent); border-radius: 1px;
}
.nav .btn { height: 42px; }
.nav-email-label { white-space: nowrap; }

/* mobile menu disclosure — native <details>/<summary>, works with zero JS */
.nav-toggle-wrap { display: none; position: relative; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px;
  color: var(--muted); cursor: pointer; list-style: none;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle:hover { color: var(--ink); border-color: var(--accent); }
.nav-toggle .icon-close { display: none; }
.nav-toggle-wrap[open] .nav-toggle .icon-menu { display: none; }
.nav-toggle-wrap[open] .nav-toggle .icon-close { display: block; }
.nav-menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 55;
  display: flex; flex-direction: column; min-width: 200px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 6px; box-shadow: 0 12px 32px rgba(18, 24, 31, 0.14);
}
[data-render-theme="dark"] .nav-menu-panel { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
.nav-menu-panel a {
  font-size: 15px; color: var(--ink); padding: 12px 14px; border-radius: 6px;
}
.nav-menu-panel a:hover { background: var(--accent-soft); color: var(--ink); }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-render-theme="dark"] .theme-toggle .sun { display: block; }
[data-render-theme="dark"] .theme-toggle .moon { display: none; }

/* hero */
.hero { padding-top: 76px; padding-bottom: 84px; }
.hero-stack { display: flex; flex-direction: column; gap: 32px; max-width: 1000px; }
.hero h1 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 60px; line-height: 1.08; letter-spacing: -0.02em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-meta { font-size: 15px; color: var(--muted); }
.hero-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-ctas .icon-link { font-size: 15px; }

/* Motion is GSAP-driven (ScrollTrigger + SplitText), set up in the page
   script — see templates.ts. Everything here is the base, no-JS/reduced-
   motion-safe visible state; GSAP applies its own "from" states at runtime,
   so if it fails to load the page simply shows normally. The one thing CSS
   still owns directly: the label's accent-bar grow-in, since GSAP cannot
   target a ::before pseudo-element. */
@supports (animation-timeline: view()) {
  .cs .label::before, .lanes .label::before, .lab .label::before, .writing .label::before {
    animation: bar-grow 0.4s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* case study 01 — flowing prose set in real CSS multi-column text (an
   editorial technique that fills its own width honestly, instead of a
   narrow readable measure leaving blank space beside it) */
.cs { padding-bottom: 64px; }
.cs-inner { display: flex; flex-direction: column; gap: 22px; border-top: 1px solid var(--line); padding-top: 44px; }
.cs h2 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 36px; line-height: 1.15; max-width: 760px; letter-spacing: -0.01em; }
.cs-meta { font-size: 14px; color: var(--muted); }
.cs-prose { columns: 2; column-gap: 56px; margin-top: 8px; }
.cs-prose p { font-size: 17px; line-height: 1.7; margin: 0 0 18px; }
.cs-p { font-size: 16px; line-height: 1.65; }

/* case study 02 — the stat moment: an asymmetric layout that actually
   bleeds toward the viewport edge, breaking the standard .wrap measure
   used by every other section. */
.cs-bleed { padding-bottom: 64px; }
.cs-bleed-inner { border-top: 1px solid var(--line); padding-top: 44px; display: flex; flex-direction: column; gap: 22px; }
.cs-bleed-head { max-width: 1120px; margin: 0 auto; padding: 0 40px; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.cs-stat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  align-items: stretch;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 40px;
  width: 100%;
}
.cs-flow { display: flex; flex-direction: column; gap: 20px; }
.cs-flow-row { display: flex; gap: 24px; }
.cs-h { font-size: 13px; font-weight: 700; color: var(--accent); flex-shrink: 0; width: 96px; }
.cs-stat-side { display: flex; gap: 24px; align-items: stretch; padding-right: 40px; min-width: 0; }
.stat-number { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 68px; color: var(--accent); letter-spacing: -0.02em; line-height: 0.9; align-self: center; white-space: nowrap; }
.stat-track { width: 6px; border-radius: 3px; background: var(--accent-soft); flex-shrink: 0; }
.statfill { width: 100%; height: 80%; background: var(--accent); border-radius: 3px; }
.stat-caption { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* case study 03 — flow + a pulled quote instead of a fourth labeled row */
.cs-pullquote { border-left: 3px solid var(--accent); padding-left: 24px; margin: 4px 0; max-width: 640px; }
.cs-pullquote p { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 600; font-size: 24px; line-height: 1.4; color: var(--ink); }

/* "Migration Line" — a route line running through the three case studies,
   signalling legacy → modern. Positions itself off the .label column using
   real getBoundingClientRect measurements at runtime (see templates.ts), so
   it self-aligns regardless of how tall each case study renders. Desktop/
   tablet only — decorative, so it's dropped on narrow screens rather than
   risking overflow in the tight mobile gutter. */
.cs-journey { position: relative; }
.cs-journey-rail { position: absolute; inset: 0; pointer-events: none; z-index: 1; display: none; }
.cs-journey-line {
  position: absolute; left: -25px; top: 0; width: 2px; height: 100%;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
}
.cs-journey-dot {
  position: absolute; left: -24px; top: 0; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
  transform: translate(-50%, -50%) scale(0.4); opacity: 0.35;
}
@media (min-width: 900px) {
  .cs-journey-rail { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-journey-line { transform: scaleY(1); }
  .cs-journey-dot { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* lanes band */
.lanes { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lanes-inner { padding-top: 60px; padding-bottom: 60px; display: flex; flex-direction: column; gap: 40px; }
.lanes h2 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 34px; }
.lanes-head { display: flex; flex-direction: column; gap: 16px; }
.lane-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.lane { display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--line); padding-left: 28px; }
.lane-top { display: flex; align-items: center; justify-content: space-between; color: var(--accent); }
.lane-num { font-size: 14px; font-weight: 700; }
.lane h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 22px; }
.lanes-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lanes-cta span { font-size: 16px; color: var(--muted); }

/* lab: shipped stays a proof grid (genuinely parallel content); concepts
   become a plain row list — not a second card grid */
.lab { padding-top: 64px; padding-bottom: 64px; }
.lab-inner { display: flex; flex-direction: column; gap: 48px; }
.lab-head { display: flex; flex-direction: column; gap: 16px; }
.lab h2 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 34px; }
.lab-head p { max-width: 640px; }
.lab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
a.card:hover, .card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 28px rgba(18, 24, 31, 0.08); color: var(--ink); }
[data-render-theme="dark"] .card:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-name { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.card-name .icon { color: var(--muted); }
.badge { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; font-weight: 700; }
.badge-shipped { background: var(--accent-soft); color: var(--ink); }
[data-render-theme="dark"] .badge-shipped { color: var(--accent); }

.concept-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.concept-row { display: flex; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.concept-name { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.concept-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); flex-shrink: 0; }
.concept-desc { color: var(--muted); font-size: 15px; flex: 1 1 320px; }

/* writing */
.writing { padding-bottom: 64px; }
.writing-inner { display: flex; flex-direction: column; gap: 28px; border-top: 1px solid var(--line); padding-top: 56px; }
.writing-head { display: flex; align-items: baseline; justify-content: space-between; }
.writing-head-stack { display: flex; flex-direction: column; gap: 14px; }
.writing h2 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 34px; }
.rss-link { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.post-row {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.post-row:hover .post-title { color: var(--accent); }
.post-date { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.post-title { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 21px; }
.post-row .icon { margin-left: auto; color: var(--accent); }
.writing-empty { border-top: 1px solid var(--line); padding: 22px 0; }
.writing-empty span { color: var(--muted); font-size: 16px; }

/* about + footer — no section label here on purpose: it's a closing
   statement, not another labeled block in the same rhythm as the rest */
.about { border-top: 1px solid var(--line); }
.about-inner { padding-top: 52px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 40px; }
.about-stack { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.about-lede { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 600; font-size: 25px; line-height: 1.45; }
.footer-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 28px; flex-wrap: wrap; gap: 16px; }
.copyright { font-size: 13px; color: var(--muted); }
.social-links { display: flex; gap: 28px; flex-wrap: wrap; }
.social-links a { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }

/* blog pages */
.blog-index-main { max-width: 880px; margin: 0 auto; padding: 88px 40px; }
.blog-index-stack { display: flex; flex-direction: column; gap: 44px; }
.blog-index-head { display: flex; flex-direction: column; gap: 16px; }
.blog-index-head h1 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 46px; letter-spacing: -0.01em; }
.blog-index-head p { font-size: 17px; line-height: 1.6; max-width: 560px; }
.index-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.index-row:hover .index-title { color: var(--accent); }
.index-title { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 26px; }
.index-summary { color: var(--muted); font-size: 16px; line-height: 1.6; }
.index-end { border-top: 1px solid var(--line); padding: 28px 0; display: flex; align-items: center; justify-content: space-between; }
.index-end span { color: var(--muted); font-size: 16px; }

.post-main { max-width: 650px; margin: 0 auto; padding: 88px 40px 96px; }
.post-stack { display: flex; flex-direction: column; gap: 28px; }
.post-header { display: flex; flex-direction: column; gap: 16px; }
.post-header h1 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 42px; line-height: 1.15; }
.prose p { font-size: 17px; line-height: 1.75; }
.prose p + p, .prose pre + p, .prose p + pre, .prose ul + p, .prose p + ul { margin-top: 24px; }
.prose code {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 15px;
  background: var(--code-bg);
  border-radius: 4px;
  padding: 1px 5px;
}
.prose pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
  overflow-x: auto;
  margin: 0;
}
.prose pre code {
  background: transparent;
  padding: 0;
  font-size: 14px;
  line-height: 1.7;
}
.prose h2 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 28px; margin-top: 16px; }
.prose h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 22px; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 24px; }
.prose li { font-size: 17px; line-height: 1.75; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.post-footer { border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-direction: column; gap: 22px; }
.post-footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.back-link { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }

a, .btn { transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
  .cs .label::before, .lanes .label::before, .lab .label::before, .writing .label::before { animation: none; }
  .statfill { height: 80%; }
  a, .btn, .card { transition: none; }
}

/* mobile — decisions from the 390px artboard */
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  #work, #lab, #about { scroll-margin-top: 76px; }
  .nav-inner { height: 64px; }
  .nav-links { display: none; }
  .nav-toggle-wrap { display: block; }
  .nav .btn { height: 44px; padding: 0 14px; }
  .nav-actions { gap: 10px; }
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .hero h1 { font-size: 34px; line-height: 1.15; }
  .hero-meta { font-size: 12px; line-height: 1.7; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-ctas .icon-link { padding: 12px 0; }
  .cs { padding-bottom: 56px; }
  .cs-inner { gap: 18px; padding-top: 40px; }
  .cs h2 { font-size: 26px; line-height: 1.2; }
  .cs-prose { columns: 1; }
  .cs-bleed { padding-bottom: 56px; }
  .cs-bleed-inner { padding-top: 40px; gap: 18px; }
  .cs-bleed-head { padding: 0 20px; }
  .cs-bleed-head h2 { font-size: 26px; line-height: 1.2; }
  .cs-stat-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-left: 20px; padding-right: 20px; max-width: none; }
  .cs-flow-row { flex-direction: column; gap: 6px; }
  .cs-h { width: auto; }
  .cs-stat-side { padding-right: 0; }
  .stat-number { font-size: 52px; }
  .cs-pullquote p { font-size: 20px; }
  .lanes-inner { padding-top: 48px; padding-bottom: 48px; gap: 24px; }
  .lanes h2, .lab h2, .writing h2 { font-size: 25px; }
  .lane-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lane { padding-left: 16px; gap: 8px; }
  .lane h3 { font-size: 19px; }
  .lab { padding-top: 56px; padding-bottom: 56px; }
  .lab-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { padding: 20px; }
  .concept-row { flex-direction: column; gap: 6px; padding: 16px 0; }
  .writing { padding-bottom: 56px; }
  .writing-inner { padding-top: 40px; gap: 18px; }
  .rss-link { padding: 12px 0; }
  .post-row { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 0; }
  .post-row .icon { display: none; }
  .post-title { font-size: 19px; }
  .about-inner { padding-top: 40px; padding-bottom: 40px; gap: 24px; }
  .about-lede { font-size: 20px; }
  .social-links { gap: 20px; }
  .social-links a { padding: 12px 0; }
  .blog-index-main, .post-main { padding: 48px 20px 64px; }
  .blog-index-head h1 { font-size: 33px; }
  .index-title { font-size: 21px; }
  .post-header h1 { font-size: 29px; }
  .prose pre { padding: 16px 18px; }
}

/* smallest phones (320–380px) — brand wordmark + email button text step aside
   so brand, theme toggle, email icon, and menu all fit one row without wrap */
@media (max-width: 380px) {
  .wordmark { display: none; }
  .nav-email-label { display: none; }
  .nav .btn { width: 44px; padding: 0; }
}
