/* G.C.S.H. Ut Lex Omnibus Discetur — stijlblad */

:root {
  --bg: #121011;
  --bg-2: #1a1718;
  --card: #201c1d;
  --line: #342e2f;
  --text: #e9e3d9;
  --muted: #a39a8e;
  --red: #bf0016;
  --red-deep: #8e0011;
  --red-text: #e0303f;
  --gold: #c9a35b;
  --serif: "Libre Caslon Text", "Adobe Caslon Pro", Georgia, "Times New Roman", serif;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --stripes: repeating-linear-gradient(-45deg, var(--red) 0 10px, #050405 10px 20px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; text-decoration-thickness: 2px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

main { flex: 1; }

/* ---------- Kop & navigatie ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 8, 9, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand img { width: 40px; height: auto; }

.brand span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--muted);
}

.brand small {
  display: block;
  font-family: var(--display);
  font-style: normal;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.nav { display: flex; gap: 2px; }

.nav a {
  position: relative;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #0b090a;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { left: 0; right: auto; width: 32px; bottom: 8px; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: clamp(56px, 10vw, 110px) 0 clamp(48px, 8vw, 90px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(191, 0, 22, 0.22), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero img.crest {
  width: clamp(110px, 16vw, 160px);
  margin: 0 auto 28px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

.hero .kicker {
  font-size: clamp(15px, 2vw, 20px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 7.5vw, 84px);
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 2px 0 #000;
}

.notfound { border-bottom: 0; }
.notfound .lead { color: var(--muted); font-style: italic; margin: 18px auto 32px; max-width: 46ch; }

.button {
  display: inline-block;
  padding: 10px 26px;
  border: 1px solid var(--red);
  border-radius: 99px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
}
.button:hover { background: var(--red); color: #fff; }

@media (max-width: 560px) {
  .hero .kicker { letter-spacing: 0.1em; font-size: 13px; }
  .brand small { font-size: 16px; }
}

/* ---------- Paginakop (subpagina's) ---------- */

.page-head {
  padding: clamp(48px, 8vw, 84px) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}

.page-head .kicker {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-text);
  margin: 0 0 6px;
}

.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  margin: 0;
}

.page-head p.lead { color: var(--muted); margin: 10px 0 0; font-style: italic; }

.section { padding: clamp(40px, 6vw, 72px) 0; }

/* ---------- Leestekst ---------- */

.prose { max-width: 68ch; margin: 0 auto; }
.prose p { margin: 0 0 1.15em; }
.prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 36px);
  line-height: 1.2;
  margin: 2.2em 0 0.6em;
}
.prose h2:first-child { margin-top: 0; }

.letter p.first::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.2em;
  line-height: 0.8;
  padding: 0.08em 0.1em 0 0;
  color: var(--red-text);
}

.letter .salutation { font-style: italic; color: var(--muted); }

.signature {
  margin-top: 2.4em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}
.signature p { margin: 0; }
.signature .name { font-family: var(--display); font-size: 26px; margin-top: 0.4em; }
.signature .role { font-style: italic; color: var(--muted); }

/* ---------- Personen (Heeren / College) ---------- */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.person { text-align: center; }

.person button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  cursor: pointer;
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.person img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.6s ease;
}

.person .das {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 35%, #2a2425, var(--card) 70%);
  transition: opacity 0.45s ease;
}

.person .das svg { width: 42%; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55)); }

.person button:hover .das,
.person button:focus-visible .das,
.person button.open .das { opacity: 0; }

.person button:hover img,
.person button:focus-visible img,
.person button.open img { transform: scale(1); }

.person button:hover,
.person button.open { border-color: var(--red); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

.person p { margin: 12px 0 0; font-size: 17px; line-height: 1.3; }

.hint { color: var(--muted); font-style: italic; font-size: 16px; margin: 0 0 32px; }

/* ---------- Media ---------- */

.album { padding: 36px 0; border-top: 1px solid var(--line); }
.album:first-child { border-top: 0; padding-top: 0; }

.album h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.4;
  margin: 0 0 18px;
  max-width: 60ch;
}

.album h2 small {
  display: block;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: 4px;
}

.gallery { display: flex; flex-wrap: wrap; gap: 6px; }
.gallery::after { content: ""; flex-grow: 999999; }

.gallery a {
  --r: 1.5;
  position: relative;
  flex: calc(var(--r) * 100) 1 calc(var(--r) * 210px);
  max-width: calc(var(--r) * 420px);
  overflow: hidden;
  border-radius: 3px;
  background: var(--card);
}

.gallery a i { display: block; padding-bottom: calc(100% / var(--r)); }

.gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s;
  filter: saturate(0.9);
}

.gallery a:hover img { transform: scale(1.04); filter: saturate(1.05); }

@media (max-width: 560px) {
  .gallery a { flex-basis: calc(var(--r) * 130px); }
}

/* Lichtbak */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 4, 5, 0.96);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 72px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.lightbox .caption {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.lightbox button {
  position: absolute;
  background: rgba(30, 26, 27, 0.8);
  border: 1px solid var(--line);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.lightbox button:hover { background: var(--red); }
.lightbox .close { top: 12px; right: 12px; }
.lightbox .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Historie ---------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 10px;
}

.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-poster { display: block; }
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.video-poster:hover img { transform: scale(1.03); }
.video-poster .play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  background: var(--red);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: background 0.2s;
}
.video-poster .play::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 14px;
  border-left: 18px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.video-poster:hover .play { background: #e0001a; }

.video-link { font-size: 15px; color: var(--muted); margin: 0 0 1em; }

.songs { list-style: none; padding: 0; margin: 0; }
.songs li:first-child { border-top: 0; padding-top: 0; }

.songs li {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.songs a.title {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.25;
  text-decoration: none;
  margin-bottom: 8px;
}

.songs a.title:hover { color: var(--red-text); }

.songs p { margin: 0; color: #cfc7bb; }

.tag {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 163, 91, 0.45);
  border-radius: 3px;
  padding: 1px 6px;
  white-space: nowrap;
  position: relative;
  top: -3px;
}

/* ---------- Archief ---------- */

.archive-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
}

.archive-nav a {
  font-size: 15px;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
}

.archive-nav a:hover { border-color: var(--red); color: var(--text); }

.archive h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 36px);
  margin: 0 0 16px;
  scroll-margin-top: 100px;
}

.archive section + section { margin-top: 56px; }

.docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
  gap: 0 48px;
}

.docs a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 17px;
  line-height: 1.4;
  transition: color 0.2s, padding 0.2s;
}

.docs a:hover { color: #fff; padding-left: 6px; }
.docs a:hover .tag { color: #fff; border-color: var(--red); background: var(--red); }

/* ---------- Contact ---------- */

.contact {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  margin: 0 0 18px;
}

.contact .block { padding: 36px 0; border-top: 1px solid var(--line); }
.contact .block:first-child { border-top: 0; padding-top: 0; }
.contact p { margin: 0 0 4px; }
.contact .role { font-style: italic; color: var(--muted); }
.contact .socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact .socials a {
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 16px;
}
.contact .socials a:hover { border-color: var(--red); background: var(--red); }
.contact .credit { font-size: 15px; color: var(--muted); }

/* ---------- Voet ---------- */

.site-footer {
  background: var(--red-deep);
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: #fff;
  text-align: center;
  padding: 26px 0;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  margin-top: -26px;
  margin-bottom: 22px;
  background: repeating-linear-gradient(-45deg, #050405 0 10px, var(--red-deep) 10px 20px);
}

.site-footer p { margin: 0; }

/* ---------- Introfoto ---------- */

.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #070606;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px 16px;
  cursor: pointer;
  transition: opacity 0.7s ease, visibility 0.7s;
}

.splash.gone { opacity: 0; visibility: hidden; }

.splash img {
  max-width: min(1100px, 100%);
  max-height: 76vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  border: 1px solid #2a2324;
}

.splash p {
  max-width: 62ch;
  margin: 0;
  text-align: center;
  color: var(--red-text);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.55;
}

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