/* ==========================================================================
   Chalkhaven — site styles
   Mobile-first. Base rules target a ~360px phone; min-width queries layer on
   tablet and desktop. Breakpoints: 600px (large phone / small tablet),
   768px (tablet / iPad portrait), 1000px-1080px (desktop).
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --chalk: #fafaf7;
  --off-white: #fdfdfb;
  --sand: #f1eee8;
  --ink: #16130e;
  --cellar: #24402f;
  --cellar-dark: #1b3123;
  --brass: #b4925a;
  --brass-light: #d8b57c;
  --oxblood: #5c2323;

  --ink-70: rgba(22, 19, 14, 0.7);
  --ink-60: rgba(22, 19, 14, 0.62);
  --ink-15: rgba(22, 19, 14, 0.14);
  --chalk-80: rgba(250, 250, 247, 0.82);
  --chalk-55: rgba(250, 250, 247, 0.55);
  --chalk-20: rgba(250, 250, 247, 0.2);

  --display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --ui: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --editorial: "Newsreader", Georgia, "Times New Roman", serif;
  --wordmark: "IM Fell English", Georgia, "Times New Roman", serif;
  /* Bodoni Moda is a variable font with an optical-size axis (6-96). Left to
     "auto", browsers pick the large-size cut for big headings, whose hairlines
     all but vanish (Safari especially). Pinning a text-size cut keeps the
     Bodoni contrast but with strokes that stay readable. */
  --display-axes: "opsz" 18;

  /* Gutter grows with the viewport and respects notched iPhones. */
  --gutter: max(20px, env(safe-area-inset-left));
  --maxw: 1280px;
  --radius-pill: 999px;
}

@media (min-width: 600px) { :root { --gutter: max(28px, env(safe-area-inset-left)); } }
@media (min-width: 768px) { :root { --gutter: 40px; } }

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* beat component display rules */

html {
  -webkit-text-size-adjust: 100%;   /* stop iOS inflating text on rotate */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
p { text-wrap: pretty; margin: 0 0 1em; }
h1, h2, h3, h4 { text-wrap: balance; }
::selection { background: var(--cellar); color: var(--chalk); }

a { color: var(--cellar); text-decoration: none; }
a:hover { color: var(--brass); }

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

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

/* Visible only to screen readers. */
.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: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--chalk);
  padding: 12px 20px; font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--chalk); }

/* --- Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 780px; }
.wrap--reading { max-width: 700px; }
.wrap--wide { max-width: 1120px; }

.section { padding-block: 56px; }
.section--tight { padding-block: 36px; }
.section--flush-top { padding-block: 0 56px; }
@media (min-width: 768px) {
  .section { padding-block: 88px; }
  .section--tight { padding-block: 56px; }
  .section--flush-top { padding-block: 0 88px; }
}

.panel--green { background: var(--cellar); color: var(--chalk); }
.panel--ink { background: var(--ink); color: var(--chalk); }
.panel--sand { background: var(--sand); }
.panel--green a:where(:not(.btn)), .panel--ink a:where(:not(.btn)) { color: var(--brass-light); }

.rule { border: 0; border-top: 1px solid var(--ink-15); margin: 0 0 40px; }

/* --- Type ----------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 12px;
}
@media (min-width: 600px) { .eyebrow { font-size: 12px; letter-spacing: 0.24em; } }
.panel--green .eyebrow, .panel--ink .eyebrow, .hero .eyebrow { color: var(--brass-light); }

.display {
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.display--xl { font-size: clamp(40px, 11vw, 124px); line-height: 0.98; }
.display--lg { font-size: clamp(34px, 8vw, 96px); line-height: 0.98; }
.display--md { font-size: clamp(30px, 6vw, 68px); }
.display--sm { font-size: clamp(26px, 5vw, 46px); }
.display em { font-style: italic; font-weight: 500; }

.lede {
  font-family: var(--editorial);
  font-size: clamp(17px, 4.2vw, 22px);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 52ch;
  margin: 0 0 28px;
}
.panel--green .lede, .panel--ink .lede, .hero .lede { color: var(--chalk-80); }

.meta {
  font-family: var(--ui);
  font-size: 12px;
  color: var(--ink-60);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.meta li { list-style: none; }
.meta ul { display: contents; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;               /* comfortable tap target */
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.btn--solid { background: var(--ink); color: var(--chalk); }
.btn--solid:hover { background: var(--cellar); color: var(--chalk); }
.btn--light { background: var(--chalk); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--brass { background: var(--brass-light); color: var(--ink); }
.btn--brass:hover { background: #e6c894; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--chalk); border-color: var(--chalk-55); }
.btn--ghost:hover { background: rgba(250, 250, 247, 0.12); color: var(--chalk); }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink-15); }
.btn--ghost-dark:hover { border-color: var(--ink); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.textlink {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 15px;
  color: var(--cellar);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.panel--green .textlink, .panel--ink .textlink { color: var(--brass-light); }

/* Chips: static labels (filters/tags that aren't wired to anything yet). */
.chip {
  display: inline-block;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-15);
  color: var(--ink);
}
.chip--active { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--chalk);
  border-bottom: 1px solid var(--ink-15);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 12px;
}
@media (min-width: 768px) { .site-header__bar { min-height: 84px; } }

/* The Chalkhaven wordmark: IM Fell English (the Una Copa typeface), roughened
   by the #ch-ink filter defined once in _layouts/default.html. */
.wordmark {
  font-family: var(--wordmark);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  filter: url(#ch-ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2A211B;
  flex: none;
}
.brand:hover { color: #2A211B; }
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__text { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.brand__name { font-size: 24px; }
.brand__tagline { font-style: italic; font-size: 12px; color: rgba(42, 33, 27, 0.72); }
@media (min-width: 768px) {
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 28px; }
  .brand__tagline { font-size: 13.5px; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars { display: block; width: 22px; height: 14px; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 6.25px; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6.25px) rotate(-45deg); }

/* Mobile: nav collapses into a panel below the bar. */
.site-nav {
  display: none;
  border-top: 1px solid var(--ink-15);
  padding-block: 8px 20px;
}
.site-nav[data-open="true"] { display: block; }
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--ui);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-15);
}
.site-nav__link[aria-current="page"] { color: var(--brass); }
.site-nav__cta { margin-top: 18px; display: flex; }
.site-nav__cta .btn { width: 100%; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 0;
    padding: 0;
  }
  .site-nav__list { flex-direction: row; align-items: center; gap: 30px; }
  .site-nav__link {
    min-height: 44px;
    font-size: 14px;
    border-bottom: 0;
    letter-spacing: 0.02em;
  }
  .site-nav__cta { margin: 0 0 0 6px; }
  .site-nav__cta .btn { width: auto; min-height: 42px; padding: 10px 22px; font-size: 13px; }
  .site-header__group { display: flex; align-items: center; gap: 8px; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; }
.hero__media {
  position: relative;
  min-height: 520px;
  height: 72svh;
  max-height: 760px;
  overflow: hidden;
}
@media (min-width: 768px) { .hero__media { min-height: 600px; height: 78svh; } }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute;
  inset: 0;
  /* Even shade top to bottom (the text sits in the middle), a little deeper on
     the left where the text is. */
  background:
    linear-gradient(90deg, rgba(20,17,12,0.45) 0%, rgba(20,17,12,0.1) 70%),
    linear-gradient(180deg, rgba(20,17,12,0.35) 0%, rgba(20,17,12,0.3) 50%, rgba(20,17,12,0.55) 100%);
}
.hero__body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;           /* vertically centred over the photo */
  padding-block: 32px;
  color: var(--chalk);
}
.hero .display { color: var(--off-white); max-width: 15ch; }
.hero .lede { max-width: 46ch; }
/* On wide screens let the lede run out towards the end of the headline, so
   the text reads as one block rather than a ragged left-hand column. */
@media (min-width: 1000px) { .hero .lede { max-width: 62ch; } }

/* --- Cards / grids -------------------------------------------------------- */
.cards {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;      /* phone: single column */
  padding: 0;
  margin: 0;
  list-style: none;
}
@media (min-width: 600px) {
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .cards { gap: 30px; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

.card { display: flex; flex-direction: column; }
.card__media { position: relative; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--wide { aspect-ratio: 16 / 10; }
.card__media--4x3 { aspect-ratio: 4 / 3; }
.card__media--5x4 { aspect-ratio: 5 / 4; }
.card__media--square { aspect-ratio: 1 / 1; }
.card__body { padding-top: 18px; }
.card__body--ruled { border-top: 1px solid var(--ink-15); margin-top: 18px; }
.card__title {
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-weight: 500;
  font-size: clamp(20px, 4.4vw, 26px);
  line-height: 1.1;
  margin: 0 0 8px;
}
.card__title--lg { font-size: clamp(24px, 5vw, 30px); }
.card__note {
  font-family: var(--editorial);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-60);
  margin: 0;
}
.card a.card__link { color: inherit; display: block; }
.card a.card__link:hover { color: inherit; }
.card a.card__link:hover .card__title { color: var(--brass); }
.card a.card__link img { transition: transform 0.4s ease; }
.card a.card__link:hover img { transform: scale(1.03); }

/* Cards that are deliberately not links yet (no destination exists). */
.card--static { cursor: default; }


/* Section heading + trailing link */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.section-head p { margin: 0; }
@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
  }
  .section-head__aside { max-width: 34ch; text-align: right; }
}

/* Editorial feature grid (home discovery block) */
.feature-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(12, 1fr); gap: 28px; }
  .feature-grid > .span-7 { grid-column: span 7; }
  .feature-grid > .span-5 { grid-column: span 5; }
  .feature-grid > .span-4 { grid-column: span 4; }
}

.quote-card {
  background: var(--cellar);
  color: var(--chalk);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.quote-card p {
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(21px, 4.6vw, 26px);
  line-height: 1.3;
  margin: 0;
}
.quote-card cite {
  font-family: var(--ui);
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  color: var(--brass-light);
}

/* --- Small caps label (region, producer) ---------------------------------- */
.bottle__producer {
  display: block;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 6px;
}
.panel--green .bottle__producer { color: var(--chalk-55); }

/* --- Split sections ------------------------------------------------------- */
.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .split--reverse > :first-child { order: 2; }
}
.split__media { aspect-ratio: 4 / 5; overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .split__media { aspect-ratio: 4 / 3; } }

/* Article body + sidebar */
.with-aside { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .with-aside { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
  .with-aside__side { position: sticky; top: 108px; }
}

.spec-list { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--ink); padding-top: 20px; margin: 0; }
.spec-list div { display: block; }
.spec-list dt {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}
.spec-list dd {
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-weight: 500;
  font-size: 19px;
  margin: 4px 0 0;
}
@media (max-width: 899px) {
  .spec-list { flex-direction: row; flex-wrap: wrap; gap: 20px 32px; }
}

/* --- Prose ---------------------------------------------------------------- */
.prose { font-family: var(--editorial); font-size: clamp(17px, 4.2vw, 20px); line-height: 1.65; }
.prose p { margin: 0 0 22px; }
.prose h2 {
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-weight: 500;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.1;
  margin: 40px 0 16px;
}
.prose blockquote {
  border-left: 2px solid var(--brass);
  margin: 32px 0;
  padding: 4px 0 4px 22px;
}
.prose blockquote p {
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(21px, 5vw, 30px);
  line-height: 1.3;
  margin: 0;
}
.prose blockquote cite {
  font-family: var(--ui);
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-60);
  display: block;
  margin-top: 14px;
}
.prose .dropcap::first-letter {
  float: left;
  font-family: var(--display);
  font-variation-settings: var(--display-axes);
  font-weight: 500;
  font-size: 4.6em;
  line-height: 0.72;
  padding: 6px 12px 0 0;
  color: var(--brass);
}
.figure { margin: 0; }
.figure img { width: 100%; height: auto; }
.figure figcaption {
  font-family: var(--ui);
  font-size: 12px;
  color: var(--ink-60);
  margin-top: 10px;
}

.breadcrumb {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: center;
  color: var(--ink-60);
}
.breadcrumb a {
  color: var(--cellar);
  display: inline-flex;
  align-items: center;
  min-height: 28px;              /* WCAG 2.5.8 target size */
}
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--ink-15); }
.breadcrumb li:last-child::after { content: none; }

/* --- Una Copa ------------------------------------------------------------- */
/* The logo is dark ink on transparent, so it only goes on light panels. */
.una-copa-logo { display: block; width: 100%; height: auto; }
.una-copa-logo--xl { max-width: 620px; margin-inline: auto; }
.una-copa-logo--md { max-width: 260px; }

.una-copa-masthead { text-align: center; padding-block: 36px 56px; }
@media (min-width: 768px) { .una-copa-masthead { padding-block: 56px 80px; } }
.una-copa-masthead .breadcrumb { justify-content: center; }
.una-copa-masthead__logo { margin: 24px 0 18px; }
.una-copa-masthead__tagline {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 22px;
}
.una-copa-masthead .lede { margin-inline: auto; }
.una-copa-masthead .btn-row { justify-content: center; }

.una-copa-heading { margin: 0 0 12px; }
.section-head--una-copa .card__note { max-width: 46ch; }

.lead-story { display: grid; gap: 24px; color: inherit; }
.lead-story:hover { color: inherit; }
.lead-story__media { aspect-ratio: 16 / 10; }
.lead-story__media img { transition: transform 0.4s ease; }
.lead-story:hover .lead-story__media img { transform: scale(1.03); }
.lead-story:hover .display { color: var(--brass); }
.lead-story__body .display { margin: 10px 0 14px; }
.lead-story__body .card__note { font-size: 18px; max-width: 48ch; }
.lead-story__body .meta { margin-top: 16px; }
@media (min-width: 900px) {
  .lead-story { grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
}

.pillars { display: grid; gap: 26px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.pillars li { border-top: 1px solid var(--ink); padding-top: 18px; }
.pillars h3 { font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 500; font-size: 24px; margin: 0 0 8px; }
.pillars p { font-family: var(--editorial); font-size: 17px; line-height: 1.55; color: var(--ink-60); margin: 0; }

.split--signup .signup { max-width: 460px; }
@media (min-width: 768px) { .split--signup { grid-template-columns: 1.1fr 1fr; } }

/* --- Producer media ------------------------------------------------------- */
/* Short silent clips (_includes/video.html). All producer clips are vertical. */
.clip { display: block; width: 100%; height: auto; background: var(--ink); }
.card__media--clip { aspect-ratio: 4 / 5; }
.card__media--clip .clip { height: 100%; object-fit: cover; }

/* A row of vertical clips: swipeable on phones, a grid from tablet up. */
.clip-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 8px;
  margin: 0;
  list-style: none;
}
.clip-row li { scroll-snap-align: start; }
@media (min-width: 600px) { .clip-row { grid-auto-columns: 40%; } }
@media (min-width: 900px) {
  .clip-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; gap: 24px; }
}

.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.gallery li { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* Wines on a producer page: described, not sold. */
.panel--green .card__title { color: var(--off-white); }
.panel--green .card__note { color: var(--chalk-80); }
.wine__body--plain { border-top: 1px solid rgba(216, 181, 124, 0.5); }
.wine .card__note { font-size: 15px; }
.aside-link { margin: 24px 0 0; }

/* Figures inside an article */
.prose .figure--inset { margin: 36px 0; }
.prose .figure--clip { max-width: 300px; margin: 36px auto; }
.prose ul { padding-left: 1.2em; margin: 0 0 22px; }
.prose li { margin-bottom: 10px; }

/* Producers index: the two villages */
.villages { display: grid; gap: 40px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 768px) { .villages { grid-template-columns: repeat(2, 1fr); gap: 48px; } }
.villages__media { aspect-ratio: 16 / 10; margin-bottom: 20px; }
.villages h3 { font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 500; font-size: clamp(26px, 5vw, 36px); margin: 0 0 4px; }
.villages__where {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 12px;
}
.villages p:not(.villages__where) { font-family: var(--editorial); font-size: 17px; line-height: 1.55; margin: 0 0 12px; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--chalk); }
.site-footer__grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  padding-block: 56px 32px;
}
@media (min-width: 600px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; } }
@media (min-width: 1080px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 80px 40px; }
  .site-footer__brand { grid-column: span 1; }
}
.site-footer__brand p { font-family: var(--editorial); font-size: 17px; line-height: 1.5; color: var(--chalk-80); max-width: 34ch; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 34px;
  color: #F2ECE2;
  margin-bottom: 14px;
}
.footer-brand:hover { color: #F2ECE2; }
.footer-brand__mark { width: 42px; height: 42px; flex: none; }

.site-footer__heading,
.footer-col h2 {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0 0 14px;
}
.site-footer__heading { margin-top: 10px; margin-bottom: 8px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.footer-col li { font-family: var(--ui); font-size: 15px; }
.footer-col a { display: flex; align-items: center; min-height: 40px; color: var(--chalk); }
.footer-col a:hover { color: var(--brass-light); }
/* Items with no destination yet render as plain text, not fake links. */
.footer-col span { display: flex; align-items: center; min-height: 40px; color: var(--chalk-80); }

.signup { display: flex; flex-wrap: wrap; gap: 8px; max-width: 380px; }
.signup input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 48px;
  background: transparent;
  border: 1px solid var(--chalk-20);
  border-radius: var(--radius-pill);
  color: var(--chalk);
  font-family: var(--ui);
  font-size: 16px;               /* 16px stops iOS zooming on focus */
  padding: 12px 18px;
}
.signup input::placeholder { color: var(--chalk-55); }
.signup input:focus { border-color: var(--brass-light); outline: none; }
.signup .btn { flex: 0 0 auto; }
.signup__consent {
  flex-basis: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.45;
  color: var(--chalk-80);
}
.signup__consent input {
  flex: none;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--brass-light);
}

.site-footer__legal {
  border-top: 1px solid rgba(250, 250, 247, 0.16);
  padding-block: 22px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--chalk-55);
}
.site-footer__legal p { margin: 0; }

/* --- Misc ----------------------------------------------------------------- */
.grape-list { display: grid; gap: 26px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 600px) { .grape-list { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.grape-list li { border-top: 1px solid rgba(216, 181, 124, 0.5); padding-top: 18px; }
.grape-list h3 { font-family: var(--display); font-variation-settings: var(--display-axes); font-weight: 500; font-size: 26px; margin: 0 0 8px; }
.grape-list p { font-family: var(--editorial); font-size: 16px; line-height: 1.55; color: var(--chalk-80); margin: 0; }

.error-page { text-align: center; padding-block: 100px 120px; }
.error-page .btn-row { justify-content: center; }

/* --- Contact form --------------------------------------------------------- */
.contact-form { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .contact-form .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.field label .optional { font-weight: 400; color: var(--ink-60); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  background: var(--off-white);
  border: 1px solid var(--ink-15);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;               /* 16px stops iOS zooming on focus */
  padding: 12px 14px;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--cellar); outline: 2px solid rgba(36, 64, 47, 0.2); outline-offset: 0; }
/* Spam trap: hidden from people, filled in by bots. */
.field--trap { position: absolute; left: -9999px; }
.contact-form .btn-row { grid-column: 1 / -1; margin-top: 4px; }
.form-status {
  margin: 0;
  font-family: var(--ui);
  font-size: 15px;
  color: var(--oxblood);
}
.signup .form-status { flex-basis: 100%; color: var(--brass-light); }
