/* =====================================================================
   Store styles. Colors, fonts and corner radius are set in store.config.js
   (theme section) — the values below are only fallbacks.
   ===================================================================== */
:root {
  --bg: #F2F3F0;
  --surface: #E3E6E1;
  --ink: #141A2B;
  --muted: #555D6E;
  --accent: #2B47C9;
  --on-accent: #FFFFFF;
  --line: rgba(20, 26, 43, 0.14);
  --radius: 6px;
  --font-display: "Gloock";
  --font-body: "Instrument Sans";

  --display: var(--font-display), ui-serif, Georgia, serif;
  --body: var(--font-body), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --section: clamp(72px, 10vw, 144px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --header-h: 68px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
.card-media img, .gallery-track img, .cart-line img, .frame img, .hero-media img { color: transparent; } /* hide alt text if a photo path is wrong */
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
html { font-synthesis: style; } /* never fake bold: single-weight fonts stay crisp */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.16s var(--ease-out);
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
@media (hover: hover) {
  .btn--accent:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
  .btn--ink:hover { background: color-mix(in srgb, var(--ink) 82%, var(--accent)); }
  .btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
}
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: currentColor; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent;
  transition: background-color 0.2s;
}
@media (hover: hover) { .icon-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); } }

/* ---------- announcement + header ---------- */
.announce {
  background: var(--accent); color: var(--on-accent);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.01em; text-align: center;
  padding: 9px var(--gutter);
}
.announce a { text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h);
}
.logo {
  justify-self: start;
  font-family: var(--display); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.03em;
  font-variation-settings: "wdth" 75; line-height: 1; text-decoration: none;
}
.logo img { height: 32px; width: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: background-color 0.2s;
}
.main-nav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: 0.6875rem; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump 0.4s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; margin-left: -10px; margin-right: 4px; }
  .logo { justify-self: start; }
}

/* ---------- drawers (cart + mobile menu) ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0;
  width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  border: 0; background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-drawer), overlay 0.45s allow-discrete, display 0.45s allow-discrete;
  overscroll-behavior: contain;
}
.drawer:not([open]) { display: none; }
.drawer[open].is-open { transform: none; }
.drawer--left { inset: 0 auto 0 0; transform: translateX(-100%); }
.drawer::backdrop { background: rgb(14 18 30 / 0); transition: background-color 0.45s var(--ease-drawer); }
.drawer.is-open::backdrop { background: rgb(14 18 30 / 0.42); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line);
  padding-top: max(14px, env(safe-area-inset-top));
}
.drawer-head h2 { font-size: 1.5rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; overscroll-behavior: contain; }
.drawer-foot {
  border-top: 1px solid var(--line); padding: 20px 24px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  display: grid; gap: 14px;
}
.menu-links { list-style: none; margin: 8px 0 0; padding: 0; }
.menu-links a {
  display: block; padding: 10px 0; text-decoration: none;
  font-family: var(--display); font-size: 2.25rem; font-weight: 600; line-height: 1.1;
  font-variation-settings: "wdth" 78; letter-spacing: -0.025em;
}
.menu-links--small a { font-family: var(--body); font-size: 1.0625rem; font-weight: 500; padding: 8px 0; letter-spacing: 0; }
.menu-links--small { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* cart */
.ship-progress { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.ship-progress p { font-size: 0.9375rem; margin-bottom: 10px; }
.ship-bar { height: 4px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.ship-bar span {
  display: block; height: 100%; width: 100%; background: var(--accent); border-radius: inherit;
  transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.cart-line img { width: 84px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) * 0.7); background: var(--surface); }
.cart-line h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; font-variation-settings: normal; overflow-wrap: anywhere; }
.cart-line h3 a { text-decoration: none; }
.cart-line h3 a:hover { text-decoration: underline; }
.cart-line .opts { font-size: 0.875rem; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.cart-line .line-price { font-weight: 600; text-align: right; white-space: nowrap; }
.line-controls { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.remove-btn { border: 0; background: none; padding: 4px 0; font-size: 0.875rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.remove-btn:hover { color: var(--ink); }
.qty {
  display: inline-flex; align-items: center; height: 40px;
  border: 1px solid var(--line); border-radius: 999px;
}
.qty button { width: 40px; height: 38px; border: 0; background: none; border-radius: 999px; display: grid; place-items: center; }
.qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty button svg { width: 16px; height: 16px; }
.qty input, .qty output {
  width: 34px; text-align: center; border: 0; background: none; padding: 0;
  font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--lg { height: 52px; }
.qty--lg button { width: 48px; height: 50px; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.125rem; font-weight: 600; }
.cart-note { font-size: 0.875rem; color: var(--muted); }
.cart-empty { text-align: center; padding: 64px 8px; display: grid; gap: 18px; justify-items: center; }
.cart-empty h3 { font-size: 2rem; }
.cart-empty p { color: var(--muted); max-width: 32ch; }
.checkout-panel {
  border-radius: var(--radius); background: var(--surface); padding: 18px; display: grid; gap: 12px;
  font-size: 0.9375rem;
}
.checkout-panel h3 { font-size: 1.25rem; }
.checkout-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checkout-panel li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.checkout-panel li span { overflow-wrap: anywhere; }
.checkout-panel code { font-size: 0.85em; background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 1px 5px; border-radius: 4px; }
.checkout-panel .btn { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-inner {
  min-height: min(calc(100svh - var(--header-h) - 36px), 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: clamp(48px, 8vw, 112px);
}
.hero h1 {
  font-size: clamp(3rem, 6.4vw, 6rem);
  font-weight: 650; font-variation-settings: "wdth" 76, "opsz" 96;
  letter-spacing: -0.028em; line-height: 0.92;
  max-width: 9.5ch;
}
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .w > span { display: inline-block; }
.hero-text { margin-top: 24px; max-width: 36ch; font-size: 1.125rem; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 760px) {
  .hero-media img { object-position: 50% 100%; }
  .hero-inner { justify-content: flex-start; min-height: min(calc(100svh - var(--header-h) - 36px), 820px); padding-top: 40px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4.25rem); }
  .hero-text { font-size: 1.0625rem; margin-top: 16px; }
  .hero-ctas { flex-wrap: nowrap; gap: 8px; margin-top: 24px; }
  .hero-ctas .btn { min-height: 46px; padding: 0 18px; font-size: 0.9375rem; }
}

/* load sequence: one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-media img { animation: heroImg 1.6s var(--ease-out) both; }
  .js .hero h1 .w > span { animation: rise 1s var(--ease-out) both; }
  .js .hero-text, .js .hero-ctas { animation: fadeUp 0.9s var(--ease-out) 0.35s both; }
}
@keyframes heroImg { from { transform: scale(1.07); filter: blur(6px); } to { transform: none; filter: none; } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
main > .section:last-child { padding-bottom: 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head > div { flex: 1 1 auto; min-width: 0; }
.section-head h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); max-width: 16ch; }
.section-head p { color: var(--muted); max-width: 46ch; margin-top: 12px; }

/* feature collection */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.feature-media { position: sticky; top: calc(var(--header-h) + 20px); }
.feature-media a { display: block; text-decoration: none; }
.feature-media .frame { overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 4 / 5; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.feature-media a:hover img { transform: scale(1.03); }
.feature-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.feature-caption h3 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.feature-caption p { color: var(--muted); margin-top: 6px; max-width: 40ch; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px) clamp(14px, 1.6vw, 24px); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-media { position: static; }
  .feature-media .frame { aspect-ratio: 16 / 11; }
}

/* product rail on phones */
@media (max-width: 640px) {
  .rail-sm {
    display: grid; grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .rail-sm::-webkit-scrollbar { display: none; }
  .rail-sm > * { scroll-snap-align: start; }
}

/* product card */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--surface);
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s var(--ease-out), transform 1.2s var(--ease-out); }
.card-media .alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-media .alt { opacity: 1; }
  .card:hover .card-media img { transform: scale(1.025); }
}
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 5px 11px; border-radius: 999px;
  background: var(--bg); color: var(--ink);
  font-size: 0.75rem; font-weight: 600; line-height: 1.2;
}
.badge--muted { background: var(--ink); color: var(--bg); }
.card-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-top: 14px; }
.card-title { font-family: var(--body); font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; font-variation-settings: normal; overflow-wrap: anywhere; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* whole card clickable */
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) .card-media { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-price { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-meta { grid-column: 1 / -1; font-size: 0.875rem; color: var(--muted); display: flex; align-items: center; gap: 8px; min-height: 22px; }
.dots { display: inline-flex; gap: 5px; }
.dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, white) 0, var(--c) 55%, color-mix(in srgb, var(--c) 75%, black) 100%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
}
@media (max-width: 480px) {
  .card-body { grid-template-columns: 1fr; }
  .card-title { font-size: 0.9375rem; }
}

/* story band */
.story { background: var(--ink); color: var(--bg); }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 96px); align-items: center; padding-block: var(--section); }
.story-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3.4; background: color-mix(in srgb, var(--bg) 10%, var(--ink)); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story h2 { font-size: clamp(2.25rem, 4.2vw, 3.75rem); max-width: 14ch; }
.story p { margin-top: 20px; max-width: 46ch; color: color-mix(in srgb, var(--bg) 78%, var(--ink)); font-size: 1.125rem; }
.points { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 0; border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); }
.points li {
  display: flex; align-items: center; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  font-weight: 500;
}
.points li::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 50%, white), var(--accent) 60%);
}
.story .text-link { color: var(--bg); }
@media (max-width: 860px) { .story-inner { grid-template-columns: 1fr; } }

/* collections */
.collections { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.collection-tile { position: relative; display: block; text-decoration: none; }
.collection-tile .frame { overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; background: var(--surface); }
.collection-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.collection-tile:hover img { transform: scale(1.03); }
.collection-tile .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.collection-tile h3 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
.collection-tile span { color: var(--muted); font-size: 0.9375rem; white-space: nowrap; }
@media (max-width: 760px) {
  .collections { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .collections::-webkit-scrollbar { display: none; }
  .collection-tile { scroll-snap-align: start; }
}

/* reviews (placeholder-aware) */
.placeholder-note {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent); color: color-mix(in srgb, var(--accent) 80%, var(--ink));
  font-size: 0.8125rem; font-weight: 600;
}
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); list-style: none; margin: 0; padding: 0; }
.review { border-radius: var(--radius); background: var(--surface); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px; justify-content: space-between; min-height: 260px; }
.review blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: "wdth" 85; }
.review figcaption { font-size: 0.9375rem; }
.review figcaption b { display: block; font-weight: 600; }
.review figcaption span { color: var(--muted); }
.review--placeholder { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.review--placeholder blockquote, .review--placeholder figcaption { color: var(--muted); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } .review { min-height: 0; } }

/* newsletter */
.newsletter { background: var(--accent); color: var(--on-accent); border-radius: calc(var(--radius) * 2); padding: clamp(32px, 6vw, 88px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.newsletter h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); max-width: 13ch; }
.newsletter p { margin-top: 16px; max-width: 42ch; color: color-mix(in srgb, var(--on-accent) 84%, var(--accent)); }
.signup { display: grid; gap: 10px; }
.signup label { font-size: 0.875rem; font-weight: 600; }
.signup-row { display: flex; gap: 8px; background: var(--on-accent); border-radius: 999px; padding: 6px; }
.signup input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  padding: 0 16px; font-size: 1rem; height: 48px; border-radius: 999px;
}
.signup input::placeholder { color: color-mix(in srgb, var(--ink) 55%, transparent); }
.signup input:focus-visible { outline: none; }
.signup-row:focus-within { outline: 2px solid var(--on-accent); outline-offset: 3px; }
.signup .btn { min-height: 48px; }
.form-msg { font-size: 0.9375rem; min-height: 1.5em; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .signup-row { flex-direction: column; border-radius: calc(var(--radius) * 2); }
  .signup .btn { width: 100%; }
}

/* ---------- footer ---------- */
.site-footer { margin-top: var(--section); background: var(--surface); padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px 24px; }
.footer-grid h2 { font-family: var(--body); font-size: 0.875rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: 14px; font-variation-settings: normal; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-tag { font-size: 1.25rem; max-width: 26ch; line-height: 1.4; }
.footer-small {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 56px; padding-block: 20px; border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--muted);
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 75, "opsz" 96;
  font-size: clamp(5rem, 22vw, 20rem); line-height: 0.8; letter-spacing: -0.025em; font-variant-ligatures: none;
  margin: 24px 0 -0.08em; white-space: nowrap; color: var(--ink); user-select: none;
  text-align: center;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- shop ---------- */
.page-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-head h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.028em; font-variation-settings: "wdth" 76, "opsz" 96; line-height: 0.95; }
.page-head p { margin-top: 16px; color: var(--muted); max-width: 52ch; font-size: 1.125rem; }
.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 16px; margin-bottom: clamp(24px, 3vw, 40px);
  border-block: 1px solid var(--line);
  position: sticky; top: var(--header-h); z-index: 20; background: var(--bg);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  font-size: 0.9375rem; font-weight: 500;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip sup { font-size: 0.7em; margin-left: 2px; opacity: 0.7; vertical-align: super; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.sort label { color: var(--muted); }
.select {
  appearance: none; -webkit-appearance: none;
  min-height: 40px; padding: 0 40px 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23555D6E' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
  font-weight: 500; font-size: 1rem;
}
.result-count { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 640px) {
  .toolbar { top: var(--header-h); flex-direction: column; align-items: stretch; gap: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .sort { justify-content: space-between; }
}
.empty { padding: 64px 0; text-align: center; display: grid; gap: 16px; justify-items: center; }
.empty h2 { font-size: 2rem; }

/* ---------- product ---------- */
.crumbs { font-size: 0.875rem; color: var(--muted); padding-top: 20px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); padding-top: 20px; align-items: start; }
.gallery { min-width: 0; }
.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius); background: var(--surface);
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.thumbs button {
  flex: none; width: 76px; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: calc(var(--radius) * 0.7); overflow: hidden;
  background: var(--surface); opacity: 0.55; transition: opacity 0.2s, outline-color 0.2s;
  outline: 1.5px solid transparent; outline-offset: 2px;
}
.thumbs button[aria-current="true"] { opacity: 1; outline-color: var(--ink); }
.thumbs button:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { display: none; }
.buy { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
.buy h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); letter-spacing: -0.028em; font-variation-settings: "wdth" 76, "opsz" 96; line-height: 0.95; overflow-wrap: anywhere; }
.buy .price { font-size: 1.375rem; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 10px; }
.buy .lead { color: var(--muted); font-size: 1.0625rem; max-width: 46ch; }
.option { border: 0; margin: 0; padding: 0; min-width: 0; }
.option legend { font-size: 0.9375rem; font-weight: 600; margin-bottom: 10px; padding: 0; }
.option legend span { font-weight: 400; color: var(--muted); margin-left: 6px; }
.values { display: flex; flex-wrap: wrap; gap: 8px; }
.value input { position: absolute; opacity: 0; pointer-events: none; }
.value label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-size: 0.9375rem; font-weight: 500;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.value label:hover { border-color: var(--ink); }
.value input:checked + label { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.value input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.value--swatch label { padding: 0; width: 44px; justify-content: center; border-radius: 50%; }
.value--swatch label .dot { width: 32px; height: 32px; }
.value--swatch input:checked + label { background: transparent; border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--bg); }
.buy-row { display: flex; gap: 12px; }
.buy-row .btn { flex: 1; }
.buy-note { font-size: 0.875rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-weight: 600;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.accordion details[open] summary svg { transform: rotate(45deg); }
.accordion .acc-body { padding-bottom: 20px; color: var(--muted); max-width: 60ch; }
.accordion .acc-body a { color: var(--ink); }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .buy { position: static; }
  .gallery-track { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .gallery { position: relative; }
  .thumbs { display: none; }
  .gallery-count {
    display: block; position: absolute; right: 4px; bottom: 14px;
    padding: 4px 10px; border-radius: 999px; background: var(--bg); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
  }
  .sticky-buy {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px var(--gutter); padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line);
    display: flex; gap: 12px; align-items: center;
    transform: translateY(110%); transition: transform 0.35s var(--ease-out);
  }
  .sticky-buy.is-visible { transform: none; }
  .sticky-buy .meta { flex: 1; min-width: 0; font-size: 0.875rem; line-height: 1.3; }
  .sticky-buy .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-buy .btn { min-height: 46px; padding: 0 22px; }
}
@media (min-width: 901px) { .sticky-buy { display: none; } }

/* ---------- content pages ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 56px 0 16px; }
.prose h3 { font-size: 1.375rem; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); }
.template-note {
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 32px; font-size: 0.9375rem;
}
.template-note b { color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 96px); align-items: center; }
.split .frame { overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.split .frame img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); max-width: 15ch; }
.split p { color: var(--muted); margin-top: 16px; max-width: 48ch; font-size: 1.0625rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip .frame { order: -1; } }
.wide-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 8; background: var(--surface); }
.wide-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .wide-media { aspect-ratio: 4 / 3; } }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600;
  letter-spacing: -0.015em; font-variation-settings: "wdth" 85; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; transition: transform 0.3s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .ans { padding-bottom: 24px; color: var(--muted); max-width: 64ch; }
.faq .ans a { color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 96px); align-items: start; }
.contact-grid dl { margin: 32px 0 0; display: grid; gap: 18px; }
.contact-grid dt { font-size: 0.875rem; color: var(--muted); }
.contact-grid dd { margin: 2px 0 0; font-size: 1.125rem; font-weight: 500; overflow-wrap: anywhere; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 60%, white); padding: 14px 16px; font-size: 1rem;
  transition: border-color 0.2s;
}
.field input:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 160px; resize: vertical; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* toast for screen-reader + visual confirmation */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500;
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
  max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* reduced motion: keep fades, drop movement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .drawer, .drawer--left { transition: opacity 0.2s, overlay 0.2s allow-discrete, display 0.2s allow-discrete; transform: none; opacity: 0; }
  .drawer[open].is-open { opacity: 1; }
  .card-media img, .feature-media img, .collection-tile img { transition: opacity 0.3s; transform: none !important; }
}
