/* ===========================================================
   Oscar The Olive — Direction A (Editorial)
   Palette: deep olive + cream + ink · wine pages remap via body.wine
   Type: Cormorant Garamond (display) / Spectral (body) / Inter (UI)
   =========================================================== */
:root {
  --font-display: "Cormorant Garamond", "Hoefler Text", "EB Garamond", Georgia, serif;
  --font-body: "Spectral", Georgia, serif;
  --font-ui: "Inter", system-ui, sans-serif;

  /* Azeite palette (editorial olive) */
  --bg: oklch(0.965 0.012 92);          /* cream */
  --bg-alt: oklch(0.93 0.018 92);
  --ink: oklch(0.20 0.018 100);
  --muted: oklch(0.48 0.02 100);
  --accent: oklch(0.38 0.065 130);      /* deep olive */
  --accent-soft: oklch(0.62 0.09 115);
  --ochre: oklch(0.70 0.12 75);
  --hairline: oklch(0.85 0.015 92);
  --ink-inv: oklch(0.965 0.012 92);
}
body.wine {
  --bg: oklch(0.95 0.018 70);
  --bg-alt: oklch(0.90 0.025 60);
  --ink: oklch(0.18 0.025 25);
  --muted: oklch(0.42 0.04 25);
  --accent: oklch(0.32 0.095 25);       /* burgundy */
  --accent-soft: oklch(0.50 0.10 30);
  --ochre: oklch(0.55 0.11 45);         /* terracotta */
  --hairline: oklch(0.82 0.025 50);
  --ink-inv: oklch(0.95 0.018 70);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s ease, color .4s ease, backdrop-filter .4s ease;
  color: var(--ink-inv);
}
.nav--solid { color: var(--ink); }
.nav.is-scrolled {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.nav__brand { position: relative; display: flex; align-items: center; }
.nav__logo {
  display: block;
  width: 37px; height: 40px;
  object-fit: contain;
  transition: opacity .4s ease;
}
/* the ink mark is stacked over the cream one and fades in when the nav turns solid */
.nav__logo--dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.nav.is-scrolled .nav__logo--dark,
.nav--solid .nav__logo--dark,
.nav-drawer .nav__logo--dark { opacity: 1; }
.nav.is-scrolled .nav__logo--light,
.nav--solid .nav__logo--light,
.nav-drawer .nav__logo--light { opacity: 0; }
.nav__menu { display: none; }
.nav__toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: inherit;
}
.nav__toggle-bars {
  width: 24px; height: 1px; background: currentColor;
  position: relative;
}
.nav__toggle-bars::before, .nav__toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 1px;
  background: currentColor;
}
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }

@media (min-width: 900px) {
  .nav { padding: 22px 40px; }
  .nav__logo { width: 44px; height: 48px; }
  .nav__menu {
    display: flex;
    gap: 34px;
    font-family: var(--font-ui);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .nav__menu a {
    position: relative;
    padding: 4px 0;
  }
  .nav__menu a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: left;
    transition: transform .5s cubic-bezier(.2,.7,.2,1);
  }
  .nav__menu a:hover::after { transform: scaleX(1); }
  .nav__toggle { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  padding: 24px;
  color: var(--ink-inv);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: #1a1d14 center/cover no-repeat;
  background-image: url('../images/grove-hero.jpeg');
  background-image: image-set(
    url('../images/grove-hero-1600.webp') type('image/webp'),
    url('../images/grove-hero.jpeg') type('image/jpeg'));
  transform: scale(1.06);
  animation: heroKen 16s ease-out forwards;
}
@keyframes heroKen { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(10,14,8,.45) 0%,
    rgba(10,14,8,.2) 30%,
    rgba(10,14,8,.25) 60%,
    rgba(10,14,8,.75) 100%);
}
.hero__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-bottom: 48px;
}
.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 18px;
}
.hero__eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: currentColor; vertical-align: middle; margin-right: 14px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 16vw, 168px);
  line-height: .92;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: oklch(0.88 0.08 95);
}
.hero__sub {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(16px, 4.4vw, 22px);
  line-height: 1.45;
  max-width: 40ch;
  margin: 22px 0 0;
  opacity: .9;
}
.hero__meta {
  margin-top: 40px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .75;
}
.hero__meta span::before { content: "— "; margin-right: 4px; }
.hero__scroll {
  position: absolute;
  right: 24px; bottom: 32px;
  writing-mode: vertical-rl;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .7;
  display: none;
}
.hero__scroll::after {
  content: ""; display: block; width: 1px; height: 40px; margin: 10px auto 0;
  background: linear-gradient(currentColor, transparent);
}
@media (min-width: 900px) {
  .hero { padding: 40px 64px; }
  .hero__scroll { display: block; }
}
@media (max-width: 899px) {
  .hero { place-items: center start; }
  .hero__inner { padding-bottom: 0; }
}

/* short cover variant — detail pages */
.hero--short {
  min-height: 460px;
  min-height: max(460px, 62svh);
}
.hero--short .hero__title { font-size: clamp(44px, 10vw, 104px); }
.hero--short .hero__inner { padding-bottom: 40px; }

/* ---------- section primitive ---------- */
.section { padding: 88px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 140px 0; } }
.section--alt { background: var(--bg-alt); }

.section__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
@media (min-width: 900px) { .section__head { margin-bottom: 88px; } }
.section__num {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 8vw, 84px);
  line-height: 1;
  letter-spacing: -.025em;
}
.section__title em { font-style: italic; color: var(--accent); }
.section__lede {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(17px, 2.6vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  margin-top: 20px;
  max-width: 52ch;
  margin-left: auto; margin-right: auto;
}

/* ---------- fixed-ratio figures: <picture> must fill its box ---------- */
.editorial__figure picture,
.trio__figure picture,
.product__img picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- quality / editorial split ---------- */
.editorial {
  display: grid; gap: 40px;
}
@media (min-width: 900px) {
  .editorial {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
}
.editorial__figure {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.editorial__figure img { width: 100%; height: 100%; object-fit: cover; }
.editorial__figure figcaption {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
}
.editorial__body h3 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.editorial__body h3 em { font-style: italic; color: var(--accent); }
.editorial__body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.1em;
}
p.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 5.2em;
  float: left;
  line-height: .88;
  padding: 4px 12px 0 0;
  color: var(--accent);
  font-weight: 400;
}

/* ---------- about/trio ---------- */
.trio { display: grid; gap: 48px; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 64px; } }
@media (min-width: 900px) { .trio--2 { grid-template-columns: repeat(2, 1fr); gap: 56px 64px; } }
.trio__item {
  position: relative;
  padding-top: 28px;
}
.trio__item::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 40px; height: 1px; background: var(--accent);
}
.trio__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 14px;
}
.trio__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.trio__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.trio__figure {
  margin-top: 24px;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.trio__figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1);}
.trio__item:hover .trio__figure img { transform: scale(1.04); }
/* desktop: bottom-align the three figures even when the texts differ in length */
@media (min-width: 900px) {
  .trio__item { display: flex; flex-direction: column; }
  .trio__item .trio__text { margin-bottom: 24px; }
  .trio__item .trio__figure { margin-top: auto; }
}

/* ---------- products ---------- */
.products { display: grid; gap: 56px; }
@media (min-width: 700px) { .products { grid-template-columns: repeat(2, 1fr); gap: 64px 48px;} }
@media (min-width: 1100px) { .products { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .products--3 { grid-template-columns: repeat(3, 1fr); } }
.product {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 20px;
}
.product__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.product__img--plate img { object-fit: contain; padding: 28px; }
.product:hover .product__img img { transform: scale(1.05); }
.product__kicker {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.product__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -.01em;
  line-height: 1;
  margin-bottom: 8px;
}
.product__note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
}
.product__link {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  padding-bottom: 4px;
  display: inline-block;
}
.product__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.product:hover .product__link::after { transform: scaleX(1.15); }

/* ---------- vinhos cross-sell strip ---------- */
.cross {
  background: var(--accent);
  color: var(--ink-inv);
  padding: 88px 0;
}
.cross .section__num { color: var(--ochre); }
.cross__grid {
  display: grid; gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .cross__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; padding: 60px 0; }
}
.cross__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink-inv);
  margin-bottom: 20px;
}
.cross__title em { font-style: italic; color: var(--ochre); }
.cross__text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  opacity: .85;
  max-width: 44ch;
  margin-bottom: 28px;
}
.cross__cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid currentColor;
}
.cross__cta svg { transition: transform .4s; }
.cross__cta:hover svg { transform: translateX(6px); }
.cross__bottles {
  display: flex; justify-content: center; gap: 12px;
  position: relative;
}
.cross__bottles img {
  max-height: 380px; width: auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.4));
}
.cross__bottles img:nth-child(2) { transform: translateY(-20px) scale(1.05); z-index: 2; }
.cross__bottles img:nth-child(3) { transform: translateY(0); }

/* ---------- wine band hero (vinhos.html) ---------- */
.page-hero--band {
  background: var(--accent);
  color: var(--ink-inv);
  padding: 140px 0 72px;
}
.page-hero--band .section__num { color: var(--ochre); }
@media (min-width: 900px) { .page-hero--band { padding: 170px 0 96px; } }

/* ---------- wine split hero (kingdomvalley*.html) ---------- */
.page-hero--split {
  padding: 110px 0 56px;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 900px) { .page-hero--split { padding: 150px 0 80px; } }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
}
.split__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 11vw, 110px);
  line-height: .95;
  letter-spacing: -.03em;
}
.split__title em { font-style: italic; color: var(--accent); }
.split__sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--muted);
  margin-top: 18px;
}
.split__plate {
  background: var(--bg-alt);
  aspect-ratio: 4/5;
  display: grid;
  place-items: end center;
  padding: 40px 40px 0;
}
.split__plate img {
  max-height: 520px;
  max-width: 100%;
  width: auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.35));
}

/* ---------- detail body (prose + aside figure) ---------- */
.detail { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .detail { grid-template-columns: minmax(0, 65ch) 1fr; gap: 80px; align-items: start; }
  .detail__aside { position: sticky; top: 100px; }
}
.prose { max-width: 65ch; }
.prose p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 1.1em;
}
.prose .eyebrow { margin-bottom: 14px; color: var(--accent); }
.prose__sub {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 28px;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.prose__sub em { font-style: italic; color: var(--accent); }
.detail__figure { margin: 0; }
.detail__figure img { width: 100%; height: auto; }
.figcap {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
}

/* ---------- centered italic closing note ---------- */
.note {
  max-width: 60ch;
  margin: 64px auto 0;
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.note::before {
  content: "";
  display: block;
  width: 40px; height: 1px;
  background: var(--accent);
  margin: 0 auto 24px;
}

/* ---------- prev/next page nav ---------- */
.pagenav {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 72px;
}
.pagenav .eyebrow { margin-bottom: 32px; }
.pagenav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pagenav__link { display: inline-block; }
.pagenav__link--next { text-align: right; justify-self: end; }
.pagenav__label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.pagenav__name {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: -.01em;
  line-height: 1.05;
  position: relative;
  padding-bottom: 4px;
}
.pagenav__name::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.pagenav__link:hover .pagenav__name::after { transform: scaleX(1); }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact__grid {
  display: grid; gap: 40px;
  margin-top: 40px;
}
@media (min-width: 700px) { .contact__grid { grid-template-columns: repeat(3, 1fr); } }
.contact__item h4 {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.contact__item p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.contact__item p span { display: block; font-size: 16px; color: var(--muted); font-style: italic; }

/* ---------- footer ---------- */
.foot {
  padding: 60px 0 32px;
  border-top: 1px solid var(--hairline);
  background: var(--bg);
}
.foot__grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .foot__grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot__brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.foot__desc { font-size: 15px; color: var(--muted); max-width: 32ch; font-style: italic; }
.foot__head {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot ul li { margin-bottom: 8px; font-size: 15px; }
.foot ul a { color: var(--ink); }
.foot ul a:hover { color: var(--accent); }
.foot__base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-ui);
  letter-spacing: .04em;
}
