/* Barn to Track
   Layout: left-aligned 1160px shell. Quiet oat paper and stable green everywhere;
   the one loud moment is the hero clipboard, where barn red marks the thing that changed.
   Leather bands with brass stitching carry the calls to action and the footer. */

@font-face { font-family: "BTT Rokkitt"; src: url("../fonts/rokkitt.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "BTT Franklin"; src: url("../fonts/libre-franklin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "BTT Franklin"; src: url("../fonts/libre-franklin-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "BTT Kalam"; src: url("../fonts/kalam.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* color */
  --paper: #ebe6da;        /* oat linen page */
  --paper-2: #e0d9c9;      /* feed-sack band */
  --card: #f6f3ec;         /* clipboard paper, cards */
  --ink: #1d2420;          /* tack-room green-black */
  --ink-2: #4b534d;
  --line: #cdc4b0;
  --green: #2b4536;        /* stable green: links, headings accents */
  --accent: #2b4536;       /* button fill */
  --accent-ink: #f4f0e7;
  --leather: #6e4426;      /* saddle */
  --brass: #9c7a35;        /* stitching, rules */
  --plate: #ddd0ac;        /* stall nameplate */
  --plate-ink: #2a2318;
  --red: #9b2f22;          /* barn red: marks a change, nothing else */
  --pencil: #2f3b57;       /* handwriting on the clipboard */
  --clip: #7b7465;
  --band: #4a2e1b;         /* leather band */
  --band-2: #3c2515;
  --band-ink: #f1e6d2;
  --band-soft: #d8c7a8;
  --stitch: #c9a55a;
  --todo-bg: rgba(156, 122, 53, .1);
  --focus: #2b4536;
  --cover: #2b4536;
  --cover-ink: #f4f0e7;

  /* type */
  --f-display: "BTT Rokkitt", "Rokkitt", "Rockwell", "Roboto Slab", Georgia, serif;
  --f-body: "BTT Franklin", "Libre Franklin", "Franklin Gothic Book", "Helvetica Neue", Arial, sans-serif;
  --f-hand: "BTT Kalam", "Kalam", "Segoe Print", "Bradley Hand", cursive;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.55rem, 1.2rem + 1.3vw, 2rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);

  --radius: 8px;
  --shell: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171612; --paper-2: #1f1d18; --card: #24221c; --ink: #ece6d8; --ink-2: #b6af9f;
    --line: #3b372e; --green: #a8cbb1; --accent: #a8cbb1; --accent-ink: #13201a; --leather: #d29d72;
    --brass: #cfae66; --plate: #3a3222; --plate-ink: #efe1bd; --red: #e8836c; --pencil: #b9c6e2;
    --clip: #8b8372; --band: #2b1e14; --band-2: #22170f; --band-ink: #efe4cf; --band-soft: #cdbb9b;
    --stitch: #b8964f; --todo-bg: rgba(207, 174, 102, .1); --focus: #a8cbb1; --cover: #263b2f; --cover-ink: #e6eee7;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #171612; --paper-2: #1f1d18; --card: #24221c; --ink: #ece6d8; --ink-2: #b6af9f;
  --line: #3b372e; --green: #a8cbb1; --accent: #a8cbb1; --accent-ink: #13201a; --leather: #d29d72;
  --brass: #cfae66; --plate: #3a3222; --plate-ink: #efe1bd; --red: #e8836c; --pencil: #b9c6e2;
  --clip: #8b8372; --band: #2b1e14; --band-2: #22170f; --band-ink: #efe4cf; --band-soft: #cdbb9b;
  --stitch: #b8964f; --todo-bg: rgba(207, 174, 102, .1); --focus: #a8cbb1; --cover: #263b2f; --cover-ink: #e6eee7;
  color-scheme: dark;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--f-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--step-4); line-height: 1.02; font-weight: 750; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: .6em 1em; border-radius: 6px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  max-width: var(--shell); margin-inline: auto; width: 100%;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.prose { max-width: 66ch; display: grid; gap: 1.1em; }
.prose h2 { margin-top: .9em; font-size: var(--step-2); }
.prose h3 { margin-top: .6em; }
.prose ul, .prose ol { display: grid; gap: .45em; padding-left: 1.25em; }
.prose li::marker { color: var(--brass); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-2); }
.fine { font-size: var(--step--1); color: var(--ink-2); }
.label { font-size: var(--step--1); font-weight: 650; color: var(--leather); letter-spacing: .01em; }

/* ---------- buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 650 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  padding: .85em 1.35em; border-radius: 6px; border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink-2); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-small { padding: .6em 1em; font-size: .95rem; background: var(--accent); color: var(--accent-ink); }
.btn-brass { background: var(--stitch); color: #231709; }
.btn-brass:hover { background: color-mix(in srgb, var(--stitch) 85%, #fff); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

label { font-weight: 600; font-size: .95rem; }
input, select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 6px; padding: .75em .85em;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid color-mix(in srgb, var(--focus) 30%, transparent); outline-offset: 0; }
textarea { min-height: 9em; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 1.15em; height: 1.15em; padding: 0; accent-color: var(--accent); flex: none; margin-top: .2em; }
.field { display: grid; gap: .35em; margin: 0; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row input { flex: 1 1 220px; min-width: 0; }
.consent { display: flex; gap: .65em; align-items: flex-start; font-size: .95rem; }
.consent label { font-weight: 400; }

/* ---------- header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; fill: var(--green); flex: none; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font: 750 1.45rem/1 var(--f-display); letter-spacing: -.01em; }
.brand-sub { font-size: .78rem; color: var(--ink-2); letter-spacing: .02em; margin-top: 3px; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { display: block; padding: .5em .7em; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .97rem; border-radius: 6px; }
.site-nav a:not(.btn):hover { background: var(--paper-2); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--green); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.nav-cta { margin-left: 8px; }
.nav-contact { display: none; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--line); color: var(--ink); border-radius: 6px; padding: .5em .8em; font: 600 .95rem var(--f-body); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); }
  .site-nav a:not(.btn) { padding: .85em .2em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"]:not(.btn) { box-shadow: none; }
  .nav-contact { display: block; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; padding: .9em; }
}
@media (max-width: 420px) { .brand-sub { display: none; } }

.crumbs { display: flex; flex-wrap: wrap; gap: .45em; padding-top: 22px; font-size: .9rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.crumbs .sep { color: var(--brass); }

/* ---------- sections */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--band { background: var(--paper-2); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 64ch; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }
.stitch-rule { height: 0; border: 0; border-top: 2px dashed var(--brass); opacity: .7; margin: 0; }
.page-head { padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 48px); display: grid; gap: 18px; }
.page-head h1 { max-width: 20ch; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: 22px; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lede { max-width: 50ch; }
.hero-note { font-size: .95rem; color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
.hero-note svg { width: 22px; height: 22px; fill: var(--brass); flex: none; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* the clipboard: the page's one loud moment */
.clipboard { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 46px clamp(16px, 3vw, 28px) 22px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(40, 30, 15, .55); transform: rotate(.6deg); }
.clipboard::before { content: ""; position: absolute; top: -16px; left: 50%; width: 132px; height: 40px; margin-left: -66px; border-radius: 10px 10px 6px 6px; background: var(--clip); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18); }
.clipboard::after { content: ""; position: absolute; top: -7px; left: 50%; width: 46px; height: 12px; margin-left: -23px; border-radius: 6px; background: var(--card); }
.sheet-title { font: 750 1.35rem/1.1 var(--f-display); }
.sheet-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 6px 0 14px; font-size: .85rem; color: var(--ink-2); }
.sheet-meta .ex { font-weight: 650; color: var(--leather); }
.sheet { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sheet th { text-align: left; font-weight: 650; font-size: .78rem; color: var(--ink-2); padding: 0 8px 6px 0; border-bottom: 1.5px solid var(--ink); }
.sheet td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet td:first-child { font-weight: 600; width: 28%; }
.sheet td:last-child { width: 30%; }
.sheet .hand { font: 400 1.02rem/1.25 var(--f-hand); color: var(--pencil); }
.sheet .ok::after { content: " \2713"; color: var(--green); font-family: var(--f-body); font-weight: 700; }
.changed { position: relative; display: inline-block; color: var(--red) !important; }
.changed { padding: 0 4px; }
.changed::before { content: ""; position: absolute; inset: -7px -9px -6px -9px; border: 2px solid var(--red); border-radius: 50% 46% 52% 48% / 58% 50% 54% 46%; transform: rotate(-3deg); pointer-events: none; }
.sheet-foot { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.sheet-foot strong { color: var(--red); font-weight: 650; }
.margin-note { font: 400 1.05rem/1.2 var(--f-hand); color: var(--red); }

/* ---------- philosophy */
.creed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: creed; }
.creed li { list-style: none; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px dashed var(--brass); }
.creed h3 { font-size: var(--step-2); }
.creed p { color: var(--ink-2); }
@media (max-width: 820px) { .creed { grid-template-columns: 1fr; } }

/* ---------- stall cards (modules) */
.stalls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 28px); }
@media (max-width: 820px) { .stalls { grid-template-columns: 1fr; } }
.stall { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px clamp(18px, 2.5vw, 26px) 22px; display: grid; gap: 16px; grid-template-rows: auto auto 1fr auto; }
.stall-plate { position: relative; background: var(--plate); color: var(--plate-ink); border: 1px solid var(--brass); border-radius: 4px; padding: 12px 34px; text-align: center; }
.stall-plate::before, .stall-plate::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--brass); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brass) 60%, #000); }
.stall-plate::before { left: 12px; }
.stall-plate::after { right: 12px; }
.stall-name { font-size: 1.4rem; }
.stall-name a { color: var(--plate-ink); text-decoration: none; }
.stall-name a:hover { text-decoration: underline; }
.stall-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.stall-line { color: var(--ink-2); }
.stall-facts { margin: 0; display: grid; gap: 12px; align-content: start; }
.stall-facts > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.stall-facts dt { font-size: .85rem; font-weight: 650; color: var(--leather); }
.stall-facts dd { margin: 0; font-size: .95rem; }
.stall-facts ul { list-style: none; display: grid; gap: 3px; }
.stall-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); margin: 0 8px 2px 0; }
.stall-link { font-weight: 650; justify-self: start; }
.stalls--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stall--compact { grid-template-rows: auto 1fr auto; }
@media (max-width: 960px) { .stalls--compact { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .stall-facts > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- steps (a real sequence) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 32px); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step); font: 750 2.6rem/1 var(--f-display); color: var(--brass); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- photos and placeholders */
.photo { margin: 0; display: grid; gap: 10px; }
.photo img { width: 100%; border-radius: 6px; border: 1px solid var(--line); background: var(--paper-2); }
.photo figcaption { font-size: .88rem; color: var(--ink-2); }
.photo--tilt img { transform: rotate(-1.2deg); box-shadow: 0 14px 30px -22px rgba(40, 30, 15, .6); }
.photo--portrait { max-width: 400px; justify-self: center; }

/* ---------- notes list */
.notes { list-style: none; display: grid; }
.notes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.notes li:last-child { border-bottom: 1px solid var(--line); }
.notes h3 { font-size: 1.35rem; }
.notes h3 a { color: var(--ink); text-decoration: none; }
.notes h3 a:hover { color: var(--green); text-decoration: underline; }
.notes p { grid-column: 1 / -1; color: var(--ink-2); max-width: 70ch; }
.notes .kind { font-size: .85rem; font-weight: 650; color: var(--leather); white-space: nowrap; }

/* ---------- leather band */
.band-leather { background: var(--band); color: var(--band-ink); padding-block: clamp(14px, 2vw, 22px); }
.band-leather .stitched { border: 2px dashed var(--stitch); border-radius: 10px; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 52px); }
.band-leather h2, .band-leather h3 { color: var(--band-ink); }
.band-leather p { color: var(--band-soft); }
.band-leather a:not(.btn) { color: var(--band-ink); }
.band-leather .lede { color: var(--band-soft); }
.band-leather input, .band-leather select { background: color-mix(in srgb, var(--band-2) 70%, #000 0%); color: var(--band-ink); border-color: color-mix(in srgb, var(--stitch) 45%, transparent); }
.band-leather input::placeholder { color: color-mix(in srgb, var(--band-soft) 70%, transparent); }
.band-leather label, .band-leather .consent label { color: var(--band-ink); }
.band-leather .btn-primary { background: var(--stitch); color: #231709; }
.band-leather .btn-primary:hover { background: color-mix(in srgb, var(--stitch) 85%, #fff); }
.band-leather .fine { color: var(--band-soft); }
.band-leather :focus-visible { outline-color: var(--stitch); }

/* ---------- signup form */
.signup { display: grid; gap: 16px; }
.signup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.signup-grid .field--wide { grid-column: 1 / -1; }
.signup .btn { justify-self: start; }
@media (max-width: 560px) { .signup-grid { grid-template-columns: 1fr; } .signup .btn { justify-self: stretch; } }

/* ---------- buy block */
.buy { display: grid; gap: 12px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.buy-price { font: 750 2rem/1 var(--f-display); }
.buy-note { font-size: .97rem; }
.buy .btn { justify-self: start; }
.buy--wait .btn { justify-self: auto; }

/* ---------- module page */
.module-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: clamp(28px, 4vw, 48px) clamp(36px, 5vw, 64px); }
.module-head > * { min-width: 0; }
.module-head h1 { font-size: var(--step-4); max-width: 16ch; }
.module-cover { position: relative; background: var(--cover); color: var(--cover-ink); border-radius: 6px; padding: 26px 24px 22px; display: grid; gap: 14px; min-height: 260px; align-content: space-between; overflow: hidden; }
.module-cover .mc-series { font-size: .85rem; font-weight: 650; opacity: .85; }
.module-cover .mc-name { font: 750 2rem/1.02 var(--f-display); color: inherit; }
.module-cover .mc-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; font-size: .85rem; opacity: .9; }
.module-cover svg { width: 64px; height: 64px; fill: currentColor; opacity: .9; }
.module-cover::after { content: ""; position: absolute; inset: 9px; border: 1.5px dashed color-mix(in srgb, currentColor 45%, transparent); border-radius: 4px; pointer-events: none; }
@media (max-width: 860px) { .module-head { grid-template-columns: 1fr; } }
.inside-list { list-style: none; display: grid; gap: 14px; }
.inside-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.inside-list svg { width: 24px; height: 24px; fill: var(--brass); margin-top: 2px; }
.inside-list strong { display: block; }
.aside-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.aside-box h2, .aside-box h3 { font-size: 1.25rem; }

/* ---------- products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; align-content: start; }
.product--slot { background: transparent; border-style: dashed; }
.product-cat { font-size: .82rem; font-weight: 650; color: var(--leather); }
.product-name { font-size: 1.15rem; }
.product-why { color: var(--ink-2); font-size: .95rem; }
.aff { font-size: .82rem; color: var(--ink-2); }
.tack-cat { display: grid; gap: 18px; padding-block: 28px; border-top: 1px solid var(--line); }
.tack-cat-head { display: grid; gap: 4px; }
.tack-cat-head h2 { font-size: var(--step-2); }
.tack-cat-head p { color: var(--ink-2); }

/* ---------- past performances (Derek's career) */
.pp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.pp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.pp caption { text-align: left; padding: 14px 16px 0; font-size: .85rem; color: var(--ink-2); }
.pp th { text-align: left; font: 700 .85rem/1.2 var(--f-body); color: var(--leather); padding: 14px 16px 10px; border-bottom: 1.5px solid var(--ink); }
.pp td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pp tr:last-child td { border-bottom: 0; }
.pp td:first-child { font: 700 1.05rem/1.25 var(--f-display); min-width: 9em; }
.pp td:nth-child(2) { white-space: nowrap; }
@media (max-width: 640px) {
  .pp-wrap { overflow: visible; }
  .pp { min-width: 0; }
  .pp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pp tr { display: grid; gap: 6px; padding: 16px; border-bottom: 1px solid var(--line); }
  .pp tr:last-child { border-bottom: 0; }
  .pp td { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; padding: 0; border: 0; }
  .pp td::before { content: attr(data-label); font: 650 .82rem/1.5 var(--f-body); color: var(--leather); }
  .pp td:first-child { display: block; min-width: 0; font-size: 1.15rem; margin-bottom: 2px; }
  .pp td:first-child::before { content: none; }
  .pp td:nth-child(2) { white-space: normal; }
}

/* ---------- Derek's record and tracks */
.record { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px dashed var(--brass); border-bottom: 1px solid var(--line); }
.record > div { padding: 18px 16px 18px 0; display: grid; gap: 4px; align-content: start; }
.record > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.record dt { font: 750 clamp(2rem, 1.5rem + 2vw, 2.8rem)/1 var(--f-display); color: var(--green); font-variant-numeric: tabular-nums; }
.record dd { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 720px) { .record { grid-template-columns: repeat(2, minmax(0, 1fr)); } .record > div:nth-child(3) { padding-left: 0; border-left: 0; } .record > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.tracks { margin: 0; display: grid; }
.tracks > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tracks > div:last-child { border-bottom: 1px solid var(--line); }
.tracks dt { font-weight: 650; color: var(--leather); }
.tracks dd { margin: 0; }
@media (max-width: 480px) { .tracks > div { grid-template-columns: 1fr; gap: 2px; } }
.pull { font: 700 var(--step-2)/1.2 var(--f-display); }

/* ---------- archive */
.archive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 820px) { .archive { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .archive { grid-template-columns: 1fr; } }

/* ---------- FAQ */
.faq { display: grid; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font: 700 1.2rem/1.3 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--f-body); color: var(--brass); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); max-width: 66ch; display: grid; gap: .8em; }

/* ---------- vote / checkbox grid */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; border: 0; padding: 0; margin: 0; }
.checks legend { font-weight: 650; margin-bottom: 10px; }
.checks label { display: flex; gap: .6em; align-items: flex-start; font-weight: 450; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; }

/* ---------- article */
.article { padding-block: 8px clamp(56px, 7vw, 96px); }
.article-head { display: grid; gap: 14px; padding-block: clamp(24px, 4vw, 48px) 28px; max-width: 66ch; }
.article-head h1 { font-size: var(--step-3); max-width: 22ch; }
.byline { font-size: .92rem; color: var(--ink-2); }
.callout { border-left: 3px solid var(--brass); padding: 4px 0 4px 18px; color: var(--ink); font-size: 1.08rem; }
.callout--change { border-left-color: var(--red); }

/* ---------- needs-details markers */
.todo { border: 1.5px dashed var(--brass); background: var(--todo-bg); border-radius: 6px; padding: .55em .8em; color: var(--ink-2); font-size: .95em; font-style: italic; }
.todo-inline { display: inline; padding: 0 .1em; border: 0; border-bottom: 1.5px dashed var(--brass); border-radius: 0; background: none; font-size: .9em; }

/* ---------- footer */
.site-footer { background: var(--band); color: var(--band-ink); padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); margin-top: 0; }
.footer-stitch { border: 2px dashed var(--stitch); border-radius: 10px; padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 40px) 22px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-name { font: 750 1.6rem/1 var(--f-display); margin-bottom: 10px; }
.footer-motto { color: var(--band-soft); max-width: 34ch; }
.footer-head { font-weight: 700; margin-bottom: 8px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: var(--band-ink); }
.site-footer p { color: var(--band-soft); }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--stitch) 35%, transparent); font-size: .88rem; }
.footer-note { margin-left: auto; }
.email-text { user-select: all; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } .footer-note { margin-left: 0; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

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