/* MVA Fotografie */
:root {
  --bg: #111111;
  --text: #ffffff;
  --muted: #b5b5b5;
  --accent: #5fb3a1;      /* lichtere tint van het logogroen, leesbaar op zwart */
  --logo: #479183;
  --gap: 10px;
  --side: clamp(16px, 4vw, 96px);
  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Toegankelijkheid */
.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--text); color: var(--bg);
  padding: 10px 16px; font-weight: 600; z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Kop */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 32px var(--side) 48px;
}
.nav { display: flex; gap: 40px; }
.nav a, .social a { text-decoration: none; }
.nav a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.logo img { width: clamp(90px, 10vw, 140px); }
.social { display: flex; justify-content: flex-end; gap: 28px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); }
.social a:hover { color: var(--accent); }
.social svg { width: 28px; height: 28px; fill: currentColor; }
.logo { display: block; }

/* Tegels */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  padding: 0 var(--side);
  margin: 0; list-style: none;
  align-items: start;
}
.tile { position: relative; display: block; overflow: hidden; background: #222; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile-caption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  background: rgba(17, 17, 17, .78);
  opacity: 0; transition: opacity .35s ease;
}
.tile-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.4rem);
  text-transform: uppercase; letter-spacing: .02em;
  margin: 0; line-height: 1.15;
}
.tile-year { font-family: var(--font-display); color: var(--muted); font-size: 1.25rem; margin-top: 8px; }
.tile:hover .tile-caption, .tile:focus-visible .tile-caption { opacity: 1; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.03); }
.tile:focus-visible { outline-offset: -3px; }

/* Op aanraakschermen bestaat geen hover: titel altijd tonen onderaan de tegel */
@media (hover: none) {
  .tile-caption {
    opacity: 1; inset: auto 0 0 0; justify-content: flex-end;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    padding-top: 48px;
  }
}

/* Subpagina */
.collection-header { text-align: center; padding: 8px var(--side) 48px; }
.collection-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase; letter-spacing: .02em;
  margin: 0; line-height: 1.1; color: var(--text);
}
.collection-header p { font-family: var(--font-display); color: var(--muted); font-size: 1.3rem; margin: 8px 0 0; }
.gallery {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 0 var(--side); margin: 0; list-style: none;
}
.gallery li { width: 100%; display: flex; justify-content: center; }
.gallery img { width: auto; height: auto; max-width: 100%; max-height: 92vh; }
.back {
  display: inline-block; margin: 56px auto 0;
  font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem;
  color: var(--muted); text-decoration: none;
}
.back:hover { color: var(--text); }
.center { text-align: center; }

/* Voettekst / contact */
.site-footer {
  margin-top: 96px;
  padding: 56px var(--side) 40px;
  border-top: 1px solid #2a2a2a;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  text-align: center;
}
.site-footer h2 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.8rem; margin: 0 0 12px; letter-spacing: .02em;
}
.contact-list { list-style: none; margin: 0; padding: 0; font-size: 1.05rem; }
.contact-list li { margin: 6px 0; }
.contact-list a { color: var(--text); text-underline-offset: 4px; }
.contact-list a:hover { color: var(--accent); }
.copyright { color: var(--muted); font-size: .9rem; margin: 0; }

/* Naar boven */
.to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: var(--text);
  text-decoration: none; font-size: 1.6rem;
}
.to-top:hover { background: rgba(255,255,255,.25); }

/* Mobiel */
@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "logo logo" "nav social";
    row-gap: 20px; padding-bottom: 32px;
  }
  .logo { grid-area: logo; justify-self: center; }
  .nav { grid-area: nav; gap: 24px; }
  .social { grid-area: social; gap: 8px; }
  .grid { grid-template-columns: 1fr; }
}

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