/* ============================================================
   Meer Merel — Merel Janssen
   style.css
   ============================================================ */

/* ── Variabelen ─────────────────────────────────────────────── */
:root {
  --bg:          #f5f4f2;
  --text:        #1c1c1c;
  --text-mid:    #666;
  --border:      #dfdedd;
  --pink:        #c4607a;
  --blue:        #5578a0;
  --placeholder: #e4e3e1;
  --nav-h:       58px;
  --max-w:       1100px;
  --pad-x:       clamp(1.5rem, 5vw, 3.5rem);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; padding: 0; }

/* ── Basis typografie ───────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Navigatie ──────────────────────────────────────────────── */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(245, 244, 242, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}

.nav-logo {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 300;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--pink); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--pink);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 210;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.25s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--placeholder);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-placeholder-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b0afad;
}

.hero-content {
  position: absolute;
  bottom: 2.75rem;
  left: var(--pad-x);
}

.hero-name {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--text);
}

.hero-alias {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* ── Secties ────────────────────────────────────────────────── */
.section {
  padding: clamp(4rem, 9vh, 7rem) 0;
  border-top: 1px solid var(--border);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-heading {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 3rem;
}

/* ── Artist statement ───────────────────────────────────────── */
.statement {
  max-width: 620px;
}

.statement p {
  font-size: clamp(1rem, 1.7vw, 1.1rem);
  line-height: 1.8;
  color: var(--text);
}

.statement p + p {
  margin-top: 1.2rem;
}

/* ── Archief ─────────────────────────────────────────────────── */
.archive-year {
  margin-bottom: 3.5rem;
}

.archive-year:last-child {
  margin-bottom: 0;
}

.archive-year-heading {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.archive-thumb {
  cursor: pointer;
  overflow: hidden;
}

.archive-thumb-img {
  width: 100%;
  display: block;
  background-color: var(--placeholder);
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease, opacity 0.3s;
  overflow: hidden;
}

.archive-thumb:hover .archive-thumb-img {
  transform: scale(1.025);
  opacity: 0.82;
}

.archive-thumb-caption {
  padding: 0.55rem 0 0;
}

.archive-thumb-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--text);
}

.archive-thumb-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--text-mid);
  margin-top: 0.1rem;
}

/* ── CV ──────────────────────────────────────────────────────── */
.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
}

.cv-block {
  margin-bottom: 2.5rem;
}

.cv-block-title {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.cv-table {
  width: 100%;
  border-collapse: collapse;
}

.cv-table tr { vertical-align: top; }

.cv-table td {
  padding: 0.35rem 0;
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--text);
}

.cv-table td:first-child {
  width: 80px;
  color: var(--text-mid);
  font-size: 0.78rem;
  padding-right: 1.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.cv-personal {
  font-size: 0.9rem;
  line-height: 1.8;
}

.cv-personal-row {
  display: flex;
  gap: 1.25rem;
  padding: 0.25rem 0;
}

.cv-personal-label {
  min-width: 90px;
  color: var(--text-mid);
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* ── Contact ──────────────────────────────────────────────────── */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.contact-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  min-width: 80px;
  flex-shrink: 0;
}

.contact-value {
  font-size: 0.95rem;
}

.contact-value a {
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.contact-value a:hover {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

/* ── Agenda ───────────────────────────────────────────────────── */
.agenda-col {
  max-width: 680px;
}

.agenda-group {
  margin-bottom: 3rem;
}

.agenda-group:last-child {
  margin-bottom: 0;
}

.agenda-group-title {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.agenda-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.agenda-item:first-child {
  padding-top: 0;
}

.agenda-date {
  font-size: 0.76rem;
  color: var(--text-mid);
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}

.agenda-title {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.agenda-location {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-bottom: 0.35rem;
}

.agenda-badge {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
}

.agenda-badge.lopend {
  background: rgba(85, 120, 160, 0.1);
  color: var(--blue);
}

.agenda-badge.aankomend {
  background: rgba(196, 96, 122, 0.1);
  color: var(--pink);
}

.agenda-empty {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 0.75rem 0;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-mid);
}

/* ── Lightbox ─────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(245, 244, 242, 0.97);
  z-index: 300;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lightbox.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  animation: lbFadeIn 0.22s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lb-close {
  position: fixed;
  top: 1.1rem;
  right: 1.4rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: color 0.2s;
  z-index: 310;
}

.lb-close:hover { color: var(--pink); }
.lb-close svg { width: 20px; height: 20px; }

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: color 0.2s;
  z-index: 310;
}

.lb-arrow:hover { color: var(--blue); }
.lb-arrow svg { width: 26px; height: 26px; }
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }
.lb-arrow.hidden { visibility: hidden; pointer-events: none; }

.lb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 860px;
  padding: 5rem var(--pad-x) 4rem;
  gap: 1.75rem;
}

.lb-img-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-height: 72vh;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.lb-info {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.lb-title {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.lb-meta {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-bottom: 0.65rem;
}

.lb-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.lb-counter {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-mid);
}

/* ── Responsive: tablet ─────────────────────────────────────── */
@media (max-width: 860px) {
  .cv-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
}

/* ── Responsive: mobiel ─────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.75rem;
    z-index: 190;
    animation: lbFadeIn 0.2s ease;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 0.95rem;
    letter-spacing: 0.22em;
  }

  .nav-links a::after { display: none; }

  .nav-toggle {
    display: flex;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .agenda-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .agenda-date {
    font-size: 0.72rem;
  }

  .cv-table td:first-child {
    width: 65px;
    padding-right: 0.9rem;
  }

  .lb-inner {
    padding: 4.5rem 1.25rem 3rem;
  }

  .lb-arrow { display: none; }

  /* Touch swipe replaces arrows on mobile */
}

@media (max-width: 400px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}
