/* ==========================================================================
   Grottenkaas — Kaashandel Sauer
   Sfeer: luxury/refined × organic/natural. Donkere mergelgrot, warm goud.
   ========================================================================== */

/* --- Fonts (self-hosted, GDPR-vriendelijk) ------------------------------- */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/cormorant-garamond-v21-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/cormorant-garamond-v21-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/cormorant-garamond-v21-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500;
  font-display: swap; src: url("../fonts/cormorant-garamond-v21-latin-500italic.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/dm-sans-v17-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/dm-sans-v17-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/dm-sans-v17-latin-600.woff2") format("woff2");
}

/* --- Design tokens ------------------------------------------------------- */
:root {
  --ink:        #14130f;   /* warme grot-bodem, hoofd-bg          */
  --ink-2:      #1b1810;   /* iets lichter sectie-vlak            */
  --stone:      #2a2417;   /* warm steen — randen/cards           */
  --blue-dark:  #202237;   /* Sauer donker — diepte-accent        */
  --gold:       #dca454;   /* Sauer goud — accent                 */
  --gold-soft:  #ecca8d;   /* lichter goud — grote koppen         */
  --cream:      #f4ece0;   /* bodytekst                           */
  --cream-dim:  rgba(244, 236, 224, .64);
  --cream-faint:rgba(244, 236, 224, .40);
  --hairline:   rgba(220, 164, 84, .26);

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1:  clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem);
  --step-2:  clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-3:  clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem);
  --step-hero: clamp(3.4rem, 1.6rem + 8vw, 9rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, blockquote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

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

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--gold); color: var(--ink);
  padding: .6rem 1rem; font-weight: 600; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* --- Atmosfeer: grain + vignette (fixed overlays) ------------------------ */
.grain, .vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 900;
}
.grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
}
.vignette {
  background: radial-gradient(120% 90% at 50% 38%, transparent 52%, rgba(0,0,0,.55) 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .grain { animation: grain 6s steps(6) infinite; }
}
@keyframes grain {
  0%,100%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)}
  40%{transform:translate(3%,-4%)} 60%{transform:translate(-3%,2%)} 80%{transform:translate(4%,-2%)}
}

/* --- Layout helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 10vw, 9rem); position: relative; }
.eyebrow {
  font-family: "DM Sans", sans-serif; font-weight: 500;
  font-size: var(--step--1); letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--gold); opacity: .8; }
.lede { font-size: var(--step-1); color: var(--cream-dim); line-height: 1.5; }
.measure { max-width: 58ch; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: clamp(1rem, 2.4vw, 1.6rem) var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(13, 12, 9, .72);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(.7rem, 1.6vw, 1rem);
}
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand b {
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: 1.4rem; letter-spacing: .02em; color: var(--cream);
}
.brand span {
  font-size: .62rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); margin-top: .28rem; font-weight: 500;
}
.nav-cta {
  font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; text-decoration: none; color: var(--cream);
  padding: .65rem 1.2rem; border: 1px solid var(--hairline); border-radius: 100px;
  transition: border-color .3s, color .3s, background .3s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: "DM Sans", sans-serif; font-weight: 600; font-size: var(--step--1);
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 1rem 2rem; border-radius: 100px; transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 rgba(220,164,84,0); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(220,164,84,.6); background: var(--gold-soft); }
.btn-ghost { color: var(--cream); border: 1px solid var(--hairline); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 62% 28%, rgba(220,164,84,.16), transparent 70%),
    linear-gradient(180deg, rgba(10,9,6,.55) 0%, rgba(10,9,6,.12) 32%, rgba(12,11,7,.72) 78%, var(--ink) 100%);
}
.hero__inner { padding-block: clamp(3rem, 10vh, 8rem); }
.hero__eyebrow { margin-bottom: clamp(1.2rem, 3vw, 2rem); }
.hero h1 {
  font-size: var(--step-hero); font-weight: 500; color: var(--cream);
  letter-spacing: -0.02em; line-height: .92; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.hero__sub {
  margin-top: clamp(1.1rem, 2.6vw, 1.8rem); max-width: 36ch;
  font-size: var(--step-1); color: var(--cream-dim); line-height: 1.45;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem; z-index: 2;
  font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-faint);
}
.scroll-cue .line { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue .line { animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
}
@keyframes cue { 0%,100%{transform:scaleY(.3);opacity:.4} 50%{transform:scaleY(1);opacity:1} }

/* --- Manifest ------------------------------------------------------------ */
.manifest { text-align: center; background: var(--ink); }
.manifest .wrap { max-width: 50rem; }
.manifest p.statement {
  font-family: "Cormorant Garamond", serif; font-weight: 400;
  font-size: var(--step-2); line-height: 1.28; color: var(--cream);
  margin-top: 1.8rem; text-wrap: balance;
}
.manifest p.statement em { font-style: italic; color: var(--gold-soft); }

/* --- Chapters (verhaal) -------------------------------------------------- */
.chapter {
  display: grid; grid-template-columns: 1fr; gap: clamp(1.8rem, 5vw, 4.5rem);
  align-items: center;
}
.chapter + .chapter { margin-top: clamp(3.5rem, 8vw, 7rem); }
@media (min-width: 820px) {
  .chapter { grid-template-columns: 1fr 1fr; }
  .chapter.reverse .chapter__media { order: 2; }
}
.chapter__media { position: relative; border-radius: 4px; overflow: hidden; }
.chapter__media::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 90px rgba(0,0,0,.5); pointer-events: none;
}
.chapter__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
@media (min-width: 820px) { .chapter.tall .chapter__media img { aspect-ratio: 3 / 4; } }
.chapter__media:hover img { transform: scale(1.04); }
.chapter__index {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: var(--step-1); color: var(--gold); opacity: .8;
}
.chapter h2 { font-size: var(--step-3); color: var(--cream); margin: .6rem 0 1.1rem; text-wrap: balance; }
.chapter p { color: var(--cream-dim); max-width: 46ch; }
.chapter p + p { margin-top: 1rem; }

/* --- Quote / stiltemoment ------------------------------------------------ */
.quote {
  position: relative; min-height: 78vh; display: grid; place-items: center;
  text-align: center; overflow: hidden; isolation: isolate;
}
.quote__media { position: absolute; inset: 0; z-index: -2; }
.quote__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.quote__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 50% 42%, rgba(220,164,84,.10), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, rgba(12,11,7,.62) 26%, rgba(12,11,7,.62) 74%, var(--ink) 100%);
}
.quote blockquote {
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500;
  font-size: var(--step-3); line-height: 1.12; color: var(--cream);
  max-width: 20ch; margin-inline: auto; text-wrap: balance;
}
.quote blockquote span { color: var(--gold-soft); }
.quote cite {
  display: block; margin-top: 1.6rem; font-style: normal;
  font-size: var(--step--1); letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}

/* --- Smaak / proefnotities ----------------------------------------------- */
.taste { background: var(--ink-2); }
.taste__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .taste__grid { grid-template-columns: 1.05fr .95fr; } }
.taste__media { border-radius: 4px; overflow: hidden; position: relative; }
.taste__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.taste h2 { font-size: var(--step-3); color: var(--cream); margin: .7rem 0 1.4rem; text-wrap: balance; }
.notes { list-style: none; padding: 0; display: grid; gap: 0; }
.notes li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: baseline;
  padding: 1.15rem 0; border-top: 1px solid var(--hairline);
}
.notes li:last-child { border-bottom: 1px solid var(--hairline); }
.notes .n {
  font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.3rem; color: var(--gold);
}
.notes .t b { display: block; font-weight: 600; color: var(--cream); font-size: var(--step-0); letter-spacing: .01em; }
.notes .t span { color: var(--cream-dim); font-size: var(--step--1); }

/* --- CTA / uitnodiging --------------------------------------------------- */
.invite { text-align: center; background: var(--ink); position: relative; }
.invite::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 50% 0%, rgba(32,34,55,.5), transparent 60%);
  pointer-events: none;
}
.invite .wrap { position: relative; max-width: 46rem; }
.invite h2 { font-size: var(--step-3); color: var(--cream); margin: 1.2rem 0; }
.invite h2 em { font-style: italic; color: var(--gold-soft); }
.invite p { color: var(--cream-dim); margin-inline: auto; max-width: 44ch; }
.invite__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--hairline); padding-block: clamp(2.5rem, 6vw, 4rem); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.5rem;
  align-items: center; justify-content: space-between;
}
.footer-brand b { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.5rem; color: var(--cream); }
.footer-brand span { display: block; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: .3rem; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: var(--step--1); }
.footer-links a { color: var(--cream-dim); text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-meta { width: 100%; margin-top: .5rem; font-size: .74rem; color: var(--cream-faint); letter-spacing: .04em; }

/* --- Scroll reveals ------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  [data-reveal].in { opacity: 1; transform: none; }
  [data-reveal][data-delay="1"] { transition-delay: .1s; }
  [data-reveal][data-delay="2"] { transition-delay: .2s; }
  [data-reveal][data-delay="3"] { transition-delay: .3s; }
}

/* --- Leesbaarheid over hero/quote-beeld ---------------------------------- */
.site-header:not(.scrolled) .brand b,
.site-header:not(.scrolled) .brand span,
.site-header:not(.scrolled) .nav-cta { text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.hero__inner, .quote blockquote, .quote cite { text-shadow: 0 2px 22px rgba(0, 0, 0, .45); }
