/* =====================================================================
   Handboekbinderij Clement — stylesheet
   Palette, typografie en opmaak voor alle pagina's.
   Pas hier de kleuren en fonts centraal aan.
   ===================================================================== */

:root {
  /* Kleuren (warme neutralen) */
  --paper:        #F5F0E6;   /* achtergrond */
  --paper-2:      #EBE3D5;   /* alternatieve vlakken / beeldvullers */
  --paper-3:      #E3DACA;
  --ink:          #262019;   /* koptekst / donker */
  --soft:         #4A4438;   /* lopende tekst */
  --muted:        #6F675A;   /* bijschriften */
  --accent:       #8A3B2E;   /* oxbloed accent, spaarzaam */
  --line:         rgba(38, 32, 25, 0.12);
  --line-strong:  rgba(38, 32, 25, 0.22);
  --footer-bg:    #262019;
  --footer-text:  #D8CFBE;
  --footer-muted: #8F8674;

  /* Typografie */
  --serif: "Spectral", Georgia, serif;
  --sans:  "Archivo", system-ui, -apple-system, sans-serif;

  /* Maatvoering */
  --maxw: 1200px;
  --maxw-narrow: 1000px;
  --gutter: 32px;
}

/* ---------- Reset & basis ---------- */
* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

@keyframes clFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: var(--maxw-narrow); }
main { flex: 1 0 auto; }
.fade { animation: clFade .5s ease both; }
.is-hidden { display: none; }

/* ---------- Header / navigatie ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 230, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.wordmark { line-height: 0; display: inline-block; }
.wordmark img { height: 42px; mix-blend-mode: multiply; }

.nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--accent); }
.nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Typografie ---------- */
.overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 20px 0 0;
}
.page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.04;
  margin: 18px 0 0;
}
.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 24px 0 0;
}

/* ---------- Home: hero + filter ---------- */
.hero { padding: 72px 0 40px; }
.hero .display { max-width: 15ch; }

.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.filterbar__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}
.chip {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 7px 15px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--soft);
  cursor: pointer;
  transition: all .18s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* ---------- Masonry werk-raster ---------- */
.masonry {
  column-count: 3;
  column-gap: 26px;
  padding: 34px 0 20px;
}
.work {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 30px;
}
.work__frame {
  overflow: hidden;
  background: var(--paper-2);
}
.work__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform .5s ease;
}
.work:hover .work__img { transform: scale(1.03); }
.work__link { display: block; text-decoration: none; color: inherit; padding-bottom: 15px;
    border-bottom: 1px solid #bababa;}
.work__link:hover .work__title { color: var(--accent);}

/* Placeholder voor werk zonder foto */
.work__placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 12px, var(--paper-3) 12px, var(--paper-3) 24px);
  color: var(--muted);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 12px;
}

/* Beeldverhoudingen */
.ar-45  { aspect-ratio: 4 / 5; }
.ar-34  { aspect-ratio: 3 / 4; }
.ar-11  { aspect-ratio: 1 / 1; }
.ar-43  { aspect-ratio: 4 / 3; }
.ar-54  { aspect-ratio: 5 / 4; }
.ar-169 { aspect-ratio: 16 / 9; }
.ar-1610{ aspect-ratio: 16 / 10; }

.work__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding-top: 12px;
}
.work__title { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); }
.work__cat {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Nieuws ---------- */
.news-intro { padding: 72px 0 20px; }
.news-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 40px 0 20px;
}
.article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.article:nth-child(even) .article__media { order: 2; }
.article__media { background: var(--paper-2); overflow: hidden; }
.article__img { width: 100%; object-fit: cover; }
.article__date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.article__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  margin: 10px 0 0;
}
.article__body { margin: 16px 0 0; }
.article__body p { font-size: 16px; line-height: 1.7; color: var(--soft); margin: 0 0 14px; }

/* ---------- Over mij ---------- */
.about-intro { padding: 72px 0 0; }
.about-intro .page-title { max-width: 16ch; }
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}
.about-row--tint { background: var(--paper-2); }
.about-row--tint .container { padding-top: 8px; padding-bottom: 8px; }
.about-media { background: var(--paper-2); overflow: hidden; }
.about-row--tint .about-media { background: var(--paper); }
.about-media img { width: 100%; object-fit: cover; }
.about-media--reverse { order: 2; }
.about-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.about-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  margin: 12px 0 0;
}
.about-text { font-size: 16px; line-height: 1.7; color: var(--soft); margin: 18px 0 0; }
.services { list-style: none; padding: 0; margin: 20px 0 0; }
.services li {
  font-size: 16px;
  color: var(--soft);
  padding: 12px 0;
  border-top: 1px solid var(--line-strong);
}
.services li:last-child { border-bottom: 1px solid var(--line-strong); }

/* Wrapper zodat getinte rij full-bleed is maar inhoud uitgelijnd blijft */
.bleed { width: 100%; }

/* ---------- Contact ---------- */
.contact-intro { padding: 72px 0 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  padding: 44px 0 20px;
}
.field { display: block; margin-bottom: 22px; }
.field > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: #FBF8F1;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  border-radius: 2px;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.btn {
  background: var(--accent);
  color: var(--paper);
  border: none;
  cursor: pointer;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
}
.btn:hover { filter: brightness(1.08); }

.info-block { border-top: 1px solid var(--line-strong); padding: 16px 0; }
.info-block:last-of-type { border-bottom: 1px solid var(--line-strong); }
.info-block__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.info-block__name { font-family: var(--serif); font-size: 18px; margin-top: 6px; }
.info-block__text { font-size: 15px; line-height: 1.7; color: var(--soft); margin-top: 4px; }

.map {
  width: 100%;
  height: 600px;
  border: 1px solid var(--line-strong);
  background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 14px, var(--paper-3) 14px, var(--paper-3) 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 40px;
}
.map__pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(138, 59, 46, 0.18);
}
.map__label { font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 40px;
  flex-shrink: 0;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 52px 0 40px;
}
.footer-mark__over {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--footer-muted);
}
.footer-mark__name { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--paper); margin-top: 3px; }
.footer-contact { font-size: 14px; line-height: 1.8; color: #B8AF9D; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { text-decoration: none; font-size: 14px; color: var(--footer-text); }
.footer-nav a:hover { color: var(--paper); }
.footer-legal { border-top: 1px solid rgba(245, 240, 230, 0.12); }
.footer-legal .container { padding-top: 18px; padding-bottom: 18px; font-size: 12px; color: var(--footer-muted); }

/* ---------- Responsief ---------- */
@media (max-width: 900px) {
  .masonry { column-count: 2; }
  .article,
  .contact-grid,
  .about-row { grid-template-columns: 1fr; gap: 28px; }
  .article:nth-child(even) .article__media,
  .about-media--reverse { order: 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .masonry { column-count: 1; }
  .hero { padding: 48px 0 32px; }
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* =====================================================================
   Portfolio-detailpagina
   ===================================================================== */
.detail-hero {
  background: var(--paper-2);
  padding: 64px var(--gutter);
  text-align: center;
}
.detail-hero__img {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 34px 70px rgba(38, 32, 25, 0.20);
}
.detail-hero__ph {
  max-width: 920px;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 14px, var(--paper-3) 14px, var(--paper-3) 28px);
  color: var(--muted);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.detail-head { text-align: center; padding: 56px var(--gutter) 0; }
.detail-head__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  margin: 0;
}
.detail-head__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 14px;
}
.detail-quote {
  max-width: 46ch;
  margin: 30px auto 0;
  padding: 0 var(--gutter) 72px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.5;
  color: var(--soft);
}

.detail-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.detail-split__panel {
  padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper-2);
}
.detail-split__media { min-height: 360px; overflow: hidden; background: var(--paper-3); }
.detail-split__media img { width: 100%; height: 100%; object-fit: cover; }
.detail-split__ph {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 14px, var(--paper-3) 14px, var(--paper-3) 28px);
  color: var(--muted);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.detail-h {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}
.detail-text { font-size: 15.5px; line-height: 1.75; color: var(--soft); margin: 0; }
.detail-meta { margin: 0; }
.detail-meta div { font-size: 15.5px; line-height: 1.9; color: var(--soft); }
.detail-meta strong { font-weight: 600; color: var(--ink); }

.detail-back { text-align: center; padding: 56px var(--gutter); }
.detail-back a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.detail-back a:hover { color: var(--accent); }

@media (max-width: 780px) {
  .detail-split { grid-template-columns: 1fr; }
  .detail-split--reverse .detail-split__media { order: -1; }
}

