:root {
  --bg: #f5efe3;
  --surface: #fbf7ee;
  --text: #2a2622;
  --muted: #6b6259;
  --wine: #8a3341;
  --teal: #2b5e58;
  --orange: #c9772f;
  --line: #ddd2bf;
  --shadow: 0 18px 40px -24px rgba(60, 35, 20, 0.45);

  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --body: "EB Garamond", Garamond, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1a18;
    --surface: #26221f;
    --text: #efe7da;
    --muted: #b3a797;
    --wine: #d9798a;
    --teal: #7fbcb2;
    --orange: #e8a160;
    --line: #3b3530;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  }
}

:root[data-theme="dark"] {
  --bg: #1d1a18;
  --surface: #26221f;
  --text: #efe7da;
  --muted: #b3a797;
  --wine: #d9798a;
  --teal: #7fbcb2;
  --orange: #e8a160;
  --line: #3b3530;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.15rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--wine);
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.7rem; }

a { color: var(--teal); }

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem clamp(16px, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--wine);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav { display: flex; gap: 1.4rem; margin-left: auto; }

.lang-switch {
  display: flex;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-header .lang-switch a {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.site-header .lang-switch a[aria-current="page"] {
  background: var(--wine);
  color: var(--surface);
}

.site-header nav a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text);
}

.site-header nav a:hover { color: var(--wine); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-logo {
  filter: drop-shadow(0 22px 30px rgba(60, 35, 20, 0.28));
  max-width: 440px;
  width: 100%;
  justify-self: center;
}

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--orange);
  margin: 0 0 0.6rem;
}

.lead { font-size: 1.3rem; color: var(--muted); max-width: 34rem; }

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.6rem;
  background: var(--wine);
  color: var(--surface);
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 999px;
}

.button:hover { background: var(--teal); }

/* Over */
.about { border-top: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
}

.about-grid p { margin: 0; }

/* Initiatief: Bierhandel De Pijp */
.founders { border-top: 1px solid var(--line); }

.founders .eyebrow { margin-bottom: 0.3rem; }

.founders-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
  margin-top: 2.5rem;
  align-items: start;
}

.founders-text h3 { font-size: 1.4rem; margin-top: 0.4rem; }
.founders-text h3 + p { margin-top: 0; }
.founders-text p + h3 { margin-top: 2rem; }

.history {
  list-style: none;
  margin: 0;
  padding: 1.6rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.history li {
  position: relative;
  padding: 0 0 1.2rem 1.4rem;
  border-left: 2px solid var(--line);
}

.history li:last-child { padding-bottom: 0; }

.history li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wine);
}

.history-year {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--orange);
}

.history p { margin: 0.2rem 0 0; font-size: 1.05rem; }

.sources {
  margin-top: 2rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
}

/* Leden */
.members { border-top: 1px solid var(--line); }

.section-intro { color: var(--muted); font-style: italic; margin-top: -0.5rem; }

.timeline {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--line), var(--teal), var(--line));
}

.member {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 1.5rem 0;
}

.member + .member { margin-top: 2rem; }

.member-plaque {
  width: 220px;
  filter: drop-shadow(var(--shadow));
  position: relative;
}

.member-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
}

.member-body p { margin: 0 0 0.6rem; }

.member-year {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--orange);
}

.member-body h3 { margin-bottom: 0.15rem; }

.member-place {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--teal);
}

.member-age {
  margin-top: 1rem !important;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  font-style: italic;
  color: var(--muted);
}

.member-age:empty { display: none; }

/* Fotogalerij Leiden */
.gallery-section { border-top: 1px solid var(--line); }

.gallery-section .eyebrow { margin-bottom: 0.3rem; }

.gallery {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.gallery a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery--landscape img { aspect-ratio: 4 / 3; }

.gallery a:hover img,
.gallery a:focus-visible img { transform: scale(1.04); }

.gallery a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.gallery p {
  margin: 0.7rem 0 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.45;
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}

.lightbox::backdrop { background: rgba(20, 14, 10, 0.92); }

.lightbox figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 16px 1.5rem;
  pointer-events: none;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  border-radius: 8px;
}

.lightbox figcaption {
  margin-top: 0.9rem;
  color: #efe7da;
  font-style: italic;
  text-align: center;
}

.lightbox button {
  position: fixed;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Schild */
.plaque-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  border-top: 1px solid var(--line);
}

.plaque-section figure { margin: 0; }

.plaque-section img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 16px 4rem;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wine);
}

.footer-logo { width: 110px; margin: 0 auto 1rem; }

.site-footer p { margin: 0.2rem 0; }

.site-footer .small {
  font-family: var(--serif);
  text-transform: none;
  font-style: italic;
  letter-spacing: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

/* Mobiel */
@media (max-width: 820px) {
  .main-nav { display: none; }

  .hero,
  .about-grid,
  .founders-grid,
  .plaque-section { grid-template-columns: 1fr; }

  .hero { text-align: center; }
  .hero-logo { max-width: 300px; }
  .lead { margin-left: auto; margin-right: auto; }

  .timeline::before { display: none; }

  .member {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    justify-items: center;
  }

  .member-plaque { width: 180px; }
  .member-body { width: 100%; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .gallery p { font-size: 0.92rem; }
}
