/* American Fancy Mouse Association — site styles */

:root {
  --bg: #e2e2df;
  --surface: #ececea;
  --surface-2: #d8d8d4;
  --surface-3: #cfcfcb;
  --ink: #1a1a1c;
  --ink-2: #45454a;
  --muted: #6c6c71;
  --line: #cdcdc9;
  --line-2: #b9b9b4;
  --accent: #e3897f;
  --accent-ink: #a3423a;
  --accent-soft: #edd5d1;
  --on-ink: #f1f1ef;
  --band-bg: #1c1c1f;
  --band-ink: #f1f1ef;
  --band-muted: #a1a1a6;
  --band-line: #333338;
  --photo-bg: transparent;
  --paper: #f7f7f5;
  --todo-bg: #fff5d4;
  --todo-line: #ddb12a;
  --todo-ink: #6b5000;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(21, 20, 24, .04), 0 14px 32px -14px rgba(21, 20, 24, .16);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e11;
    --surface: #17171b;
    --surface-2: #1d1d22;
    --surface-3: #26262c;
    --ink: #f2f0ec;
    --ink-2: #c9c6ce;
    --muted: #918d98;
    --line: #27272d;
    --line-2: #36363d;
    --accent: #f09a90;
    --accent-ink: #f4aaa1;
    --accent-soft: #33201f;
    --on-ink: #0e0e11;
    --band-bg: #1b1a20;
    --band-ink: #f2f0ec;
    --band-muted: #9a96a1;
    --band-line: #2f2e35;
    --todo-bg: #352c0e;
    --todo-line: #b58f1d;
    --todo-ink: #f3d688;
    --photo-bg: #d6d6d2;
    --paper: #232328;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 32px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.25; }
::selection { background: var(--accent); color: #1a0f0e; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 38ch; }
.prose { color: var(--ink-2); max-width: 62ch; }
.prose p + p { margin-top: 1em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font);
  padding: 15px 22px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #1d0f0d; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.text-link { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.text-link:hover { color: var(--accent-ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled, .nav-open .site-header { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { height: 34px; width: auto; flex: none; color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: -.015em; line-height: 1.15; color: var(--ink); white-space: nowrap; }
@media (max-width: 560px) {
  .brand { gap: 10px; }
  .brand-mark { height: 30px; }
  .brand-name { font-size: 15px; }
  .brand-name span { display: block; }
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.nav-links a:not(.btn):hover { background: var(--surface-2); color: var(--ink); }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-links .btn { margin-left: 8px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); cursor: pointer; flex: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span:not(.sr-only) { width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-links a:not(.btn) { padding: 16px 2px; font-size: 19px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn):hover, .nav-links a:not(.btn)[aria-current="page"] { background: transparent; }
  .nav-links a:not(.btn)[aria-current="page"] { color: var(--accent-ink); }
  .nav-links .btn { margin: 20px 0 0; }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head > div { max-width: 640px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.split h2 { margin-top: 14px; }
.split .prose { font-size: 1.12rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { margin: 22px 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; }
}
/* Artwork on white backgrounds: multiply lets the white melt into the grey page */
.hero-photo { margin: 0; background: var(--photo-bg); border-radius: var(--radius-lg); overflow: hidden; }
.hero-photo img { width: 100%; height: auto; mix-blend-mode: multiply; }

/* ---------- mouse stage ---------- */
.stage {
  position: relative; overflow: hidden;
  aspect-ratio: 5 / 4; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 1.4px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 50% 12%, var(--surface) 0%, var(--surface-2) 72%);
  color: var(--muted);
}
.stage .layer { position: absolute; inset: 0; display: grid; place-items: center; padding: 6% 6% 12%; transition: opacity .8s ease; }
.stage .layer.out { opacity: 0; }
.stage svg { width: 100%; height: auto; }
.stage-caption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px 8px 10px; font-size: 14px; font-weight: 600; color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.pill .swatch { width: 14px; height: 14px; }
.stage-btn {
  pointer-events: auto; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; font-size: 16px;
  transition: transform .15s ease;
}
.stage-btn:hover { transform: rotate(90deg); }

.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }

/* gentle idle motion for featured mice */
.mouse-svg.alive .m-wh { transform-origin: 346px 154px; animation: whisk 3.4s ease-in-out infinite; }
.mouse-svg.alive .m-ear { transform-origin: 258px 112px; animation: ear 7s ease-in-out infinite; }
.mouse-svg.alive .m-tail { transform-origin: 104px 192px; animation: tail 6s ease-in-out infinite; }
@keyframes whisk { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-4deg); } 55% { transform: rotate(3deg); } 70% { transform: rotate(-1deg); } }
@keyframes ear { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-7deg); } 94% { transform: rotate(2deg); } }
@keyframes tail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) {
  .mouse-svg.alive .m-wh, .mouse-svg.alive .m-ear, .mouse-svg.alive .m-tail { animation: none; }
  .stage .layer { transition: none; }
}
.pop { animation: pop .35s ease; }
@keyframes pop { from { opacity: .4; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 920px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.mouse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.mouse-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 10px 22px; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.mouse-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.mouse-card .thumb { background: var(--surface-2); border-radius: 14px; aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 6% 8% 9%; color: var(--muted); }
.mouse-card .thumb svg { width: 100%; }
.mouse-card .kicker { margin: 18px 10px 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mouse-card h3 { margin: 8px 10px 0; }
.mouse-card p { margin: 8px 10px 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.mouse-card .go { margin: auto 10px 0; padding-top: 18px; font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 6px; }

/* ---------- band (Fancy Mouse Day) ---------- */
.band {
  position: relative; overflow: hidden;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center;
}
.band .eyebrow .dot { background: var(--ink); }
.band h2 { margin-top: 16px; }
.band p { color: var(--ink-2); margin-top: 18px; max-width: 42ch; font-size: 1.12rem; }

/* wall-calendar card */
.mouse-day-cal { justify-self: center; width: 100%; max-width: 330px; }
.cal-card { position: relative; background: var(--paper); border-radius: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 22px 40px -18px rgba(0, 0, 0, .28); overflow: visible; }
.cal-rings { position: absolute; top: -9px; left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 22%; z-index: 1; }
.cal-rings span { width: 8px; height: 22px; border-radius: 4px; background: var(--ink-2); box-shadow: 0 0 0 3px var(--surface); }
.cal-head {
  display: flex; justify-content: space-between; align-items: baseline;
  background: var(--ink); color: var(--on-ink); border-radius: 18px 18px 0 0;
  padding: 22px 22px 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em;
}
.cal-head span:last-child { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .1em; opacity: .7; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; padding: 16px 14px 20px; text-align: center; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-grid span { height: 34px; display: grid; place-items: center; }
.cal-grid .dow { font-family: var(--font-mono); font-size: 11px; color: var(--muted); height: 26px; }
.cal-grid .hit { width: 34px; margin: 0 auto; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 600; }
.cal-caption { margin-top: 18px; text-align: center; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) {
  .band { grid-template-columns: 1fr; }
  .mouse-day-cal { justify-self: start; }
}

/* ---------- page head ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 20px 0 20px; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-head .lede { max-width: 52ch; }

/* ---------- explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.explorer .stage { aspect-ratio: 4 / 3; position: sticky; top: calc(var(--header-h) + 20px); }
.explorer .stage .layer { padding: 6% 6% 14%; }
.variety-name { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 12px 0 20px; }
.spec { margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.spec dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.spec dd { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip > span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--surface);
  cursor: pointer; user-select: none; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip > span:hover { border-color: var(--ink-2); color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip .swatch { width: 14px; height: 14px; }
@media (max-width: 920px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer .stage { top: calc(var(--header-h) + 8px); z-index: 5; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
}

/* ---------- doc layout (care) ---------- */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: flex; flex-direction: column; }
.toc .eyebrow { margin-bottom: 14px; }
.toc a { display: block; padding: 7px 0 7px 16px; color: var(--muted); text-decoration: none; font-size: 15px; border-left: 2px solid var(--line); transition: color .15s ease, border-color .15s ease; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--accent); font-weight: 500; }
.doc-body > section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.doc-body > section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-body h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-bottom: 20px; }
.doc-body h2 .idx { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--accent-ink); font-weight: 500; display: block; margin-bottom: 10px; }
.checklist { list-style: none; padding: 0; display: grid; gap: 14px; color: var(--ink-2); max-width: 66ch; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 4px var(--accent); }
.checklist strong { color: var(--ink); font-weight: 600; }
.callout { margin-top: 28px; background: var(--accent-soft); border-radius: var(--radius); padding: 20px 24px; color: var(--ink); max-width: 66ch; font-size: 15.5px; }
.callout strong { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 920px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .toc .eyebrow { width: 100%; margin-bottom: 4px; }
  .toc a { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
  .toc a.active { border-color: var(--ink); }
}

/* ---------- shows ---------- */
.criteria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.criterion { border-top: 2px solid var(--ink); padding-top: 18px; }
.criterion .n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.criterion h3 { margin: 10px 0 8px; font-size: 1.3rem; }
.criterion p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .criteria { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .criteria { grid-template-columns: 1fr; } }

.show-list { border-bottom: 1px solid var(--line); }
.show-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 0; border-top: 1px solid var(--line); }
.show-date { text-align: center; border: 1px solid var(--line); border-radius: 16px; padding: 10px 0 12px; background: var(--surface); }
.show-date .mo { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.show-date .d { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.show-item h3 { font-size: 1.25rem; }
.show-item p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.show-item.is-special .show-date { background: var(--ink); border-color: var(--ink); }
.show-item.is-special .show-date .mo, .show-item.is-special .show-date .d { color: var(--on-ink); }
.calendar-note { margin-top: 18px; color: var(--muted); font-size: 15px; }
@media (max-width: 600px) {
  .show-item { grid-template-columns: 72px minmax(0, 1fr); }
  .show-item .btn { grid-column: 2; justify-self: start; }
}

.empty {
  display: grid; justify-items: center; text-align: center; gap: 10px;
  border: 1px dashed var(--line-2); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px) 24px;
  color: var(--muted);
}
.empty svg { width: 120px; color: var(--muted); opacity: .9; }
.empty strong { color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -.01em; }
.empty p { max-width: 44ch; font-size: 15.5px; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 18px; }
.person h3 { font-size: 1.12rem; }
.person .role { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.person p { color: var(--ink-2); font-size: 15px; margin-top: 12px; }

/* ---------- membership + forms ---------- */
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 920px) { .join-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }
.panel h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.price { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 6px; }
.price .amt { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.4rem); letter-spacing: -.04em; line-height: 1; }
.price .per { color: var(--muted); }
.form { display: grid; gap: 18px; margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.form .btn { justify-self: start; }
.form-note { font-size: 14.5px; color: var(--muted); }
.form-note.show { color: var(--todo-ink); background: var(--todo-bg); border: 1px dashed var(--todo-line); border-radius: 12px; padding: 12px 14px; }
.signup-inline { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; max-width: 520px; }
.signup-inline input { flex: 1 1 240px; font: inherit; font-size: 16px; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }
.signup-inline input:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cta .stage { aspect-ratio: 16 / 10; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(24px, 3vw, 48px); padding: 56px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-grid p { color: var(--muted); margin-top: 16px; max-width: 34ch; }
.footer-grid h4 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- fill-in markers (hidden when showTodos is false in config.js) ---------- */
.todo {
  background: var(--todo-bg); color: var(--todo-ink);
  border: 1px dashed var(--todo-line); border-radius: 6px;
  padding: 0 .45em; font-family: var(--font-mono); font-size: .8em; font-weight: 500;
  letter-spacing: 0; text-transform: none; white-space: normal;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.todo::before { content: "✎ "; }
.todo-block {
  border: 1.5px dashed var(--todo-line); background: var(--todo-bg); color: var(--todo-ink);
  border-radius: var(--radius); padding: 18px 22px; font-size: 15px; line-height: 1.55;
}
.todo-block::before {
  content: "To fill in"; display: block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .8;
}
.hide-todos .todo, .hide-todos .todo-block, .hide-todos .todo-wrap { display: none !important; }

.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 24px; }
.mt-0 { margin-top: 0 !important; }
