:root {
  --plum: #23121d;
  --cream: #f7eddf;
  --ink: #2c1623;
  --muted: #614d54;
  --gold: #f2ae4c;
  --wine: #853b55;
  --body: "DM Sans", Arial, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --gutter: clamp(1.375rem, 5.55vw, 6rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

::selection {
  background: var(--gold);
  color: var(--plum);
}

.shell {
  width: min(calc(100% - var(--gutter) * 2), 81rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  transform: translateY(calc(-100% - 1rem));
  background: var(--cream);
  color: var(--ink);
}

.skip-link:focus { transform: none; }

.site-header,
.site-footer {
  background: #fcf5eb;
  color: #203e2b;
}

.site-header { border-bottom: 1px solid #254a301c; }

.header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 5rem;
  padding-block: .5rem;
  gap: 2rem;
  align-items: center;
}

.brand {
  display: block;
  width: clamp(9rem, 12.8vw, 11rem);
  max-width: 100%;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  gap: clamp(1.25rem, 3.5vw, 3.2rem);
}

.main-nav a {
  color: #254732;
  font-size: .94rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.main-nav a:hover { color: #984406; }

.visit-link {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: .65rem;
  min-height: 2.62rem;
  padding: .45rem .95rem;
  border: 1px solid #416247;
  border-radius: 99rem;
  color: #254732;
  font-size: .90rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.visit-link:hover {
  background: #254732;
  color: #fff8ed;
}

.pin-icon {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  width: .70rem;
  height: .70rem;
  margin: 0 .05rem .14rem;
  border: 1.4px solid currentColor;
  border-radius: 50% 50% 50% 5%;
  transform: rotate(-45deg);
}

.pin-icon::after {
  content: "";
  position: absolute;
  width: .18rem;
  height: .18rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: currentColor;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(33rem, 43.5vw, 46rem);
  overflow: hidden;
  background: #200f1b;
  color: var(--cream);
}

.hero-picture,
.hero-picture::after,
.hero-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture { z-index: -1; }

.hero-picture img {
  object-fit: cover;
  object-position: 50% 48%;
}

.hero-picture::after {
  content: "";
  background: linear-gradient(90deg, #1b0a15a3 0%, #1b0a1533 44%, transparent 72%);
}

.hero-content {
  position: relative;
  padding-block: clamp(3.9rem, 6.9vw, 7rem);
}

.eyebrow {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: .875rem;
  font-weight: 730;
  letter-spacing: .15em;
  line-height: 1.4;
}

.hero-eyebrow {
  color: #f9c271;
  margin-bottom: 1.375rem;
}

.hero-eyebrow span {
  display: inline-block;
  width: 1.9rem;
  height: 1px;
  background: currentColor;
}

.hero h1,
.selection h2,
.category-caption,
.dialog-copy h2 {
  font-family: var(--display);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.85rem, 7.92vw, 8rem);
  line-height: .93;
  letter-spacing: -.042em;
  font-weight: 570;
  font-optical-sizing: auto;
  text-wrap: nowrap;
}

.hero h1 em { color: #ffc36a; font-weight: 510; }
.hero h1 em,
.selection h2 em { padding-right: .02em; }

.hero-description {
  max-width: 32ch;
  margin: 1.65rem 0 1.65rem;
  color: #f7eddfdf;
  font-size: clamp(1.06rem, 1.35vw, 1.2rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.375rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 99rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.button-gold {
  color: var(--plum);
  background: var(--gold);
}

.button-gold:hover {
  background: #ffca7b;
  border-color: #ffca7b;
}

.button-gold:focus-visible { outline-color: var(--cream); }

.variety-band {
  background: var(--gold);
  color: var(--ink);
}

.variety-band ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 3.9rem;
  margin-block: 0;
  padding: 0;
  align-items: center;
  list-style: none;
}

.variety-band li {
  display: grid;
  place-items: center;
  position: relative;
  padding: .6rem .4rem;
  text-align: center;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.variety-band li + li::before {
  content: "";
  position: absolute;
  left: -.18rem;
  top: calc(50% - .18rem);
  width: .36rem;
  height: .36rem;
  background: #8d443b;
  transform: rotate(45deg);
}

.selection {
  padding-block: clamp(4rem, 7.25vw, 7.5rem);
}

.selection-head {
  display: flex;
  margin-bottom: clamp(1.7rem, 3.25vw, 3.25rem);
  gap: 1.1rem 3rem;
  align-items: end;
  justify-content: space-between;
}

.section-eyebrow { color: var(--wine); }

.selection h2 {
  margin: 0;
  font-size: clamp(3.05rem, 6.2vw, 6rem);
  font-weight: 550;
  line-height: .98;
  letter-spacing: -.04em;
}

.selection h2 em { color: var(--wine); font-weight: 500; }

.selection-head > p {
  max-width: 29ch;
  margin: 0 .25rem .21rem 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.57;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.6rem, 1.3vw, 1.32rem);
}

.category {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  width: 100%;
  min-width: 0;
  aspect-ratio: .86;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: .18rem;
  background: var(--plum);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
}

.category::after,
.category img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category img {
  object-fit: cover;
  transition: transform 330ms ease;
}

.category::after {
  content: "";
  background: linear-gradient(180deg, transparent 35%, #200b1aaa 72%, #170813f2 100%);
}

.category:hover img { transform: scale(1.06); }
.category:focus-visible { outline-color: var(--wine); }

.category-caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: 100%;
  padding: clamp(.8rem, 1.75vw, 1.65rem);
  gap: .35rem;
  font-weight: 530;
  font-size: clamp(1.4rem, 2.45vw, 2.4rem);
  line-height: .98;
  letter-spacing: -.042em;
}

.category-icon {
  display: grid;
  position: relative;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(1.58rem, 3.15vw, 2.8rem);
  aspect-ratio: 1;
  border: 1px solid #f7eddfa2;
  border-radius: 50%;
  transition: background-color 160ms ease, color 160ms ease;
}

.category-icon::before,
.category-icon::after {
  position: absolute;
  content: "";
  width: 38%;
  height: 1px;
  background: currentColor;
}

.category-icon::after { transform: rotate(90deg); }

.category:hover .category-icon {
  background: var(--cream);
  color: var(--ink);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .95rem;
  min-height: 6rem;
  padding-block: 1rem;
}

.site-footer .intro-replay:not([hidden]) { color: #254732; }
.site-footer .intro-replay:hover { color: #984406; }

.footer-content p {
  margin: 0;
  color: #536251;
  font-size: .91rem;
}

.category-dialog {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: .35rem;
  background: var(--cream);
  color: var(--ink);
}

.category-dialog::backdrop {
  background: #160b13c9;
  backdrop-filter: blur(4px);
}

body:has(.category-dialog[open]) { overflow: hidden; }
.dialog-content { position: relative; }

.dialog-close {
  display: grid;
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 2.75rem;
  height: 2.75rem;
  place-content: center;
  padding: 0 0 .13rem;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--plum);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:focus-visible { outline-color: var(--gold); }

.dialog-image {
  width: 100%;
  height: clamp(8.5rem, 30vh, 13rem);
  object-fit: cover;
}

.dialog-copy { padding: clamp(1.3rem, 5vw, 2.5rem); }

.dialog-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1;
  font-weight: 560;
  letter-spacing: -.052em;
}

.dialog-description {
  margin: .9rem 0 1.1rem;
  color: var(--muted);
  line-height: 1.5;
}

.dialog-products {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dialog-products li {
  border: 1px solid #853b5552;
  border-radius: 99rem;
  padding: .4rem .75rem;
  font-size: .92rem;
  font-weight: 650;
}

.dialog-note {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: .875rem;
}

@media (max-width: 900px) {
  .hero-picture img { object-position: 57% 48%; }
}

@media (max-width: 780px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category { aspect-ratio: 1 / 1; }
  .category-caption {
    padding: clamp(.85rem, 2.6vw, 1.4rem);
    font-size: clamp(1.55rem, 3.9vw, 2.2rem);
  }

  .category-icon { width: clamp(1.75rem, 5.3vw, 2.7rem); }
}

@media (max-width: 650px) {
  .header-content {
    grid-template-columns: 1fr auto;
    min-height: 4.25rem;
    gap: .45rem 1rem;
  }

  .main-nav { display: none; }
  .visit-link { min-height: 2.5rem; }

  .hero {
    align-items: end;
    min-height: clamp(36.5rem, 117vw, 42rem);
  }

  .hero-picture img {
    height: 72%;
    object-position: 50% 28%;
  }

  .hero-picture::after {
    background: linear-gradient(180deg, #200f1b00 12%, #200f1b12 29%, #200f1bc2 54%, #200f1b 72%);
  }

  .hero-content { padding-block: 12rem 2.7rem; }
  .hero h1 { font-size: clamp(2.85rem, 11.7vw, 4.85rem); }
  .hero-eyebrow { margin-bottom: .85rem; }
  .hero-description { margin: 1.2rem 0 1.35rem; }

  .variety-band ul {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: .45rem var(--gutter);
  }

  .variety-band li {
    padding: .43rem .3rem;
    letter-spacing: .06em;
    font-size: .875rem;
  }

  .variety-band li:nth-child(3)::before { content: none; }

  .selection-head {
    align-items: start;
    flex-direction: column;
  }

  .selection h2 { font-size: clamp(2.65rem, 12.1vw, 4.2rem); }
  .selection-head > p { max-width: 37ch; }

  .category-caption {
    padding: .72rem;
    letter-spacing: -.032em;
    font-size: clamp(1.16rem, 5.7vw, 2rem);
  }

  .category-icon { width: clamp(1.4rem, 5.8vw, 2.12rem); }
}

@media (max-width: 360px) {
  .variety-band li { font-size: .8rem; }
}

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