/* ==========================================================================
   Domaine des Fontenottes
   Design system. Editorial / print-catalogue language.
   Dials: DESIGN_VARIANCE 6 . MOTION_INTENSITY 4 . VISUAL_DENSITY 2
   Radius system: all-sharp (0) everywhere. Locked.
   Accent: deep bordeaux, used only for interactive state. Locked.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Fonts */

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/ebgaramond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/ebgaramond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ebgaramond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ebgaramond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------------------------------------- 2. Tokens */

:root {
  /* Ground is cool limestone, not warm cream: the Chablis Kimmeridgian is a
     grey-white stone and the palette follows it. Keeps the site out of the
     beige/brass territory every artisan brand already occupies. */
  --paper: #f3f2ee;
  --paper-sunk: #e9e8e2;
  --ink: #17191b;
  --ink-2: #4c5053;
  /* ink-3 carries eyebrows, meta and spec terms, all at 11-13px. It has to
     clear WCAG AA (4.5:1) against the sunk band, not just against paper. */
  --ink-3: #636769;
  --line: #d5d4ce;
  --line-strong: #b9b8b1;
  --accent: #6d2437;
  --accent-hi: #8a2f46;
  --dark: #121415;
  --dark-2: #1d2022;
  --on-dark: #eeece6;
  --on-dark-2: #a5a8a6;

  --font-display: 'EB Garamond', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --fs-display: clamp(2.75rem, 6.2vw, 5.25rem);
  --fs-h1: clamp(2.15rem, 4.4vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.9vw, 1.55rem);
  --fs-lede: clamp(1.1rem, 1.5vw, 1.35rem);
  --fs-body: 1.0125rem;
  --fs-meta: 0.8125rem;
  --fs-label: 0.6875rem;

  --maxw: 1340px;
  --maxw-text: 60ch;
  --pad-x: clamp(1.25rem, 5vw, 4.5rem);
  --section: clamp(4.5rem, 11vw, 9.5rem);
  --gap: clamp(1.5rem, 3.5vw, 3rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;

  /* The menu sits BELOW the header: the burger doubles as the close control
     and has to stay visible and clickable while the overlay is open. */
  --z-menu: 90;
  --z-header: 100;
  --z-modal: 300;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131516;
    --paper-sunk: #1a1d1e;
    --ink: #eceae4;
    --ink-2: #a9aba9;
    --ink-3: #8b8e8d;
    --line: #2b2e30;
    --line-strong: #3d4143;
    --accent: #d08698;
    --accent-hi: #e5a3b3;
    --dark: #0c0e0f;
    --dark-2: #16191a;
  }
}

/* --------------------------------------------------------------- 3. Reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--paper-sunk); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
  /* Italic descenders in display type need clearance. */
  line-height: 1.14;
  padding-bottom: 0.06em;
}

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: #fff; }

.visually-hidden {
  position: absolute; 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: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.5rem;
  font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ------------------------------------------------------------- 4. Layout */

.shell {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.shell--wide { max-width: 1600px; }

.section { padding-block: var(--section); }
.section--sunk { background: var(--paper-sunk); }
.section--tight { padding-block: calc(var(--section) * 0.55); }

.rule { border-top: 1px solid var(--line); }

.measure { max-width: var(--maxw-text); }

/* ---------------------------------------------------------- 5. Typography */

.display {
  font-size: var(--fs-display);
  line-height: 1.06;
  letter-spacing: -0.018em;
}
.display em { font-style: italic; }

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.3; }

.lede {
  font-family: var(--font-display);
  font-size: var(--fs-lede);
  line-height: 1.62;
  color: var(--ink-2);
}

.prose {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: var(--maxw-text);
}
.prose strong { font-weight: 500; color: var(--ink); }

.label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.meta {
  font-size: var(--fs-meta);
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.figure-caption {
  margin-top: 0.9rem;
  font-size: var(--fs-meta);
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- 6. Links */

.link {
  display: inline-block;
  position: relative;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.45rem;
  color: var(--ink);
}
.link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  border-bottom: 1px solid currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.link:hover { color: var(--accent); }
.link:hover::after { transform: scaleX(0.35); }

.link-inline {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.3s var(--ease);
  /* Addresses and e-mails are long unbreakable strings and will push a
     narrow viewport sideways if they are not allowed to break. */
  overflow-wrap: anywhere;
}
.link-inline:hover { color: var(--accent-hi); }

/* -------------------------------------------------------------- 7. Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  white-space: nowrap;          /* CTA labels never wrap */
  padding: 1rem 2.1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Over photography: needs its own stroke and a scrim behind it (see .hero). */
.btn--on-image { background: transparent; border-color: rgba(255,255,255,0.62); color: #fff; }
.btn--on-image:hover { background: #fff; border-color: #fff; color: var(--dark); }

.btn--solid-light { background: #fff; border-color: #fff; color: var(--dark); }
.btn--solid-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* -------------------------------------------------------------- 8. Header */

.back-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: calc(var(--z-header) + 1);
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-label, inherit);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.3s var(--ease);
}
.back-bar:hover { opacity: 0.75; }

.header {
  position: fixed;
  top: 34px;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.wordmark span { display: block; font-size: 0.5rem; letter-spacing: 0.32em; color: var(--ink-3); margin-top: 0.32rem; }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.1rem); }
.nav a {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav a:hover { border-bottom-color: currentColor; }
.nav a[aria-current='page'] { border-bottom-color: currentColor; }

.header__actions { display: flex; align-items: center; gap: 1.25rem; }

.cart-link {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  padding-block: 0.35rem;
}
.cart-link:hover { border-bottom-color: currentColor; }
.cart-count::before { content: '('; }
.cart-count::after { content: ')'; }
.cart-count { font-variant-numeric: tabular-nums; }

/* Transparent over the hero, solid once the sentinel scrolls out. */
.header--over { color: #fff; }
.header--over .wordmark span { color: rgba(255,255,255,0.66); }
.header--pinned {
  background: var(--paper);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.header--pinned .wordmark span { color: var(--ink-3); }

.burger {
  display: none;
  width: 30px; height: 30px;
  position: relative;
}
.burger span {
  position: absolute; left: 3px; right: 3px; height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.2s linear;
}
.burger span:nth-child(1) { top: 11px; }
.burger span:nth-child(2) { top: 18px; }
[aria-expanded='true'].burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
[aria-expanded='true'].burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--paper);
  padding: 6rem var(--pad-x) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu[data-open='true'] { opacity: 1; visibility: visible; }

/* Over the open menu the header always sits on paper, so it takes the paper
   palette even on pages where it started transparent over a photograph. */
:root[data-menu-open='true'] .header,
:root[data-menu-open='true'] .header.header--over { color: var(--ink); background: transparent; border-bottom-color: transparent; }
:root[data-menu-open='true'] .header .wordmark span { color: var(--ink-3); }
.menu a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.75rem);
  text-decoration: none;
  display: block;
  padding-block: 0.28em;
  border-bottom: 1px solid var(--line);
}
.menu__foot { font-size: var(--fs-meta); color: var(--ink-3); padding-top: 2rem; }

/* The full nav only appears where all six labels fit on one line with room
   to spare. Below that it is a hamburger, never a wrapped second row. */
@media (max-width: 1099px) {
  .nav { display: none; }
  .burger { display: block; }
}

/* On small screens the full wordmark, the cart link and the burger have to
   share 375px. The wordmark gives up the width. */
@media (max-width: 600px) {
  .header { height: 64px; }
  .wordmark { font-size: 0.78rem; letter-spacing: 0.08em; }
  .wordmark span { font-size: 0.46rem; letter-spacing: 0.24em; margin-top: 0.25rem; }
  .header__actions { gap: 0.9rem; }
  .cart-link { font-size: 0.625rem; letter-spacing: 0.12em; }
  .pagehead-paper { padding-top: calc(64px + clamp(3.5rem, 9vw, 7rem)); }
}

/* ---------------------------------------------------------------- 9. Hero */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Two scrims: one under the header for nav legibility, one under the copy. */
.hero::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 200px;
  background: linear-gradient(to bottom, rgba(10,12,13,0.5), transparent);
  z-index: 1; pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 78%;
  background: linear-gradient(to top, rgba(10,12,13,0.82) 0%, rgba(10,12,13,0.45) 42%, transparent 100%);
  z-index: 1; pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--pad-x) clamp(3.5rem, 9vh, 6.5rem);
}
/* The measure belongs on the heading itself: `ch` resolves against the
   element's own font, and the display face is far wider than the UI face. */
.hero .display { color: #fff; max-width: 15ch; }
.hero__lede {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-family: var(--font-display);
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}
.hero__cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Page headers on inner pages: shorter, same family. */
.pagehead {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.pagehead--short { min-height: 46vh; }
.pagehead__media { position: absolute; inset: 0; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,12,13,0.55) 0%, rgba(10,12,13,0.12) 38%, rgba(10,12,13,0.75) 100%);
  z-index: 1;
}
.pagehead__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--pad-x) clamp(2.75rem, 6vh, 4.5rem);
}
.pagehead .label { color: rgba(255,255,255,0.72); margin-bottom: 1.1rem; }
.pagehead h1 { color: #fff; max-width: 16ch; }
.pagehead__lede {
  margin-top: 1.25rem; max-width: 52ch;
  font-family: var(--font-display);
  font-size: var(--fs-lede); line-height: 1.6;
  color: rgba(255,255,255,0.88);
}

/* Paper page header, for pages with no photograph of their own. */
.pagehead-paper {
  padding-top: calc(72px + clamp(3.5rem, 9vw, 7rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ------------------------------------------------------ 10. Section header */

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head .label { margin-bottom: 1.2rem; }
.sec-head h2 { max-width: 18ch; }
.sec-head p { margin-top: 1.35rem; }

/* ------------------------------------------------- 11. Statement / quote */

.statement {
  max-width: 34ch;
  margin-inline: auto;
  text-align: center;
}
.statement p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.7vw, 2.05rem);
  line-height: 1.42;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.statement .meta { display: block; margin-top: 2.25rem; letter-spacing: 0.16em; text-transform: uppercase; font-size: var(--fs-label); }

.band {
  position: relative;
  min-height: 74vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10,12,13,0.45);
}
.band__inner {
  position: relative; z-index: 2;
  padding: var(--pad-x);
  max-width: 24ch;
}
.band p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  line-height: 1.24;
  color: #fff;
}

/* ------------------------------------------------------------ 12. Splits */

.split {
  display: grid;
  gap: var(--gap) clamp(2rem, 6vw, 6rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 1.25fr 1fr; }
  .split--wide-text { grid-template-columns: 1fr 1.15fr; }
  .split--media-last .split__media { order: 2; }
  /* Offset the media block so the grid never reads as two equal boxes. */
  .split--offset .split__media { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
}
.split__body > * + * { margin-top: 1.5rem; }
.split__body .label + h2 { margin-top: 1.2rem; }

.aspect-4x5 { aspect-ratio: 4 / 5; }
.aspect-3x4 { aspect-ratio: 3 / 4; }
.aspect-1x1 { aspect-ratio: 1 / 1; }
.aspect-16x10 { aspect-ratio: 16 / 10; }
.aspect-3x2 { aspect-ratio: 3 / 2; }
.cover { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------- 13. Cuvée tiles */

.cuvees {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 2.5vw, 2.25rem);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cuvees { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cuvees { grid-template-columns: repeat(3, 1fr); } }

/* Vertical offset gives the grid a print-catalogue rhythm instead of a row. */
@media (min-width: 1024px) {
  .cuvees--offset > :nth-child(2) { transform: translateY(clamp(1.5rem, 3vw, 3rem)); }
}

.cuvee { display: block; text-decoration: none; }
.cuvee__media {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.cuvee__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.5s var(--ease);
}
.cuvee:hover .cuvee__media img { transform: scale(1.035); }
.cuvee__body { padding-top: 1.35rem; }
.cuvee__appellation {
  font-size: var(--fs-label);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cuvee__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  margin-top: 0.55rem;
}
.cuvee:hover .cuvee__name { color: var(--accent); }
.cuvee__foot {
  margin-top: 0.75rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-size: var(--fs-meta);
  color: var(--ink-3);
}
.cuvee__price { font-variant-numeric: tabular-nums; color: var(--ink); }

.sold-out { color: var(--accent); }

/* --------------------------------------------------- 14. Catalogue record */

.record {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4rem);
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .record { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); align-items: start; }
  .record--reverse .record__media { order: 2; }
}
.record__media { background: var(--dark); }
.record__head .label { margin-bottom: 0.9rem; }
.record__head h2 { max-width: 16ch; }
.record__vintage {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--ink-3);
  margin-top: 0.5rem;
}
.record__notes { margin-top: 1.75rem; }

/* Specs are grouped into a two-column definition grid rather than a striped
   table: same information, no hairline-per-row noise. */
.specs {
  margin-top: 2.25rem;
  display: grid;
  gap: 1.4rem clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1200px) { .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.specs > div { border-top: 1px solid var(--line); padding-top: 0.85rem; }
.specs dt {
  font-size: var(--fs-label);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.specs dd {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: break-word;
}

.record__actions {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem;
}
.record__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------- 15. Shop grid */

.shop-grid {
  display: grid;
  gap: clamp(2.25rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2.25rem);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card__media { position: relative; overflow: hidden; background: var(--dark); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.035); }
.product-card__body { padding-top: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product-card__title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; margin-top: 0.5rem; }
.product-card__title a { text-decoration: none; }
.product-card__title a:hover { color: var(--accent); }
.product-card__desc { margin-top: 0.7rem; font-size: var(--fs-meta); color: var(--ink-2); line-height: 1.65; }
.product-card__foot {
  margin-top: auto; padding-top: 1.35rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.product-card__price { font-family: var(--font-display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }

.btn--compact { padding: 0.72rem 1.35rem; letter-spacing: 0.15em; }

/* ------------------------------------------------------ 16. Product page */

.product {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }
  .product__media { position: sticky; top: 104px; }
}
.product__media { background: var(--dark); }
.product__title { margin-top: 1rem; }
.product__price {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
}
.product__price small { font-family: var(--font-ui); font-size: var(--fs-meta); color: var(--ink-3); letter-spacing: 0.04em; }

.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
}
.qty button {
  width: 2.9rem;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink-2);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.qty button:hover { background: var(--ink); color: var(--paper); }
.qty input {
  width: 3.2rem;
  border: 0;
  border-inline: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  text-align: center;
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-variant-numeric: tabular-nums;
  padding-block: 0.85rem;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; }
.buy-row .btn { flex: 1 1 15rem; }

.accordion { margin-top: 2.75rem; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding-block: 1.35rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ''; width: 11px; height: 11px; flex: none;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.35s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.accordion__body { padding-bottom: 1.6rem; }

/* -------------------------------------------------------- 17. Experiences */

.xp {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 860px) {
  .xp { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) auto; align-items: start; }
}
.xp__price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.xp__price small { display: block; font-family: var(--font-ui); font-size: var(--fs-meta); color: var(--ink-3); letter-spacing: 0.03em; margin-top: 0.2rem; }
.xp__facts { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.55rem 1.5rem; }
.xp__facts li { font-size: var(--fs-meta); color: var(--ink-3); }
.xp__facts li::before { content: ''; display: inline-block; width: 14px; border-top: 1px solid var(--line-strong); margin-right: 0.6rem; transform: translateY(-4px); }

/* ------------------------------------------------------------ 18. Journal */

.entries { border-top: 1px solid var(--line); }
.entry {
  display: grid;
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.45s var(--ease);
}
@media (min-width: 780px) {
  .entry { grid-template-columns: 9rem minmax(0, 1fr) auto; align-items: baseline; }
  .entry:hover { padding-left: 0.9rem; }
}
.entry__date { font-size: var(--fs-meta); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.entry__title { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; }
.entry:hover .entry__title { color: var(--accent); }
.entry__more { font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

.article { max-width: 68ch; margin-inline: auto; }
.article h2 { margin-top: 2.75rem; margin-bottom: 1rem; }
.article figure { margin: 2.75rem 0; }

/* -------------------------------------------------------------- 19. Forms */

.form { display: grid; gap: 1.75rem; }
.field { display: grid; gap: 0.5rem; }
.field > label {
  font-size: var(--fs-label);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-2);        /* passes AA on paper and on sunk */
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-weight: 300;
  transition: border-color 0.3s var(--ease);
}
.section--sunk .field input,
.section--sunk .field select,
.section--sunk .field textarea { background: var(--paper); }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); outline: 2px solid transparent; outline-offset: 0; box-shadow: 0 0 0 1px var(--accent); }
.field textarea { resize: vertical; min-height: 8rem; }
.field__help { font-size: var(--fs-meta); color: var(--ink-2); }
.field__error { font-size: var(--fs-meta); color: var(--accent); font-weight: 400; }
.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea { border-color: var(--accent); }

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 3rem;
}

.form-row { display: grid; gap: 1.75rem; }
@media (min-width: 700px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) { .form-row--3 { grid-template-columns: repeat(3, 1fr); } }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; }
.check input { width: 1.05rem; height: 1.05rem; margin-top: 0.35rem; accent-color: var(--accent); }
.check label { font-size: var(--fs-meta); color: var(--ink-2); line-height: 1.6; }

.form__status { font-size: var(--fs-meta); }
.form__status[data-state='ok'] { color: var(--ink); }
.form__status[data-state='error'] { color: var(--accent); }

/* Newsletter: label above the input, never a placeholder-as-label. */
.newsletter { display: grid; gap: 1rem; max-width: 30rem; }
@media (min-width: 560px) {
  .newsletter__row { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; align-items: stretch; }
}

/* ------------------------------------------------------------- 20. Tables */

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.cart-table td { padding-block: 1.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cart-table th:last-child, .cart-table td:last-child { text-align: right; }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 1.25rem; align-items: start; }
.cart-line img { width: 84px; aspect-ratio: 3/4; object-fit: cover; background: var(--dark); }
.cart-line__name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; }
.cart-line__name a { text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }

/* Three columns do not fit a phone. Below 640px the table becomes a stack:
   the header row is dropped and each line reads cuvée, quantité, total. */
@media (max-width: 640px) {
  .cart-table thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td { display: block; width: 100%; }
  .cart-table tr { border-bottom: 1px solid var(--line); padding-block: 1.75rem; }
  .cart-table td { border: 0; padding-block: 0; }
  .cart-table td + td { margin-top: 1.25rem; }
  .cart-table td:last-child {
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.2rem;
  }
}

.remove {
  margin-top: 0.7rem;
  font-size: var(--fs-meta);
  color: var(--ink-3);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.remove:hover { color: var(--accent); }

.totals { display: grid; gap: 0.9rem; }
.totals__row { display: flex; justify-content: space-between; gap: 1.5rem; font-size: var(--fs-meta); color: var(--ink-2); }
.totals__row--grand {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem; margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.summary-box { background: var(--paper-sunk); padding: clamp(1.5rem, 3vw, 2.25rem); }

/* ----------------------------------------------------------- 21. Age gate */

.gate {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--pad-x);
  background: rgba(10, 12, 13, 0.94);
  color: var(--on-dark);
}
.gate[hidden] { display: none; }
.gate__panel {
  max-width: 30rem;
  text-align: center;
}
.gate__panel h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.gate__panel p { margin-top: 1.35rem; color: var(--on-dark-2); font-size: var(--fs-meta); line-height: 1.7; }
.gate__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.gate__legal { margin-top: 2.5rem; font-size: 0.72rem; color: #85888a; letter-spacing: 0.02em; }
.gate__wordmark {
  font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--on-dark-2); margin-bottom: 2.25rem;
}

/* ------------------------------------------------------------- 22. Footer */

.footer { border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem; }
.footer__grid {
  display: grid;
  gap: clamp(2.25rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer h2 { font-family: var(--font-ui); font-size: var(--fs-label); font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.35rem; }
.footer li + li { margin-top: 0.7rem; }
.footer a { text-decoration: none; font-size: var(--fs-meta); }
.footer a:hover { color: var(--accent); }
.footer address { font-style: normal; font-size: var(--fs-meta); color: var(--ink-2); line-height: 1.85; }
.footer__brand { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__bottom {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between;
  font-size: 0.75rem; color: var(--ink-3);
}
.footer__legal { max-width: 62ch; line-height: 1.7; }

/* -------------------------------------------------------- 23. Scroll reveal */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  [data-reveal].is-in { opacity: 1; transform: none; }
  [data-reveal-delay='1'] { transition-delay: 0.08s; }
  [data-reveal-delay='2'] { transition-delay: 0.16s; }
  [data-reveal-delay='3'] { transition-delay: 0.24s; }

  /* The hero photograph settles once on load: it pulls the eye into the
     landscape before the copy is read. Single pass, no loop. */
  .hero__media img { animation: settle 2.6s var(--ease) both; }
  @keyframes settle { from { transform: scale(1.055); } to { transform: scale(1); } }
}

/* --------------------------------------------------------------- 24. Misc */

.stack > * + * { margin-top: 1.5rem; }
.stack-sm > * + * { margin-top: 0.75rem; }
.stack-lg > * + * { margin-top: 2.5rem; }

.two-col-text { columns: 2; column-gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 767px) { .two-col-text { columns: 1; } }

.notice {
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.35rem;
  font-size: var(--fs-meta);
  color: var(--ink-2);
  line-height: 1.7;
}

.empty {
  text-align: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  max-width: 34ch;
  margin-inline: auto;
}
.empty h2 { margin-bottom: 1.1rem; }
.empty p { color: var(--ink-2); font-family: var(--font-display); font-size: 1.1rem; }
.empty .btn { margin-top: 2rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 130%);
  z-index: var(--z-modal);
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 1.6rem;
  font-size: var(--fs-meta);
  letter-spacing: 0.03em;
  transition: transform 0.5s var(--ease);
  max-width: calc(100vw - 2rem);
}
.toast[data-show='true'] { transform: translate(-50%, 0); }

.map-frame { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); filter: grayscale(1) contrast(0.92); }
@media (prefers-color-scheme: dark) { .map-frame { filter: grayscale(1) invert(0.9) contrast(0.85); } }

.social { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.pill-note {
  display: inline-block;
  border: 1px solid var(--line-strong);
  padding: 0.4rem 0.9rem;
  font-size: var(--fs-label);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-2);
}

@media print {
  .header, .menu, .footer__bottom, .gate, .toast { display: none !important; }
  body { background: #fff; color: #000; }
}
