/* ==========================================================================
   Alter — storefront styles
   Design tokens live in :root below; tokens.html shows them all.
   ========================================================================== */

/* Fonts: Inter (with its optical-size axis, which includes the Display cut) + Geist.
   Served by Google Fonts. @import must stay above every other rule. */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  /* ── Brand palette ── */
  --brand-purple: #7e65c7;
  --brand-green: #2f7d5c;
  --brand-navy: #173a6c;
  --brand-gold: #c69731;
  --brand-red: #c72827;

  /* ── Neutral scale, anchored on #525252 = 600 ── */
  --neutral-0: #ffffff;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0a0a0a;

  /* ── Role aliases used across this stylesheet ── */
  --cream: var(--neutral-50);      /* page background */
  --paper: var(--neutral-0);       /* cards, light text on dark */
  --ink: var(--neutral-800);       /* main text & dark surfaces */
  --ink-deep: var(--neutral-900);
  --shell: var(--neutral-100);     /* soft fills */
  --slate: var(--neutral-400);
  --sand: var(--neutral-300);
  --sand-deep: var(--neutral-500);
  --haze: var(--neutral-100);
  --wheat: var(--neutral-100);
  --wheat-glass: rgba(245, 245, 245, 0.75);  /* neutral-100 at 75% */
  --cream-rgb: 250, 250, 250;                /* = neutral-50 */
  --paper-rgb: 255, 255, 255;                /* = neutral-0 */
  --ink-rgb: 38, 38, 38;                     /* = neutral-800 */
  --ink-deep-rgb: 23, 23, 23;                /* = neutral-900 */
  --banner: var(--neutral-700);
  --sky: var(--brand-purple);
  --sun: var(--brand-gold);
  --ember: var(--brand-red);

  /* semantic */
  --text: var(--ink);
  --muted: var(--neutral-600);
  --line: var(--neutral-200);
  --line-strong: var(--neutral-300);

  /* type
     --sans  = body    → Geist
     --serif = heading → Inter Display. The name stays --serif because styles.css
       uses it for every heading. Inter's optical-size axis turns into the Display
       cut automatically at 32px and up (font-optical-sizing: auto). */
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Inter', system-ui, sans-serif;

  /* layout & motion */
  --gutter: 20px;
  --radius: 8px;
  --header-h: 60px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.lock {
  overflow: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection {
  background: var(--sun);
  color: var(--ink-deep);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- type ---------- */
.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.h-xl {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}
.h-lg {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h-md {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 2.9vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.h-sm {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.muted {
  color: var(--muted);
}
.lede {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
}
.tricolor {
  display: flex;
  width: 120px;
  height: 7px;
}
.tricolor i {
  flex: 1;
}
.tricolor i:nth-child(1) { background: var(--brand-red); }
.tricolor i:nth-child(2) { background: var(--brand-green); }
.tricolor i:nth-child(3) { background: var(--brand-gold); }
.tricolor i:nth-child(4) { background: var(--brand-navy); }
.tricolor i:nth-child(5) { background: var(--brand-purple); }

/* ---------- layout ---------- */
.wrap {
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(56px, 7vw, 104px);
}
.section-tight {
  padding-block: clamp(40px, 4.5vw, 64px);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-top {
  padding-top: calc(var(--header-h) + 8px);
}
.link {
  position: relative;
  display: inline-block;
  font-size: 13px;
  white-space: nowrap;
}
.link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 26px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
}
.btn:active {
  transform: scale(0.985);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(var(--paper-rgb), 0.6);
}
.btn-light:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.btn-block {
  width: 100%;
}
.btn-lg {
  min-height: 48px;
}
.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- reveal on scroll: switched off for now ----------
   .reveal is still in the markup but has no effect. To bring the "rise through
   a slot" entrance back, restore these rules and checkReveals() in app.js:
   .reveal    { clip-path: inset(100% -24px -24px -24px); transform: translateY(56px);
                transition: clip-path 1.1s var(--ease-expo), transform 1.1s var(--ease-expo);
                transition-delay: var(--d, 0s); }
   .reveal.in { clip-path: inset(-24px); transform: none; } */

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--gutter);
  color: var(--ink);
  transition: background 0.35s, box-shadow 0.35s, transform 0.4s var(--ease);
}
.header.solid,
.header.scrolled {
  background: rgba(var(--cream-rgb), 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.header nav.right {
  justify-content: flex-end;
  gap: 28px;
}
/* utility links carry a small muted icon before the label */
.header nav .nav-ico {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-ico svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}
.nav-ico.bag svg {
  width: 18px;
}
.header nav a,
.header nav button {
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
  transition: opacity 0.2s;
}
.header nav:hover a:not(:hover),
.header nav:hover button:not(:hover) {
  opacity: 0.5;
}
.header nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.logo {
  display: block;
  width: 112px;
  aspect-ratio: 1245 / 339;
  background: url('../assets/svg/wordmark-ink.svg') center / contain no-repeat;
  clip-path: inset(-10%);
  transition: clip-path 0.6s var(--ease-expo), translate 0.6s var(--ease-expo);
}
/* on the home hero the giant wordmark is the logo until you scroll:
   then it drops down into the header through a slot */
.header.overlay:not(.scrolled) .logo {
  clip-path: inset(100% -10% -10% -10%);
  translate: 0 -100%;
  pointer-events: none;
}
.menu-btn {
  display: none;
  width: 28px;
  height: 28px;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 3px;
  right: 3px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-btn span:first-child {
  top: 10px;
}
.menu-btn span:last-child {
  top: 17px;
}
.menu-open .menu-btn span:first-child {
  top: 13.5px;
  transform: rotate(45deg);
}
.menu-open .menu-btn span:last-child {
  top: 13.5px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--cream);
  padding: calc(var(--header-h) + 24px) var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  --origin: calc(var(--gutter) + 14px) calc(var(--header-h) / 2);
  clip-path: circle(0 at var(--origin));
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-expo), visibility 0s 0.7s;
}
.menu-open .mobile-menu {
  clip-path: circle(150% at var(--origin));
  visibility: visible;
  transition: clip-path 0.7s var(--ease-expo), visibility 0s;
}
.mobile-menu .big a {
  display: block;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.mobile-menu .small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  color: var(--muted);
}

/* ==========================================================================
   Hero
   ========================================================================== */
/* the hero fills the first screen: layered art on top, copy along the bottom */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  /* the Figma frame's gradient (#F0EFDF → white, slightly tilted) */
  background: linear-gradient(186deg, #f0efdf 18%, #ffffff 150%);
}
/* layered key visual, rebuilt from the Figma frame "01 · Hero-2x" (1445 × 954) */
.hero-art {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  /* size container, so the stage can fit both the width and the height left */
  container-type: size;
}
.hero-stage {
  position: relative;
  /* fitted to the space left, then enlarged 138%; the overflow is clipped by .hero */
  /* oversized so the lineup spans the full width; the overflow is clipped by .hero.
     Centred with margins, not translate: a transform would break the darken blend */
  --stage-w: calc(min(100cqw, 100cqh * 1445 / 954) * 1.3);
  width: var(--stage-w);
  /* nudged up (tuned value). Relative offset, not transform: a transform would break the darken blend */
  top: -65px;
  align-self: start;
  justify-self: start;
  margin-left: calc((100cqw - var(--stage-w)) / 2);
  aspect-ratio: 1445 / 954;
}
.hl {
  position: absolute;
  height: auto;
  max-width: none;
  will-change: transform;
}
/* boxes are transparent cut-outs. Reflections are still exported on the
   cream backdrop, so darken melts that backdrop into the gradient. */
.hl-refl {
  mix-blend-mode: darken;
}
.hl-shadow {
  mix-blend-mode: multiply;
}
/* no entrance animation: the hero is static on load; only scroll parallax moves it */
/* centred under the lineup: eyebrow, one-line headline, actions */
.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0;
  padding-block: clamp(12px, 1.5vw, 20px) clamp(20px, 2.5vw, 36px);
}
.hero-copy .eyebrow {
  display: inline-block;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 10px 0 22px;
  text-wrap: balance;
}
.hero-copy .actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  left: var(--gutter);
  top: calc(100svh - 44px);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  font-size: 12px;
  mix-blend-mode: normal;
  text-shadow: 0 1px 12px rgba(var(--ink-deep-rgb), 0.35);
}
.hero-scroll i {
  display: block;
  width: 1px;
  height: 22px;
  background: currentColor;
  animation: drip 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ==========================================================================
   Statement + marquee
   ========================================================================== */
/* Same 4-column grid as .claims below, so the statement sits on its column lines */
.statement {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: start;
}
.statement .left {
  display: grid;
  gap: 10px;
}
.statement p.big {
  grid-column: 3 / span 2;
  padding-left: 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 24ch;
  text-wrap: balance;
}
.statement p.big em {
  font-style: italic;
}
.claims {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.claims li {
  padding: 18px 16px 0 0;
}
.claims li + li {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.claims strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.claims span {
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================================================
   Product cards + grids
   ========================================================================== */
.tabs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.tabs button {
  font-family: var(--serif);
  font-size: clamp(30px, 2.9vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--muted);
  opacity: 0.7;
  transition: color 0.25s, opacity 0.25s;
}
.tabs button:hover {
  opacity: 1;
}
.tabs button[aria-selected='true'] {
  color: var(--ink);
  opacity: 1;
}

.grid {
  display: grid;
  gap: 28px 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* grid so the quick-add button can share the image's cell and sit inside it */
.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.card-media {
  grid-area: 1 / 1;
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--shell);
}
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
/* hover: the lifestyle photo sits underneath; the box image on top is eaten
   away by a morphing ink splatter. The mask itself is an animated SVG that
   app.js swaps in on pointer over/out; here we only size it to the card. */
.card-media img:not(.alt) {
  z-index: 1;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.card:hover .card-media img {
  transform: scale(1.035);
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 5px;
  background: var(--paper);
  font-size: 11px;
  line-height: 1;
}
.badge.sale {
  color: #c8401a;
}
.fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  /* one style everywhere: white heart on a dark glass disc */
  background: rgba(var(--ink-rgb), 0.18);
  backdrop-filter: blur(6px);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.fav:hover {
  background: rgba(var(--ink-rgb), 0.32);
}
.fav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--paper);
  stroke-width: 1.4;
  transition: fill 0.2s;
}
.fav[aria-pressed='true'] svg {
  fill: var(--ember);
  stroke: var(--ember);
}
.fav.pop {
  animation: pop 0.35s var(--ease);
}
@keyframes pop {
  40% {
    transform: scale(1.28);
  }
}
.quick {
  grid-area: 1 / 1;
  align-self: end;
  position: relative;
  margin: 0 10px 10px;
  z-index: 2;
  min-height: 38px;
  border-radius: 6px;
  /* dark glass over the lifestyle photo */
  background: rgba(var(--ink-rgb), 0.45);
  backdrop-filter: blur(10px);
  color: var(--paper);
  font-size: 13px;
  clip-path: inset(100% 0 0 0 round 6px);
  transform: translateY(12px);
  transition: clip-path 0.5s var(--ease-expo), transform 0.5s var(--ease-expo), background 0.2s, color 0.2s;
}
.card:hover .quick,
.quick:focus-visible {
  clip-path: inset(0 round 6px);
  transform: none;
}
.quick:hover {
  background: var(--ink);
  color: var(--paper);
}
.card-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}
.card-info .name {
  font-size: 14px;
}
.card-info .cat {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.price {
  white-space: nowrap;
}
.price s {
  color: var(--muted);
  margin-right: 6px;
  font-weight: 400;
}

/* ==========================================================================
   Shop by step
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.step-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.36;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--paper);
  background: var(--sand);
}
.step-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.step-card:hover img {
  transform: scale(1.045);
}
.step-card::after {
  content: '';
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(transparent, rgba(var(--ink-deep-rgb), 0.55));
}
.step-card .bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  z-index: 1;
}
.step-card .label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  /* dark glass, same as the product card quick-add */
  background: rgba(var(--ink-rgb), 0.45);
  font-size: 13px;
  backdrop-filter: blur(10px);
  transition: background 0.3s, color 0.3s;
}
.step-card:hover .label {
  background: var(--paper);
  color: var(--ink);
}
.step-card h3 {
  position: absolute;
  left: 18px;
  bottom: 74px;
  z-index: 1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ==========================================================================
   The routine (vector line-up)
   ========================================================================== */
.routine {
  position: relative;
  background: var(--neutral-900);
  color: var(--neutral-300);
  overflow: hidden;
}
.routine-head {
  text-align: center;
  padding-top: clamp(56px, 7vw, 96px);
}
.routine-head h2 {
  color: var(--paper);
  margin-top: 12px;
}
.steps.cols-5 {
  grid-template-columns: repeat(5, 1fr);
}
.collection-media {
  margin: clamp(32px, 4vw, 56px) var(--gutter) 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.collection-media img {
  width: 100%;
  height: auto;
}
.collection-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  padding-block: 28px clamp(56px, 6vw, 90px);
  font-size: clamp(13px, 1.15vw, 16.5px);
}
.collection-names a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}
.collection-names a:hover {
  color: var(--paper);
}
.collection-names i {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.steps.cols-5 .step-card {
  aspect-ratio: 1 / 1.5;
}
.steps.cols-5 .step-card h3 {
  font-size: clamp(22px, 2.2vw, 34px);
  left: 14px;
}

/* ==========================================================================
   Sticky split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.split-media {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--slate);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-media .caption {
  position: absolute;
  left: var(--gutter);
  bottom: 18px;
  color: var(--paper);
  font-size: 12px;
  text-shadow: 0 1px 10px rgba(var(--ink-deep-rgb), 0.4);
}
.split-body {
  padding: clamp(80px, 12vw, 180px) clamp(24px, 8vw, 130px);
  display: grid;
  gap: clamp(56px, 8vw, 120px);
}
.split-body .intro {
  display: grid;
  gap: 18px;
}
.ticks {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.ticks li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.ticks li span:last-child {
  color: var(--muted);
  text-align: right;
}
.mini-card {
  max-width: 300px;
  margin-inline: auto;
  width: 100%;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stats div {
  padding: 22px 20px;
}
.stats div + div {
  border-left: 1px solid var(--line);
}
.stats strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

/* ==========================================================================
   Story (text + image)
   ========================================================================== */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: center;
}
.story .text {
  padding: 40px clamp(20px, 8.5vw, 124px);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.story .media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1.06;
}
.story .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story.flip .text {
  order: 2;
}

/* ==========================================================================
   Journal
   ========================================================================== */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 10px;
}
.post .media {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--shell);
}
.post .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.post:hover .media img {
  transform: scale(1.04);
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
}
.chip {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(var(--ink-rgb), 0.07);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.post h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
  max-width: 30ch;
}

/* ==========================================================================
   Two-up promos
   ========================================================================== */
.promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(420px, 46vw, 660px);
  padding: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--shell);
}
.promo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.promo:hover > img {
  transform: scale(1.03);
}
.promo .body {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: start;
}
.promo:not(.dark)::after {
  content: '';
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(var(--cream-rgb), 0.92));
}
.promo .body {
  z-index: 1;
}
.promo.dark {
  color: var(--paper);
}
.promo.dark::after {
  content: '';
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, rgba(var(--ink-deep-rgb), 0.5));
}
.promo.dark .body {
  z-index: 1;
}

/* ==========================================================================
   Perks
   ========================================================================== */
.perks {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 20px clamp(32px, 7vw, 110px);
}
.perks li {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  font-size: 13px;
}
.perks svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Banner
   ========================================================================== */
.banner {
  position: relative;
  min-height: min(86svh, 760px);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: var(--banner);
}
.banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--ink-deep-rgb), 0.5), transparent 55%);
}
.banner .body {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 72px) var(--gutter);
  display: grid;
  gap: 16px;
  justify-items: start;
  max-width: 560px;
}
.banner p {
  color: rgba(var(--paper-rgb), 0.85);
  font-size: 16px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.quotes h2 {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.quote-track {
  display: flex;
  transition: transform 0.8s var(--ease);
}
.quote {
  flex: 0 0 min(560px, 78vw);
  padding-inline: clamp(16px, 4vw, 60px);
  opacity: 0.32;
  transition: opacity 0.6s;
  cursor: pointer;
}
.quote.active {
  opacity: 1;
  cursor: default;
}
.quote blockquote {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.quote .who {
  font-size: 13px;
}
.quote .who a {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.3s, transform 0.3s;
}
.dots button[aria-current='true'] {
  background: var(--ink);
  transform: scale(1.3);
}

/* ==========================================================================
   Social tiles marquee
   ========================================================================== */
.social {
  text-align: center;
  overflow: hidden;
}
.social .handle {
  font-family: var(--serif);
  font-size: clamp(30px, 2.9vw, 40px);
  letter-spacing: -0.03em;
  margin: 8px 0 clamp(28px, 4vw, 48px);
}
.tiles {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: slide 60s linear infinite;
}
.tiles:hover {
  animation-play-state: paused;
}
.tiles img {
  width: clamp(200px, 21vw, 300px);
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
}
@keyframes slide {
  to {
    transform: translateX(calc(-50% - 5px));
  }
}

/* ==========================================================================
   Newsletter + footer
   ========================================================================== */
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
  padding-block: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line);
}
.newsletter p {
  color: var(--muted);
  margin-top: 8px;
}
.field-row {
  display: flex;
  gap: 8px;
  max-width: 460px;
}
.newsletter .field-row {
  margin-left: auto;
  width: 100%;
}
.input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
}
.input::placeholder {
  color: var(--muted);
}
.input:focus {
  outline: none;
  border-color: var(--ink);
  background: rgba(var(--paper-rgb), 0.6);
}
textarea.input {
  padding-block: 12px;
  min-height: 130px;
  resize: vertical;
}
.form-note {
  margin-top: 10px;
  font-size: 12px;
  min-height: 1.4em;
}
.form-note.ok {
  color: #3f6b3a;
}
.form-note.err {
  color: #c8401a;
}

.footer {
  padding-bottom: 28px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-block: 48px 72px;
  border-top: 1px solid var(--line);
}
.footer-brand .logo {
  width: 150px;
  margin-bottom: 12px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 15px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.footer-cols h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-cols a {
  display: block;
  padding: 3px 0;
  font-size: 13px;
  transition: opacity 0.2s;
}
.footer-cols a:hover {
  opacity: 0.55;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}
.footer-word {
  width: 100%;
  aspect-ratio: 1245 / 339;
  margin-top: 36px;
  background: url('../assets/svg/wordmark-ink.svg') center / contain no-repeat;
}

/* ==========================================================================
   Drawer (bag), overlays, search, modal, toast
   ========================================================================== */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(var(--ink-deep-rgb), 0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.scrim.show {
  opacity: 1;
  visibility: visible;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(440px, 100vw);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.drawer.open {
  transform: none;
  visibility: visible;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.x {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.x:hover {
  background: rgba(var(--ink-rgb), 0.08);
}
.x svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.ship-meter {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.ship-meter .track {
  height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.ship-meter .track i {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 3px;
  transition: width 0.6s var(--ease);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 20px;
}
.line {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.line .thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--shell);
}
.line .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.line .meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.line .meta small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.line .side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}
.line .remove {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.line .remove:hover {
  color: var(--ink);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  height: 30px;
}
.qty button {
  width: 28px;
  height: 100%;
  font-size: 15px;
  line-height: 1;
  transition: opacity 0.2s;
}
.qty button:disabled {
  opacity: 0.3;
  cursor: default;
}
.qty output {
  min-width: 20px;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.qty.lg {
  height: 48px;
}
.qty.lg button {
  width: 40px;
}
.drawer-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.totals {
  display: grid;
  gap: 6px;
}
.totals div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.totals div.total {
  font-size: 16px;
  color: var(--ink);
  padding-top: 6px;
}
.promo-form {
  display: flex;
  gap: 8px;
}
.promo-form .input {
  min-height: 38px;
}
.promo-form .btn {
  min-height: 38px;
  padding-inline: 16px;
}
.drawer-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  min-height: 1.4em;
}
.empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 64px 0;
  text-align: center;
}
.empty img {
  width: 44px;
  opacity: 0.85;
}
.empty p {
  color: var(--muted);
  max-width: 30ch;
}

/* search */
.search {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  max-height: 100svh;
  overflow-y: auto;
  background: var(--cream);
  padding: 18px var(--gutter) 28px;
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.search.open {
  transform: none;
  visibility: visible;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 10px;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  outline: none;
}
.search-bar input::-webkit-search-cancel-button {
  display: none;
}
.search-bar input::placeholder {
  color: var(--muted);
}
.search-results {
  padding-top: 20px;
}
.search-results h4 {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 8px 0 12px;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 10px;
  margin-bottom: 20px;
}
.search-grid .card-media {
  aspect-ratio: 1;
}
.search-list a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.search-list a:hover {
  opacity: 0.6;
}
.search-suggest {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}
.pill:hover {
  background: var(--ink);
  color: var(--paper);
}

/* welcome modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  transition: visibility 0s 0.6s;
}
.modal.open {
  visibility: visible;
  transition: visibility 0s;
}
.modal-card {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  width: min(800px, 100%);
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  /* opens like a shutter from its middle */
  clip-path: inset(50% 0 50% 0 round var(--radius));
  transition: clip-path 0.6s var(--ease-expo);
}
.modal.open .modal-card {
  clip-path: inset(0 round var(--radius));
}
.modal-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-card .body {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 40px 32px;
  text-align: center;
}
.modal-card .x {
  position: absolute;
  top: 12px;
  right: 12px;
}
.modal-card .field-row {
  width: 100%;
  max-width: 320px;
}
.code {
  display: inline-block;
  padding: 8px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  padding: 11px 18px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transform: translate(-50%, calc(100% + 40px));
  pointer-events: none;
  transition: transform 0.5s var(--spring);
  white-space: nowrap;
}
.toast.show {
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Shop page
   ========================================================================== */
.shop-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding-left: var(--gutter);
}
.shop-hero .text {
  display: grid;
  gap: 12px;
}
.shop-hero .media {
  height: clamp(260px, 32vw, 460px);
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
}
.shop-hero .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 28px 16px;
  font-size: 13px;
}
.sort {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sort select {
  appearance: none;
  border: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23492519' stroke-width='1.4'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E")
    right center no-repeat;
  padding: 4px 18px 4px 0;
  font-weight: 500;
  cursor: pointer;
}
.shop {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  align-items: start;
}
.filters {
  position: sticky;
  top: calc(var(--header-h) + 12px);
}
.filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.filters-head button {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fgroup {
  border-bottom: 1px solid var(--line);
}
.fgroup > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  font-size: 14px;
}
.fgroup > button svg {
  width: 10px;
  height: 6px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  transition: transform 0.3s var(--ease);
}
.fgroup.open > button svg {
  transform: rotate(180deg);
}
.fgroup .opts {
  display: none;
  padding: 0 0 14px 2px;
}
.fgroup.open .opts {
  display: grid;
  gap: 9px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}
.check input {
  appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.check input:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.check input:checked::after {
  content: '';
  width: 8px;
  height: 4px;
  border: solid var(--paper);
  border-width: 0 0 1.5px 1.5px;
  transform: translateY(-1px) rotate(-45deg);
}
.check .n {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.filter-toggle,
.filters-apply {
  display: none;
}
.active-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.active-filters:empty {
  display: none;
}
.active-filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(var(--ink-rgb), 0.07);
  font-size: 12px;
}
.active-filters button:hover {
  background: rgba(var(--ink-rgb), 0.14);
}

/* ==========================================================================
   Product page
   ========================================================================== */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding-top: calc(var(--header-h) + 24px);
  max-width: 1280px;
  margin-inline: auto;
}
.gallery {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.thumbs {
  display: grid;
  gap: 8px;
  align-content: start;
}
.thumbs button {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--shell);
  border: 1px solid transparent;
  opacity: 0.6;
  transition: opacity 0.25s, border-color 0.25s;
}
.thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbs button:hover,
.thumbs button[aria-current='true'] {
  opacity: 1;
}
.thumbs button[aria-current='true'] {
  border-color: var(--ink);
}
.stage {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--shell);
}
.stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the next image wipes in from the right over the current one;
     the old one is only cut away after the wipe has covered it */
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.8s var(--ease-expo) 0.8s;
}
.stage img.on {
  z-index: 1;
  clip-path: inset(0);
  transition-delay: 0s;
}
.stage .bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  z-index: 2;
}
.buy {
  padding-top: 8px;
  max-width: 440px;
}
.buy .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.buy .fav {
  position: static;
  margin: -4px -8px 0 0;
  /* same disc, darker: here it sits on the light page, not on a photo */
  background: rgba(var(--ink-rgb), 0.78);
}
.buy .fav:hover {
  background: var(--ink);
}
.buy h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 3.6vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 8px 0 4px;
}
.buy .type {
  color: var(--muted);
  font-size: 15px;
}
#pdp-price {
  margin: 14px 0 18px;
  font-size: 18px;
}
.buy .desc {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.opt-label {
  margin: 22px 0 8px;
  font-size: 13px;
}
.opts-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.opt {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s;
}
.opt small {
  color: #c8401a;
  margin-left: 6px;
  font-size: 11px;
}
.opt:hover {
  border-color: var(--ink);
}
.opt[aria-pressed='true'] {
  background: rgba(var(--ink-rgb), 0.09);
  border-color: var(--ink);
}
.buy-row {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.buy-row .btn {
  flex: 1;
}
.buy .ship {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.accordion {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.acc {
  border-bottom: 1px solid var(--line);
}
.acc > button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 15px 0;
  text-align: left;
  font-size: 14px;
}
.acc > button i {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
}
.acc > button i::before,
.acc > button i::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.acc > button i::after {
  transform: rotate(90deg);
}
.acc.open > button i::after {
  transform: rotate(0);
}
.acc .panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.acc.open .panel {
  grid-template-rows: 1fr;
}
.acc .panel > div {
  overflow: hidden;
}
.acc .panel p,
.acc .panel ul {
  padding-bottom: 16px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 400;
}
.acc .panel li {
  position: relative;
  padding-left: 14px;
}
.acc .panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 1px;
  background: currentColor;
}
.inside {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.inside a {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.2s;
}
.inside a:hover {
  border-color: var(--ink);
}
.inside img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
}
.inside small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.use {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.use .media {
  aspect-ratio: 1 / 1.06;
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
}
.use .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.use .text {
  padding: 40px clamp(24px, 10vw, 150px);
  display: grid;
  gap: 32px;
}
.use h3 {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}
.use p {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 30ch;
}
.keys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px clamp(24px, 6vw, 90px);
  align-items: center;
}
.keys-list {
  max-width: 520px;
}
.keys-list > .eyebrow {
  display: block;
  margin-bottom: 18px;
}
.key {
  border-bottom: 1px solid var(--line);
}
.key > button {
  width: 100%;
  text-align: left;
  padding: 12px 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--muted);
  transition: color 0.3s;
}
.key.open > button,
.key > button:hover {
  color: var(--ink);
}
.key .panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.key.open .panel {
  grid-template-rows: 1fr;
}
.key .panel > p {
  overflow: hidden;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.55;
  max-width: 46ch;
}
.key.open .panel > p {
  padding-bottom: 16px;
}
.keys .media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}
.keys .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spec {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  max-width: 880px;
  margin-inline: auto;
}
.spec li {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 20px;
  padding: 16px 0;
  align-items: center;
}
.spec li + li {
  border-top: 1px solid var(--line);
}
.spec small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec strong {
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.spec p {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-weight: 400;
}
.crumbs {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--ink);
}

/* ==========================================================================
   Editorial pages (about, journal, article, help, legal)
   ========================================================================== */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 110px));
  padding-bottom: clamp(32px, 5vw, 72px);
  display: grid;
  gap: 20px;
}
.page-hero .h-xl {
  max-width: 16ch;
  text-wrap: balance;
}
.cover {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 8.4;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
}
.prose {
  display: grid;
  gap: 16px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}
.prose h2,
.prose h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 18px;
}
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.value {
  padding: 22px;
  border-radius: var(--radius);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.value p {
  font-weight: 400;
  max-width: 34ch;
}
.value h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.article {
  max-width: 760px;
  margin-inline: auto;
}
.article-head {
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px));
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  margin-bottom: 32px;
}
.article-head h1 {
  max-width: 18ch;
  text-wrap: balance;
}
.article .prose {
  margin: 40px auto 0;
}
.article-product {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 62ch;
  margin: 40px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.article-product img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}
.help {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}
.help aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 6px;
}
.help aside a {
  color: var(--muted);
  font-size: 15px;
}
.help aside a:hover {
  color: var(--ink);
}
.help section + section {
  margin-top: 64px;
}
.help section h2 {
  margin-bottom: 18px;
}
.form {
  display: grid;
  gap: 10px;
  max-width: 520px;
}
.form .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.notfound {
  min-height: 70svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
  padding-top: var(--header-h);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shop .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 16px;
    --header-h: 54px;
  }
  .header {
    grid-template-columns: 1fr auto 1fr;
  }
  .header nav.left a,
  .header nav.right .hide-m {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .header.overlay:not(.scrolled) .logo {
    clip-path: inset(-10%);
    translate: 0 0;
    pointer-events: auto;
  }

  /* hero: copy stacks under the image */
  .hero-copy {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
  .hero-copy h1 {
    font-size: 40px;
  }

  .statement {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .statement p.big {
    grid-column: auto;
    padding-left: 0;
  }
  .claims {
    grid-template-columns: 1fr 1fr;
  }
  .claims li {
    padding: 16px 12px 16px 0;
  }
  .claims li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .claims li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .grid,
  .grid.cols-3,
  .shop .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 8px;
  }
  .quick {
    display: none;
  }
  .card-info {
    flex-direction: column;
    gap: 4px;
  }
  .filters-apply {
    display: flex;
    margin-top: 20px;
  }
  .steps,
  .steps.cols-5 {
    grid-template-columns: 1fr 1fr;
  }
  .steps.cols-5 .step-card:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 1.4 / 1;
  }
  .step-card {
    aspect-ratio: 1 / 1.05;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split-media {
    position: relative;
    height: 110vw;
    border-radius: 0;
  }
  .split-body {
    padding: 48px var(--gutter);
    gap: 40px;
  }
  .story,
  .use,
  .keys,
  .promos,
  .newsletter,
  .footer-main,
  .cols-2,
  .help,
  .shop-hero {
    grid-template-columns: 1fr;
  }
  .story .text {
    padding: 8px 0 28px;
    order: 2;
  }
  .posts {
    grid-template-columns: 1fr;
  }
  .perks {
    grid-template-columns: 1fr 1fr;
  }
  .newsletter .field-row {
    margin-left: 0;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .modal-card {
    grid-template-columns: 1fr;
  }
  .modal-card > img {
    display: none;
  }
  .shop-hero {
    padding-right: var(--gutter);
    padding-top: 12px;
  }
  .shop-hero .media {
    border-radius: var(--radius);
    order: -1;
  }
  .shop {
    grid-template-columns: 1fr;
  }
  .filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .filters {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    width: min(340px, 88vw);
    padding: 20px;
    background: var(--cream);
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 0.45s var(--ease);
  }
  .filters.open {
    transform: none;
  }
  .pdp {
    grid-template-columns: 1fr;
    padding-top: calc(var(--header-h) + 8px);
  }
  .gallery {
    position: static;
    grid-template-columns: 1fr;
  }
  .thumbs {
    order: 2;
    grid-auto-flow: column;
    grid-auto-columns: 62px;
    overflow-x: auto;
  }
  .buy {
    max-width: none;
  }
  .use .media {
    border-radius: 0;
  }
  .use .text {
    padding: 32px var(--gutter);
  }
  .keys .media {
    order: -1;
  }
  .spec li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .spec p {
    padding-left: 0;
    border-left: 0;
    color: var(--muted);
  }
  .values {
    grid-template-columns: 1fr;
  }
  .help aside {
    position: static;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-product {
    grid-template-columns: 84px 1fr;
  }
  .article-product img {
    width: 84px;
    height: 84px;
  }
  .article-product .btn {
    grid-column: 1 / -1;
  }
  .cover {
    aspect-ratio: 4 / 3.4;
  }
  .form .two {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    clip-path: none;
    transform: none;
  }
}
