/* The header is the opening picture with its title and the line under it, and exactly one screen tall: the stats
   row and everything after it start below the fold, on any screen. svh, so the line also stays clear of a
   phone's toolbar. The picture takes whatever height the line leaves it. */
.vy-open {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  padding: var(--header-h) 0 var(--space-6);
}
.vy-open .content-shell {
  display: flex;
  flex-direction: column;
}
.vy-open-visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  margin: 0 calc(var(--gutter) * -1);
  overflow: hidden;
  background: var(--cellar);
}
.vy-open-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 52%;
}
.vy-open-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--cellar) 0%, color-mix(in srgb, var(--cellar) 70%, transparent) 32%, transparent 68%);
  content: "";
  pointer-events: none;
}
.vy-open h1 {
  position: absolute;
  z-index: 1;
  inset-inline: var(--gutter);
  bottom: var(--space-6);
  margin: 0;
  color: var(--paper);
  font-size: var(--type-10);
  font-weight: 200;
  letter-spacing: -.035em;
  line-height: 1;
}
.vy-lede {
  max-width: 22ch;
  margin: var(--space-6) 0 0;
  flex: 0 0 auto;
  font-family: "Newsreader", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.vy-numbers,
.vy-maker,
.vy-region {
  padding-block: var(--section-space);
}
.vy-stat-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vy-stat {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(140px, .94fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--paper-2);
}
.vy-stat:last-child { border-bottom: 1px solid var(--paper-2); }
.vy-stat-value {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: .12em;
  color: var(--vine);
  font-family: "Newsreader", serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.vy-stat-unit {
  font-family: "Newsreader", serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0;
}
.vy-stat-caption {
  min-width: 0;
  font-size: 19px;
  line-height: 1.35;
}

.vy-maker h2,
.vy-region h2 {
  margin: 0 0 var(--space-6);
  font-size: var(--type-9);
  font-weight: 250;
  letter-spacing: -.015em;
  line-height: 1.1;
}
.vy-harvest {
  padding-block: var(--section-space);
  background: var(--paper-2);
}
.vy-harvest-layout {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
.vy-harvest-photo {
  aspect-ratio: 4 / 5;
  margin: 0 calc(var(--gutter) * -1);
  overflow: hidden;
}
.vy-harvest-photo img,
.vy-maker-photo img,
.vy-region-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vy-harvest-photo img { object-position: 50% 42%; }
.vy-harvest-lead {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  font-size: 26px;
  line-height: 1.25;
}
.vy-harvest-lead strong { font-weight: 700; }
.vy-body {
  max-width: 46ch;
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
}

.vy-maker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6) 0;
}
.vy-maker-intro h2 { margin-bottom: 0; }
.vy-maker-label { margin: 0 0 var(--space-3); }
.vy-maker-photo {
  aspect-ratio: 4 / 5;
  margin: 0 calc(var(--gutter) * -1);
  overflow: hidden;
}
.vy-maker-photo img { object-position: 50% 40%; }
/* The winemaker's quote is set exactly like the harvest lead above it: one type, one size, no rule, no italic. */
.vy-quote {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  text-wrap: balance;
}
.vy-steps {
  position: relative;
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.vy-steps::before {
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 25px;
  z-index: 0;
  width: 1px;
  background: var(--vine);
  content: "";
}
.vy-steps li {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
}
.vy-step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  background: var(--paper);
  color: var(--raspberry);
  font-family: "Lexend Exa", sans-serif;
  font-size: var(--type-8);
  font-weight: 250;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.vy-step-copy {
  min-width: 0;
  font-size: 19px;
  line-height: 1.5;
}

.vy-region { background: var(--paper-2); }
.vy-region-layout { display: block; }
.vy-region-intro { margin-bottom: var(--space-6); }
.vy-region-intro h2 { margin-bottom: 0; }
.vy-region-copy {
  display: grid;
  min-width: 0;
  gap: var(--space-6);
}
.vy-region-note {
  max-width: 58ch;
  margin: 0;
  padding-left: var(--space-4);
  border-left: 1px solid var(--vine);
  font-size: 19px;
  line-height: 1.5;
}
.vy-region-note-label {
  color: var(--raspberry);
  font-family: "Lexend Exa", sans-serif;
  font-size: max(12px, var(--type-0));
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.vy-region-photo {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
}
.vy-region-photo img { object-position: 50% 50%; }
.vy-close {
  padding-block: var(--section-space);
}
.vy-close-content {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  text-align: center;
}
.vy-close-content p {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
}
.vy-close-content .booking-opener { max-width: 100%; }

.reveal-on [data-reveal]:not(.vy-revealed) {
  opacity: 0;
  transform: translateY(14px);
}
.reveal-on [data-reveal] {
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

@media (min-width: 760px) {
  .vy-open-visual { margin-inline: 0; }
  .vy-open h1 { font-size: var(--type-13); }
  .vy-lede {
    max-width: 26ch;
    margin-top: var(--space-8);
    font-size: 40px;
  }
  .vy-stat-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }
  .vy-stat-list .vy-stat {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: var(--space-3);
    padding-block: var(--space-4) 0;
    border-bottom: 0;
  }
  .vy-stat-value { font-size: clamp(44px, 3.8vw, 52px); }
  .vy-stat-unit { font-size: 19px; }
  .vy-stat-caption { font-size: 21px; }
  .vy-harvest-layout {
    grid-template-columns: minmax(0, .67fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 92px);
  }
  .vy-harvest-photo { margin-inline: 0; }
  .vy-harvest-lead { font-size: 36px; }
  .vy-body { font-size: 22px; }
  .vy-maker-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .62fr);
    grid-template-rows: auto auto 1fr;
    gap: var(--space-6) clamp(32px, 6vw, 92px);
    align-items: start;
  }
  .vy-maker-intro { grid-column: 1; grid-row: 1; }
  .vy-maker-photo {
    grid-column: 2;
    grid-row: 1 / 4;
    margin: 0;
  }
  .vy-quote {
    grid-column: 1;
    grid-row: 2;
    max-width: 32ch;
    font-size: 36px;
  }
  .vy-steps { grid-column: 1; grid-row: 3; max-width: 34ch; }
  .vy-step-copy { font-size: 22px; }
  .vy-region-copy { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) clamp(32px, 5vw, 72px); }
  .vy-region-note { font-size: 22px; }
  .vy-close-content p { font-size: 36px; }
}

/* Final pass. One section gap between chapters on the same paper, not two stacked ones. */
.vy-numbers { padding-top: 0; }
/* Steps: the numeral stands at the first line of its text, so the joining line runs evenly. */
.vy-steps li { align-items: start; }
.vy-step-copy { padding-top: 11px; }
/* The region chapter reuses the winemaker's label-and-heading hierarchy. */
.vy-region-photo { aspect-ratio: 3 / 2; margin: 0 calc(var(--gutter) * -1) var(--space-6); }
.vy-region-photo img { object-position: 60% 50%; }
/* Opening photo on a phone: an upright cut centred on the house. */
.vy-open-visual img { object-position: 66% 50%; }
@media (min-width: 760px) {
  .vy-region-photo { aspect-ratio: 21 / 9; margin: 0 0 var(--space-8); }
  .vy-open-visual img { object-position: 50% 46%; }
}
