/* Oudekloof Wine Estate */
:root {
  --paper: #f3efe6;
  --paper-2: #e9e2d3;
  --ink: #1d1814;
  --ink-soft: #463e36;
  --earth: #85462a;
  --vine: #26301f;
  --line: rgba(29, 24, 20, .18);
  --white: #fffdf8;
  --display: "Cormorant", "Baskerville", Georgia, serif;
  --text: "Figtree", system-ui, sans-serif;
  --gutter: clamp(16px, 4.4vw, 72px);
  --max: 1440px;
  --head: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--text);
  letter-spacing: -.005em;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--earth); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

h1, h2, h3, .display { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 6.6rem); line-height: .94; }
h2 { font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: .98; }
h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.1; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.15rem, 1.4vw, 1.3rem); color: var(--ink-soft); max-width: 34em; }
.label { font: 600 .8rem/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--earth); margin: 0 0 1.4rem; }
em.it { font-style: italic; font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em;
  border: 1px solid currentColor; border-radius: 3px;
  font: 500 1rem/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--earth); border-color: var(--earth); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.head {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  transition: background-color .35s, box-shadow .35s;
}
.head.is-solid { background: rgba(243, 239, 230, .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.head nav ul { list-style: none; display: flex; gap: clamp(18px, 2.2vw, 36px); margin: 0; padding: 0; }
.head nav a, .head__right a.txt { font-size: .98rem; text-decoration: none; padding: 8px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.head nav a:hover, .head__right a.txt:hover { background-size: 100% 1px; }
.mark { text-decoration: none; text-align: center; line-height: 1; }
.mark b { display: block; font: 500 1.75rem/1 var(--display); letter-spacing: .02em; }
.mark small { display: block; font: 600 .62rem/1 var(--text); letter-spacing: .32em; text-transform: uppercase; margin-top: 6px; color: var(--ink-soft); }
.head__right { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.head__right .btn { min-height: 44px; padding: 0 1.1em; font-size: .95rem; }
.menu-btn { display: none; }
.icon-btn { display: none; }

/* Hero */
.hero { position: relative; height: 210vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; }
.hero__grid {
  position: relative; height: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4vw;
  padding: calc(var(--head) + 24px) var(--gutter) 48px;
}
.hero__copy { position: relative; z-index: 3; }
.hero__copy h1 { margin-bottom: 1.8rem; }
.hero__copy h1 span { display: block; }
.hero__copy .lead { max-width: 25em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 2.2rem; font-size: .95rem; color: var(--ink-soft); }
.hero__meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--earth); margin-right: 10px; vertical-align: middle; }
.gable {
  overflow: hidden;
  position: relative; z-index: 1; justify-self: end;
  width: min(100%, 640px, calc((100vh - var(--head) - 72px) * .8));
  aspect-ratio: 4 / 5;
  clip-path: url(#gable);
  transform: scale(var(--gs, 1));
  transform-origin: 50% 100%;
}
.gable img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: scale(calc(1.12 - var(--hp, 0) * .1)); }
.mist { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.mist-still { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none;
  background: radial-gradient(60% 18% at 70% 58%, rgba(255,253,248,.85), transparent 70%), radial-gradient(40% 12% at 40% 62%, rgba(255,253,248,.6), transparent 70%); }

/* Estate */
.estate { padding: clamp(96px, 12vw, 180px) 0 clamp(80px, 9vw, 140px); }
.estate__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 32px); }
.estate__text { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--head) + 40px); }
.estate__text h2 { margin-bottom: 2rem; }
.collage { grid-column: 7 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); }
.collage figure, .doors figure, .stop__img { margin: 0; min-width: 0; overflow: hidden; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { grid-column: 1 / -1; aspect-ratio: 940 / 700; }
.collage .c2 { aspect-ratio: 4 / 5; margin-top: 18%; }
.collage .c3 { aspect-ratio: 4 / 5; }
.collage figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: .7rem; }

.voice { padding: clamp(40px, 6vw, 96px) 0 clamp(96px, 12vw, 180px); }
.voice blockquote { margin: 0 auto; max-width: 22em; font: 400 clamp(1.9rem, 3.4vw, 3rem)/1.12 var(--display); letter-spacing: -.015em; text-align: center; }
.voice cite { display: block; margin-top: 1.6rem; font: 500 .95rem/1.4 var(--text); font-style: normal; color: var(--ink-soft); }

/* Wine */
.wine { background: var(--vine); color: var(--white); padding: clamp(96px, 11vw, 170px) 0; }
.wine .label { color: #e7b48f; }
.wine__big { font: 400 clamp(3.4rem, 10.5vw, 10rem)/.9 var(--display); letter-spacing: -.035em; margin: 0 0 clamp(48px, 6vw, 88px); }
.wine__big i { font-weight: 400; color: #e7b48f; }
.wine__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.wine__cols > div:first-child { grid-column: 1 / span 5; }
.wine__cols > div:last-child { grid-column: 7 / -1; }
.wine p { color: #e9e3d6; }
.hours { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,253,248,.28); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,253,248,.28); font-size: 1.05rem; }
.hours li span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.wine .btn { color: var(--white); margin-top: 32px; }
.wine .btn:hover { background: var(--white); color: var(--vine); border-color: var(--white); }

/* Banner */
.banner { position: relative; height: 92vh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; color: var(--white); }
.banner img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transform: translateY(var(--by, 0)); }
.banner::after { content: ""; position: absolute; inset: auto 0 0; height: 60%; background: linear-gradient(to top, rgba(20, 14, 10, .78), transparent); }
.banner .wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 7vw, 110px); }
.banner h2 { max-width: 11em; }

/* Stay */
.stay { padding: clamp(96px, 12vw, 180px) 0; }
.stay__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.stay__head h2 { grid-column: 1 / span 6; }
.stay__head p { grid-column: 8 / -1; margin: 0; color: var(--ink-soft); }
.ledger { border-top: 2px solid var(--ink); }
.ledger__row {
  display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr);
  gap: 24px; align-items: baseline; padding: clamp(22px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--line);
  transition: padding-left .3s;
}
.ledger__row:hover { padding-left: 14px; }
.ledger__row h3 { display: flex; align-items: baseline; gap: 14px; }
.ledger__row h3 i.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; transform: translateY(-2px); }
.ledger__cell { color: var(--ink-soft); font-size: 1rem; }
.ledger__price { font: 500 clamp(1.5rem, 2vw, 1.9rem)/1 var(--display); text-align: right; }
.ledger__price small { display: block; font: 400 .85rem/1.4 var(--text); color: var(--ink-soft); margin-top: 6px; }
.ledger__head { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 .78rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.ledger__head span:last-child { text-align: right; }
.stay__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; margin-top: 40px; }
.stay__foot p { margin: 0; color: var(--ink-soft); font-size: 1rem; max-width: 40em; }
.stay__foot .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Up the pass */
.pass { background: var(--paper-2); padding: clamp(96px, 12vw, 180px) 0; }
.pass__intro { max-width: 40rem; margin-bottom: clamp(56px, 7vw, 100px); }
.pass__intro h2 { margin-bottom: 1.6rem; }
.road { position: relative; }
.road svg.path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.road svg.path path { fill: none; stroke: var(--earth); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--rp, 1)); }
.road svg.path path.ghost { stroke: var(--line); stroke-dasharray: 4 8; stroke-dashoffset: 0; }
.stops { list-style: none; margin: 0; padding: 0; position: relative; }
.stop { position: relative; width: 40%; padding: 28px 0 56px; }
.stop + .stop { margin-top: -110px; }
.stop:nth-child(odd) { margin-left: 0; }
.stop:nth-child(even) { margin-left: 60%; }
.stop::before { content: ""; position: absolute; top: 40px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--earth); transition: background-color .4s; }
.stop:nth-child(odd)::before { right: -12%; }
.stop:nth-child(even)::before { left: -12%; }
.stop.is-on::before { background: var(--earth); }
.stop h3 { margin-bottom: .6rem; }
.stop p { color: var(--ink-soft); margin: 0; max-width: 28em; }
.stop .when { display: inline-block; margin-top: .9rem; font: 600 .78rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--earth); }

/* Guests */
.guests { padding: clamp(96px, 12vw, 170px) 0; }
.guests h2 { max-width: 12em; margin-bottom: clamp(48px, 6vw, 80px); }
.scores { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.score { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.score + .score { padding-left: 32px; border-left: 1px solid var(--line); }
.score b { display: block; font: 500 clamp(3.4rem, 6vw, 5.6rem)/1 var(--display); letter-spacing: -.03em; }
.score span { display: block; margin-top: .6rem; color: var(--ink-soft); font-size: 1rem; }
.score a { font-weight: 500; }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(56px, 7vw, 100px); }
.quotes blockquote { margin: 0; }
.quotes blockquote p { font: 400 clamp(1.4rem, 2vw, 1.8rem)/1.25 var(--display); }
.quotes cite { font-style: normal; font-size: .95rem; color: var(--ink-soft); }

/* Visit */
.visit { background: var(--ink); color: var(--white); padding: clamp(96px, 11vw, 160px) 0 0; }
.visit .label { color: #e7b48f; }
.visit__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.visit__text { grid-column: 1 / span 5; }
.visit__text h2 { margin-bottom: 2rem; }
.visit__text p { color: #e9e3d6; }
.visit dl { margin: 2.4rem 0 0; display: grid; gap: 22px; }
.visit dt { font: 600 .78rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #e7b48f; margin-bottom: 6px; }
.visit dd { margin: 0; font-size: 1.08rem; }
.visit dd a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.visit .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.4rem; }
.visit .btn { color: var(--white); }
.visit .btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.visit .btn--solid { background: var(--white); color: var(--ink); border-color: var(--white); }
.visit .btn--solid:hover { background: #e7b48f; border-color: #e7b48f; color: var(--ink); }
.map { grid-column: 7 / -1; min-height: 520px; position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

.foot { padding: clamp(80px, 9vw, 130px) 0 40px; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,253,248,.24); }
.foot__mark { font: 500 clamp(3rem, 8vw, 7.4rem)/.9 var(--display); letter-spacing: -.02em; }
.foot__links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 48px; list-style: none; margin: 0; padding: 0; }
.foot__links a { text-decoration: none; color: #e9e3d6; }
.foot__links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: .9rem; color: #cfc7b8; }

/* Floating WhatsApp on phones */
.wa-float { display: none; }

/* Reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.is-in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1080px) {
  .head nav { display: none; }
  .head { grid-template-columns: auto 1fr; }
  .mark { text-align: left; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 3px; background: none; color: var(--ink); cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; content: ""; }
  .menu-btn span::before { position: absolute; top: -6px; }
  .menu-btn span::after { position: absolute; top: 6px; }
  .drawer { position: fixed; inset: var(--head) 0 0; z-index: 49; background: var(--paper); padding: 32px var(--gutter); display: flex; flex-direction: column; gap: 6px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility 0s .3s; }
  .drawer.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s, transform .3s; }
  .drawer a { font: 500 2.6rem/1.25 var(--display); text-decoration: none; }
  .drawer .btn { font: 500 1rem/1 var(--text); margin-top: 18px; align-self: flex-start; }
  .estate__text { grid-column: 1 / -1; position: static; margin-bottom: 56px; }
  .collage { grid-column: 1 / -1; }
  .wine__cols > div:first-child, .wine__cols > div:last-child { grid-column: 1 / -1; }
  .visit__text, .map { grid-column: 1 / -1; }
  .map { min-height: 420px; }
  .stay__head h2, .stay__head p { grid-column: 1 / -1; }
}
@media (min-width: 1081px) { .drawer { display: none; } }

/* Phone */
@media (max-width: 720px) {
  :root { --head: 68px; }
  body { font-size: 1.0625rem; }
  .mark b { font-size: 1.45rem; }
  .mark small { font-size: .56rem; letter-spacing: .28em; }
  .head__right .btn { display: none; }
  .head__right a.txt { display: none; }
  .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); }
  .icon-btn svg { width: 20px; height: 20px; }
  .head__right { gap: 10px; }

  .hero { height: 170vh; }
  .hero__stage { height: auto; min-height: 0; position: relative; overflow: visible; }
  .hero__grid { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 36px; padding-top: calc(var(--head) + 12px); padding-bottom: 24px; }
  .hero { height: auto; }
  .gable { width: 100%; justify-self: auto; aspect-ratio: 4 / 4.6; }
  .hero__copy h1 { font-size: clamp(2.9rem, 13.2vw, 3.6rem); }

  .collage { grid-template-columns: 1fr; }
  .collage .c2 { margin-top: 0; }
  .collage .c2, .collage .c3 { aspect-ratio: 4 / 3.4; }

  .wine__big { font-size: clamp(3.2rem, 15.6vw, 4.6rem); }
  .banner { height: 78vh; }

  .ledger__head { display: none; }
  .ledger__row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .ledger__row h3 { grid-column: 1 / -1; }
  .ledger__row .ledger__cell:nth-of-type(2) { grid-column: 1; }
  .ledger__price { grid-row: 2 / span 2; grid-column: 2; align-self: center; }
  .ledger__row:hover { padding-left: 0; }

  .road svg.path { display: none; }
  .stops { border-left: 2px solid var(--earth); margin-left: 7px; }
  .stop, .stop:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 44px 32px; }
  .stop + .stop { margin-top: 0; }
  .stop::before, .stop:nth-child(odd)::before, .stop:nth-child(even)::before { left: -9.5px; right: auto; top: 10px; }

  .scores { grid-template-columns: 1fr; }
  .score, .score + .score { padding: 26px 0; border-left: 0; }
  .quotes { grid-template-columns: 1fr; }
  .foot__links { grid-template-columns: 1fr; }

  .wa-float { display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1f6f43; color: #fff; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
  .wa-float svg { width: 28px; height: 28px; }
}

/* Doors, stop photos, guests */
.doors { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: clamp(12px, 1.6vw, 24px); margin-bottom: clamp(48px, 6vw, 88px); align-items: end; }
.doors figure { margin: 0; }
.doors img { width: 100%; aspect-ratio: 3 / 2.3; object-fit: cover; }
.doors figure:nth-child(2) img { aspect-ratio: 4 / 4.5; }
.stop__img { margin: 0 0 22px; max-width: 420px; }
.stop__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.guests__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: end; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.guests__top h2 { grid-column: 1 / span 7; margin: 0; max-width: none; }
.guests__top .score { grid-column: 9 / -1; padding: 0; border: 0; }
.quotes blockquote { border-top: 2px solid var(--ink); padding-top: 28px; }
.quotes blockquote p.tr { font: 400 1rem/1.55 var(--text); color: var(--ink-soft); margin: .2rem 0 1rem; }
@media (max-width: 720px) {
  .doors { grid-template-columns: 1fr 1fr; }
  .doors figure:first-child { grid-column: 1 / -1; }
  .guests__top h2, .guests__top .score { grid-column: 1 / -1; }
  .stop__img { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .mist { display: none; }
  .mist-still { display: block; }
  .gable, .gable img, .banner img { transform: none; }
  .road svg.path path { stroke-dashoffset: 0; }
  .stop::before { background: var(--earth); }
}
section[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, .display, .ledger__price, .score b, .foot__mark, .voice blockquote, .quotes blockquote p { font-variant-numeric: lining-nums; }
@media (max-width: 1080px) {
  .wine__cols, .visit__grid, .stay__head, .guests__top, .estate__grid { grid-template-columns: minmax(0, 1fr); }
  .wine__cols > *, .visit__grid > *, .stay__head > *, .guests__top > *, .estate__grid > * { grid-column: 1 / -1 !important; }
  .visit__grid { gap: 48px; }
}
