/* =========================================================================
   Speedy B Stitchery — design system
   Instrument Serif for display, Newsreader for text; warm bone + indigo.
   ========================================================================= */

/* ---------- fonts (self-hosted, SIL Open Font License 1.1) ---------- */
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/newsreader-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/newsreader-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  --bone:        #F7F3EC;
  --bone-deep:   #EFE8DC;
  --surface:     #FFFDF9;
  --ink:         #1A1815;
  --ink-soft:    #4A443B;
  --muted:       #726A5D;
  --line:        #E2D9C9;
  --line-strong: #CFC3AD;

  --indigo:      #26384F;
  --indigo-soft: #3C5673;
  --clay:        #BB6B48;
  --sage:        #7F9175;

  --bg:      var(--bone);
  --panel:   var(--surface);
  --accent:  var(--indigo);

  --focus: #2F6DD0;

  --shadow-sm: 0 1px 2px rgba(26, 24, 21, .05), 0 2px 8px rgba(26, 24, 21, .04);
  --shadow-md: 0 2px 4px rgba(26, 24, 21, .05), 0 10px 26px rgba(26, 24, 21, .07);
  --shadow-lg: 0 4px 10px rgba(26, 24, 21, .06), 0 26px 60px rgba(26, 24, 21, .12);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --gutter: clamp(20px, 5vw, 72px);
  --shell: 1240px;
  --section-y: clamp(64px, 9vw, 132px);

  --step--1: clamp(.82rem, .79rem + .14vw, .9rem);
  --step-0:  clamp(1.02rem, .98rem + .2vw, 1.15rem);
  --step-1:  clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --step-2:  clamp(1.55rem, 1.35rem + .9vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 1.8vw, 3.1rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.2vw, 4.6rem);
  --step-5:  clamp(3.1rem, 2rem + 5vw, 6.4rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bone:        #14130F;
    --bone-deep:   #0F0E0B;
    --surface:     #1E1C17;
    --ink:         #F3EEE4;
    --ink-soft:    #D3CBBC;
    --muted:       #A29886;
    --line:        #332E26;
    --line-strong: #4A4337;

    --indigo:      #A9C0DC;
    --indigo-soft: #8FA9C7;
    --clay:        #E09270;
    --sage:        #A6B79A;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .35), 0 10px 26px rgba(0, 0, 0, .45);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, .4), 0 26px 60px rgba(0, 0, 0, .55);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bone: #14130F; --bone-deep: #0F0E0B; --surface: #1E1C17;
  --ink: #F3EEE4; --ink-soft: #D3CBBC; --muted: #A29886;
  --line: #332E26; --line-strong: #4A4337;
  --indigo: #A9C0DC; --indigo-soft: #8FA9C7; --clay: #E09270; --sage: #A6B79A;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 2px 4px rgba(0,0,0,.35), 0 10px 26px rgba(0,0,0,.45);
  --shadow-lg: 0 4px 10px rgba(0,0,0,.4), 0 26px 60px rgba(0,0,0,.55);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* Components below set `display`, which would otherwise beat the UA rule for
   [hidden] and leave toggled-off elements visible. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-underline-offset: 3px; }

button, input, select, textarea { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--bone);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- layout ---------- */
.shell {
  width: min(100% - var(--gutter) * 2, var(--shell));
  margin-inline: auto;
}
.shell--wide { width: min(100% - var(--gutter) * 2, 1480px); }
.shell--narrow { width: min(100% - var(--gutter) * 2, 760px); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.section--sunk { background: var(--bone-deep); }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--step--1);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: currentColor; opacity: .55;
}
.eyebrow--plain::before { display: none; }

.display   { font-size: var(--step-4); }
.display-xl{ font-size: var(--step-5); }
.h2        { font-size: var(--step-3); }
.h3        { font-size: var(--step-2); }
.h4        { font-size: var(--step-1); }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.muted { color: var(--muted); }
.measure { max-width: 62ch; }
.measure-tight { max-width: 46ch; }

.link-underline {
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, currentColor 35%, transparent);
  transition: text-decoration-color .2s var(--ease);
}
.link-underline:hover { text-decoration-color: currentColor; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px;
  padding: 14px 30px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step--1);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--ink); }

/* In dark mode --indigo flips to a light blue, so the label flips with it. */
.btn--accent {
  --btn-bg: var(--indigo);
  --btn-bd: var(--indigo);
  --btn-fg: light-dark(#FBF8F2, #131A23);
}

.btn--sm { min-height: 42px; padding: 10px 20px; }
.btn--full { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- stitched divider ---------- */
.stitch {
  display: flex; align-items: center; gap: 16px;
  color: var(--line-strong);
}
.stitch::before, .stitch::after {
  content: ""; flex: 1; height: 0;
  border-top: 1.5px dashed currentColor;
}
.stitch svg { width: 22px; height: 22px; opacity: .8; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header[data-stuck="true"] { border-bottom-color: var(--line); }

.nav {
  display: flex; align-items: center; gap: 24px;
  min-height: 74px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.nav__brand img { width: 46px; height: 46px; }
.nav__brand span {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.22rem; letter-spacing: -.01em; white-space: nowrap;
}

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a {
  display: block; padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: .98rem; text-decoration: none;
  color: var(--ink-soft);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav__links a:hover { background: var(--bone-deep); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--bone-deep); }

.nav__cta { display: inline-flex; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: transparent; cursor: pointer;
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__toggle .i-close { display: none; }
.nav__toggle[aria-expanded="true"] .i-close { display: block; }
.nav__toggle[aria-expanded="true"] .i-menu { display: none; }

@media (max-width: 940px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { width: 100%; }
  .nav__panel {
    position: fixed; inset: 74px 0 auto 0;
    display: grid; gap: 4px;
    padding: 18px var(--gutter) 30px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav__panel[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__links a { padding: 14px 16px; border-radius: var(--r-sm); font-size: 1.1rem; }
  .nav__panel .btn { margin-top: 12px; }
}
@media (min-width: 941px) {
  .nav__panel { display: contents; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(36px, 5vw, 72px) 0; }

.hero__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.hero__title { font-size: var(--step-5); margin-block: .18em .34em; }
.hero__title em { font-style: italic; color: var(--indigo); }

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(26px, 3vw, 38px);
}

.hero__media { position: relative; }
.hero__photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--bone-deep);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }

.hero__badge {
  position: absolute; left: -14px; bottom: 26px;
  display: grid; gap: 2px;
  padding: 16px 22px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hero__badge strong { font-family: "Instrument Serif", Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.hero__badge span { font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .hero__badge { left: 12px; bottom: 12px; padding: 12px 16px; } }

/* swatch rail under the hero */
.swatch-rail {
  display: flex; gap: 10px; margin-top: 22px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.swatch-rail__item {
  flex: none; width: 62px; height: 62px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-size: 50% 50%;
  box-shadow: var(--shadow-sm);
}

/* ---------- cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.card--link:hover, .card--link:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card__icon {
  width: 46px; height: 46px; margin-bottom: 4px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: color-mix(in oklab, var(--indigo) 12%, transparent);
  color: var(--indigo);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--step-2); }
.card p { color: var(--ink-soft); }
.card__more {
  margin-top: auto; padding-top: 10px;
  font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase;
  color: var(--indigo); text-decoration: none;
  display: inline-flex; align-items: center; gap: .5em;
}
.card--link a.card__stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__more svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.card--link:hover .card__more svg { transform: translateX(4px); }

/* ---------- fabric swatches (builder + shop gallery) ---------- */
/* fabric swatches */
.sw-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}
.sw { position: relative; display: grid; gap: 5px; cursor: pointer; }
.sw__img {
  aspect-ratio: 1;
  border-radius: 14px;
  background-size: 62% 62%;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.sw:hover .sw__img { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sw__img--same {
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, var(--bone-deep) 0 8px, var(--panel) 8px 16px);
  color: var(--muted);
}
.sw__img--same svg { width: 22px; height: 22px; }
.sw__name { font-size: .92rem; line-height: 1.25; }
.sw__meta { font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.sw__check {
  position: absolute; top: 8px; right: 8px;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--indigo);
  color: light-dark(#FBF8F2, #131A23);
  opacity: 0; transform: scale(.6);
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.sw__check svg { width: 14px; height: 14px; }
.sw.is-on .sw__img { border-color: var(--indigo); box-shadow: 0 0 0 2.5px var(--indigo); }
.sw.is-on .sw__check { opacity: 1; transform: none; }
.sw:has(input:focus-visible) .sw__img { outline: 2px solid var(--focus); outline-offset: 4px; }

/* ---------- link tiles (the four original CTAs) ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tile {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  text-decoration: none;
  background: var(--panel);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.tile:hover { background: var(--ink); color: var(--bone); transform: translateY(-2px); }
.tile__label { flex: 1; }
.tile__label strong { display: block; font-weight: 400; font-family: "Instrument Serif", Georgia, serif; font-size: 1.3rem; }
.tile__label span { font-size: var(--step--1); color: var(--muted); }
.tile:hover .tile__label span { color: color-mix(in oklab, var(--bone) 70%, transparent); }
.tile svg { width: 20px; height: 20px; flex: none; opacity: .7; }

/* ---------- feature band (bag builder teaser) ---------- */
.feature {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--indigo);
  color: #F7F2E9;
  padding: clamp(32px, 5vw, 68px);
}
:root[data-theme="dark"] .feature { color: #10161E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .feature { color: #10161E; } }

.feature__grid {
  display: grid; gap: clamp(28px, 4vw, 56px); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
}
@media (max-width: 860px) { .feature__grid { grid-template-columns: minmax(0, 1fr); } }
.feature .eyebrow { color: color-mix(in oklab, currentColor 70%, transparent); }
.feature h2 { font-size: var(--step-3); }
.feature p { color: color-mix(in oklab, currentColor 85%, transparent); }
.feature .btn { --btn-bg: #F7F2E9; --btn-fg: #22303F; --btn-bd: #F7F2E9; }
:root[data-theme="dark"] .feature .btn { --btn-bg: #14130F; --btn-fg: #F3EEE4; --btn-bd: #14130F; }
.feature__stage {
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: radial-gradient(120% 90% at 50% 15%, #FBF7F0 0%, #EDE4D5 72%, #E2D6C2 100%);
  padding: clamp(16px, 3vw, 30px);
  box-shadow: var(--shadow-lg);
}
.feature__stage svg { width: 100%; height: auto; }

/* ---------- steps ---------- */
.steps { display: grid; gap: clamp(20px, 3vw, 34px); counter-reset: step; list-style: none; }
.steps--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.step { counter-increment: step; display: grid; gap: 10px; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2.4rem; line-height: 1;
  color: var(--clay);
}
.step h3 { font-size: var(--step-1); }
.step p { color: var(--ink-soft); }

/* ---------- prose ---------- */
.prose { display: grid; gap: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: .5em; }
.prose h3 { font-size: var(--step-1); margin-top: .4em; }
.prose ul { display: grid; gap: .55em; padding-left: 1.3em; list-style: none; }
.prose ul li { position: relative; }
.prose ul li::before {
  content: ""; position: absolute; left: -1.25em; top: .62em;
  width: 13px; height: 0; border-top: 1.5px dashed var(--clay);
}
.prose a { color: var(--indigo); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: "Instrument Serif", Georgia, serif; font-size: var(--step-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details > div { padding: 0 4px 24px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- contact strip ---------- */
.contact-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 3.4vw, 42px);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--panel);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bone-deep);
  padding-block: clamp(44px, 6vw, 72px) 32px;
}
.footer__grid {
  display: grid; gap: clamp(28px, 4vw, 52px);
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }
.footer__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.footer__brand img { width: 52px; height: 52px; }
.footer__brand span { font-family: "Instrument Serif", Georgia, serif; font-size: 1.35rem; }
.footer h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.footer__list { list-style: none; display: grid; gap: 9px; }
.footer__list a { text-decoration: none; color: var(--ink-soft); }
.footer__list a:hover { color: var(--ink); text-decoration: underline; }

.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { background: var(--ink); color: var(--bone); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }

.footer__base {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  margin-top: clamp(34px, 5vw, 56px); padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--muted);
}
.footer__base a { color: inherit; }

/* theme toggle */
.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: transparent; cursor: pointer; color: var(--ink-soft);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* ---------- page header ---------- */
.page-head { padding-block: clamp(40px, 6vw, 82px) clamp(26px, 3vw, 44px); }
.page-head h1 { font-size: var(--step-4); margin-block: .16em .3em; }

/* ---------- click-to-load embeds ---------- */
.embed-placeholder {
  display: grid; place-items: center; gap: 14px;
  padding: clamp(36px, 6vw, 72px) 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--panel);
  text-align: center;
}
.embed-frame {
  width: 100%;
  min-height: min(1080px, 78vh);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

/* ---------- reveal on scroll ---------- */
/* Gated on .js so that if the script never runs, nothing is left invisible. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); }
  .js .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--delay, 0ms);
  }
}

/* ---------- misc ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .45em;
  padding: 5px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: var(--step--1); color: var(--muted);
}
.pill--live { border-color: color-mix(in oklab, var(--sage) 60%, transparent); color: var(--sage); }
.pill--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.stack { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.stack--lg { gap: clamp(26px, 3.4vw, 44px); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { text-align: center; justify-items: center; }
.center .eyebrow::before { display: none; }
