/* Vergezicht.eu — 2026
   Kleuren komen uit het oorspronkelijke FrontPage-thema "canvas":
   teal #336666 (koppen), blauw #0066CC (links), crème canvas-achtergrond. */

:root {
  --paper:      #faf8f1;
  --paper-alt:  #f3efe3;
  --ink:        #2d5555;
  --ink-soft:   #5b7a7a;
  --accent:     #336666;
  --link:       #0d6396;
  --link-hover: #0a4a70;
  --rule:       #d8d2c4;
  --shadow:     0 1px 2px rgb(45 85 85 / 8%), 0 6px 20px rgb(45 85 85 / 8%);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* tekst en foto's staan op dezelfde breedte, zodat alles op één lijn ligt */
  --prose:   68rem;
  --gallery: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #14201f;
    --paper-alt:  #1b2a29;
    --ink:        #cfe0dd;
    --ink-soft:   #9ab5b1;
    --accent:     #8fc4bd;
    --link:       #7fc3e8;
    --link-hover: #a9d8f2;
    --rule:       #2c403e;
    --shadow:     0 1px 2px rgb(0 0 0 / 30%), 0 6px 20px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.75 var(--serif);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus-visible { color: var(--link-hover); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--paper); color: var(--link);
  padding: .6rem 1rem; border: 1px solid var(--rule); border-radius: 4px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }

/* ---------- kop ---------- */

.site-header {
  max-width: var(--gallery);
  margin: 0 auto;
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-block;
  margin: 0;
  font: 400 clamp(2.5rem, 7vw, 3.75rem)/1 var(--serif);
  letter-spacing: .06em;
  color: var(--accent);
  text-decoration: none;
}
a.wordmark:hover { color: var(--accent); text-decoration: none; }

.tagline {
  margin: .6rem 0 0;
  font: italic 1.0625rem/1.5 var(--serif);
  color: var(--ink-soft);
}

.site-nav { margin-top: 1.5rem; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .35rem 1.75rem;
  font: .9375rem/1 var(--sans);
  letter-spacing: .02em;
}
.site-nav a { color: var(--ink); text-decoration: none; padding: .35rem 0; display: inline-block; }
.site-nav a:hover { color: var(--link); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* ---------- inhoud ---------- */

main { display: block; }

.prose { max-width: var(--prose); margin: 2.5rem auto 0; }
.wide  { max-width: var(--gallery); margin: 2.5rem auto 0; }

h1, h2, h3 { color: var(--accent); font-weight: 400; line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 3rem 0 1rem; }
h3 { font-size: 1.1875rem; margin: 2rem 0 .75rem; }

p { margin: 0 0 1.15rem; }
.lead { font-size: 1.3125rem; }

hr {
  max-width: var(--prose);
  margin: 3rem auto;
  border: 0; border-top: 1px solid var(--rule);
}

/* ---------- hero ---------- */

.hero { max-width: var(--gallery); margin: 2.5rem auto 0; }
.hero img { width: 100%; border-radius: 3px; box-shadow: var(--shadow); }
.hero figcaption {
  margin-top: .85rem; text-align: center;
  font: .9375rem/1.5 var(--sans); color: var(--ink-soft);
}

/* ---------- galerij ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.75rem 1.25rem;
  align-items: start;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

/* panorama's zijn extreem breed (tot 1664x432) en verschillen sterk in
   verhouding: altijd één per rij, over de volle breedte */
.gallery--panorama { grid-template-columns: 1fr; gap: 2.5rem; }

.gallery figure { margin: 0; }

.gallery a {
  display: block;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-alt);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery a:hover, .gallery a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgb(45 85 85 / 12%), 0 12px 28px rgb(45 85 85 / 14%);
}
.gallery img { width: 100%; }

.gallery figcaption {
  margin-top: .6rem;
  font: .875rem/1.45 var(--sans);
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .gallery a { transition: none; }
  .gallery a:hover, .gallery a:focus-visible { transform: none; }
}

/* ---------- kaarten (startpagina) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.cards a {
  display: block; height: 100%;
  padding: 1.25rem 1.35rem;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .18s ease, transform .18s ease;
}
.cards a:hover, .cards a:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.cards h2 { margin: 0 0 .35rem; font-size: 1.1875rem; color: var(--accent); }
.cards p  { margin: 0; font: .9375rem/1.5 var(--sans); color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .cards a { transition: none; }
  .cards a:hover, .cards a:focus-visible { transform: none; }
}

/* ---------- voet ---------- */

.site-footer {
  max-width: var(--gallery);
  margin: 4rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font: .875rem/1.7 var(--sans);
  color: var(--ink-soft);
}
.site-footer p { margin: 0 0 .5rem; }
.site-footer .copyright { margin-top: 1.25rem; }

/* ---------- lightbox ---------- */

dialog.lightbox {
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  max-width: min(96vw, 1400px);
  max-height: 94vh;
  overflow: visible;
  color: #fff;
}
dialog.lightbox::backdrop { background: rgb(12 22 21 / 92%); }

.lightbox__frame { position: relative; display: flex; flex-direction: column; align-items: center; }

.lightbox__img {
  max-width: 96vw;
  max-height: 78vh;
  width: auto;
  border-radius: 3px;
  background: #0c1615;
}

.lightbox__caption {
  margin: .9rem auto 0;
  max-width: 44rem;
  text-align: center;
  font: .9375rem/1.55 var(--sans);
  color: #e6efee;
}
.lightbox__counter { display: block; margin-top: .35rem; font-size: .8125rem; color: #9fb5b2; }

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgb(0 0 0 / 45%);
  color: #fff;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
}
.lightbox__btn:hover { background: rgb(0 0 0 / 70%); }
.lightbox__prev  { left: -1rem; }
.lightbox__next  { right: -1rem; }
.lightbox__close {
  position: absolute; top: -.5rem; right: -1rem;
  transform: none;
  width: 2.5rem; height: 2.5rem;
  font-size: 1.25rem;
}

@media (max-width: 40rem) {
  .lightbox__prev  { left: .25rem; }
  .lightbox__next  { right: .25rem; }
  .lightbox__close { top: .25rem; right: .25rem; }
}
