/* ==========================================================================
   AVELLIQUE · base.css
   Fonts, design tokens, reset en typografie
   ========================================================================== */

/* Zelf gehoste fonts (geen Google Fonts-verzoeken, beter voor AVG en snelheid) */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../assets/fonts/bodoni-moda-latin-var.woff2") format("woff2-variations"),
       url("../assets/fonts/bodoni-moda-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-display: swap;
  font-weight: 400 900;
  src: url("../assets/fonts/bodoni-moda-latin-italic-var.woff2") format("woff2-variations"),
       url("../assets/fonts/bodoni-moda-latin-italic-var.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/jost-latin-var.woff2") format("woff2-variations"),
       url("../assets/fonts/jost-latin-var.woff2") format("woff2");
}

:root {
  /* Kleur: afgeleid van het Avellique-logo (zwart met metallic goud) */
  --black: #0B0A09;          /* warme zwarte basis */
  --black-deep: #050504;
  --gold-deep: #B8862B;      /* donkerste goud uit het monogram */
  --gold: #D4AF55;           /* champagnegoud, hoofdaccent */
  --gold-soft: #7E5F1B;      /* goud als tekst op licht: donkerder voor leesbaarheid */
  --gold-light: #5E4512;     /* hover van gouden tekst op licht */
  --gold-line: rgba(184, 134, 43, 0.38);
  --gold-gradient: linear-gradient(100deg, #B8862B 0%, #D2A845 28%, #F1DB8F 52%, #D8B04F 76%, #B8862B 100%);

  --color-bg: #F7F3EC;       /* warm ivoor */
  --color-ivory: #FFFDF9;    /* panelen, velden en kaarten */
  --color-surface: #EFE8DC;
  --color-stone: #E4DACA;
  --color-border: #DCD1BE;
  --color-text: #1B1815;
  --color-muted: #6B6255;
  --color-accent: var(--gold);
  --color-on-accent: #0B0A09;
  --color-deep: var(--black-deep);
  --color-on-deep: #F2EBDD;
  --color-on-deep-muted: #A49A89;
  --color-success: #4F6B3A;
  --color-error: #A2452F;

  /* Typografie */
  --font-serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: clamp(0.9375rem, 0.9rem + 0.18vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  --fs-h4: clamp(1.1875rem, 1.08rem + 0.45vw, 1.4375rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --fs-h2: clamp(2.125rem, 1.45rem + 2.9vw, 4rem);
  --fs-h1: clamp(2.75rem, 1.6rem + 5vw, 6rem);
  --fs-display: clamp(3.25rem, 1.3rem + 8.2vw, 9.5rem);

  --lh-tight: 1.02;
  --lh-heading: 1.1;
  --lh-body: 1.65;

  /* Ruimte */
  --gutter: clamp(1.25rem, 0.6rem + 3.2vw, 3.5rem);
  --gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: clamp(2.5rem, 1.8rem + 2.6vw, 4.5rem);
  --space-xl: clamp(3.5rem, 2.4rem + 4.5vw, 7rem);
  --space-section: clamp(5rem, 3rem + 8vw, 11rem);

  --container: 90rem;
  --container-narrow: 46rem;

  /* Vorm en beweging */
  --radius: 2px;
  --header-h: 4.25rem;
  --announce-h: 2.25rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur: 420ms;
  --dur-slow: 900ms;

  --focus: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--gold);
  --z-header: 50;
  --z-overlay: 90;
  --z-drawer: 100;
  --z-toast: 120;
}

@media (min-width: 64em) {
  :root { --header-h: 5rem; }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
html { color-scheme: light; background: var(--color-bg); }
body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 380;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--color-on-accent); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }

/* Typografie */
h1, h2, h3, .h1, .h2, .h3, .display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h4, .h4 { font-family: var(--font-serif); font-weight: 400; font-size: var(--fs-h4); line-height: 1.25; }
.display { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.025em; }
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }

p { max-width: 62ch; text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.55; font-weight: 360; }
.small { font-size: var(--fs-sm); }
.meta { font-size: var(--fs-sm); color: var(--color-muted); letter-spacing: 0.01em; }
.muted { color: var(--color-muted); }
strong { font-weight: 500; }

.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.2em; }
.prose h3 { font-size: var(--fs-h4); margin-top: 1.8em; }
.prose ul { padding-left: 1.1em; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; text-decoration-color: var(--gold-line); }
.prose a:hover { color: var(--gold-light); text-decoration-color: currentColor; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--gold); color: var(--color-on-accent);
  font-size: var(--fs-sm);
}
.skip-link:focus { top: 1rem; }

/* Ontbrekende configuratie (e-mail, adres) zichtbaar markeren tijdens ontwikkeling */
.config-missing {
  border-bottom: 1px dashed var(--color-error);
  color: var(--color-error);
}

body.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
