/* Resting Stitch Face — site styles */
:root {
  color-scheme: light;
  --cream: #f3eee6;
  --paper: #fbf7f1;
  --linen: #e6ddd0;
  --linen-2: #d8ccbc;
  --ink: #241b1b;
  --ink-2: #5a4b47;
  --ink-3: #8a7a72;
  --ox: #6e1f27;
  --ox-2: #8c2a33;
  --ox-ink: #fff6ec;
  --thread: #2f9be8;
  --sprout: #5dbb46;
  --blush: #f2a7c3;
  --wood: #d9b98f;
  --wood-2: #b8915f;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Ms Madi", "Snell Roundhand", cursive;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 0 rgba(36, 27, 27, 0.04), 0 10px 30px -12px rgba(60, 30, 20, 0.22);
  --shadow-lift: 0 2px 0 rgba(36, 27, 27, 0.05), 0 22px 40px -16px rgba(60, 30, 20, 0.32);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Aida cloth: a faint grid of holes behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(110, 31, 39, 0.07) 1px, transparent 1.6px);
  background-size: 9px 9px;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--thread); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; margin: 0; font-variation-settings: "SOFT" 60, "WONK" 1; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow {
  font: 600 0.74rem/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ox);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before { content: "✕✕"; letter-spacing: 0.08em; color: var(--thread); font-size: 0.85em; }
.script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; }
.muted { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ox);
  --fg: var(--ox-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.8em 1.35em;
  border-radius: 999px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font: 600 1rem/1 var(--f-body);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 8px 18px -10px rgba(110, 31, 39, 0.7);
  white-space: nowrap;
}
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { --bg: var(--paper); --fg: var(--ox); box-shadow: none; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.25s var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-color: var(--linen); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: 70px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--linen-2); }
.brand-name { font: 600 1.18rem/1 var(--f-display); letter-spacing: -0.01em; font-variation-settings: "SOFT" 80, "WONK" 1; }
.brand-name em { font-style: italic; color: var(--ox); }
.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.55em 0.85em;
  border-radius: 999px;
  transition: background 0.2s;
}
.bag-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: 44px;
  padding: 0 1rem 0 0.85rem;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.bag-btn svg { width: 19px; height: 19px; }
.bag-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  font: 700 0.8rem/22px var(--f-mono);
  text-align: center;
}
.bag-count.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; }
.menu-btn svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.2rem;
    background: var(--cream);
    border-bottom: 1px solid var(--linen);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 0.9em 0.4em; border-radius: 0; border-bottom: 1px dashed var(--linen-2); font-size: 1.1rem; }
  .brand-name { font-size: 1.02rem; }
  .bag-btn .bag-label { display: none; }
  .bag-btn { padding: 0 0.8rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-copy { position: relative; z-index: 3; }
.hero h1 { margin: 1rem 0 1.3rem; }
.hero h1 .strike { position: relative; display: inline-block; font-style: italic; color: var(--ink-2); }
.hero h1 .strike svg { position: absolute; left: -4%; top: 52%; width: 108%; height: 0.32em; overflow: visible; }
.hero h1 .strike svg path { stroke: var(--thread); stroke-width: 5; fill: none; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: sew 1.3s 1.2s var(--ease) forwards; }
@keyframes sew { to { stroke-dashoffset: 0; } }
.hero h1 .after { display: block; }
.hero-lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 34rem; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.proof { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 2rem; font-size: 0.92rem; color: var(--ink-2); }
.proof b { color: var(--ink); font-weight: 600; }
.proof .stars { color: var(--ox); letter-spacing: 0.08em; }

.hero-stage { position: relative; aspect-ratio: 1 / 1.02; isolation: isolate; }
.hoop {
  position: absolute;
  left: 9%;
  top: 9%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 2;
  background: #f7f2ea;
  box-shadow:
    0 0 0 clamp(9px, 1.4vw, 15px) var(--wood),
    0 0 0 calc(clamp(9px, 1.4vw, 15px) + 2px) var(--wood-2),
    var(--shadow-lift);
  overflow: hidden;
}
.hoop-clamp {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(9% - clamp(28px, 4vw, 42px));
  width: clamp(48px, 6vw, 70px);
  height: clamp(30px, 4.2vw, 46px);
  transform: translateX(-50%);
  background: linear-gradient(var(--wood-2), var(--wood) 40%, var(--wood-2));
  border-radius: 6px 6px 3px 3px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
.hoop-clamp::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 64%;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 6px;
  background: linear-gradient(#c9ccd1, #8d9198);
}
.hoop canvas { width: 100%; height: 100%; display: block; }
.float-card {
  position: absolute;
  z-index: 4;
  width: 34%;
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lift);
  text-decoration: none;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--rot, 0deg));
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.float-card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.float-card span {
  display: block;
  padding: 0.5rem 0.7rem 0.6rem;
  font: 600 0.8rem/1.2 var(--f-body);
  background: var(--paper);
}
.float-card span small { display: block; font: 500 0.72rem/1.3 var(--f-mono); color: var(--ox); margin-top: 2px; }
.float-card.c1 { --rot: -7deg; left: -3%; bottom: 0; }
.float-card.c2 { --rot: 6deg; right: -4%; top: 2%; width: 30%; z-index: 1; }
.float-card.c3 { --rot: 4deg; right: 2%; bottom: -6%; width: 27%; }
.thread-svg { position: absolute; inset: -6% -10%; width: 120%; height: 112%; pointer-events: none; overflow: visible; }
.thread-svg path { fill: none; stroke-linecap: round; stroke-width: 4.5; }
.thread-back { z-index: 0; }
.thread-front { z-index: 5; }
.thread-svg .blue { stroke: var(--thread); }
.thread-svg .green { stroke: var(--sprout); stroke-width: 3; }
.hero-note {
  position: absolute;
  z-index: 6;
  left: 30%;
  bottom: -2%;
  font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1 var(--f-script);
  color: var(--ink-2);
  transform: rotate(-6deg);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 520px; width: 100%; margin: 1rem auto 0; }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  border-block: 3px solid var(--ox);
}
.ticker-track { display: inline-flex; gap: 2rem; padding: 0.95rem 0; animation: tick 38s linear infinite; }
.ticker-track span { font: 500 1.05rem/1 var(--f-display); font-style: italic; display: inline-flex; align-items: center; gap: 2rem; }
.ticker-track span::after { content: "✕"; font-style: normal; color: var(--thread); font-family: var(--f-mono); }
.ticker-track .s { font: 400 1.7rem/0.7 var(--f-script); color: var(--blush); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.section-head h2 { margin-top: 0.7rem; max-width: 18ch; }
.section-head p { max-width: 30rem; color: var(--ink-2); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--thread); padding-bottom: 2px; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(14px, 2vw, 26px); }
.grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid.grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grid.grid-4, .grid { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; }
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--linen);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s, transform 0.6s var(--ease); }
.card-media .alt { position: absolute; inset: 0; opacity: 0; }
.card-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 0.35em 0.65em;
  border-radius: 999px;
  background: rgba(251, 247, 241, 0.92);
  font: 600 0.68rem/1 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ox);
}
.card-body { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.6rem; padding: 0.85rem 0.15rem 0; align-items: start; }
.card-title { font: 600 1.05rem/1.25 var(--f-display); letter-spacing: -0.01em; text-decoration: none; }
.card-hook { grid-column: 1; font-size: 0.86rem; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font: 600 0.95rem/1.3 var(--f-mono); color: var(--ink); }
.add-btn {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: end;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--ox);
  color: var(--ox-ink);
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.add-btn svg { width: 18px; height: 18px; }
.add-btn.in-bag { background: var(--sprout); }
@media (max-width: 720px) {
  .card-hook { display: none; }
  .card-title { font-size: 0.95rem; }
  .add-btn { width: 38px; height: 38px; }
}

/* ---------- Bowl band ---------- */
.band { background: var(--ox); color: var(--ox-ink); position: relative; overflow: hidden; }
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 246, 236, 0.1) 1px, transparent 1.6px);
  background-size: 9px 9px;
}
.band .wrap { position: relative; }
.band .eyebrow { color: var(--blush); }
.band .eyebrow::before { color: var(--ox-ink); }
.band .section-head p { color: rgba(255, 246, 236, 0.8); }
.band-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1rem; font: 500 0.85rem/1.2 var(--f-mono); color: rgba(255, 246, 236, 0.75); }
.band-stats b { display: block; font: 600 1.9rem/1 var(--f-display); color: var(--ox-ink); margin-bottom: 0.3rem; }
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 23vw, 270px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem var(--gutter) 1.5rem;
  margin-inline: calc(-1 * var(--gutter));
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 246, 236, 0.4) transparent;
}
.strip .card { scroll-snap-align: start; }
.band .card-title, .band .card-price { color: var(--ox-ink); }
.band .card-hook { color: rgba(255, 246, 236, 0.75); }
.band .add-btn { background: var(--ox-ink); color: var(--ox); }
.band .card-media { box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.6); }

/* ---------- Collections ---------- */
.collections { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1000px) { .collections { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .collections { grid-template-columns: repeat(2, 1fr); } }
.coll {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  aspect-ratio: 3 / 4;
  padding: 0.9rem;
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.coll img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.coll::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(25, 14, 14, 0.78)); }
.coll b, .coll small { position: relative; z-index: 1; }
.coll b { font: 600 1.25rem/1.1 var(--f-display); }
.coll small { font: 500 0.75rem/1.3 var(--f-mono); opacity: 0.85; margin-top: 0.25rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.6rem 1.5rem 1.7rem; border-radius: var(--r-lg); background: var(--paper); border: 1.5px dashed var(--linen-2); }
.step-num { width: 54px; height: 54px; margin-bottom: 1rem; }
.step h3 { margin-bottom: 0.45rem; }
.step p { color: var(--ink-2); }
.pdf-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1.4rem; padding: 0; margin: 1.4rem 0 0; list-style: none; }
.pdf-list li { display: flex; gap: 0.6rem; align-items: baseline; }
.pdf-list li::before { content: "✕"; color: var(--ox); font: 700 0.9rem/1 var(--f-mono); }
@media (max-width: 560px) { .pdf-list { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.photo-stack { position: relative; aspect-ratio: 5 / 4; }
.photo-stack img { position: absolute; width: 58%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-lift); }
.photo-stack img:nth-child(1) { left: 0; top: 4%; transform: rotate(-5deg); }
.photo-stack img:nth-child(2) { right: 0; top: 0; transform: rotate(4deg); width: 52%; }

/* ---------- CTA ---------- */
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.cta-card h2 { max-width: 16ch; }
.cta-card .script { color: var(--blush); font-size: 1.6em; line-height: 0.6; }
@media (max-width: 700px) { .cta-card { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: 3.5rem 0 2.5rem; border-top: 1px solid var(--linen); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid h4 { font: 600 0.74rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ox); margin: 0 0 0.9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-tag { font: 400 2rem/1 var(--f-script); color: var(--ox); margin-top: 0.6rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px dashed var(--linen-2); font-size: 0.85rem; color: var(--ink-3); }
.pay-note { display: inline-flex; align-items: center; gap: 0.4rem; }
.pay-note svg { width: 14px; height: 14px; flex: none; }

/* ---------- Bag drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(36, 27, 27, 0.4); opacity: 0; visibility: hidden; transition: 0.3s; }
.drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: -20px 0 60px -20px rgba(36, 27, 27, 0.35);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.bag-open .drawer-scrim { opacity: 1; visibility: visible; }
.bag-open .drawer { transform: none; visibility: visible; transition: transform 0.4s var(--ease), visibility 0s; }
.bag-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--linen); }
.drawer-head h2 { font-size: 1.6rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--linen); display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0.4rem 1.4rem; }
.bag-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.9rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px dashed var(--linen-2); }
.bag-item img { width: 64px; height: 80px; object-fit: cover; border-radius: var(--r-sm); background: var(--linen); }
.bag-item a { font: 600 1rem/1.25 var(--f-display); text-decoration: none; }
.bag-item .p { font: 500 0.88rem/1.4 var(--f-mono); color: var(--ink-2); }
.remove { border: 0; background: none; color: var(--ink-3); font-size: 0.85rem; text-decoration: underline; padding: 0.4rem; }
.bag-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-2); }
.bag-empty .script { font-size: 2.4rem; color: var(--ox); display: block; margin-bottom: 0.4rem; }
.drawer-foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--linen); background: var(--cream); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.total-row b { font: 600 1.5rem/1 var(--f-display); }
.drawer-note { font-size: 0.84rem; color: var(--ink-2); margin-bottom: 1rem; }
.form-error { color: var(--ox); font-size: 0.9rem; margin-top: 0.7rem; }
.form-error:empty { display: none; }
.secure { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 0.8rem; font-size: 0.8rem; color: var(--ink-3); }
.secure svg { width: 14px; height: 14px; }

/* toast */
.toast {
  position: fixed;
  z-index: 95;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 140%);
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  transition: transform 0.35s var(--ease);
  display: flex;
  gap: 0.8rem;
  align-items: center;
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast button { border: 0; background: none; color: var(--blush); font-weight: 600; text-decoration: underline; padding: 0; }

/* ---------- Shop page ---------- */
.page-head { padding: clamp(2rem, 5vw, 3.6rem) 0 1.4rem; }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); margin-top: 0.8rem; }
.page-head p { margin-top: 0.9rem; max-width: 40rem; color: var(--ink-2); font-size: 1.08rem; }
.toolbar { position: sticky; top: 70px; z-index: 20; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0.75rem 0; margin-bottom: 1.4rem; border-bottom: 1px solid var(--linen); }
.toolbar-row { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 0.45rem; overflow-x: auto; flex: 1 1 520px; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 901px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip {
  flex: none;
  border: 1.5px solid var(--linen-2);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.45em 0.95em;
  font-weight: 500;
  font-size: 0.92rem;
  transition: 0.2s;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip small { font-family: var(--f-mono); opacity: 0.65; margin-left: 0.25em; }
.tool-controls { display: flex; gap: 0.6rem; flex: 0 1 auto; }
.field {
  height: 42px;
  border: 1.5px solid var(--linen-2);
  border-radius: 999px;
  background: var(--paper);
  padding: 0 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  min-width: 0;
}
.field:focus { outline: none; border-color: var(--thread); }
select.field { padding-right: 0.6rem; }
.result-meta { margin: 0 0 1rem; font: 500 0.85rem/1 var(--f-mono); color: var(--ink-3); }
.no-results { padding: 3rem 0; text-align: center; color: var(--ink-2); }
.notice-bar { padding: 0.8rem 1.1rem; border-radius: var(--r-sm); background: var(--paper); border: 1.5px dashed var(--linen-2); margin-bottom: 1rem; }
@media (max-width: 600px) {
  .toolbar { top: 70px; }
  .tool-controls { width: 100%; }
  .tool-controls .field { flex: 1; }
}

/* ---------- Product page ---------- */
.crumbs { font-size: 0.88rem; color: var(--ink-3); padding-top: 1.4rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4.5vw, 4.5rem); padding: 1.4rem 0 3rem; align-items: start; }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; } }
.gallery { position: sticky; top: 90px; display: grid; grid-template-columns: 74px 1fr; gap: 12px; }
.gallery-main { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--linen); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--linen); aspect-ratio: 4 / 5; transition: border-color 0.2s; }
.thumbs button[aria-current="true"] { border-color: var(--ox); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery-main { grid-column: 1; }
  .thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; }
  .thumbs button { flex: 0 0 64px; }
}
.p-info h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin: 0.8rem 0 0.7rem; }
.p-hook { font-size: 1.15rem; color: var(--ink-2); }
.p-price { display: flex; align-items: baseline; gap: 0.8rem; margin: 1.4rem 0 1.2rem; }
.p-price b { font: 600 2.1rem/1 var(--f-display); }
.p-price span { font: 500 0.85rem/1 var(--f-mono); color: var(--ink-3); }
.p-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
@media (max-width: 420px) { .p-buy { grid-template-columns: 1fr; } }
.perks { list-style: none; padding: 1.1rem 1.2rem; margin: 1.3rem 0 0; display: grid; gap: 0.6rem; border-radius: var(--r); background: var(--paper); border: 1.5px dashed var(--linen-2); font-size: 0.95rem; }
.perks li { display: flex; gap: 0.7rem; align-items: start; }
.perks svg { flex: none; width: 20px; height: 20px; color: var(--ox); margin-top: 2px; }
.p-story { margin-top: 2rem; display: grid; gap: 0.9rem; font-size: 1.04rem; }
.specs { margin: 2rem 0 0; border-top: 1.5px solid var(--ink); }
.specs div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px dashed var(--linen-2); }
.specs dt { font: 600 0.75rem/1.6 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ox); }
.specs dd { margin: 0; }
.p-section-title { font-size: 1.5rem; margin-top: 2.2rem; }
.sticky-buy { display: none; }
@media (max-width: 880px) {
  .sticky-buy {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--linen);
    transform: translateY(110%);
    transition: transform 0.3s var(--ease);
  }
  .sticky-buy.show { transform: none; }
  .sticky-buy b { font: 600 1.25rem/1 var(--f-display); margin-right: auto; }
  .sticky-buy .btn { min-height: 44px; }
}

/* ---------- Prose pages ---------- */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2.8rem 0 0.8rem; }
.prose h3 { margin: 1.8rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.04rem; }
.prose p + p { margin-top: 0.9rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.prose a { color: var(--ox); }
.faq details { border-bottom: 1px dashed var(--linen-2); padding: 1rem 0; }
.faq summary { cursor: pointer; font: 600 1.15rem/1.3 var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "✕"; font: 700 0.9rem/1.5 var(--f-mono); color: var(--ox); transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin-top: 0.7rem; }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 0; }
.toc a { text-decoration: none; }
.form { display: grid; gap: 1rem; max-width: 34rem; margin-top: 1.4rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.form input, .form textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--linen-2);
  background: var(--paper);
  color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--thread); }
.form textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* ---------- Thank you / notices ---------- */
.thanks { padding: clamp(2.5rem, 6vw, 5rem) 0; text-align: center; }
.thanks h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); margin: 1rem auto 1rem; max-width: 14ch; }
.thanks .lede { max-width: 34rem; margin: 0 auto; color: var(--ink-2); font-size: 1.1rem; }
.order-list { max-width: 36rem; margin: 2rem auto 0; text-align: left; background: var(--paper); border-radius: var(--r-lg); padding: 0.4rem 1.4rem; box-shadow: var(--shadow); }
.order-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px dashed var(--linen-2); }
.order-item:last-child { border-bottom: 0; }
.order-item img { width: 56px; height: 70px; object-fit: cover; border-radius: 10px; background: var(--linen); }
.order-item b { font: 600 1.05rem/1.25 var(--f-display); }
.order-item .btn { min-height: 40px; padding: 0.6em 1em; font-size: 0.9rem; }
.order-meta { margin-top: 1.2rem; font: 500 0.85rem/1.5 var(--f-mono); color: var(--ink-3); }
.spinner { width: 54px; height: 54px; margin: 0 auto; }
.spinner path { stroke: var(--ox); stroke-width: 4; fill: none; stroke-linecap: round; stroke-dasharray: 18 10; animation: spin-dash 1s linear infinite; }
@keyframes spin-dash { to { stroke-dashoffset: -56; } }
.page-plain .notice { max-width: 34rem; margin: 12vh auto; padding: 0 var(--gutter); text-align: center; }
.page-plain .notice h1 { font-size: 2.4rem; margin: 1.2rem 0 0.8rem; }
.page-plain .notice p { color: var(--ink-2); margin-bottom: 1.4rem; }
.notice-logo img { margin: 0 auto; border-radius: 50%; }

/* ---------- Reveal on scroll ---------- */
/* Pure CSS, scroll-driven where supported; content is always visible otherwise. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero h1 .strike svg path { stroke-dashoffset: 0; }
  .ticker-track { animation: none; }
}

nav a[aria-current="page"] { background: var(--linen); }

/* Hover effects only where a real pointer can hover (avoids sticky states after a tap on iPhone). */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); background: var(--ox-2); }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); }
  .btn-light:hover { background: #fff; }
  .btn:hover .arrow { transform: translateX(3px); }
  .nav a:hover { background: var(--linen); }
  .link-arrow:hover { color: var(--ox); }
  .card:hover .card-media { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--shadow-lift); }
  .card:hover .card-media .alt { opacity: 1; }
  .card-title:hover { color: var(--ox); }
  .add-btn:hover { transform: scale(1.08); background: var(--ox-2); }
  .coll:hover img { transform: scale(1.06); }
  .footer-grid a:hover { color: var(--ink); text-decoration: underline; }
  .remove:hover { color: var(--ox); }
  .chip:hover { border-color: var(--ink); }
  .crumbs a:hover { text-decoration: underline; }
}
