/* Herdenkingsmonument De Fryske Marren
   Layout: geborsteld aluminium. Koele lichte grond, smalle leeskolom,
   jaartallen als ritme en één blauw accent voor wat je kunt doen. */

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo.woff2") format("woff2-variations"), url("../fonts/archivo.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-serif-4.woff2") format("woff2-variations"), url("../fonts/source-serif-4.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4 Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2-variations"), url("../fonts/source-serif-4-italic.woff2") format("woff2");
}

:root {
  --bg: #eceef0;
  --surface: #f6f7f8;
  --ink: #22262b;
  --muted: #59616a;
  --line: #cbd0d6;
  --accent: #2b4a74;
  --accent-ink: #ffffff;
  --accent-soft: #dde4ee;

  --display: "Archivo Variable", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4 Variable", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --ui: "Archivo Variable", "Archivo", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.9vw, 2.6rem);
  --step-4: clamp(1.9rem, 1.3rem + 3vw, 3.4rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15181c;
    --surface: #1d2126;
    --ink: #e6e9ec;
    --muted: #a0a8b1;
    --line: #333a42;
    --accent: #9db8de;
    --accent-ink: #101722;
    --accent-soft: #24303f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15181c;
  --surface: #1d2126;
  --ink: #e6e9ec;
  --muted: #a0a8b1;
  --line: #333a42;
  --accent: #9db8de;
  --accent-ink: #101722;
  --accent-soft: #24303f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; display: block; }
/* Grids met één kolom: lange woorden mogen de kolom nooit breder maken */
.article, .page-head, .section-head, .option, .prose, .figure, .gallery figure, .board li,
.contact-grid div, .timeline li, .index-grid a { grid-template-columns: minmax(0, 1fr); }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--gutter); top: 0.5rem; background: var(--surface); padding: 0.5rem 0.75rem; z-index: 20; }

/* Type */
h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 110%; }
p { margin: 0; }
.eyebrow {
  font-family: var(--ui);
  font-size: var(--step--1);
  font-weight: 600;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0;
}
.lead { font-size: var(--step-1); line-height: 1.55; }
.prose { max-width: 65ch; display: grid; gap: 1.1em; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.6em; }
.prose li::marker { color: var(--muted); }
.closing { font-style: italic; color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-text { display: grid; line-height: 1.1; font-family: var(--display); min-width: 0; }
.brand-text b { font-weight: 600; font-stretch: 120%; font-size: 0.98rem; letter-spacing: 0.01em; }
.brand-text span { font-family: var(--ui); font-size: 0.8rem; font-stretch: 112%; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: none;
  font: 600 0.9rem/1 var(--ui); font-stretch: 112%;
  background: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.6rem 0.8rem; cursor: pointer;
}
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  display: block; text-decoration: none;
  font-family: var(--ui); font-size: 0.95rem; font-weight: 500;
  padding: 0.55rem 0.75rem; border-radius: var(--radius);
}
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.nav .has-sub { position: relative; }
.nav .has-sub > a::after { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-left: 0.45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.2em) rotate(45deg); }
.nav .sub {
  position: absolute; left: 0; top: 100%; z-index: 10;
  min-width: 13rem; padding: 0.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.08);
  display: none;
}
.nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { display: block; }
.nav .nav-donate a { background: var(--accent); color: var(--accent-ink); margin-left: 0.5rem; }
.nav .nav-donate a:hover { background: var(--accent); filter: brightness(1.08); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav { flex-basis: 100%; display: none; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding-block: 0.5rem; }
  .nav .sub { position: static; display: block; border: 0; box-shadow: none; background: none; padding: 0 0 0 1rem; min-width: 0; }
  .nav .has-sub > a::after { display: none; }
  .nav .nav-donate a { margin: 0.5rem 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 600 1rem/1 var(--ui); font-stretch: 108%;
  padding: 0.9rem 1.25rem; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); filter: none; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: not-allowed; filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Home hero */
.hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; min-width: 0; container-type: inline-size; }
/* "Herdenkingsmonument" moet op één regel passen: bij 112% breedte is het woord 12 keer de korpsgrootte */
.hero h1 { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.9rem); font-size: min(3.2rem, 7.9cqi); font-stretch: 112%; }
.hero h1 span { display: block; color: var(--muted); font-weight: 500; }
.hero figure { margin: 0; }
.hero figure img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 50% 40%; border: 1px solid var(--line); border-radius: var(--radius); }

/* Timeline */
.section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 2rem; max-width: 65ch; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.timeline li { border-top: 2px solid var(--ink); padding-top: 0.9rem; display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.timeline li:last-child { border-top-color: var(--accent); }
.timeline .year { font-family: var(--display); font-stretch: 125%; font-weight: 600; font-size: var(--step-2); line-height: 1; font-variant-numeric: tabular-nums; }
.timeline p { font-size: 0.98rem; line-height: 1.5; color: var(--muted); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); margin-top: 2.5rem; }
.story p { max-width: 60ch; }

/* Monument index */
.index-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
.index-grid a { display: grid; gap: 0.35rem; padding-block: 1.1rem 1.4rem; border-top: 1px solid var(--line); text-decoration: none; height: 100%; }
.index-grid a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.index-grid h3 { display: flex; justify-content: space-between; gap: 1rem; }
.index-grid h3::after { content: "›"; color: var(--accent); font-stretch: 100%; }
.index-grid p { color: var(--muted); font-size: 0.98rem; line-height: 1.5; }

/* Donate band */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.band h2 { font-size: var(--step-2); }
.band p { color: var(--muted); max-width: 60ch; margin-top: 0.5rem; }

/* Inner pages */
.page { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(3rem, 2rem + 4vw, 5rem); }
.page-head { display: grid; gap: 0.75rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem); max-width: 50rem; }
.with-aside { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 1rem); }
.subnav ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.subnav a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; font-family: var(--ui); font-size: 0.95rem; color: var(--muted); }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.article { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3rem); min-width: 0; }
.figure { margin: 0; display: grid; gap: 0.6rem; max-width: 46rem; }
.figure img { border: 1px solid var(--line); border-radius: var(--radius); width: 100%; }
.figure.small { max-width: 18rem; }
.figure figcaption, .gallery figcaption { font-family: var(--ui); font-size: var(--step--1); color: var(--muted); line-height: 1.45; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 46rem; }
.gallery figure { margin: 0; display: grid; gap: 0.6rem; align-content: start; }
.gallery img { border: 1px solid var(--line); border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery img.contain { object-fit: contain; background: var(--surface); padding: 0.75rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.25rem; max-width: 46rem; font-family: var(--ui); }
.pager a { text-decoration: none; display: grid; gap: 0.15rem; }
.pager a span { font-size: var(--step--1); color: var(--muted); }
.pager a b { font-weight: 600; }
.pager .next { text-align: right; margin-left: auto; }

/* Stichting */
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; max-width: 52rem; }
.board li { display: grid; gap: 0.6rem; align-content: start; }
.board img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.board .p-jan { object-position: 32% 30%; }
.board .p-syco { object-position: 80% 35%; }
.board .p-felix { object-position: 50% 30%; }
.board b { font-family: var(--display); font-stretch: 112%; font-weight: 600; display: block; line-height: 1.2; }
.board span { font-family: var(--ui); font-size: var(--step--1); color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.5rem 1.5rem; margin: 0; font-family: var(--ui); font-size: 0.98rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Doneren */
.give { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 52rem; }
.option { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: grid; gap: 1rem; align-content: start; }
.option h2 { font-size: var(--step-1); font-stretch: 112%; }
.option p { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.option .note { font-family: var(--ui); font-size: var(--step--1); }
.iban { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.iban code { font-family: var(--ui); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.45rem 0.6rem; user-select: all; overflow-wrap: anywhere; }
.copy { font: 600 0.9rem/1 var(--ui); background: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.55rem 0.7rem; cursor: pointer; }
.copy:hover { border-color: var(--ink); }

/* Totstandkoming */
.names { columns: 3 14rem; column-gap: 2rem; list-style: none; margin: 0; padding: 0; font-size: 0.98rem; }
.names li { break-inside: avoid; padding-block: 0.35rem; border-bottom: 1px solid var(--line); }
.names a { text-decoration-color: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; max-width: 56rem; }
.contact-grid div { display: grid; gap: 0.35rem; align-content: start; border-top: 1px solid var(--line); padding-top: 1rem; min-width: 0; }
.contact-grid .big { font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: var(--step-1); overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-family: var(--ui); font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 3rem 2rem; }
.site-footer h2 { font-size: var(--step--1); font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer address { font-style: normal; display: grid; gap: 0.35rem; }
.site-footer .brand svg { width: 52px; height: 52px; }
.site-footer .motto { color: var(--muted); margin-top: 1rem; font-family: var(--body); font-style: italic; }
.legal { border-top: 1px solid var(--line); }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1rem 1.5rem; color: var(--muted); font-size: var(--step--1); }

/* Responsive */
@media (max-width: 960px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .with-aside { grid-template-columns: minmax(0, 1fr); }
  .subnav { position: static; }
  .subnav ol { display: flex; flex-wrap: wrap; gap: 0.4rem; border: 0; }
  .subnav a { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; margin: 0; }
  .subnav a[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); }
}
@media (max-width: 720px) {
  .hero .wrap, .story, .band .wrap, .give, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero figure { order: -1; }
  .hero figure img { aspect-ratio: 16 / 11; object-position: 50% 30%; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .timeline, .index-grid, .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .brand-text b { font-size: 0.88rem; }
  .brand svg { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
