/* Winery STEF — site styles. Tokens from the Winery STEF Design System (2026-11-02). */
:root {
  --burgundy: #6E1E2B;
  --burgundy-deep: #561722;
  --ink: #121212;
  --white: #FFFFFF;
  --cream: #F4EEE4;
  --stone: #57524C;
  --linen: #DDD3C4;
  --rose: #D08A94;
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); }
a:hover { color: var(--burgundy-deep); }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--cream); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; color: #fff; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(32px, 4.4vw, 54px); }
h2 { font-size: clamp(27px, 3.1vw, 40px); }
h3 { font-size: 24px; }
p { margin: 0; }
.stack > * + * { margin-top: 18px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 16px;
}
.lede { font-size: 19px; }
.muted { color: var(--stone); }
.signature { font-style: italic; font-size: 22px; }

/* Buttons: the pill is the only curve in the system */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 1px solid var(--burgundy);
  background: var(--burgundy); color: #fff;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dark .btn { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.dark .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.dark .btn-outline { background: transparent; color: var(--cream); border-color: var(--cream); }
.dark .btn-outline:hover { background: var(--cream); color: var(--ink); }

/* Header */
.site-header { border-bottom: 1px solid var(--linen); background: var(--white); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; padding-top: 14px; padding-bottom: 14px; }
.wordmark { font-family: var(--serif); font-size: 19px; letter-spacing: 0.22em; color: var(--ink); text-decoration: none; white-space: nowrap; }
a.wordmark:hover { color: var(--ink); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { display: block; line-height: 0; }
.brand-mark img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 560px) { .brand-mark img { height: 46px; } .brand { gap: 10px; } }
.tagline { margin: 0; font-family: var(--serif); font-style: italic; font-size: 13px; letter-spacing: 0.01em; color: var(--stone); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-family: var(--sans); font-size: 15px; letter-spacing: 0.04em; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--burgundy); }
.nav a[aria-current="page"] { color: var(--burgundy); box-shadow: inset 0 -1px 0 var(--burgundy); }
.nav a.btn { color: #fff; padding: 8px 20px; box-shadow: none; }

/* Sections */
.section { padding: 96px 0; }
.alt { background: var(--cream); }
.dark { background: var(--ink); color: var(--cream); }
.dark .eyebrow { color: var(--rose); }
.dark a { color: var(--cream); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; }

/* Home hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 96px; }
.hero .lede { max-width: 540px; margin-top: 22px; }
.hero .actions { margin-top: 30px; }
.hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }

/* Story cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .label { font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin: 20px 0 10px; }
.card h3 { margin-bottom: 12px; }
.textlink { font-family: var(--sans); font-weight: 600; letter-spacing: 0.04em; text-decoration: none; color: var(--ink); display: inline-block; margin-top: 14px; padding: 8px 0; }
.textlink:hover { color: var(--burgundy); }

/* Wine cards */
.wine-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.wine-card { background: var(--white); border: 1px solid var(--linen); display: flex; flex-direction: column; }
.wine-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.wine-card .body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.wine-card .label { font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.price { font-family: var(--sans); font-size: 22px; font-weight: 600; }
.award { font-family: var(--sans); font-size: 14px; letter-spacing: 0.03em; color: var(--stone); }

/* Studio bottle shots sit on their own light background */
img.packshot { object-fit: contain; background: #FAF9F7; }

/* Third-party review */
.review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.review img { width: 100%; aspect-ratio: 1146 / 1033; object-fit: cover; }
@media (max-width: 900px) { .review { grid-template-columns: 1fr; gap: 28px; } }

/* Recognition */
.recognition-grid { display: grid; grid-template-columns: 220px minmax(0, 620px); gap: 56px; align-items: center; justify-content: center; }
.recognition-grid img { width: 220px; aspect-ratio: 550 / 1400; object-fit: cover; }
@media (max-width: 700px) { .recognition-grid { grid-template-columns: 1fr; } .recognition-grid img { width: 160px; } }
.recognition ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.recognition li { padding-bottom: 14px; border-bottom: 1px solid var(--linen); }

/* Founder's Journal */
.journal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.journal-intro p { margin-top: 16px; }
.journal-list { list-style: none; padding: 0; margin: 20px 0 0; font-family: var(--sans); }
.journal-list li { padding: 4px 0; }
.journal-form label { display: block; font-family: var(--sans); font-size: 14px; margin-bottom: 8px; }
.journal-row { display: flex; flex-wrap: wrap; gap: 12px; }
.journal-row input {
  flex: 1 1 240px; min-height: 48px; padding: 12px 16px;
  border: 1px solid var(--stone); border-radius: 0;
  font-family: var(--sans); font-size: 16px; background: #fff; color: var(--ink);
}
.journal-note { font-family: var(--sans); font-size: 13px; margin-top: 12px; color: var(--stone); }
.dark .journal-note { color: var(--linen); }
.journal-status { font-family: var(--sans); font-size: 15px; margin-top: 10px; min-height: 1.6em; }

/* Wine page */
.breadcrumb { font-family: var(--sans); font-size: 14px; color: var(--stone); padding-top: 22px; }
.breadcrumb a { color: var(--stone); }
.buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 28px; padding-bottom: 96px; }
.buy img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.buybox { display: flex; flex-direction: column; gap: 18px; }
.buybox .quote-line { font-style: italic; color: var(--stone); }
.fineprint { font-family: var(--sans); font-size: 14px; color: var(--stone); }
.buy-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.buy-note { margin: -6px 0 0; font-family: var(--sans); font-size: 14px; color: var(--stone); }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; }
.story-grid h2 { font-size: 30px; margin-bottom: 14px; }
.story-grid p + p { margin-top: 14px; }
.story-grid ul { margin: 14px 0 0; padding-left: 20px; }
blockquote.quote { margin: 28px 0 0; font-style: italic; font-size: 21px; line-height: 1.5; }
blockquote.quote footer { font-style: normal; font-family: var(--sans); font-size: 14px; letter-spacing: 0.08em; margin-top: 8px; color: var(--stone); }
.tech { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.tech dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.tech dl div { padding: 14px 0; border-bottom: 1px solid var(--linen); }
.tech dt { font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.tech dd { margin: 4px 0 0; }
.next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* Our Story */
.story-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.story-intro .lede + .lede { margin-top: 16px; }
.story-intro img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-top: 56px; }
.timeline a { border-top: 2px solid var(--ink); padding-top: 14px; text-decoration: none; color: var(--ink); }
.timeline .year { display: block; font-size: 24px; }
.timeline .what { font-family: var(--sans); font-size: 14px; color: var(--stone); }
.timeline a.now { border-color: var(--burgundy); }
.timeline a.now .year { color: var(--burgundy); }
.chapters { display: grid; gap: 80px; padding-top: 72px; padding-bottom: 96px; }
.chapter h2 { margin-bottom: 18px; }
.chapter p + p { margin-top: 16px; }
.chapter-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Legal pages */
.legal { padding-top: 64px; padding-bottom: 96px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }

/* Footer */
.site-footer { background: var(--cream); border-top: 1px solid var(--linen); font-family: var(--sans); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-grid .wordmark { display: inline-block; margin-bottom: 10px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 2px; }
.footer-grid nav a { color: var(--ink); padding: 6px 0; }
address { font-style: normal; color: var(--stone); }
address a { color: var(--ink); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 32px; border-top: 1px solid var(--linen); font-size: 13px; color: var(--stone); }
.footer-legal a { color: var(--stone); }
.footer-legal .rights { flex-basis: 100%; }

/* Age gate */
.agegate { position: fixed; inset: 0; background: rgba(18, 18, 18, 0.94); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 2147483000; }
.agegate[hidden] { display: none; }
.agegate-box { background: var(--white); max-width: 460px; width: 100%; padding: 40px 32px; text-align: center; }
.agegate-box h2 { margin: 14px 0 10px; }
.agegate-box p { font-family: var(--sans); color: var(--stone); }
.agegate-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.agegate-no { margin-top: 18px; color: var(--burgundy) !important; }
.no-scroll, .no-scroll body { overflow: hidden; }

/* Responsive */
@media (max-width: 900px) {
  .hero, .split, .journal, .buy, .tech, .story-grid, .story-intro { grid-template-columns: 1fr; }
  .cards, .wine-cards { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero, .story-intro { gap: 36px; padding-top: 40px; padding-bottom: 72px; }
  .buy { gap: 32px; padding-bottom: 72px; }
  .chapters { gap: 64px; padding-top: 56px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .narrow { padding-left: 16px; padding-right: 16px; }
  .tech dl { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 2px 18px; }
  .wide img { aspect-ratio: 3 / 2; }
}

/* Draft 2026-11-04: values, season, awards, label */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 64px; }
.values > div { border-top: 1px solid var(--ink); padding-top: 18px; }
.values h3 { font-size: 22px; margin-bottom: 10px; }
.values p { color: var(--stone); }
.season .signature { color: var(--cream); }
.awards { list-style: none; padding: 0; margin: 28px 0 0; font-family: var(--sans); font-size: 15px; display: grid; gap: 10px; }
.awards li { padding-bottom: 10px; border-bottom: 1px solid var(--linen); }
.label-story { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; align-items: center; border-top: 1px solid var(--linen); padding-top: 56px; }
.label-story img { width: 180px; height: auto; background: #FAF9F7; }
.label-story h2 { margin-bottom: 14px; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; } }
@media (max-width: 560px) { .label-story { grid-template-columns: 1fr; } .label-story img { width: 140px; } }

/* Interview clips (draft 2026-11-04): a pill link that turns into an inline 16:9 player */
.clip { margin-top: 24px; }
.clip-play {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 22px;
  border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .02em;
}
.clip-play:hover, .clip-play:focus-visible { background: var(--ink); color: #fff; }
.clip-icon { font-size: 12px; line-height: 1; }
.clip-len { color: var(--stone); font-size: 13px; }
.clip-play:hover .clip-len, .clip-play:focus-visible .clip-len { color: var(--linen); }
.clip-credit { margin: 8px 0 0; font-size: 13px; color: var(--stone); }
.clip-frame { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); }
.clip-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Language switcher (draft 2026-11-04): EN · ES · FR at the end of the main nav */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; }
.lang-switch a { color: var(--stone); text-decoration: none; padding: 10px 6px; }
.lang-switch a + a { border-left: 1px solid var(--linen); }
.lang-switch a:hover { color: var(--burgundy); }
.lang-switch a[aria-current="true"] { color: var(--ink); font-weight: 600; }
/* French pages: mandatory health message (Loi Evin), kept clearly visible */
.health { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink); margin: 0 0 8px; }
.buybox .health { margin-top: 8px; }
.journal-lang { font-size: 14px; color: inherit; opacity: 0.85; margin-top: 12px; }

/* 2026-11-06: larger header on desktop (Steph: "se ve muy chico") */
@media (min-width: 900px) {
  .header-inner { padding-top: 20px; padding-bottom: 20px; }
  .brand { gap: 18px; }
  .brand-mark img { height: 76px; }
  .wordmark { font-size: 25px; }
  .tagline { font-size: 16px; }
  .nav { font-size: 17px; gap: 4px 32px; }
}

/* 2026-11-06: wine pages tell the story first; the order box comes at the end */
.order-box { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.order-box .buy-note { margin-top: -4px; }

/* 2026-11-06: compact phone header with a Menu button (nav + languages fold away) */
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .header-inner { padding-top: 12px; padding-bottom: 12px; gap: 0 12px; }
  .brand-mark img { height: 42px; }
  .wordmark { font-size: 16px; letter-spacing: 0.18em; }
  .tagline { font-size: 12px; line-height: 1.35; }
  .brand { flex: 1 1 0; min-width: 0; }
  .header-inner { flex-wrap: wrap; align-items: center; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 8px 14px; background: transparent; border: 1px solid var(--linen); border-radius: 999px; font-family: var(--sans); font-size: 14px; letter-spacing: 0.04em; color: var(--ink); cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -5px; }
  .menu-icon::after { top: 5px; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0 4px; border-top: 1px solid var(--linen); margin-top: 12px; }
  .js .nav.open { display: flex; }
  .js .nav a { font-size: 17px; padding: 11px 0; }
  .js .nav .lang-switch { margin: 6px 0 0 -6px; }
  .js .nav .lang-switch a { font-size: 14px; padding: 10px 10px; }
}

/* 2026-11-07: more presence for the brand on phones (desktop untouched) */
@media (max-width: 760px) {
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .brand { gap: 12px; }
  .brand-mark img { height: 56px; }
  .wordmark { font-size: 21px; letter-spacing: 0.16em; }
  .tagline { font-size: 14px; line-height: 1.35; }
}
@media (max-width: 430px) {
  .js .menu-toggle { padding: 0; width: 46px; height: 46px; justify-content: center; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-icon, .menu-icon::before, .menu-icon::after { width: 18px; }
}

/* 2026-11-07: keep generous side margins when the browser window is not very wide
   (Safari on a laptop showed the page running edge to edge) */
@media (min-width: 900px) {
  .wrap { padding-left: 56px; padding-right: 56px; max-width: 1312px; }
}

/* 2026-11-07: customer care page and WhatsApp line */
.help h2 { margin: 48px 0 16px; }
.help-contact { margin: 0 0 24px; display: grid; gap: 10px; }
.help-contact div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.help-contact dt { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); padding-top: 4px; }
.help-contact dd { margin: 0; }
.help-list { padding-left: 20px; margin: 0; }
.help-list li { margin-bottom: 12px; }
.wa-line { font-family: var(--sans); font-size: 15px; margin: 4px 0 0; }
@media (max-width: 560px) { .help-contact div { grid-template-columns: 1fr; gap: 2px; } }
