/* Purest Vines landing
   Two registers: "Earth" (warm Mendoza photography) and "Proof" (the Wine Facts label).
   Colors come from the bottle label: glacier sky, Andes slate, the raspberry of PUREST. */

:root {
  --glacier: #ECF2F1;      /* page background, a cool off-white from the label sky */
  --snow: #FFFFFF;         /* label panels, packshot tiles */
  --andes: #1C2A35;        /* ink and dark sections, mountain shadow */
  --slate: #56656F;        /* secondary text */
  --sky: #A9D4DC;          /* label sky, used for tints and focus */
  --raspberry: #A41F4B;    /* the PUREST in the logo, used for actions */
  --raspberry-deep: #7F1539;
  --rule: rgba(28, 42, 53, .16);

  --font-display: "League Gothic", "Oswald", "Arial Narrow", sans-serif;
  --font-text: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--glacier);
  color: var(--andes);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--andes); color: var(--snow); padding: .6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

.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;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .004em;
  font-size: clamp(2.75rem, 1.6rem + 4.4vw, 5.75rem);
  text-wrap: balance;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head p { margin-top: 1.1rem; font-size: 1.1875rem; color: var(--slate); max-width: 38rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--raspberry);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .9rem 1.6rem;
  border: 2px solid var(--btn-bg); border-radius: 3px;
  background: var(--btn-bg); color: var(--snow);
  font: 700 1rem/1.1 var(--font-text); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary:hover { --btn-bg: var(--raspberry-deep); }
.btn--ghost { background: transparent; color: var(--andes); border-color: var(--andes); }
.btn--ghost:hover { background: var(--andes); color: var(--snow); }
.btn--small { min-height: 42px; padding: .6rem 1.05rem; font-size: .9375rem; }

/* ---------- Age gate ---------- */
.agegate {
  border: 0; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
  max-width: min(30rem, calc(100vw - 32px));
  background: var(--snow); color: var(--andes); text-align: center;
  border-top: 6px solid var(--raspberry);
}
.agegate::backdrop { background: rgba(28, 42, 53, .82); backdrop-filter: blur(6px); }
.agegate__logo { width: 180px; margin: 0 auto 1.75rem; }
.agegate__title { font: 400 2.75rem/1 var(--font-display); text-transform: uppercase; margin-bottom: .6rem; }
.agegate__text { color: var(--slate); }
.agegate__actions { display: grid; gap: .75rem; margin-top: 1.5rem; }
.agegate__denied { margin: 1.25rem 0 0; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(236, 242, 241, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--header-h); display: flex; align-items: center; gap: 2rem;
}
.site-header__logo img { width: 132px; }
.site-header__nav { display: none; gap: 1.75rem; margin-left: auto; font-size: .9375rem; font-weight: 500; }
.site-header__nav a { text-decoration: none; color: var(--slate); }
.site-header__nav a:hover { color: var(--andes); text-decoration: underline; text-underline-offset: 4px; }
.site-header .btn { margin-left: auto; }
@media (min-width: 960px) {
  .site-header__nav { display: flex; }
  .site-header .btn { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  max-width: var(--max); margin-inline: auto;
  padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem);
}
.hero__media {
  order: -1;
  margin: 0 calc(var(--gutter) * -1) 1.75rem;
  position: relative;
}
.hero__video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; background: #2d2a22; }
.hero__media figcaption {
  position: absolute; left: var(--gutter); bottom: .75rem;
  color: var(--snow); font-size: .8125rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}
.hero__title { font-size: clamp(3.6rem, 1.4rem + 6.4vw, 7.25rem); line-height: .88; }
.hero__media::after {
  content: ""; position: absolute; inset: auto 0 0; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .45));
}
.hero__media figcaption { z-index: 1; }
.hero__lede { margin-top: 1.25rem; font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.5; max-width: 33rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 1.75rem; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  font-size: .9375rem; font-weight: 600;
}
.hero__facts li { display: flex; align-items: center; gap: .5rem; }
.hero__facts li::before {
  content: ""; width: 14px; height: 8px; flex: none;
  border-left: 2.5px solid var(--raspberry); border-bottom: 2.5px solid var(--raspberry);
  transform: translateY(-2px) rotate(-45deg);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    padding-top: clamp(2rem, 4vw, 3.5rem);
    min-height: calc(100svh - var(--header-h));
  }
  .hero__media { order: 0; margin: 0; align-self: stretch; }
  .hero__video { height: 100%; max-height: 760px; min-height: 520px; aspect-ratio: auto; }
  .hero__media figcaption { left: 1rem; bottom: 1rem; }
}

/* ---------- Wine Facts (the one bold thing) ---------- */
.facts { padding-block: var(--section); background: var(--glacier); border-top: 1px solid var(--rule); }
.facts__grid { display: grid; gap: 3rem; }
.facts__intro p { font-size: 1.1875rem; max-width: 30rem; }
.facts__intro p:first-of-type { margin-top: 1.4rem; }
.facts__intro p:last-child { font-weight: 700; }

.facts__panels { display: grid; gap: 2.5rem; align-items: start; }
.facts__caption { font-weight: 700; margin-bottom: .6rem; font-size: .9375rem; }
.facts__col--typical .facts__caption { color: var(--slate); }

.label {
  background: var(--snow);
  border: 2px solid var(--andes);
  padding: .55rem .85rem .75rem;
  font-family: var(--font-text);
  color: var(--andes);
  line-height: 1.25;
}
.label__title {
  font-weight: 900; font-size: clamp(2.6rem, 2rem + 2.2vw, 3.6rem);
  letter-spacing: -.035em; line-height: .95; margin: 0;
}
.label__sub { font-size: .875rem; margin: .2rem 0 0; padding-bottom: .4rem; border-bottom: 1px solid currentColor; }
.label__serving {
  display: flex; justify-content: space-between; gap: 1rem;
  font-weight: 800; font-size: 1.0625rem;
  padding: .35rem 0 .45rem; border-bottom: 11px solid currentColor;
}
.label__rows { margin: 0; }
.label__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .42rem 0; border-bottom: 1px solid currentColor;
}
.label__row:last-child { border-bottom: 6px solid currentColor; }
.label__row dt { font-weight: 700; font-size: .975rem; }
.label__row dt small { font-weight: 400; font-size: .8125rem; display: block; }
.label__row dd { margin: 0; font-weight: 800; text-align: right; font-size: .975rem; }
.label__foot { font-size: .8125rem; margin: .5rem 0 0; line-height: 1.4; }

.label--ours .label__row dd { color: var(--raspberry); }

.label--typical { color: #7B8890; border-color: #9AA6AD; background: rgba(255, 255, 255, .55); }
.label--typical .label__row dd { font-weight: 600; font-style: italic; white-space: nowrap; }

/* Reveal: only when JS is running and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .label--ours .label__row dd span {
    display: inline-block; opacity: 0; transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease;
    transition-delay: calc(var(--i) * 110ms + 150ms);
  }
  .js .label--ours.is-revealed .label__row dd span { opacity: 1; transform: none; }
}

@media (min-width: 700px) {
  .facts__panels { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .facts__col--typical { margin-top: 3.5rem; }
}
@media (min-width: 1100px) {
  .facts__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .facts__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Process ---------- */
.process { padding-block: var(--section); background: var(--snow); }
.process__grid { display: grid; gap: 2rem; }
.process__media { display: none; }
.process__steps { counter-reset: none; }
.step {
  display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1rem;
  padding: 1.75rem 0; border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__num {
  grid-row: span 2; font: 400 3.4rem/.85 var(--font-display); color: var(--raspberry);
}
.step h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; align-self: end; }
.step p { grid-column: 2; margin: .45rem 0 0; color: var(--slate); max-width: 34rem; }
.step__media { grid-column: 1 / -1; margin: 0 0 1.25rem; }
.step__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

@media (min-width: 960px) {
  .process__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .process__media {
    display: block; position: sticky; top: calc(var(--header-h) + 1.5rem);
    height: calc(100vh - var(--header-h) - 3rem); max-height: 720px;
  }
  .process__figure {
    position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  }
  .process__figure.is-active { opacity: 1; }
  .process__figure img, .process__figure video { width: 100%; height: 100%; object-fit: cover; }
  .process__figure figcaption {
    position: absolute; left: 1rem; bottom: 1rem; color: var(--snow);
    font-size: .8125rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  }
  .step { padding: 2.25rem 0; }
  .step__media { display: none; }
  .js .step { opacity: .45; transition: opacity .3s ease; }
  .js .step.is-current { opacity: 1; }
}
@media (min-width: 960px) and (prefers-reduced-motion: reduce) {
  .process__figure { transition: none; }
  .step { opacity: 1; }
}

/* ---------- Wines ---------- */
.wines { padding-block: var(--section) calc(var(--section) * .75); background: var(--glacier); }
.wines__shelf {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 1.25rem;
}
.wine { display: flex; flex-direction: column; }
.wine__bottle {
  height: clamp(260px, 52vw, 400px); width: auto; margin: 0 auto;
  mix-blend-mode: multiply;
}
.wine__name {
  font: 400 clamp(2rem, 1.6rem + 1.4vw, 2.75rem)/.95 var(--font-display); text-transform: uppercase;
  border-top: 3px solid var(--andes); padding-top: .9rem; margin-top: -2px;
}
.wine__notes { margin: .6rem 0 .4rem; font-size: 1rem; }
.wine__pair { margin: 0; color: var(--slate); font-size: .9375rem; }
@media (min-width: 960px) {
  .wines__shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .wine { padding-inline: 1.25rem; }
  .wine:first-child { padding-left: 0; }
  .wine:last-child { padding-right: 0; }
  .wine__name { margin-inline: -1.25rem; padding-inline: 1.25rem; }
  .wine:first-child .wine__name { margin-left: 0; padding-left: 0; }
  .wine:last-child .wine__name { margin-right: 0; }
}

/* ---------- Photo strip ---------- */
.strip { padding-bottom: var(--section); background: var(--glacier); }
.strip__track {
  display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--gutter); scrollbar-width: thin;
}
.strip__track img {
  height: clamp(240px, 34vw, 440px); width: auto; flex: none; object-fit: cover;
  scroll-snap-align: center;
}
.strip__caption { margin-top: 1rem; color: var(--slate); font-size: .9375rem; }

/* ---------- Tasted ---------- */
.tasted { padding-block: var(--section); background: var(--snow); }
.quotes { display: grid; gap: 2.5rem; }
.quote { display: grid; grid-template-columns: 72px 1fr; gap: 0 1.1rem; align-items: start; align-content: start; }
.quote img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; grid-row: span 2; }
.quote blockquote { margin: 0; font-size: 1.125rem; line-height: 1.5; }
.quote figcaption { margin-top: .75rem; font-size: .875rem; color: var(--slate); }
.quote figcaption strong { display: block; color: var(--andes); font-size: .9375rem; }

.quote--lead { grid-template-columns: 1fr; }
.quote--lead img { width: 128px; height: 128px; margin-bottom: 1.25rem; grid-row: auto; }
.quote--lead blockquote {
  font: 400 clamp(2rem, 1.4rem + 2.4vw, 3.25rem)/1 var(--font-display);
  text-transform: uppercase; max-width: 20ch; text-wrap: balance;
}
@media (min-width: 960px) {
  .quotes { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; gap: 2.5rem 4rem; }
  .quote--lead blockquote { max-width: 24ch; }
  .quote--lead { grid-row: span 2; }
  .quote:not(.quote--lead) { padding-top: 1.5rem; border-top: 1px solid var(--rule); }
}

.tasted__videos-title { font-size: 1.25rem; margin: clamp(3rem, 5vw, 4.5rem) 0 1rem; }
.films { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); border-top: 2px solid var(--andes); }
.film {
  width: 100%; height: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .35rem 1rem;
  padding: 1.25rem 0 1.4rem; background: none; border: 0; border-bottom: 1px solid var(--rule);
  color: var(--andes); font: inherit;
}
.film__winery { grid-column: 1; font: 400 2.5rem/.9 var(--font-display); text-transform: uppercase; }
.film__who { grid-column: 1; font-size: .9375rem; color: var(--slate); }
.film__len {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  display: inline-flex; align-items: center; gap: .55rem; font-size: .875rem; font-weight: 700;
}
.film__len::before {
  content: ""; width: 40px; height: 40px; border-radius: 50%;
  background: var(--raspberry) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='%23fff'/%3E%3C/svg%3E") 55% 50% / 12px no-repeat;
  transition: transform .15s ease;
}
.film:hover .film__len::before { transform: scale(1.08); }
.film:hover .film__winery { color: var(--raspberry); }
@media (min-width: 700px) {
  .films li + li .film { border-left: 1px solid var(--rule); }
  .film { padding-inline: 1.25rem; }
  .films li:first-child .film { padding-left: 0; }
}
@media (max-width: 699px) {
  .films { border-top-width: 2px; }
}

/* ---------- Founder ---------- */
.founder { padding-block: var(--section); background: var(--glacier); }
.founder__grid { display: grid; gap: 2.5rem; align-items: start; }
.founder__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.founder__photo figcaption { font-size: .875rem; color: var(--slate); margin-top: .6rem; }
.founder__letter { max-width: 36rem; }
.founder__letter h2 { margin-bottom: 1.5rem; }
.founder__letter p { font-size: 1.125rem; line-height: 1.65; }
.founder__sign { margin-top: 2rem; color: var(--slate); font-size: .9375rem !important; }
.founder__name { display: block; font: 400 2.25rem/1 var(--font-display); text-transform: uppercase; color: var(--andes); margin-bottom: .2rem; }
@media (min-width: 960px) {
  .founder__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6rem); }
}

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section); background: var(--snow); }
.faq__grid { display: grid; gap: 2rem; }
.faq__list { border-top: 2px solid var(--andes); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--raspberry), var(--raspberry)) center / 14px 2px no-repeat,
    linear-gradient(var(--raspberry), var(--raspberry)) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--raspberry); }
.faq details p { margin: 0 0 1.3rem; color: var(--slate); max-width: 40rem; }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; }
}

/* ---------- Contact ---------- */
.final {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 70vh, 680px);
  display: flex; align-items: flex-end;
  color: var(--snow); background: #3a3324;
}
.final__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(28, 42, 53, .78) 0%, rgba(28, 42, 53, .35) 45%, rgba(28, 42, 53, 0) 70%),
    linear-gradient(180deg, rgba(28, 42, 53, 0) 35%, rgba(28, 42, 53, .7) 100%);
}
.final__inner { padding-block: clamp(3rem, 6vw, 5rem); }
.final__inner h2 { font-size: clamp(3.25rem, 1.6rem + 6vw, 7.5rem); max-width: 12ch; }
.final__inner p { margin: 1rem 0 1.6rem; font-size: 1.1875rem; max-width: 30rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--andes); color: rgba(255, 255, 255, .8); padding: 3.5rem 0 3rem; font-size: .9375rem; }
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer__brand img { width: 140px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 1rem; }
.site-footer__links { display: flex; flex-direction: column; gap: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--snow); }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .8125rem; color: rgba(255, 255, 255, .6); }
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr; }
}

/* ---------- Video modal ---------- */
.video-modal {
  border: 0; padding: 0; background: #000; width: min(1100px, calc(100vw - 32px)); max-width: none; overflow: visible;
}
.video-modal::backdrop { background: rgba(28, 42, 53, .9); }
.video-modal__frame { aspect-ratio: 16 / 9; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close {
  position: absolute; right: 0; top: -48px; width: 44px; height: 44px;
  background: none; border: 0; color: var(--snow); font-size: 2.25rem; line-height: 1; cursor: pointer;
}
