/* ==========================================================================
   Christien Schildert — stijlblad
   Rustig, warm en ruim: het werk staat centraal, niet de website.
   ========================================================================== */

/* --- Lettertype (Lora, lokaal opgeslagen: snel en zonder Google) --- */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/lora-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/lora-latin-italic.woff2") format("woff2");
}

/* --- Kleuren en maten (pas hier de huisstijl aan) --- */
:root {
  --bg: #faf8f4;          /* warm wit */
  --bg-alt: #f3efe8;      /* zand */
  --card: #ffffff;
  --text: #2e2a24;        /* warm donkerbruin */
  --muted: #6b655b;       /* grijsbruin */
  --accent: #8b5e3c;      /* terracotta */
  --accent-dark: #6f4a2f;
  --border: #ddd8ce;
  --dark: #1d1a16;        /* lightbox-achtergrond */

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --max-text: 680px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 4px;
  --ease: 200ms ease;
}

/* --- Basis --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.2em; transition: color var(--ease); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p + p { margin-top: 1rem; }

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--text); color: #fff; padding: 0.5rem 1rem; z-index: 200;
}
.skip-link:focus { top: 1rem; color: #fff; }

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

/* Duidelijk zichtbare plek voor nog ontbrekende inhoud */
.placeholder {
  display: inline-block;
  background: #fff4d6;
  border: 1px dashed #c9a227;
  color: #6b5200;
  padding: 0.1em 0.45em;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.875em;
  font-style: normal;
}
.placeholder-box {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #fff8e6; border: 1px dashed #c9a227; color: #6b5200;
  padding: 1.5rem; font-size: 0.9375rem; border-radius: var(--radius);
}

/* --- Layout --- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(var(--max-text) + 2 * var(--gutter)); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--bg-alt); }
.center { text-align: center; }

.label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 44ch; }
.center .lead { margin-inline: auto; }
.divider { width: 48px; height: 2px; background: var(--accent); margin: 1.5rem 0; border: 0; }
.center .divider { margin-inline: auto; }

/* --- Knoppen --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 500;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid var(--accent);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn svg { flex-shrink: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.center .actions { justify-content: center; }

/* --- Kop (header) --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.logo { text-decoration: none; color: var(--text); line-height: 1.15; }
.logo:hover { color: var(--text); }
.logo__name { display: block; font-family: var(--serif); font-size: 1.375rem; }
.logo__tag { display: block; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav ul { display: flex; gap: 2rem; list-style: none; }
.nav a {
  color: var(--text); text-decoration: none; font-size: 0.9375rem;
  padding-block: 0.4rem; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; margin-right: -10px; color: var(--text);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 1.5px; background: currentColor; margin-inline: auto;
  position: relative; transition: transform var(--ease), background var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
  .nav a { display: block; padding: 0.85rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--border); }
  .nav a[aria-current="page"] { border-bottom-color: var(--border); }
}

/* --- Hero (home) --- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); margin-bottom: 1.25rem; }
.hero__sub { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--muted); max-width: 40ch; }
.hero__img img { width: 100%; box-shadow: 0 18px 50px rgba(46, 42, 36, 0.12); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__img { order: -1; }
}

/* --- Twee kolommen (tekst + beeld) --- */
.split { display: grid; grid-template-columns: 1fr 380px; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split--wide-img { grid-template-columns: 1fr 1fr; align-items: center; }
.split--expo { grid-template-columns: 1fr 320px; align-items: center; }
.split .text { max-width: var(--max-text); }
.split__img img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .split, .split--wide-img, .split--expo { grid-template-columns: 1fr; }
  .split__img { display: block; max-width: 420px; }
}

.quote { border-left: 2px solid var(--accent); padding-left: 1.25rem; margin-top: 2rem; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5; }
.quote footer { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }

.quote-band { text-align: center; }
.quote-band blockquote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.4;
  max-width: 28ch; margin-inline: auto;
}
.quote-band footer { margin-top: 1rem; color: var(--muted); font-size: 0.9375rem; }

/* --- Paginakop (subpagina's) --- */
.page-header { padding-block: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-header h1 { margin-bottom: 1rem; }

/* --- Werkwijze-kaarten --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.card { background: var(--card); border: 1px solid var(--border); padding: 2rem; border-radius: var(--radius); }
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.9688rem; color: var(--muted); }
.card__num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.125rem; display: block; margin-bottom: 0.5rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* --- Sfeerfoto's --- */
.moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.moods img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) { .moods { grid-template-columns: 1fr; } }

/* --- Galerij ---
   Rijen van gelijke hoogte; elk werk krijgt breedte naar verhouding (--r = breedte / hoogte),
   zodat er nooit iets van een schilderij wordt afgesneden. */
.gallery { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.gallery::after { content: ""; flex-grow: 999999; }
.work { flex: calc(var(--r, 1) * 100) 1 calc(var(--r, 1) * 250px); min-width: 0; }
.gallery--home .work { flex-basis: calc(var(--r, 1) * 300px); }
@media (max-width: 600px) {
  .gallery { gap: 0.75rem; }
  .work { flex-basis: calc(var(--r, 1) * 150px); }
  .gallery--home .work { flex-basis: calc(var(--r, 1) * 150px); }
}
.work__link { display: block; position: relative; cursor: zoom-in; background: var(--bg-alt); }
.work__link img { width: 100%; height: auto; transition: opacity var(--ease); }
.work__link:hover img { opacity: 0.88; }
.work__link::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(46, 42, 36, 0.06);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(29, 26, 22, 0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3.5rem 1rem 1.5rem;
  color: #f3efe8;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.lightbox__img {
  width: min(92vw, 1400px, var(--max-w, 9999px));
  height: min(74vh, var(--max-h, 9999px));
  object-fit: contain;
}
.lightbox__caption { text-align: center; margin-top: 1rem; max-width: 60ch; }
.lightbox__title { font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.lightbox__meta { font-size: 0.875rem; color: #c9c1b4; margin-top: 0.25rem; }
.lightbox__status { display: inline-block; margin-top: 0.5rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #e0c3a6; }
.lightbox__btn {
  position: absolute; background: none; border: 0; color: #f3efe8; cursor: pointer;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background var(--ease);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.1); }
.lightbox__close { top: 0.5rem; right: 0.5rem; }
.lightbox__prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 1.1rem; left: 1.25rem; font-size: 0.8125rem; color: #a9a196; }
@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 0.75rem; transform: none; }
  .lightbox__img { height: min(62vh, var(--max-h, 9999px)); }
}
body.no-scroll { overflow: hidden; }

/* --- Exposities & nieuws --- */
.items { display: grid; gap: 1.5rem; }
.item { background: var(--card); border: 1px solid var(--border); padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: var(--radius); }
.item__date { font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.item h3 { margin: 0.35rem 0 0.25rem; font-size: 1.375rem; }
.item__place { color: var(--muted); font-size: 0.9375rem; margin-bottom: 0.75rem; }
.item__body { margin-top: 0.75rem; }
.item__link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; font-size: 0.9375rem; }
.empty { color: var(--muted); font-style: italic; }

/* --- Contact --- */
.contact-list { list-style: none; display: grid; gap: 1rem; margin-top: 2rem; }
.contact-list a { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 1.125rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* --- Voet (footer) --- */
.site-footer { background: var(--text); color: #d9d2c5; padding-top: 4rem; font-size: 0.9375rem; }
.site-footer a { color: #f3efe8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__name { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.footer__tag { font-family: var(--serif); font-style: italic; color: #b9b0a2; margin-top: 0.25rem; }
.footer__quote { margin-top: 1.25rem; color: #b9b0a2; font-style: italic; max-width: 32ch; }
.footer__heading { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #b9b0a2; margin-bottom: 1rem; font-weight: 500; }
.footer__list { list-style: none; display: grid; gap: 0.6rem; }
.footer__list a { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 1.25rem; font-size: 0.8125rem; color: #a9a196; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* --- 404 --- */
.notfound { min-height: 55vh; display: flex; align-items: center; }
.notfound__code { font-family: var(--serif); font-size: clamp(5rem, 15vw, 8rem); color: var(--border); line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
