/* ==========================================================================
   The Sunday Shop: core stylesheet
   Tokens → base → layout → components → pages → utilities → print
   ========================================================================== */

/* Metric-matched fallbacks reduce layout shift while web fonts load */
@font-face { font-family: "Cormorant Fallback"; src: local("Georgia"); size-adjust: 86%; ascent-override: 92%; descent-override: 28%; }
@font-face { font-family: "Jost Fallback"; src: local("Arial"); size-adjust: 96%; ascent-override: 104%; descent-override: 28%; }

:root {
  /* Colour: drawn from the product imagery (see brand guidelines) */
  --ivory: #F3ECE0;        /* page: warm off-white (was #F8F4EC, client: "too white") */
  --linen: #EAE1D2;        /* alternate surface */
  --oat: #DCCFB9;          /* borders on light */
  --sand: #CDBFA8;         /* hairlines on linen */
  --ink: #2B3326;          /* primary text */
  --ink-soft: #545C4C;     /* secondary text */
  --sunday-green: #3F4C34; /* brand / primary action */
  --sunday-green-deep: #2F3A27;
  --turf: #666D4C;         /* trim: Turf Green (screen approximation) */
  --stone: #797C5D;        /* trim: Stone Green (screen approximation) */
  --blush: #EBCFC8;
  --cornflower: #4F67A8;
  --terracotta: #B4694A;
  --white: #FFFDF9;
  --error: #9E3B2B;
  --focus: #2F3A27;

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Jost Fallback", "Helvetica Neue", Arial, sans-serif;
  --step--2: 0.75rem;
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.32rem + 0.6vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.5rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.375rem, 1.7rem + 2.6vw, 4rem);
  --step-5: clamp(2.75rem, 1.8rem + 3.8vw, 5.25rem);
  --tracking-caps: 0.16em;

  /* Space */
  --gutter: clamp(1rem, 0.5rem + 2.6vw, 3.5rem);
  --page-max: 1440px;
  --measure: 62ch;
  --section: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  --space-xs: 0.5rem; --space-s: 1rem; --space-m: 1.5rem; --space-l: 2.5rem; --space-xl: 4rem;
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); scrollbar-gutter: stable; /* L1 */ }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-kerning: normal; font-variant-numeric: lining-nums;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(button, [role="button"], label, summary) { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.005em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.2; }
p, li, dd { text-wrap: pretty; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 1px; }
::selection { background: var(--blush); color: var(--ink); }
.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; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--sunday-green); color: var(--white); padding: 0.75rem 1rem; text-decoration: none; }
.skip-link:focus { top: 0.5rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--linen { background: var(--linen); }
/* Two plain sections in a row share one gap; a plain section after a linen band keeps its own top padding. */
.section:not(.section--linen):not(.section--green) + .section:not(.section--linen):not(.section--green):not(.section--flush) { padding-top: 0; }
.stack > * + * { margin-top: var(--space-m); }

/* ---------- Typography helpers ---------- */
.eyebrow { display: block; font: 500 var(--step--2)/1.4 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1rem; }
.lede { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.4; font-weight: 400; max-width: 34ch; }
.display-italic { font-style: italic; font-weight: 400; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }
.price { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

/* Signature scalloped rule, echoing the hand-finished trim */
.scallop {
  display: block; width: 112px; height: 12px; margin: 0 0 1.5rem; color: var(--turf);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M0 6c3.5 0 3.5-5 7-5s3.5 5 7 5 3.5 5 7 5 3.5-5 7-5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x left center / 28px 12px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12'%3E%3Cpath d='M0 6c3.5 0 3.5-5 7-5s3.5 5 7 5 3.5 5 7 5 3.5-5 7-5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x left center / 28px 12px;
}
.scallop--center { margin-inline: auto; }
.scallop--wide { width: min(100%, 420px); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--sunday-green); --btn-fg: var(--white); --btn-bd: var(--sunday-green);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0 2rem; border: 1px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; text-align: center;
  font: 500 var(--step--1)/1.2 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  user-select: none;
}
.btn:active { --btn-bg: var(--sunday-green-deep); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--sunday-green); }
.btn--light { --btn-bg: var(--ivory); --btn-fg: var(--sunday-green); --btn-bd: var(--ivory); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
@media (hover: hover) {
  .btn:hover { --btn-bg: var(--sunday-green-deep); --btn-bd: var(--sunday-green-deep); }
  .btn--ghost:hover { --btn-bg: var(--sunday-green); --btn-fg: var(--white); --btn-bd: var(--sunday-green); }
  .btn--light:hover { --btn-bg: var(--white); --btn-bd: var(--white); }
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  font: 500 var(--step--1)/1.2 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  text-decoration: none; color: var(--sunday-green);
  background: linear-gradient(currentColor, currentColor) left calc(50% + 0.85em) / 100% 1px no-repeat;
}
.link-arrow::after { content: "→"; font-family: var(--font-body); letter-spacing: 0; transition: transform .25s var(--ease); }
@media (hover: hover) { .link-arrow:hover::after { transform: translateX(4px); } }

/* ---------- Review markers (internal review only) ---------- */
/* Remove data-review="on" from <html> (or delete these rules) before launch */
.tbc { display: none; }
[data-review="on"] .tbc {
  display: inline-block; vertical-align: 0.15em; margin-inline: 0.3em; padding: 0.1em 0.45em 0.05em;
  font: 600 0.625rem/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  color: #6A4A00; background: #FCEFC7; border: 1px dashed #C99A2E; border-radius: 2px; white-space: nowrap;
}
mark.review { background: none; color: inherit; }
[data-review="on"] mark.review { background: #FCEFC7; box-shadow: 0 0 0 2px #FCEFC7; color: inherit; border-bottom: 1px dashed #C99A2E; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--sunday-green); color: var(--ivory); text-align: center; font: 400 var(--step--2)/1.4 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; padding: 0.6rem var(--gutter); }
.announce p { margin: 0; text-wrap: balance; }

.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--ivory) 94%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--oat); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-h); gap: 1rem; }
.header-start, .header-end { display: flex; align-items: center; gap: 0.25rem; }
.header-end { justify-content: flex-end; }

.wordmark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1; padding: 0.5rem 0; }
.wordmark__the { font: 500 0.625rem/1 var(--font-body); letter-spacing: 0.42em; margin-right: -0.42em; text-transform: uppercase; color: var(--ink-soft); }
.wordmark__name { font: 500 clamp(1.125rem, 0.95rem + 0.8vw, 1.5rem)/1 var(--font-display); letter-spacing: 0.2em; margin-right: -0.2em; text-transform: uppercase; margin-top: 0.4rem; white-space: nowrap; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2vw, 2.25rem); }
.primary-nav a, .header-link {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.25rem; text-decoration: none;
  font: 500 var(--step--1)/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) left calc(50% + 0.95em) / 0 1px no-repeat;
  transition: background-size .3s var(--ease);
}
.primary-nav a[aria-current="page"], .primary-nav a.is-section { background-size: 100% 1px; }
@media (hover: hover) { .primary-nav a:hover, .header-link:hover { background-size: 100% 1px; } }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-width: 44px; min-height: 44px; padding: 0 0.5rem; background: none; border: 0; color: var(--ink); text-decoration: none; font: 500 var(--step--1)/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; border-radius: var(--radius); }
.icon-btn svg { width: 22px; height: 22px; flex: none; }
.bag-count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.3rem; border-radius: 999px; background: var(--sunday-green); color: var(--white); font: 500 0.6875rem/1 var(--font-body); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.bag-count[data-count="0"] { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--sand); }

.menu-toggle { display: none; }
@media (max-width: 960px) {
  .primary-nav, .header-link--desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .icon-btn .label-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .no-js .primary-nav { display: block; grid-column: 1 / -1; order: 3; padding-bottom: 0.75rem; }
  .no-js .primary-nav ul { justify-content: center; flex-wrap: wrap; }
  .no-js .menu-toggle { display: none; }
  .no-js .header-inner { grid-template-columns: 1fr auto 1fr; }
}

/* ---------- Drawers (native <dialog>) ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; background: var(--ivory); color: var(--ink); display: flex; flex-direction: column; overscroll-behavior: contain; }
.drawer:not([open]) { display: none; }
.drawer--left { inset: 0 auto 0 0; }
.drawer::backdrop { background: rgb(30 36 26 / 0.38); }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: drawer-in-right .35s var(--ease); }
  .drawer--left[open] { animation-name: drawer-in-left; }
  .drawer[open]::backdrop { animation: fade-in .35s var(--ease); }
}
@keyframes drawer-in-right { from { transform: translateX(100%); } }
@keyframes drawer-in-left { from { transform: translateX(-100%); } }
@keyframes fade-in { from { opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem var(--gutter) 0.75rem 1.5rem; border-bottom: 1px solid var(--oat); min-height: var(--header-h); }
.drawer__title { font: 500 var(--step-2)/1.1 var(--font-display); margin: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.drawer__foot { border-top: 1px solid var(--oat); padding: 1.25rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom)); background: var(--linen); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li + li { border-top: 1px solid var(--oat); }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 64px; text-decoration: none; font: 500 var(--step-3)/1.1 var(--font-display); }
.mobile-nav a::after { content: "→"; font: 400 1rem/1 var(--font-body); color: var(--ink-soft); }
.mobile-nav__secondary { margin-top: 2rem; display: grid; gap: 0.25rem; }
.mobile-nav__secondary a { display: flex; align-items: center; min-height: 44px; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); }

/* Bag contents */
.bag-empty { text-align: center; padding: 3rem 0; }
.bag-empty p { font: 400 var(--step-2)/1.3 var(--font-display); }
.bag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.bag-item { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; align-items: start; }
.bag-item img { width: 88px; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 30%; background: var(--linen); }
.bag-item__top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.bag-item__name { font: 500 var(--step-1)/1.25 var(--font-display); margin: 0; }
.bag-item__meta { margin: 0.25rem 0 0.75rem; font-size: var(--step--1); color: var(--ink-soft); }
.bag-item__actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.text-btn { background: none; border: 0; padding: 0; min-height: 44px; font-size: var(--step--1); color: var(--ink-soft); text-decoration: underline; text-underline-offset: 0.22em; }
@media (hover: hover) { .text-btn:hover { color: var(--ink); } }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; margin: 0 0 1rem; }
.totals dt { margin: 0; }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.totals .is-total { font: 500 var(--step-1)/1.3 var(--font-display); padding-top: 0.5rem; border-top: 1px solid var(--sand); margin-top: 0.25rem; }

/* Quantity stepper */
.qty { display: inline-grid; grid-template-columns: 44px 3ch 44px; align-items: center; border: 1px solid var(--sand); border-radius: var(--radius); background: var(--white); }
.qty button { height: 44px; background: none; border: 0; font-size: 1.125rem; line-height: 1; color: var(--ink); user-select: none; }
.qty button:disabled { color: var(--sand); cursor: not-allowed; }
.qty output, .qty input { text-align: center; font-variant-numeric: tabular-nums; border: 0; background: none; width: 100%; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; background: var(--linen); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-2x3 { aspect-ratio: 2 / 3; }
.ratio-1x1 { aspect-ratio: 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.pos-top img { object-position: 50% 18%; }
.pos-upper img { object-position: 50% 32%; }

/* ---------- Home: hero ---------- */
.hero { padding-block: clamp(1.5rem, 3vw, 3rem) var(--section); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.hero__copy { max-width: 30rem; }
.hero__copy h1 { margin-bottom: 1.5rem; }
.hero__copy .lede { margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.hero__images { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(0.75rem, 1.5vw, 1.5rem); align-items: end; }
.hero__images .media:first-child { aspect-ratio: 3 / 4.6; }
.hero__images .media:last-child { aspect-ratio: 3 / 4; margin-bottom: clamp(2rem, 6vw, 5rem); }
.hero__caption { margin-top: 0.75rem; font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
/* R4: keep copy and CTA beside the images on tablet portrait (700–960px) */
@media (min-width: 700px) and (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
  .hero__copy h1 { font-size: clamp(2.5rem, 1rem + 4.6vw, 3.5rem); }
  .hero__copy .lede { font-size: var(--step-1); }
}
@media (max-width: 699px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__images { order: -1; }
  .hero__copy { max-width: 36rem; }
}

/* Statement */
.statement { text-align: center; }
.statement .scallop { margin-inline: auto; }
.statement p { font: 400 var(--step-3)/1.3 var(--font-display); max-width: 28ch; margin: 0 auto 1.5rem; text-wrap: balance; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.5rem); }
.tile { position: relative; display: block; text-decoration: none; color: var(--ink); }
.tile .media { aspect-ratio: 4 / 5; }
.tile .media img { transition: transform 1.2s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .tile:hover .media img { transform: scale(1.03); } }
.tile__label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; }
.tile__label h3 { margin: 0; font-size: var(--step-3); }
.tile__label span { font: 500 var(--step--1)/1 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--sunday-green); white-space: nowrap; }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* Section head */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { margin: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2.5vw, 2.5rem); }
.product-card { position: relative; }
.product-card a { text-decoration: none; }
.product-card a::after { content: ""; position: absolute; inset: 0; }
.product-card a:focus-visible { outline: none; }
.product-card:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 6px; }
.product-card .media { aspect-ratio: 4 / 5; }
.product-card .media img + img { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
@media (hover: hover) { .product-card:hover .media img + img { opacity: 1; } }
.product-card__body { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-top: 1rem; }
.product-card__name { font: 500 var(--step-2)/1.15 var(--font-display); margin: 0; }
.product-card__meta { font-size: var(--step--1); color: var(--ink-soft); margin: 0.35rem 0 0; }
.product-card__price { font-size: var(--step-0); }
.swatch-dots { display: flex; gap: 0.35rem; margin-top: 0.6rem; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); }
.coming-card { display: grid; place-content: center; text-align: center; gap: 0.75rem; aspect-ratio: 4 / 5; background: var(--linen); padding: 2rem; border: 1px solid var(--oat); }
.coming-card h3 { margin: 0; }

/* Split feature */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__copy { max-width: 32rem; }
.split__copy p { color: var(--ink-soft); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.detail-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.5rem); }
.detail-trio figure { margin: 0; }
.detail-trio figcaption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--ink-soft); }
.detail-trio figcaption strong { display: block; font: 500 var(--step-1)/1.2 var(--font-display); color: var(--ink); margin-bottom: 0.15rem; }
@media (max-width: 720px) {
  .detail-trio { grid-template-columns: repeat(3, minmax(72%, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
  .detail-trio figure { scroll-snap-align: start; }
}

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.pillar svg { width: 40px; height: 40px; color: var(--turf); margin-bottom: 1.25rem; }
.pillar h3 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.pillar p { color: var(--ink-soft); margin: 0; max-width: 34ch; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* Packaging band */
.band { position: relative; display: grid; }
.band > * { grid-area: 1 / 1; }
.band .media { min-height: clamp(420px, 55vw, 680px); }
.band__card { align-self: center; justify-self: end; margin: var(--gutter); max-width: 26rem; padding: clamp(1.5rem, 3vw, 2.75rem); background: var(--ivory); z-index: 1; }
.band__card p { color: var(--ink-soft); }
@media (max-width: 720px) {
  .band { display: block; }
  .band .media { min-height: 0; aspect-ratio: 3 / 2; }
  .band__card { margin: -3rem var(--gutter) 0; position: relative; max-width: none; }
}

/* Newsletter */
.newsletter { text-align: center; }
.newsletter h2 { font-size: var(--step-3); }
.newsletter p { max-width: 44ch; margin-inline: auto; color: var(--ink-soft); }
.inline-form { display: flex; gap: 0.5rem; max-width: 30rem; margin: 2rem auto 0; }
.inline-form .field { flex: 1; text-align: left; }
.form-note { min-height: 1.65em; margin-top: 0.75rem; font-size: var(--step--1); }
@media (max-width: 480px) { .inline-form { flex-direction: column; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.4rem; }
.field label, .field .label { font: 500 var(--step--1)/1.3 var(--font-body); letter-spacing: 0.04em; }
.input, .select {
  width: 100%; min-height: 52px; padding: 0.75rem 1rem; border: 1px solid var(--sand); border-radius: var(--radius);
  background: var(--white); font-size: 1rem; line-height: 1.4; transition: border-color .2s var(--ease);
}
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232B3326' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-error { font-size: var(--step--1); line-height: 1.4; color: var(--error); min-height: 1.4em; /* L2: reserved, no shift */ }
.field-hint { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Product detail page ---------- */
.breadcrumb { padding-block: 1.25rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin: 0; padding: 0; font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.6rem; color: var(--sand); }
.breadcrumb a { text-decoration: none; display: inline-block; padding-block: 0.6rem; }
@media (hover: hover) { .breadcrumb a:hover { text-decoration: underline; } }

.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; padding-bottom: var(--section); }
.gallery { position: relative; }
.gallery__track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.gallery__track li:first-child { grid-column: 1 / -1; }
.gallery__track li:first-child .media { aspect-ratio: 4 / 5; }
.gallery__track .media { aspect-ratio: 4 / 5; }
.gallery__counter { display: none; }
.pdp__info { max-width: 34rem; }
@media (min-width: 961px) and (min-height: 720px) {
  /* R3: --sticky-top is set by JS so a panel taller than the viewport sticks by its bottom edge */
  .pdp__info { position: sticky; top: var(--sticky-top, calc(var(--header-h) + 1.5rem)); }
}
.pdp__title { font-size: var(--step-4); margin-bottom: 0.75rem; }
.pdp__price { font: 400 var(--step-2)/1.2 var(--font-display); margin: 0 0 1.5rem; }
.pdp__summary { color: var(--ink-soft); margin-bottom: 2rem; }
.option-group { border: 0; margin: 0 0 1.75rem; padding: 0; min-width: 0; }
.option-group legend { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0; margin-bottom: 0.75rem; font: 500 var(--step--1)/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.option-group legend .selected-value { font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: var(--ink-soft); }
.option-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.option-head a { font-size: var(--step--1); color: var(--ink-soft); min-height: 44px; display: inline-flex; align-items: center; }
.options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option span {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-width: 64px; min-height: 48px; padding: 0 1.1rem;
  border: 1px solid var(--sand); border-radius: var(--radius); background: var(--white); font-size: var(--step--1); letter-spacing: 0.04em; white-space: nowrap;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.option input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) { .option input:not(:checked):hover + span { border-color: var(--ink-soft); } }
.option .swatch { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.option-note { margin: 0.75rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.option-group.has-error .option span { border-color: var(--error); }
.option-error { display: block; min-height: 1.4em; margin-top: 0.5rem; font-size: var(--step--1); color: var(--error); }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.buy-row .qty { height: 52px; }
.buy-row .qty button { height: 50px; }
.assurances { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: 0.6rem; font-size: var(--step--1); color: var(--ink-soft); }
.assurances li { display: flex; gap: 0.75rem; align-items: center; }
.assurances svg { width: 20px; height: 20px; flex: none; color: var(--turf); }

/* Accordions */
.accordion { border-top: 1px solid var(--oat); }
.accordion details { border-bottom: 1px solid var(--oat); }
.accordion summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; cursor: pointer;
  font: 500 var(--step--1)/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; user-select: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::marker { content: ""; }
.accordion summary::after { content: ""; width: 12px; height: 12px; flex: none; background: linear-gradient(currentColor, currentColor) center / 12px 1.25px no-repeat, linear-gradient(currentColor, currentColor) center / 1.25px 12px no-repeat; transition: transform .25s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .accordion__body { padding: 0 0 1.5rem; color: var(--ink-soft); font-size: 1rem; }
.accordion ul { padding-left: 1.1rem; margin: 0 0 1rem; }
.accordion li + li { margin-top: 0.35rem; }

@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; gap: 2rem; }
  .gallery { margin-inline: calc(var(--gutter) * -1); }
  .gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.5rem; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .gallery__track::-webkit-scrollbar { display: none; }
  .gallery__track li { flex: 0 0 min(86%, 520px); scroll-snap-align: start; }
  .gallery__counter { display: block; position: absolute; right: calc(var(--gutter) + 0.75rem); bottom: 0.75rem; padding: 0.3rem 0.65rem; background: rgb(248 244 236 / .9); font-size: var(--step--2); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; pointer-events: none; }
  .pdp__info { max-width: none; }
}

/* ---------- Category page ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3.5rem); text-align: center; }
.page-hero h1 { font-size: var(--step-5); margin-bottom: 1rem; }
.page-hero p { max-width: 46ch; margin-inline: auto; color: var(--ink-soft); }
.page-hero .scallop { margin-inline: auto; }

/* ---------- Story page ---------- */
.story-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: end; }
.story-intro .media { aspect-ratio: 4 / 5; }
@media (max-width: 820px) { .story-intro { grid-template-columns: 1fr; } }
.quote { margin: 0; text-align: center; }
.quote p { font: italic 400 var(--step-3)/1.3 var(--font-display); max-width: 26ch; margin: 0 auto 1.25rem; text-wrap: balance; }
.quote cite { font: 500 var(--step--2)/1.4 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; font-style: normal; color: var(--ink-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--sand); padding-top: 1.25rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 400 var(--step-3)/1 var(--font-display); color: var(--turf); margin-bottom: 1rem; font-variant-numeric: lining-nums tabular-nums; }
.steps h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.steps p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Prose (legal, help) ---------- */
.prose { max-width: var(--measure); }
.prose h1 { font-size: var(--step-4); }
.prose h2 { font-size: var(--step-3); margin-top: 2.5em; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose h3 { font-size: var(--step-1); margin-top: 1.75em; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.01em; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--sunday-green); }
.prose dl { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.5rem 1.5rem; }
.prose dt { font-weight: 500; }
.prose dd { margin: 0; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-bottom: var(--section); }
.legal-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); font-size: var(--step--1); }
.legal-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--oat); }
.legal-nav a { display: flex; align-items: center; min-height: 40px; padding-left: 1rem; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--ink-soft); }
.legal-nav a[aria-current="page"] { border-left-color: var(--ink); color: var(--ink); }
@media (hover: hover) { .legal-nav a:hover { color: var(--ink); } }
.draft-banner { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.25rem; margin-bottom: 2rem; background: #FCEFC7; border: 1px dashed #C99A2E; color: #4D3600; font-size: var(--step--1); }
.draft-banner strong { white-space: nowrap; }
@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
  .legal-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; border: 0; }
  .legal-nav a { padding-left: 0; border: 0; text-decoration: underline; text-underline-offset: .22em; }
  .legal-nav a[aria-current="page"] { text-decoration-thickness: 2px; }
}

/* Tables (size guide) */
.table-wrap { position: relative; overflow-x: auto; margin: 1.5rem 0 0.75rem; border: 1px solid var(--oat); background: var(--white); }
.table-wrap:focus-visible { outline-offset: 2px; }
.data-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 1rem; font-variant-numeric: tabular-nums lining-nums; }
.data-table th, .data-table td { padding: 0.85rem 1rem; text-align: right; border-bottom: 1px solid var(--oat); white-space: nowrap; }
.data-table thead th { position: sticky; top: 0; background: var(--linen); font: 500 var(--step--2)/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; }
.data-table th:first-child, .data-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--white); box-shadow: 1px 0 0 var(--oat); }
.data-table thead th:first-child { background: var(--linen); z-index: 1; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.table-cue { display: none; font-size: var(--step--2); color: var(--ink-soft); letter-spacing: 0.06em; }
@media (max-width: 600px) { .table-cue { display: block; } }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; padding-bottom: var(--section); }
.checkout fieldset { border: 0; padding: 0; margin: 0 0 2.5rem; min-width: 0; }
.checkout legend { font: 500 var(--step-2)/1.2 var(--font-display); padding: 0; margin-bottom: 1.25rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.ship-options { display: grid; gap: 0.5rem; }
.ship-option { display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center; padding: 1rem 1.1rem; min-height: 60px; border: 1px solid var(--sand); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.ship-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ship-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--sunday-green); }
.ship-option small { display: block; color: var(--ink-soft); }
.pay-placeholder { padding: 1.5rem; background: var(--linen); border: 1px dashed var(--sand); color: var(--ink-soft); font-size: 1rem; }
.summary-card { background: var(--linen); padding: clamp(1.25rem, 3vw, 2.25rem); }
@media (min-width: 961px) and (min-height: 720px) { .summary-card { position: sticky; top: var(--sticky-top, calc(var(--header-h) + 1.5rem)); } }
.summary-card h2 { font-size: var(--step-2); }
.summary-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.summary-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; }
.summary-item img { width: 64px; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 30%; }
.summary-item p { margin: 0; line-height: 1.35; }
.demo-banner { padding: 0.9rem 1.1rem; margin-bottom: 2rem; border: 1px solid var(--sand); background: var(--white); font-size: var(--step--1); }
.confirmation { text-align: center; padding-block: var(--section); }
.confirmation .ref { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .checkout .summary-card { order: -1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--sunday-green); color: var(--ivory); padding-block: clamp(3.5rem, 6vw, 6rem) 2rem; }
.site-footer a { color: inherit; text-decoration: none; }
@media (hover: hover) { .site-footer a:hover { text-decoration: underline; } }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand .wordmark { align-items: flex-start; color: var(--ivory); padding: 0; }
.footer-brand .wordmark__the { color: rgb(248 244 236 / .75); margin-right: 0; }
.footer-brand .wordmark__name { margin-right: 0; }
.footer-brand p { margin-top: 1.25rem; max-width: 30ch; color: rgb(248 244 236 / .82); font-size: 1rem; }
.footer-brand .scallop { color: rgb(248 244 236 / .5); margin-top: 1.5rem; }
.footer-col h2 { font: 500 var(--step--2)/1.4 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; margin-bottom: 1rem; color: rgb(248 244 236 / .75); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; font-size: 1rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-top: 1.5rem; border-top: 1px solid rgb(248 244 236 / .22); font-size: var(--step--1); color: rgb(248 244 236 / .78); }
.footer-base p { margin: 0; }
.site-footer .tbc { color: #6A4A00; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: calc(var(--section) * 1.2); }
.not-found p { color: var(--ink-soft); }

/* Live region toast */
.toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--ivory); padding: 0.85rem 1.25rem; font-size: var(--step--1); max-width: calc(100vw - 2rem); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.toast.is-visible { opacity: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  :root { --section: 1.5rem; }
  .announce, .site-header, .site-footer, .drawer, .skip-link, .newsletter, .toast, .buy-row, .btn, .legal-nav, .gallery__counter { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .legal-layout, .pdp, .checkout { display: block; }
  .accordion details > .accordion__body { display: block; }
  .table-wrap { overflow: visible; border: 0; }
  .data-table { min-width: 0; }
  .data-table th, .data-table td { position: static !important; }
  h2, h3 { break-after: avoid; }
  tr, figure, .media { break-inside: avoid; }
  [data-review="on"] .tbc, [data-review="on"] mark.review { background: none; border: 1px dashed #999; }
}

/* ---------- Additions ---------- */
.list-reset { list-style: none; margin: 0; padding: 0; }
.wordmark__name > span { white-space: nowrap; }
@media (max-width: 400px) {
  .wordmark__name { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-size: 1rem; letter-spacing: 0.18em; margin-right: -0.18em; }
  .header-inner { gap: 0.5rem; }
}
/* QA fixes */
.legal-layout > *, .pdp > *, .checkout > *, .split > *, .hero__grid > * { min-width: 0; }
.wordmark { min-height: 44px; justify-content: center; }
.breadcrumb a { padding-block: 0.8rem; }
.legal-nav a { min-height: 44px; }
.qty input { height: 100%; }
.breadcrumb ol { align-items: center; }
.breadcrumb li { display: flex; align-items: center; min-height: 44px; }
@media (max-width: 600px) { .breadcrumb li[aria-current="page"] { display: none; } }

/* ---------- Audit fixes ---------- */
/* R2: on desktop, frame each gallery image to its source shape (less crop + upscaling) */
@media (min-width: 961px) {
  .gallery__track li.g-wide, .gallery__track li.g-pan { grid-column: 1 / -1; }
  .gallery__track li.g-land .media { aspect-ratio: 4 / 3; }
  .gallery__track li.g-pan .media { aspect-ratio: 21 / 9; }
  .gallery__track li.g-square .media { aspect-ratio: 1; }
}
/* R5: scrollable strips are keyboard-focusable (tabindex set by JS only when they scroll) */
.gallery__track:focus-visible, .detail-trio:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

/* B6: utilities replacing inline styles in page templates */
.pt-0 { padding-top: 0 !important; }
.pb-section { padding-bottom: var(--section) !important; }
.pb-tight { padding-bottom: 1.5rem !important; }
.section--intro { padding-top: clamp(2.5rem, 6vw, 5.5rem) !important; }
.page-hero--left { text-align: left !important; }
.h-step-3 { font-size: var(--step-3) !important; }
.h-step-4 { font-size: var(--step-4) !important; }
.mt-0 { margin-top: 0 !important; }
.mt-xl { margin-top: var(--space-xl) !important; }
.m-0 { margin: 0 !important; }
.center-self { justify-self: center !important; }
.text-center { text-align: center !important; }
.mx-auto { margin-inline: auto !important; }
.prose--full { max-width: none !important; }
.prose--story { max-width: calc(680px + 2 * var(--gutter)) !important; }
.gallery__figure { margin: 0 !important; }
.check-row { display: flex; gap: 0.6rem; align-items: center; min-height: 44px !important; }
.check-row input { width: 18px; height: 18px; accent-color: var(--sunday-green) !important; }
.ship-note { margin-top: 0.75rem !important; }
.legal-small { margin-top: 1rem !important; }
.data-table--narrow { min-width: 440px !important; }
.data-table .text-left { text-align: left !important; }
.price--flush { margin: 0 !important; }
.swatch--nightdress { background: linear-gradient(135deg, #FFFDF9 50%, #5C7C65 50%); }
.swatch--pyjama { background: linear-gradient(135deg, #E3D8C5 50%, #3F4C34 50%); }

/* ---------- Coming-soon landing ---------- */
.pill-soon { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; padding: 0.45rem 0.9rem; border: 1px solid var(--turf); border-radius: 999px; color: var(--sunday-green); font: 500 var(--step--2)/1.2 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; white-space: nowrap; }
.pill-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--turf); }
.pill-soon--small { margin: 0.5rem 0 0; padding: 0.3rem 0.7rem; }
.tease-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); max-width: 1080px; margin-inline: auto; }
.tease { display: grid; grid-template-rows: auto 1fr; background: var(--ivory); }
.tease__body { padding: clamp(1.25rem, 2.5vw, 2rem); display: flex; flex-direction: column; align-items: flex-start; }
.tease__body .eyebrow { margin-bottom: 0.5rem; }
.tease__body h3 { font-size: var(--step-3); margin-bottom: 0.75rem; }
.tease__body p { color: var(--ink-soft); }
.tease__meta { font-size: var(--step--1); margin-bottom: 0.25rem; }
.tease-note { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.announce a { color: inherit; text-underline-offset: 0.25em; }
@media (max-width: 640px) { .tease-grid { grid-template-columns: 1fr; } }

.footer-grid--soon { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); }

/* ---------- Coming-soon rhythm: one spacing scale for every band ---------- */
.hero--soon, .section--soon { --section: clamp(3rem, 1.75rem + 4vw, 6rem); }
.newsletter.section--soon { --section: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section--soon .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.newsletter.section--soon .inline-form { margin-top: 1.5rem; }
.newsletter.section--soon .small { margin-top: 1rem; }
.section--soon .tease-grid { max-width: 960px; gap: clamp(1rem, 3vw, 2.5rem); }
.section--soon .tease .media { aspect-ratio: 5 / 4; }
.section--soon .tease { background: var(--linen); }
.section--soon .tease__body { padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.75rem); }
.section--soon .tease__body h3 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.section--soon .tease__body p { margin-bottom: 0.5rem; }
.section--soon .tease-note { margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.hero--soon .hero__copy .lede { margin-bottom: 2rem; }
/* Mobile: copy first, then the images */
@media (max-width: 699px) {
  .hero--soon .hero__images { order: 0; margin-top: 2rem; }
  .hero--soon .hero__images .media:last-child { margin-bottom: 2.5rem; }
}

/* "A first look" picture grid: one large tile + four squares */
.look-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.5rem, 1.2vw, 1rem); }
.look-grid .media { aspect-ratio: 1; height: 100%; }
.look-grid__lg { grid-column: span 2; grid-row: span 2; }
@media (max-width: 699px) { .look-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-arrow svg { width: 18px; height: 18px; flex: none; }

/* Instagram link in the footer */
.social-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; margin-top: 1rem; color: var(--ivory); text-decoration: none; font-size: 1rem; }
.social-link svg { width: 22px; height: 22px; flex: none; }

/* Gentle zoom on images under the pointer */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  main .media img { transition: transform 1.2s var(--ease); }
  main .media:hover img { transform: scale(1.04); }
}
.footer-col li { font-size: 1rem; }
.footer-col li > mark { display: inline-block; padding-block: 0.5rem; }
/* Draft banners are review-only: never shown on a --live build */
html:not([data-review="on"]) .draft-banner { display: none; }
.newsletter.section--soon .form-note { min-height: 0; margin: 0.75rem auto 0; }
.newsletter.section--soon .small { margin: 0.5rem auto 0; }
.section--soon .container > :last-child { margin-bottom: 0; }
.section--soon .section-head--center { gap: 0.75rem; }
.section--soon .section-head--center .eyebrow { margin: 0; }
dd a { overflow-wrap: anywhere; }

/* Sign-up confirmation: replaces the form once submitted */
.form-note--done { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; margin: 1.5rem auto 0 !important; padding: 1.25rem 1.5rem; max-width: 30rem !important; background: var(--ivory); border: 1px solid var(--line, rgb(43 51 38 / .15)); }
.form-note--done strong { font: 500 var(--step-1)/1.3 var(--font-display); color: var(--ink); }
.form-note--done span { font-size: var(--step--1); color: var(--ink-soft); }
.hero--soon + .section:not(.section--linen) { padding-top: 0; }

/* Footer links: one clear line per page, even rhythm */
.footer-col li + li { margin-top: 0.25rem; }
.footer-col a { display: inline-block; min-height: 0; padding-block: 0.45rem; line-height: 1.35; }
.footer-col li > mark { display: inline-block; padding: 0.45rem 0.25rem; line-height: 1.35; }
@media (max-width: 560px) { .footer-grid--soon { grid-template-columns: 1fr; gap: 2rem; } .footer-col a { padding-block: 0.6rem; } }
.site-footer mark.review { color: #3A2E00; }

/* ---------- Coming-soon: icons, hairlines and illustration (brand guide 08) ---------- */
/* Hero: fine offset frame on the main photo, like a mount */
.hero--soon .hero__images .media:first-child { outline: 1px solid rgb(102 109 76 / .45); outline-offset: 10px; }
@media (max-width: 699px) { .hero--soon .hero__images .media:first-child { outline-offset: 6px; } }
/* Eyebrows: a short hairline before the label (both sides when centred) */
.section--soon .eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; }
.section--soon .eyebrow::before, .section--soon .section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .45; }
.section--soon .tease__body .eyebrow::before { display: none; }
/* Note between hairlines, with a sprig */
.rule-note { display: flex; align-items: center; gap: 1rem; max-width: 960px; margin-inline: auto; color: var(--ink-soft); font-size: var(--step--1); }
.rule-note::before, .rule-note::after { content: ""; flex: 1; height: 1px; background: var(--oat); }
.rule-note span { display: inline-flex; align-items: center; gap: 0.5rem; }
.rule-note svg { width: 20px; height: 20px; color: var(--turf); }
/* Detail captions: small icon above each title */
.detail-trio figcaption > svg { display: block; width: 24px; height: 24px; margin-bottom: 0.5rem; color: var(--turf); }
.detail-trio figcaption { padding-top: 0.25rem; }
/* Sign-up: icon badge + two faint tree-of-life drawings either side */
.newsletter.section--soon { position: relative; overflow: hidden; }
.newsletter.section--soon .container { position: relative; }
.icon-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; border: 1px solid rgb(102 109 76 / .45); border-radius: 50%; color: var(--turf); }
.icon-badge svg { width: 22px; height: 22px; }
.newsletter__art { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding-inline: clamp(1rem, 5vw, 6rem); color: var(--turf); opacity: .28; pointer-events: none; }
.motif-tree { width: clamp(90px, 11vw, 150px); height: auto; }
.newsletter__art .motif-tree:last-child { transform: scaleX(-1); }
@media (max-width: 899px) { .newsletter__art { display: none; } }
/* Product callout: 100% organic cotton */
.tease__callout { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.25rem 0 0.75rem !important; padding: 0.3rem 0.75rem 0.3rem 0.55rem; border: 1px solid rgb(102 109 76 / .4); border-radius: 999px; color: var(--sunday-green) !important; font: 500 var(--step--2)/1.2 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.tease__callout svg { width: 16px; height: 16px; color: var(--turf); flex: none; }
/* Live fallback before the Kit form exists: "Email us to join the list" button */
.newsletter .signup-email { margin: 1.5rem auto 0; }
/* "More colours are already on the way": larger, in the display serif */
.rule-note.tease-note { font: italic 400 var(--step-2)/1.3 var(--font-display); color: var(--ink); gap: 1.5rem; }
.rule-note.tease-note svg { width: 26px; height: 26px; }
.rule-note.tease-note span { gap: 0.75rem; text-align: center; }
@media (max-width: 560px) { .rule-note.tease-note { font-size: var(--step-1); gap: 1rem; } }
/* Detail captions: title only */
.detail-trio figcaption strong { margin-bottom: 0; }

/* ---------- Darker bands in the A1 logo colours (Sunday Green + ivory) ---------- */
.section--green { background: var(--sunday-green); color: var(--ivory); }
.section--green h2, .section--green h3, .section--green strong { color: var(--ivory); }
.section--green .eyebrow, .section--green p, .section--green figcaption { color: rgb(248 244 236 / .82); }
.section--green .eyebrow::before, .section--green .eyebrow::after { opacity: .6; }
.section--green .media { background: var(--sunday-green-deep); }
.section--green a:not(.btn) { color: var(--ivory); }
.section--green .btn { --btn-bg: var(--ivory); --btn-fg: var(--sunday-green); --btn-bd: var(--ivory); }
@media (hover: hover) { .section--green .btn:hover { --btn-bg: var(--linen); --btn-bd: var(--linen); } }
.section--green .input { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.section--green .input:focus-visible { outline-color: var(--ivory); }
.section--green .icon-badge { border-color: rgb(248 244 236 / .5); color: var(--ivory); }
.section--green .newsletter__art { color: #C9CBAF; opacity: .35; }
.section--green .form-note--done { background: var(--sunday-green-deep); border-color: rgb(248 244 236 / .25); }
.section--green .form-note--done strong { color: var(--ivory); }
.section--green .form-note--done span { color: rgb(248 244 236 / .8); }
.section--green .detail-trio:focus-visible { outline-color: var(--ivory); }
/* The footer sits one shade deeper so it reads apart from a green band above it */
.site-footer { background: var(--sunday-green-deep); }

/* ---------- Product cards: price, then sizes and colours on their own lines ---------- */
.tease__price { margin: 0.25rem 0 0.75rem !important; font: 500 var(--step-2)/1 var(--font-display); color: var(--ink) !important; font-variant-numeric: lining-nums; }
.tease__facts { display: grid; gap: 0.5rem; margin: 0 0 0.75rem; width: 100%; }
.tease__facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; padding-bottom: 0.5rem; border-bottom: 1px solid var(--oat); }
.tease__facts dt { font: 500 var(--step--2)/1.4 var(--font-body); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-soft); }
.tease__facts dd { margin: 0; font-size: var(--step-0); color: var(--ink); }
.tease__more { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.25rem 0 0 !important; font: italic 400 var(--step-1)/1.3 var(--font-display); color: var(--sunday-green) !important; }
.tease__more::before { content: "*"; font-style: normal; color: var(--turf); }
@media (max-width: 400px) { .tease__facts > div { grid-template-columns: 1fr; gap: 0.1rem; } }
.section--green .detail-trio figcaption, .section--green .detail-trio figcaption strong { color: var(--ivory); }
.tease__price { font-size: var(--step-3); }
.tease__facts dd { font-size: var(--step-1); line-height: 1.35; }
.tease__facts dt { font-size: var(--step--1); }
/* Full shop: product cards use the same price / sizes / colours layout as the coming-soon cards */
.product-card__body > div { flex: 1; min-width: 0; }
.product-card .tease__price { margin: 0.5rem 0 0.75rem !important; }
.section--green .scallop { color: #C9CBAF; }
.section--green .small a, .section--green .muted { color: rgb(248 244 236 / .82); }
