/* Drew Imports — storefront.
   Fashion-editorial, mobile-first. White page with warm neutral panels,
   framed product photography and one campaign image per page. Two typefaces:
   Jost (wordmark, display and text, mostly uppercase and widely tracked) and
   IBM Plex Mono for structured product details only. No shadows, rounded
   corners or decorative borders; the only gradient is the legibility scrim
   under text set on a photograph.
   Lines: one 1px weight in three tones (--rule, --rule-strong, --frame).
   They define composition — a rule above a section heading, a hairline
   around a photograph, a divider in the product details — never decoration. */

:root {
  --paper: #ffffff;
  --warm: #f4f1ec;   /* neutral panels: announcement line, editorial, footer */
  --ink: #121110;
  --ink-2: #47433f;
  --muted: #6b665f; /* 5.6:1 on white, 5.1:1 on --warm; small text stays AA */
  --tint: #efebe5;

  /* Line system */
  --hair: 1px;
  --rule: #e5e3df;          /* light divider: header, product details, lists */
  --rule-strong: #c9c6c0;   /* editorial rule: above section headings, framed compositions */
  --frame: #e2dfd9;         /* hairline around photographs */
  --frame-on-photo: rgba(255, 255, 255, 0.55); /* inset line inside campaign photographs */
  --line: var(--rule);      /* older name, kept for existing rules */
  --error: #8f2a1d;

  --sans: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Page margin. On phones images sit inside it at ~90% of the viewport. */
  --gutter: max(16px, 5vw);
  --max: 1440px;
  --header-h: 60px;
  --track: 0.16em;
  --track-wide: 0.28em;
}
@media (min-width: 960px) {
  :root { --gutter: clamp(32px, 3.5vw, 56px); --header-h: 84px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.65 var(--sans);
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.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: var(--gutter); top: -40px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; font-size: 12px; }
.skip-link:focus { top: 8px; }
.hp { position: absolute; left: -9999px; }

/* ---------------- type ---------------- */
.caps { text-transform: uppercase; letter-spacing: var(--track); font-size: 12px; font-weight: 400; }
.meta, .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.title { text-transform: uppercase; letter-spacing: 0.22em; font-size: 20px; line-height: 1.3; font-weight: 400; }
.title-lg { text-transform: uppercase; letter-spacing: 0.16em; font-size: 28px; line-height: 1.18; font-weight: 400; }
/* Section headings: "NEW TEXTILES". */
.section-title { text-transform: uppercase; letter-spacing: var(--track-wide); font-size: 15px; font-weight: 400; line-height: 1.3; }
/* Small tracked label in the display face (collection numbers on cards, campaign labels). */
.kicker { text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 960px) {
  .title { font-size: 24px; }
  .title-lg { font-size: 42px; }
  .section-title { font-size: 20px; }
}
.lede { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 34em; font-weight: 400; }
.prose { max-width: 36em; color: var(--ink-2); }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 12px; text-transform: uppercase; letter-spacing: var(--track); color: var(--ink); margin: 2.4em 0 0.9em; }
.prose ul { padding-left: 1.1em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose a, a.text-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 500; color: var(--ink); }

/* Quiet text link with an underline that sits a little below the baseline. */
.link {
  display: inline-block;
  font-size: 12px; text-transform: uppercase; letter-spacing: var(--track);
  padding: 18px 0 4px; border-bottom: 1px solid currentColor; /* 44px tap area, rule stays tight under the text */
}
.link:hover { color: var(--ink-2); }

/* ---------------- layout ---------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(720px + 2 * var(--gutter)); }
/* Vertical rhythm only, so these combine with .wrap without losing the side margin. */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-tight { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 960px) { .section { padding-top: 120px; padding-bottom: 120px; } .section-tight { padding-top: 64px; padding-bottom: 64px; } }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; padding-top: 14px; border-top: var(--hair) solid var(--rule-strong); }
.section-head .link { padding-top: 12px; }
@media (min-width: 960px) { .section-head { margin-bottom: 40px; } }

.page-head { padding-top: 36px; padding-bottom: 28px; text-align: center; }
.page-head .meta { margin-top: 10px; }
.page-head .lede { margin-left: auto; margin-right: auto; }
.page-head::after, .collection-intro::after { content: ''; display: block; width: 40px; height: var(--hair); background: var(--rule-strong); margin: 20px auto 0; }
/* Never stack two rules: a plate that follows brings its own. */
.page-head:has(+ .collection-list)::after,
.page-head:has(+ .wrap > .archive-group:first-child)::after { display: none; }
@media (min-width: 960px) { .page-head { padding-top: 64px; padding-bottom: 44px; } }

/* ---------------- header ---------------- */
/* Shipping line: generated from the real shipping settings (see announcementParts). */
.announce { background: var(--warm); text-align: center; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 9px var(--gutter); color: var(--ink-2); line-height: 1.5; }
.announce-part + .announce-part::before { content: '·'; margin: 0 1em; }
.announce-more { display: none; }
@media (max-width: 399px) { .announce { letter-spacing: 0.1em; padding-left: 12px; padding-right: 12px; } }
@media (min-width: 640px) { .announce-more { display: inline; } .announce { font-size: 11.5px; } }

/* Only the wordmark row stays pinned; the navigation row scrolls away. */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.wordmark {
  grid-column: 2; text-transform: uppercase; white-space: nowrap; font-weight: 500;
  font-size: clamp(16px, 4.6vw, 22px); letter-spacing: 0.34em; padding: 10px 0 10px 0.34em; line-height: 1;
}
@media (max-width: 399px) { .wordmark { font-size: 15.5px; letter-spacing: 0.3em; padding-left: 0.3em; } .cart-link { letter-spacing: 0.12em; } }
.nav-toggle { grid-column: 1; grid-row: 1; justify-self: start; width: 44px; height: 44px; margin-left: -10px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.cart-link { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; text-transform: uppercase; letter-spacing: var(--track); padding: 0 0 0 8px; white-space: nowrap; }

.nav-row { background: var(--paper); border-bottom: var(--hair) solid var(--rule); }
/* Once the navigation row has scrolled away, the pinned wordmark row gets the rule. */
.site-header.is-stuck { border-bottom: var(--hair) solid var(--rule); }
.nav-row ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: flex; justify-content: space-between; }
.nav-row a { display: block; padding: 6px 0 16px; font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink); min-height: 40px; }
@media (max-width: 359px) { .nav-row a { font-size: 11px; letter-spacing: 0.1em; } }
.nav-row a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (min-width: 420px) { .nav-row a { letter-spacing: 0.18em; } }
@media (min-width: 640px) { .nav-row ul { justify-content: center; gap: 48px; } .nav-row a { letter-spacing: 0.24em; } }
@media (min-width: 960px) {
  .wordmark { font-size: 32px; letter-spacing: 0.42em; padding-left: 0.42em; }
  .cart-link { font-size: 13px; }
  .nav-toggle svg { width: 28px; height: 28px; }
  .nav-row ul { gap: 64px; }
  .nav-row a { padding: 4px 0 24px; font-size: 13px; letter-spacing: 0.28em; }
  .announce { font-size: 12px; padding: 11px var(--gutter); }
}

/* The menu (icon) opens a full-height panel: the main links plus secondary ones. */
.main-nav { display: none; }
.main-nav.open {
  display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 39;
  background: var(--paper); padding: 20px var(--gutter) 48px; overflow-y: auto;
  border-top: var(--hair) solid var(--rule);
}
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-primary li a { display: block; padding: 10px 0; font-size: 22px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; }
.nav-primary a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-secondary { margin-top: 28px; padding-top: 18px; border-top: var(--hair) solid var(--rule); }
.nav-secondary li a { display: block; padding: 10px 0; font-size: 13px; text-transform: uppercase; letter-spacing: var(--track); color: var(--ink-2); }
@media (min-width: 960px) { .main-nav.open { max-width: 420px; right: auto; border-right: 1px solid var(--line); } }

main { min-height: 50vh; }

/* ---------------- framed images ---------------- */
/* Images sit inside the page margin, on a faint tint while they load. */
.frame { position: relative; margin: 0; background: var(--tint); overflow: hidden; }
/* Hairline around photographs, drawn over the image edge so nothing shifts. */
.frame::after, .gallery-slide::after { content: ''; position: absolute; inset: 0; border: var(--hair) solid var(--frame); pointer-events: none; }
.frame > a { display: block; height: 100%; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame-portrait { aspect-ratio: 4 / 5; }
.frame-land { aspect-ratio: 3 / 2; }
.frame-square { aspect-ratio: 1; }
.frame-natural { background: none; }
.frame-bare::after { display: none; }
.frame-natural img { height: auto; object-fit: initial; }
.caption { margin-top: 10px; }

.placeholder-media { width: 100%; height: 100%; display: grid; place-items: center; background: var(--tint); color: var(--muted); font-size: 12px; letter-spacing: var(--track); text-transform: uppercase; aspect-ratio: 4 / 5; }

/* ---------------- product grid & card ---------------- */
.pieces { display: grid; grid-template-columns: 1fr; gap: 40px; }
/* Secondary groups (related pieces): a compact pair on phones. */
.pieces-compact { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
.pieces-compact > :nth-child(n + 3) { display: none; }
.pieces-compact .piece-body { grid-template-columns: 1fr; }
.pieces-compact .piece-price { text-align: left; }
@media (min-width: 640px) { .pieces-compact > :nth-child(n + 3) { display: block; } .pieces-compact .piece-body { grid-template-columns: 1fr auto; } .pieces-compact .piece-price { text-align: right; } }
@media (min-width: 640px) { .pieces { grid-template-columns: repeat(2, 1fr); gap: 56px 24px; } .pieces-compact { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .pieces { grid-template-columns: repeat(3, 1fr); gap: 72px 32px; } }

.piece { display: block; }
.piece .frame { aspect-ratio: 4 / 5; position: relative; }
.piece .frame img { transition: opacity 0.5s ease; }
.piece .alt-img { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .piece:hover .alt-img { opacity: 1; } }
.piece-body { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 16px; }
.piece-name { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.18em; line-height: 1.5; }
.piece-price { font-size: 12.5px; letter-spacing: 0.1em; text-align: right; white-space: nowrap; }
.piece-origin { grid-column: 1 / -1; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.piece-state { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
/* Archived and sold-out pieces keep their photographs intact: the state is
   carried by a quiet word in the price position, not by fading the image. */

.empty { padding: 48px 0 24px; color: var(--ink-2); }
.empty .link { margin-top: 16px; }

/* Text filters: a wrapping row, never a sideways scroller. */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 0 0 36px; padding: 0; list-style: none; }
.filters-label { width: 100%; margin-bottom: 2px; text-align: center; }
.filters a { font-size: 12px; text-transform: uppercase; letter-spacing: var(--track); color: var(--muted); padding: 11px 0; display: inline-block; }
.filters a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (min-width: 960px) { .filters-label { width: auto; margin: 0 8px 0 0; padding: 6px 0; } }

/* ---------------- campaign (homepage, collections) ---------------- */
/* One large photograph with the collection set over it, like a fashion
   campaign. Full-bleed on phones; on large screens it sits inside the page
   margin. Replaceable from Admin → Site Images / the collection editor. */
.campaign { position: relative; margin: 0; background: var(--tint); overflow: hidden; color: #fff; }
.campaign-media { aspect-ratio: 4 / 5; }
.campaign-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 60% 50%); }
/* A fine inset line inside the photograph, like a printed plate. */
.campaign::before { content: ''; position: absolute; inset: 10px; border: var(--hair) solid var(--frame-on-photo); pointer-events: none; z-index: 1; }
.campaign.no-image::before { display: none; }
.campaign::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(18, 17, 16, 0.72) 0%, rgba(18, 17, 16, 0.5) 30%, rgba(18, 17, 16, 0.12) 58%, rgba(18, 17, 16, 0) 72%); }
.campaign-copy { position: absolute; left: calc(var(--gutter) + 10px); right: calc(var(--gutter) + 10px); bottom: 30px; z-index: 2; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28); }
.campaign-copy .kicker { color: #fff; letter-spacing: 0.3em; }
.campaign-copy .title-lg { margin: 12px 0 14px; color: #fff; }
.campaign-copy .campaign-sub { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.8; max-width: 26em; margin-bottom: 4px; }
@media (min-width: 960px) { .campaign-copy .kicker { font-size: 13px; } .campaign-copy .campaign-sub { font-size: 13px; } .campaign-copy .link { font-size: 13px; } }
.campaign-copy .link { color: #fff; }
.campaign-copy a:focus-visible { outline-color: #fff; }
.campaign.no-image { background: var(--ink); }
.campaign.no-image::after { display: none; }
.campaign.no-image .campaign-media { aspect-ratio: 5 / 4; }
@media (min-width: 640px) { .campaign-media { aspect-ratio: 4 / 3; } }
@media (min-width: 960px) {
  .campaign-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
  .campaign-media { aspect-ratio: auto; height: clamp(460px, 64vh, 660px); }
  .campaign::after { background: linear-gradient(90deg, rgba(18, 17, 16, 0.5) 0%, rgba(18, 17, 16, 0.2) 38%, rgba(18, 17, 16, 0) 60%); }
  .campaign::before { inset: 16px; }
  .campaign-copy { left: clamp(48px, 5vw, 88px); right: auto; bottom: auto; top: 50%; transform: translateY(-50%); max-width: 520px; }
}

/* ---------------- framed composition ---------------- */
/* A plate from an interiors magazine: rule, aligned label row, title, framed
   photograph, call to action, closing rule. Lines align to the content margin. */
.composition { border-top: var(--hair) solid var(--rule-strong); border-bottom: var(--hair) solid var(--rule-strong); padding: 14px 0 26px; }
.composition-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.composition-title { margin: 0 0 20px; }
.composition-media { aspect-ratio: 4 / 5; }
.composition-body .lede { margin: 18px 0 0; }
.composition-body .link { margin-top: 2px; }
@media (min-width: 960px) {
  .composition { padding: 18px 0 40px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 32px; align-items: end; }
  .composition-head { grid-column: 1 / -1; margin-bottom: 28px; }
  .composition-media { grid-column: 1 / span 7; grid-row: 2 / span 2; aspect-ratio: 4 / 3; }
  .composition-title { grid-column: 9 / span 4; grid-row: 2; align-self: start; margin: 0; }
  .composition-body { grid-column: 9 / span 4; grid-row: 3; align-self: end; }
}

/* ---------------- homepage ---------------- */
.home-new { padding-top: 56px; padding-bottom: 64px; }
.home-new .pieces { gap: 44px; }
@media (min-width: 640px) { .home-new .pieces { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 960px) { .home-new { padding-top: 80px; padding-bottom: 96px; } .home-new .pieces { gap: 28px; } .piece-name, .piece-price { font-size: 13.5px; } .piece-origin { font-size: 12px; } }

/* Editorial: a close textile photograph beside the brand line, on a warm panel. */
.editorial { background: var(--warm); display: grid; }
.editorial-media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.editorial-copy { display: grid; place-items: center; text-align: center; padding: 56px var(--gutter) 60px; }
.editorial-copy p { margin: 0; font-size: 17px; letter-spacing: 0.3em; text-transform: uppercase; line-height: 1.75; max-width: 16em; }
.editorial-copy .rule { display: block; width: 40px; height: 1px; background: var(--ink); margin: 26px auto 0; }
.editorial-copy .link { margin-top: 6px; }
@media (min-width: 640px) { .editorial { grid-template-columns: 7fr 5fr; } .editorial-media { aspect-ratio: auto; min-height: 420px; } }
@media (min-width: 960px) { .editorial-media { min-height: 560px; } .editorial-copy p { font-size: 20px; } }

/* Archive: a small, quiet way in, framed by two rules. */
.home-archive { padding-top: 56px; padding-bottom: 64px; }
.home-archive .composition-row { display: grid; grid-template-columns: 38% 1fr; gap: 20px; align-items: center; }
.home-archive .frame { aspect-ratio: 4 / 5; }
.home-archive-copy .title { margin: 0 0 8px; }
.home-archive-copy .lede { font-size: 15px; margin-bottom: 0; color: var(--ink); }
.composition-head .kicker { color: var(--ink); }
.composition-head .kicker.muted { color: var(--muted); }
@media (min-width: 960px) {
  .home-archive { padding-top: 80px; padding-bottom: 88px; }
  .home-archive .composition { display: block; padding-bottom: 32px; }
  .home-archive .composition-row { grid-template-columns: repeat(12, 1fr); gap: 32px; }
  .home-archive figure { grid-column: 4 / span 3; }
  .home-archive-copy { grid-column: 7 / span 4; }
  .home-archive-copy .lede { font-size: 15px; }
}

/* Brand line used where there is no editorial photo. */
.statement { text-align: center; padding-top: 72px; padding-bottom: 72px; background: var(--warm); }
.statement p { margin: 0 auto; max-width: 16em; font-size: 17px; letter-spacing: 0.3em; text-transform: uppercase; line-height: 1.75; }
@media (min-width: 960px) { .statement { padding-top: 120px; padding-bottom: 120px; } .statement p { font-size: 20px; } }

/* ---------------- collections ---------------- */
.collection-intro { text-align: center; padding-top: 40px; padding-bottom: 8px; }
.collection-intro .lede { margin: 0 auto 10px; }
@media (min-width: 960px) { .collection-intro { padding-top: 64px; } }
.collection-grid { padding-top: 32px; padding-bottom: 72px; }
@media (min-width: 960px) { .collection-grid { padding-top: 48px; padding-bottom: 112px; } }
.collection-list { display: grid; gap: 48px; }
@media (min-width: 960px) { .collection-list { gap: 72px; } }
.collection-head { display: grid; gap: 28px; padding-top: 24px; }
.collection-head .frame { aspect-ratio: 4 / 5; }
.collection-head .title-lg { margin: 10px 0 8px; }
.collection-head .subtitle { color: var(--ink-2); font-weight: 300; margin-bottom: 18px; }
@media (min-width: 960px) {
  .collection-head { grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: end; padding-top: 56px; }
  .collection-head figure { grid-column: 1 / span 7; }
  .collection-head-copy { grid-column: 9 / span 4; padding-bottom: 8px; }
}

.collection-item { display: grid; gap: 20px; }
.collection-item .frame { aspect-ratio: 4 / 5; }
.collection-item .title { margin: 8px 0 6px; }
@media (min-width: 960px) {
  .collection-item { grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: end; }
  .collection-item figure { grid-column: 2 / span 6; }
  .collection-item .collection-copy { grid-column: 9 / span 4; padding-bottom: 8px; }
  .collection-item:nth-child(even) figure { grid-column: 6 / span 6; grid-row: 1; }
  .collection-item:nth-child(even) .collection-copy { grid-column: 2 / span 3; grid-row: 1; }
}
.past-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.past-list li { border-bottom: 1px solid var(--line); }
.past-list a { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; }
.past-list .piece-name { font-size: 12px; }

/* ---------------- archive ---------------- */
.archive-group + .archive-group { margin-top: 96px; }
.archive-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; padding-top: 14px; border-top: var(--hair) solid var(--rule-strong); }

/* ---------------- product page ---------------- */
.pdp { display: grid; gap: 28px; padding-top: 8px; }
@media (min-width: 960px) {
  .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 0 clamp(40px, 6vw, 112px); padding-top: 32px; align-items: start; }
  .pdp-info { position: sticky; top: calc(var(--header-h) + 24px); padding-bottom: 24px; }
}
.gallery-stage { position: relative; }
/* Phones: one fixed 4:5 stage (the same proportion as the product cards), so
   switching between a portrait photo and a landscape video never moves the page. */
.gallery-slide { position: relative; display: none; margin: 0; background: var(--tint); aspect-ratio: 4 / 5; }
.gallery-slide.is-active { display: block; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slide video { width: 100%; height: 100%; object-fit: contain; background: var(--tint); }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gallery-thumbs button { width: 52px; height: 64px; padding: 0; border: 0; background: var(--tint); cursor: pointer; opacity: 0.5; position: relative; }
.gallery-thumbs button[aria-pressed="true"] { opacity: 1; }
.gallery-thumbs button[aria-pressed="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb-video { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.gallery-caption { margin-top: 10px; }
@media (min-width: 960px) {
  /* Desktop: every photo, stacked, like pages of a lookbook. */
  .gallery-slide { display: block; aspect-ratio: auto; }
  .gallery-slide img { height: auto; object-fit: initial; }
  /* Portrait clips stay within the screen, centred on the neutral ground. */
  .gallery-slide.slide-video { background: var(--tint); }
  .gallery-slide video { height: auto; width: auto; max-width: 100%; max-height: 86vh; margin: 0 auto; background: var(--tint); }
  .gallery-slide + .gallery-slide { margin-top: 16px; }
  .gallery-thumbs, .gallery-caption { display: none; }
}

.pdp-info h1 { font-size: 18px; text-transform: uppercase; letter-spacing: 0.2em; line-height: 1.4; font-weight: 400; margin-bottom: 14px; }
@media (min-width: 960px) { .pdp-info h1 { font-size: 22px; } }
.pdp-price { font-size: 15px; letter-spacing: 0.1em; margin: -4px 0 16px; }
.pdp-provenance { display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 12px; margin: 0 0 18px; padding-top: 14px; border-top: var(--hair) solid var(--rule); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.pdp-provenance dt { color: var(--muted); }
.pdp-provenance dd { margin: 0; }
.pdp-provenance a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pdp-short { color: var(--ink-2); font-weight: 400; margin-bottom: 24px; max-width: 30em; }
.pdp-status { margin-bottom: 20px; }
.pdp-status p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }

.add-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 10px; }
.add-row .btn { flex: 1; }
.qty { display: flex; align-items: stretch; border: 1px solid var(--ink); }
.qty button { width: 44px; background: none; border: 0; cursor: pointer; font-size: 16px; }
.qty input[type="number"] { width: 34px; border: 0; padding: 0; background: none; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.specs { display: grid; grid-template-columns: 7.5em 1fr; gap: 6px 12px; margin: 26px 0 0; padding: 16px 0 0; border-top: var(--hair) solid var(--rule); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); }
.specs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.pdp-more { margin-top: 24px; border-top: var(--hair) solid var(--rule); }
.pdp-more details { border-bottom: 1px solid var(--line); }
.pdp-more summary { list-style: none; cursor: pointer; padding: 18px 0; font-size: 12px; text-transform: uppercase; letter-spacing: var(--track); display: flex; justify-content: space-between; }
.pdp-more summary::-webkit-details-marker { display: none; }
.pdp-more summary::after { content: '+'; font-family: var(--mono); }
.pdp-more details[open] summary::after { content: '−'; }
.pdp-more .prose { padding-bottom: 18px; font-size: 14px; }

.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.provenance { display: grid; gap: 24px; }
.provenance .frame { aspect-ratio: 4 / 5; max-width: 520px; }
.provenance .title { margin: 10px 0 6px; }
@media (min-width: 960px) {
  .provenance { grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: center; }
  .provenance figure { grid-column: 2 / span 4; }
  .provenance-copy { grid-column: 7 / span 5; }
}
.related-after-maker { padding-top: 0; }

/* ---------------- makers & about ---------------- */
.maker-list { display: grid; gap: 64px; }
@media (min-width: 640px) { .maker-list { grid-template-columns: repeat(2, 1fr); gap: 72px 24px; } }
@media (min-width: 1100px) { .maker-list { grid-template-columns: repeat(3, 1fr); } }
.maker-list .frame { aspect-ratio: 4 / 5; margin-bottom: 14px; }

.story { display: grid; gap: 40px; }
.story figure { margin: 0; }
.story figure.frame-land { aspect-ratio: 3 / 2; }
@media (min-width: 960px) {
  .story { grid-template-columns: repeat(12, 1fr); gap: 56px 32px; }
  .story > * { grid-column: 3 / span 8; }
  .story > .story-wide { grid-column: 3 / span 8; } /* no wider than the 1600px photos stay sharp at 2x */
  .story > .story-left { grid-column: 2 / span 5; }
  .story > .story-right { grid-column: 8 / span 4; align-self: center; }
}
.story .prose { font-size: 16px; }

.maker-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 960px) { .maker-gallery { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------------- buttons & forms ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
  font-size: 12px; text-transform: uppercase; letter-spacing: var(--track); font-weight: 400;
}
.btn:hover { background: #000; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-outline { background: none; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: var(--track); margin-bottom: 6px; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 10px 0; font-size: 15px;
}
select { -webkit-appearance: none; appearance: none; background: transparent; padding-right: 18px; cursor: pointer; }
textarea { min-height: 7em; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 10px 0; }
.check input { margin-top: 4px; accent-color: var(--ink); }
.error { color: var(--error); font-size: 13px; display: block; margin-top: 6px; }

.alert { padding: 14px 0; margin: 0 0 20px; font-size: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.alert-error { color: var(--error); }
.alert-ok, .alert-info { color: var(--ink-2); }

/* ---------------- footer ---------------- */
.site-footer { padding: 48px 0 28px; background: var(--warm); font-size: 13px; border-top: var(--hair) solid var(--rule); }
.footer-mark { display: block; text-align: center; text-transform: uppercase; font-weight: 500; letter-spacing: 0.36em; padding-left: 0.36em; font-size: 16px; margin-bottom: 36px; }
.footer-news .caps { letter-spacing: var(--track-wide); }
.footer-grid { display: grid; gap: 28px; }
.footer-news p { color: var(--ink-2); margin: 8px 0 16px; max-width: 26em; }
.signup-form { display: flex; align-items: flex-end; gap: 16px; max-width: 420px; flex-wrap: wrap; }
.signup-form input[type="email"] { flex: 1; min-width: 200px; }
.signup-form button { background: none; border: 0; border-bottom: 1px solid var(--ink); min-height: 44px; padding: 10px 0; font-size: 12px; text-transform: uppercase; letter-spacing: var(--track); cursor: pointer; }
.signup-msg { width: 100%; margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.signup-msg:empty { display: none; }
.footer-links { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li a { display: inline-block; padding: 10px 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); }
@media (min-width: 960px) { .footer-links li a { padding: 6px 0; } }
.footer-links li a:hover { color: var(--ink); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: var(--hair) solid var(--rule-strong); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); justify-content: stretch; gap: 24px; }
  .footer-links li a { font-size: 12px; letter-spacing: 0.14em; }
}

/* ---------------- cart ---------------- */
.cart-layout { display: grid; gap: 48px; padding-bottom: 32px; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 80px; align-items: start; } }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line img, .cart-line .placeholder-media { width: 88px; height: 110px; object-fit: cover; background: var(--tint); }
.cart-line h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 4px; }
.cart-line .problem { color: var(--error); font-size: 13px; margin-top: 6px; }
.line-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 10px; }
.line-actions select { width: auto; padding: 8px 18px 8px 0; font-size: 14px; }
.line-actions .remove { background: none; border: 0; padding: 12px 0; font-size: 12px; text-transform: uppercase; letter-spacing: var(--track); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink-2); }
.line-total { font-size: 13px; }
.line-total strong { font-weight: 400; }
.summary h2 { font-size: 12px; text-transform: uppercase; letter-spacing: var(--track); margin-bottom: 18px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0 0 24px; font-size: 14px; }
.summary dd { margin: 0; padding-left: 16px; text-align: right; }
.summary .total { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 500; }
.free-progress { font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.free-progress .bar { height: 1px; background: var(--line); margin-top: 8px; }
.free-progress .bar span { display: block; height: 1px; background: var(--ink); }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 16px; z-index: 60;
  background: var(--ink); color: var(--paper); padding: 14px 18px; font-size: 13px;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast a { text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
@media (min-width: 640px) { .toast { left: auto; right: var(--gutter); max-width: 380px; } }

/* ---------------- legacy request status page (/r/{token}) ---------------- */
.request-layout { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 960px) { .request-layout { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 64px; align-items: start; } }
.form-card, .aside-card, .policy-box { padding: 24px 0; border-top: 1px solid var(--line); }
.quote-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
.quote-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.quote-table td:last-child { text-align: right; }
.timeline { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.timeline li { padding: 6px 0; }
.timeline li.done { color: var(--ink-2); }
.timeline li.current { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.spec-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; }

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

/* Legacy request status page headings. */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.page-head h1:not([class]) { text-transform: uppercase; letter-spacing: var(--track); font-size: 20px; line-height: 1.3; margin-top: 10px; }
