/* Hallmark · macrostructure: Marquee Hero + stacked chapters · tone: warm luxury, quiet · anchor hue: terracotta 40°
 * theme: custom (vibe: slate-blue walls, terracotta armchairs, warm cream) · studied: yes · DNA-source: url
 * source-url: https://www.vineyard.co.za/ · structure only: full-bleed hero, floating header, stacked chapters, pill CTA
 * nav: N2-style header (menu left · mark centre · pill right) + full-screen overlay · footer: Ft5 statement
 */
/* tokens.css is linked before this file in each page */

@font-face {
  font-family: "Marcellus";
  src: url("../fonts/marcellus-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  min-width: 0;
}

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

.skip {
  position: absolute;
  left: var(--space-sm);
  top: -4rem;
  z-index: 100;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-ink);
  color: var(--color-on-dark);
  border-radius: var(--radius-pill);
}
.skip:focus { top: var(--space-sm); }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 2.75rem;
  padding: 0.6rem 1.5rem;
  border: var(--rule) solid transparent;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--color-accent-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover { background: var(--color-ink); color: var(--color-on-dark); border-color: var(--color-ink); }
.on-dark .btn--ghost:hover { background: var(--color-on-dark); color: var(--color-ink); border-color: var(--color-on-dark); }

.text-link {
  display: inline-block;
  padding-bottom: 0.15rem;
  border-bottom: var(--rule) solid currentColor;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.text-link:hover { color: var(--color-accent); }
.on-dark .text-link:hover { color: var(--color-on-dark); border-color: var(--color-accent); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--color-on-dark);
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -2rem 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--color-scrim-top), transparent);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.site-header[data-solid="true"] {
  background: var(--color-paper);
  color: var(--color-ink);
  box-shadow: 0 1px 0 var(--color-line);
}
.site-header[data-solid="true"]::before { opacity: 0; }
.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: 100%;
}
.menu-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.menu-btn__bars { display: grid; gap: 6px; width: 1.5rem; }
.menu-btn__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out);
}
.menu-btn:hover .menu-btn__bars span:last-child { transform: scaleX(0.7); transform-origin: left; }
.menu-btn__label { display: none; }
@media (min-width: 640px) { .menu-btn__label { display: inline; } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.num { font-family: var(--font-body); font-weight: 300; letter-spacing: -0.04em; }
.brand svg { width: 1.6rem; height: 1.6rem; flex: none; }
.site-header .btn { justify-self: end; }
@media (max-width: 479px) {
  .brand { gap: 0.4rem; font-size: 0.875rem; letter-spacing: 0.12em; }
  .brand svg { width: 1.3rem; height: 1.3rem; }
  .site-header .btn { min-height: 2.5rem; padding: 0.4rem 1rem; }
}
@media (max-width: 359px) {
  .site-header .brand svg { display: none; }
}

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--gutter) var(--space-lg);
  background: var(--color-ink);
  color: var(--color-on-dark);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.menu[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s;
}
.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.menu__close {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu__nav {
  display: grid;
  align-content: center;
  gap: clamp(0.25rem, 1.5vh, 1rem);
}
.menu__nav a {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1rem + 5.5vw, 4.75rem);
  line-height: 1.15;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.menu__nav a:hover { color: var(--color-accent); transform: translateX(0.5rem); }
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  padding-top: var(--space-md);
  border-top: var(--rule) solid var(--color-line-on-dark);
  color: var(--color-muted-on-dark);
  font-size: var(--text-sm);
}
.menu__foot a { text-decoration: none; }
.menu__foot a:hover { color: var(--color-on-dark); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  color: var(--color-on-dark);
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--color-scrim-bottom) 0%, transparent 62%),
    linear-gradient(var(--color-scrim-flat), var(--color-scrim-flat));
}
.hero__inner { padding-block: calc(var(--header-h) + var(--space-xl)) var(--space-xl); }
.hero__place {
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 14ch;
  font-size: var(--text-display);
  line-height: 1.02;
}
.hero__lede {
  max-width: 34rem;
  margin-top: var(--space-md);
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-on-dark);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.hero__cta .btn--ghost { color: var(--color-on-dark); }
.hero__cta .btn--ghost:hover { background: var(--color-on-dark); color: var(--color-ink); border-color: var(--color-on-dark); }

/* ---------- fact strip ---------- */
.facts {
  background: var(--color-paper-2);
  border-bottom: var(--rule) solid var(--color-line);
}
.facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.facts__list li {
  padding: var(--space-md) var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.25;
  text-align: center;
  border-right: var(--rule) solid var(--color-line);
  border-bottom: var(--rule) solid var(--color-line);
}
.facts__list li:nth-child(2n) { border-right: 0; }
.facts__list li:nth-last-child(-n + 2) { border-bottom: 0; }
@media (min-width: 900px) {
  .facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts__list li { border-bottom: 0; border-right: var(--rule) solid var(--color-line); }
  .facts__list li:nth-child(2n) { border-right: var(--rule) solid var(--color-line); }
  .facts__list li:last-child { border-right: 0; }
}

/* ---------- intro ---------- */
.section { padding-block: var(--space-2xl); }
.intro { text-align: center; }
.intro p {
  max-width: 24em;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: var(--text-statement);
  line-height: 1.3;
  text-wrap: balance;
}
.intro .text-link { margin-top: var(--space-lg); color: var(--color-accent); }
.intro .text-link:hover { color: var(--color-ink); }

/* ---------- chapters ---------- */
.chapters { display: grid; gap: var(--space-2xl); padding-bottom: var(--space-2xl); }
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
}
.chapter__media { position: relative; }
.chapter__media img { border-radius: var(--radius-img); width: 100%; }
.chapter__media .chapter__small {
  display: none;
}
.chapter__text { max-width: var(--measure); }
.chapter h2 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
.chapter p { color: var(--color-muted); font-size: var(--text-lg); line-height: 1.6; }
.chapter .text-link { margin-top: var(--space-md); color: var(--color-accent); }
.chapter .text-link:hover { color: var(--color-ink); }

@media (min-width: 900px) {
  .chapter { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--space-md); }
  .chapter__media { grid-column: 1 / span 7; grid-row: 1; }
  .chapter__text { grid-column: 9 / span 4; grid-row: 1; }
  .chapter--flip .chapter__media { grid-column: 6 / span 7; }
  .chapter--flip .chapter__text { grid-column: 1 / span 4; justify-self: end; }
  .chapter__media .chapter__small {
    display: block;
    position: absolute;
    width: 34%;
    bottom: -3.5rem;
    right: -3rem;
    border: 0.5rem solid var(--color-paper);
    box-shadow: 0 1.25rem 2.5rem -1rem var(--color-shadow);
  }
  .chapter--flip .chapter__media .chapter__small { right: auto; left: -3rem; }
}

/* ---------- surroundings ---------- */
.around {
  background: var(--color-ink);
  color: var(--color-on-dark);
}
.around__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}
.around__media img { border-radius: var(--radius-img); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .around__media img { aspect-ratio: 4 / 5; } }
.around h2 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
.around__lede { max-width: var(--measure); color: var(--color-muted-on-dark); font-size: var(--text-lg); line-height: 1.6; }
.places { margin-top: var(--space-lg); border-top: var(--rule) solid var(--color-line-on-dark); }
.places li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-bottom: var(--rule) solid var(--color-line-on-dark);
}
.places strong {
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1.2;
}
.places span { flex: none; color: var(--color-muted-on-dark); font-size: var(--text-sm); text-align: right; }
@media (min-width: 900px) {
  .around__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-2xl); }
}

/* ---------- video ---------- */
.video__head { max-width: 40rem; margin-bottom: var(--space-lg); }
.video__head h2 { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
.video__head p { color: var(--color-muted); font-size: var(--text-lg); }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--color-ink);
}
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player__btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--color-scrim-flat);
  color: var(--color-on-dark);
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out);
}
.player__btn:hover { background: transparent; }
.player__play {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.9rem 1.75rem 0.9rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 500;
  white-space: nowrap;
  transition: transform var(--dur-base) var(--ease-out);
}
.player__btn:hover .player__play { transform: scale(1.04); }
.player__play svg { width: 1.25rem; height: 1.25rem; }
.video__note { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-xs); }

/* ---------- gallery ---------- */
.gallery { background: var(--color-paper-2); }
.gallery h2 { font-size: var(--text-2xl); margin-bottom: var(--space-lg); }
.gallery__grid { columns: 2; column-gap: var(--space-xs); }
.gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 var(--space-xs);
  padding: 0;
  border: 0;
  background: none;
  break-inside: avoid;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius-img);
}
.gallery__item img { width: 100%; transition: transform var(--dur-slow) var(--ease-out); }
.gallery__item:hover img { transform: scale(1.04); }
@media (min-width: 768px) { .gallery__grid { columns: 3; column-gap: var(--space-sm); } .gallery__item { margin-bottom: var(--space-sm); } }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: oklch(14% 0.02 235 / 0.96);
  color: var(--color-on-dark);
  overflow: hidden;
}
.lightbox::backdrop { background: transparent; }
.lightbox__stage { position: absolute; inset: 4rem 0 3rem; display: grid; place-items: center; padding-inline: 4rem; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__count { position: absolute; left: var(--gutter); top: 1.25rem; font-size: var(--text-sm); color: var(--color-muted-on-dark); }
.lightbox__cap { position: absolute; inset: auto 0 0.9rem; text-align: center; font-size: var(--text-sm); color: var(--color-muted-on-dark); padding-inline: 4rem; }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--rule) solid var(--color-line-on-dark);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-on-dark);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.lb-btn:hover { background: var(--color-ink-2); }
.lb-btn svg { width: 1.25rem; height: 1.25rem; }
.lb-btn--close { top: 0.75rem; right: var(--gutter); }
.lb-btn--prev { left: 0.75rem; top: 50%; translate: 0 -50%; }
.lb-btn--next { right: 0.75rem; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) { .lightbox__stage { padding-inline: 0.5rem; } .lb-btn--prev { left: 0.25rem; } .lb-btn--next { right: 0.25rem; } }

/* ---------- booking ---------- */
.book { background: var(--color-ink); color: var(--color-on-dark); }
.book__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
.book h2 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
.book__lede { max-width: var(--measure); color: var(--color-muted-on-dark); font-size: var(--text-lg); }
.contacts { margin-top: var(--space-lg); display: grid; gap: var(--space-sm); }
.contacts a { width: fit-content; max-width: 100%; text-decoration: none; font-family: var(--font-body); font-weight: 400; font-size: var(--text-lg); letter-spacing: 0.01em; overflow-wrap: anywhere; border-bottom: var(--rule) solid var(--color-line-on-dark); transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.contacts a:hover { color: var(--color-accent); border-color: var(--color-accent); }
.form { display: grid; gap: var(--space-md); padding: var(--space-lg); border: var(--rule) solid var(--color-line-on-dark); border-radius: var(--radius-img); background: var(--color-ink-2); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font-size: var(--text-sm); font-weight: 500; }
.field input {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.6rem 0.65rem;
  border: var(--rule) solid var(--color-line-strong);
  border-radius: var(--radius-img);
  background: var(--color-paper);
  color: var(--color-ink);
  font: inherit;
  color-scheme: light;
}
.field input:hover { border-color: var(--color-on-dark); }
.field input[aria-invalid="true"] { border-color: oklch(62% 0.2 28); box-shadow: 0 0 0 2px oklch(62% 0.2 28 / 0.45); }
.field__err { min-height: 1.25rem; font-size: var(--text-xs); color: oklch(85% 0.1 28); }
.form .btn { width: 100%; min-height: 3.25rem; }
.form__hint { color: var(--color-muted-on-dark); font-size: var(--text-xs); }
@media (min-width: 900px) {
  .book__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; }
}
@media (max-width: 420px) { .form { padding: var(--space-md); } .form__row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { background: var(--color-ink); color: var(--color-on-dark); border-top: var(--rule) solid var(--color-line-on-dark); padding-block: var(--space-xl) var(--space-md); }
.site-footer__word {
  font-family: var(--font-display);
  font-size: var(--text-wordmark);
  line-height: 0.95;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-bottom: var(--space-lg);
}
.site-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--space-md); padding-top: var(--space-md); border-top: var(--rule) solid var(--color-line-on-dark); font-size: var(--text-sm); color: var(--color-muted-on-dark); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-on-dark); margin-bottom: var(--space-xs); }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--color-on-dark); text-decoration: underline; text-underline-offset: 0.25em; }
.site-footer__legal { display: grid; gap: 0.25rem; }
.site-footer__base { margin-top: var(--space-lg); color: var(--color-muted-on-dark); font-size: var(--text-xs); }
@media (min-width: 768px) { .site-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- legal page ---------- */
.legal { padding-block: calc(var(--header-h) + var(--space-xl)) var(--space-2xl); }
.legal__body { max-width: 44rem; }
.legal h1 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
.legal h2 { font-size: var(--text-xl); margin: var(--space-lg) 0 var(--space-xs); }
.legal p, .legal li { color: var(--color-muted); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-top: var(--space-xs); }
.legal a { color: var(--color-accent); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-settle 2.4s var(--ease-out) both; }
  @keyframes hero-settle { from { transform: scale(1.07); } to { transform: scale(1); } }
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu, .menu[data-open="true"] { transition: opacity var(--dur-fast) linear; }
  .menu__nav a:hover { transform: none; }
}
