/* Vox Nova house style.
   Concept: a choir book. Navigation sits in the margin like rubrics, numbered in
   Roman numerals; the divider echoes the logo's O and bar. Palette per brief:
   white, #c7dde2 contrast, #d4c04e accent (sparingly: active numeral, a few
   buttons), #1a1a1a text. Lato light for display, Lato bold for small headings,
   Nunito Sans for body. */

:root {
  --white: #ffffff;
  --contrast: #c7dde2;
  --contrast-soft: #eaf2f4;
  --accent: #d4c04e;
  --text: #1a1a1a;
  --muted: #4c585b;
  --faint: #7c8a8d;
  --hairline: #b9ccd1;
  --footer: #24282a;
  --footer-text: #e8ebea;
  --footer-muted: #a3adaf;
  --danger: #9b2c2c;

  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-head: "Lato", system-ui, sans-serif;

  --rail-w: 264px;
  --measure: 64ch;
  --content-max: 1020px;
  --bar-h: 68px;
}

/* ---------- Base ---------- */

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.15; }
h1 { font-weight: 300; font-size: clamp(2.4rem, 4.4vw, 3.9rem); letter-spacing: -0.01em; max-width: 20ch; }
h2 { font-weight: 300; font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -0.005em; }
h3 { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }

.label-caps, .numeral {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.numeral { letter-spacing: 0.12em; }

.text-link { border-bottom: 1px solid var(--contrast); transition: border-color .2s; }
.text-link:hover { border-bottom-color: var(--text); }

.inline-form { display: inline; margin: 0; }
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color .2s;
}
.link-button:hover { color: var(--text); }
.site-footer .link-button:hover { color: var(--footer-text); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Divider: a small open circle and a hairline, after the O and the bar in the logo. */
.rule { display: block; position: relative; width: 88px; height: 7px; }
.rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--text);
  border-radius: 50%;
}
.rule::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 0;
  top: 3px;
  height: 1px;
  background: var(--text);
}
.rule--center { margin-left: auto; margin-right: auto; }

/* ---------- Layout: margin rail + page, footer pinned to the bottom ---------- */

.layout {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: 100vh;
}

.rail { grid-column: 1; grid-row: 1; border-right: 1px solid var(--hairline); }
.rail-inner {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  padding: 2.6rem 2rem 2.5rem 2.25rem;
}

.rail-logo { display: inline-block; transition: opacity .45s ease; }
.rail-logo img { width: 150px; height: auto; }
/* On the homepage the hero carries the logo; the rail logo fades in once you scroll past it. */
body.home .rail-logo { opacity: 0; pointer-events: none; }
body.home.past-hero .rail-logo { opacity: 1; pointer-events: auto; }

.rail-nav { margin-top: 3.25rem; }
.rail-nav ol { list-style: none; margin: 0; padding: 0; }
.rail-nav li + li { margin-top: 0.2rem; }
.rail-nav a {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: baseline;
  padding: 0.35rem 0;
  color: #333d3f;
  transition: color .2s;
}
.rail-nav .numeral { color: var(--muted); transition: color .2s; }
.rail-nav .label {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
  transition: transform .25s ease;
}
.rail-nav a:hover { color: var(--text); }
.rail-nav a:hover .label { transform: translateX(3px); }
.rail-nav li.is-active a { color: var(--text); }
.rail-nav li.is-active .numeral { color: var(--accent); }
.rail-nav li.is-active .label { font-weight: 400; }

.menu-toggle { display: none; }

.page-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 4.5rem clamp(1.5rem, 5vw, 5rem) 6rem;
}
.content { max-width: var(--content-max); }
body.home .page-main { padding-top: 0; }

/* ---------- Page header ---------- */

.page-header { margin-bottom: 3.5rem; }
.eyebrow {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  margin: 0 0 1.4rem;
  color: var(--muted);
}
.eyebrow .numeral { color: var(--faint); }
.page-header .rule { margin-top: 2.2rem; }

/* ---------- Prose ---------- */

.prose { max-width: var(--measure); font-size: 1.06rem; }
.prose p { margin: 0 0 1.15em; }
.prose > p:first-child {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 1.34rem;
  line-height: 1.6;
}
.prose ul { margin: 0 0 1.2em; padding-left: 1.15rem; }
.prose li { margin: 0.3em 0; padding-left: 0.2rem; }
.prose li::marker { color: var(--faint); }
.prose a { border-bottom: 1px solid var(--contrast); transition: border-color .2s; }
.prose a:hover { border-bottom-color: var(--text); }
.prose strong { font-weight: 700; }

/* Manuscript-style drop initial on the opening paragraph. */
.prose--initial > p:first-child::first-letter {
  float: left;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 4.9rem;
  line-height: 0.8;
  padding: 0.4rem 0.7rem 0 0;
}

/* ---------- Sections ---------- */

.section { margin-top: clamp(4.5rem, 9vw, 7.5rem); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
.section-head .rule { margin-top: 1.2rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split > div > .rule { margin-top: 2rem; }
.kicker { color: var(--muted); margin: 0 0 0.8rem; }

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

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

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.hero-logo { width: min(480px, 72%); height: auto; }
.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--contrast));
}

/* ---------- Works list (Werken) ---------- */

.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.work-row a {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.4fr) minmax(0, 1.3fr) 1.5rem;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.2rem 0.25rem;
  border-bottom: 1px solid var(--hairline);
  transition: background .25s, padding .25s;
}
.work-title { font-family: var(--font-head); font-weight: 300; font-size: 1.25rem; line-height: 1.3; }
.work-composer { color: var(--text); }
.work-meta { color: var(--muted); font-size: 0.92rem; }
.work-arrow { color: var(--faint); text-align: right; transition: transform .25s, color .25s; }
.work-row a:hover { background: var(--contrast-soft); padding-left: 0.9rem; padding-right: 0.9rem; }
.work-row a:hover .work-arrow { color: var(--text); transform: translateX(3px); }

.featured {
  background: var(--contrast);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.featured-head { margin-bottom: 1.75rem; }
.featured-head .label-caps { color: var(--text); opacity: .7; }
.featured-head h2 { margin-top: 0.6rem; }
.featured .work-list { border-top-color: rgba(26, 26, 26, .16); }
.featured .work-row a { border-bottom-color: rgba(26, 26, 26, .16); }
.featured .work-row a:hover { background: rgba(255, 255, 255, .45); }
.featured .work-meta, .featured .work-arrow { color: var(--text); opacity: .75; }

.filters { display: flex; gap: 1.75rem; flex-wrap: wrap; align-items: flex-end; }
.filters label { display: block; color: var(--muted); margin-bottom: 0.2rem; }
.select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 12.5rem;
  padding: 0.35rem 1.5rem 0.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--text);
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231a1a1a' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 0.15rem center;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}
.select:focus-visible { outline: 2px solid var(--contrast); outline-offset: 4px; }

/* ---------- Portraits (componisten, ensemble, team) ---------- */

.portrait-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 2.75rem 2rem;
}
.portrait { display: block; }
.portrait-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--contrast-soft);
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
}
.portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .6s ease, transform .8s ease;
}
a.portrait:hover .portrait-img img { filter: grayscale(0); transform: scale(1.025); }
.portrait-initial { font-family: var(--font-head); font-weight: 300; font-size: 3.4rem; color: var(--faint); }
.portrait-name { font-family: var(--font-head); font-weight: 400; font-size: 1.14rem; line-height: 1.3; }
.portrait-role { color: var(--muted); margin-top: 0.35rem; }
a.portrait .portrait-name { transition: transform .25s; }
a.portrait:hover .portrait-name { transform: translateX(3px); }

/* ---------- Agenda ---------- */

.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.event {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 240px);
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.event-date { font-family: var(--font-head); }
.event-date .day { display: block; font-weight: 300; font-size: 3.3rem; line-height: 1; }
.event-date .month { display: block; margin-top: 0.5rem; }
.event-date .year { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
.event-title { font-family: var(--font-head); font-weight: 300; font-size: 1.65rem; line-height: 1.25; margin-bottom: 0.4rem; }
.event-title a { transition: color .2s; }
.event-title a:hover { color: var(--muted); }
.event-meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.9rem; }
.event-excerpt { color: var(--text); }
.event-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.past-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 3rem; }
.past-list li { break-inside: avoid; padding: 0.55rem 0; border-bottom: 1px solid var(--hairline); }
.past-list .label-caps { color: var(--muted); margin-right: 0.75rem; }

/* ---------- Detail pages ---------- */

.detail { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.detail-aside { position: sticky; top: 2.5rem; }
.detail-aside img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem 2rem;
  margin: 0 0 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.meta-list dt { color: var(--muted); margin-bottom: 0.3rem; }
.meta-list dd { margin: 0; font-family: var(--font-head); font-size: 1.1rem; }

.back-link { display: inline-flex; gap: 0.6rem; align-items: center; color: var(--muted); margin-bottom: 2.5rem; transition: color .2s; }
.back-link:hover { color: var(--text); }
.back-link--end { margin: 4.5rem 0 0; }
.lead-meta { font-family: var(--font-head); font-weight: 300; font-size: 1.35rem; margin: -1.5rem 0 2.5rem; }
.audio { width: 100%; max-width: 480px; margin: 1.5rem 0 0; }
.wide-image { width: 100%; max-height: 520px; object-fit: cover; margin-bottom: 3rem; }

/* ---------- Ontdek tiles ---------- */

/* Borders on the tiles (not a gap over a coloured background), so an incomplete
   last row stays white instead of showing a filled block. */
.discover {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.discover a {
  background: var(--white);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  min-height: 180px;
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .3s;
}
.discover .numeral { color: var(--faint); }
.discover .tile-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 1.55rem;
}
.discover .tile-label span:last-child { color: var(--faint); transition: transform .3s, color .3s; }
.discover a:hover { background: var(--contrast); }
.discover a:hover .tile-label span:last-child { color: var(--text); transform: translateX(4px); }

/* ---------- Mecenaat ---------- */

.values {
  background: var(--contrast-soft);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.values > p:first-child { font-family: var(--font-head); font-weight: 300; font-size: 1.6rem; margin: 0 0 2rem; }
.values ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.values li { border-top: 1px solid var(--text); padding-top: 1rem; color: var(--muted); line-height: 1.6; }
.values li strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.cta-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.cta { background: var(--white); padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.cta p { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: 1.25rem; line-height: 1.55; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  align-self: flex-start;
  padding: 0.9rem 1.55rem;
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--text);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: transparent; color: var(--text); }
.btn-outline { background: transparent; color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--white); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--text); }
.btn-accent:hover { background: transparent; border-color: var(--text); color: var(--text); }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Public forms ---------- */

.form { max-width: 620px; }
.form-field { margin-bottom: 1.75rem; }
.form-field label { display: block; color: var(--muted); margin-bottom: 0.35rem; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid #93abb1;
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  transition: border-color .2s;
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231a1a1a' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 0.15rem center; cursor: pointer; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: none; border-bottom-color: var(--text); }
.errorlist { list-style: none; margin: 0.4rem 0 0; padding: 0; color: var(--danger); font-size: 0.9rem; }

.messages { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.messages li { padding: 0.9rem 1.2rem; background: var(--contrast); }
body.home .messages { padding-top: 2rem; margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  background: var(--footer);
  color: var(--footer-text);
  padding: 4.5rem clamp(1.5rem, 5vw, 5rem) 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: start;
}
.footer-logo { width: 116px; height: auto; filter: invert(1); opacity: .9; }
.footer-heading { color: var(--footer-muted); margin: 0 0 1.1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 0.45rem; }
.footer-links a { border-bottom: 1px solid rgba(232, 235, 234, .25); transition: border-color .2s; }
.footer-links a:hover { border-bottom-color: var(--accent); }

.newsletter { display: flex; align-items: stretch; border-bottom: 1px solid rgba(232, 235, 234, .4); max-width: 380px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0;
  border: 0;
  background: transparent;
  color: var(--footer-text);
  font: inherit;
}
.newsletter input::placeholder { color: rgba(232, 235, 234, .55); }
.newsletter input:focus { outline: none; }
.newsletter button {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0 0 0 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s;
}
.newsletter button:hover { color: var(--footer-text); }
.newsletter:focus-within { border-bottom-color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(232, 235, 234, .14);
  color: var(--footer-muted);
  font-size: 0.85rem;
}
.footer-bottom nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: var(--footer-text); }

/* ---------- Small screens: rail becomes a top bar with a full-screen menu ---------- */

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }

  .rail {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--white);
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }
  .rail-inner {
    position: static;
    max-height: none;
    overflow: visible;
    height: var(--bar-h);
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .rail-logo img { width: auto; height: 44px; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
  }
  .menu-toggle .bars { display: grid; gap: 5px; width: 22px; }
  .menu-toggle .bars span { display: block; height: 1px; background: var(--text); transition: transform .3s; }
  .menu-toggle[aria-expanded="true"] .bars span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

  .rail-nav {
    display: none;
    position: fixed;
    inset: var(--bar-h) 0 0 0;
    margin: 0;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    overflow-y: auto;
  }
  .rail-nav.is-open { display: block; }
  .rail-nav li + li { margin-top: 0.5rem; }
  .rail-nav .label { font-size: 2rem; }
  body.menu-open { overflow: hidden; }

  .page-main { grid-column: 1; grid-row: 2; padding: 3rem 1.25rem 4.5rem; }
  .site-footer { grid-row: 3; }
  .hero { min-height: calc(100vh - var(--bar-h)); }

  .split, .detail { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; max-width: 320px; }

  .work-row a { grid-template-columns: minmax(0, 1fr) 1.5rem; gap: 0.15rem 1rem; }
  .work-title { grid-column: 1; }
  .work-composer, .work-meta { grid-column: 1; }
  .work-arrow { grid-column: 2; grid-row: 1; }

  .event { grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1.25rem; }
  .event-image { grid-column: 1 / -1; }
  .event-date .day { font-size: 2.6rem; }
  .past-list { columns: 1; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }

  .discover { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discover a { min-height: 120px; padding: 1.1rem 1rem; }
  .discover .tile-label { font-size: 1.2rem; }
}

/* ---------- Coming soon ---------- */

body.soon { min-height: 100vh; display: flex; flex-direction: column; }
.soon-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem max(16px, env(safe-area-inset-right, 0px)) 2rem max(16px, env(safe-area-inset-left, 0px));
}
.soon-logo { width: min(420px, 72vw); height: auto; }
.soon-tagline {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.4;
  max-width: 26ch;
  margin: 3rem 0 1.75rem;
}
.soon-status { color: var(--muted); margin: 1.75rem 0 2.5rem; }
.soon .messages { width: min(380px, 100%); margin-bottom: 1.5rem; }
.soon-footer {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  padding: 1.5rem 16px 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.soon-footer a { border-bottom: 1px solid var(--hairline); transition: color .2s, border-color .2s; }
.soon-footer a:hover { color: var(--text); border-bottom-color: var(--text); }

.newsletter--light { width: min(420px, 100%); border-bottom-color: var(--text); }
.newsletter--light input { color: var(--text); }
.newsletter--light input::placeholder { color: var(--muted); }
.newsletter--light button { color: var(--text); }
.newsletter--light button:hover { color: var(--muted); }
.newsletter--light:focus-within { border-bottom-color: var(--accent); }

/* ---------- Dashboard (beheer): dark, so it never looks like the public site ---------- */

body.dash {
  --white: #1c2021;
  --text: #e6eaea;
  --muted: #a6b1b3;
  --faint: #7f8b8e;
  --hairline: #384144;
  --contrast: #557680;
  --contrast-soft: #252b2d;
  color-scheme: dark;
  background: var(--white);
  color: var(--text);
  font-size: 16px;

  /* CKEditor 5 reads these custom properties. */
  --ck-color-base-background: #23282a;
  --ck-color-base-foreground: #2b3133;
  --ck-color-base-border: #444e51;
  --ck-color-text: #e6eaea;
  --ck-color-toolbar-background: #2b3133;
  --ck-color-toolbar-border: #444e51;
  --ck-color-button-default-hover-background: #384144;
  --ck-color-button-default-active-background: #384144;
  --ck-color-button-on-background: #3f4a4d;
  --ck-color-button-on-hover-background: #475356;
  --ck-color-button-on-color: #ffffff;
  --ck-color-dropdown-panel-background: #2b3133;
  --ck-color-dropdown-panel-border: #444e51;
  --ck-color-panel-background: #2b3133;
  --ck-color-panel-border: #444e51;
  --ck-color-input-background: #23282a;
  --ck-color-input-border: #444e51;
  --ck-color-input-text: #e6eaea;
  --ck-color-list-background: #2b3133;
  --ck-color-list-button-hover-background: #384144;
  --ck-color-labeled-field-label-background: #2b3133;
  --ck-color-focus-border: #c7dde2;
  --ck-color-shadow-drop: rgba(0, 0, 0, .4);
}
.dash .ck.ck-editor__editable { color: var(--text); }
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--hairline);
}
.dash-header .brand { display: flex; align-items: center; gap: 1rem; }
.dash-header .brand img { height: 40px; width: auto; filter: invert(1); }
.dash-header .brand .label-caps { color: var(--accent); }
.dash-header nav { display: flex; gap: 1.5rem; }
.dash-header nav a,
.dash-header nav .link-button { color: var(--muted); }
.dash-header nav a:hover,
.dash-header nav .link-button:hover { color: var(--text); }
.dash-main { padding: 2.5rem 2rem 4rem; }
.dash-main h1 { font-size: 2.2rem; margin-bottom: 1.5rem; }
.dashboard-layout { display: flex; gap: 3rem; max-width: 1180px; }
.dashboard-nav { flex: 0 0 210px; }
.dashboard-nav ul { list-style: none; margin: 0; padding: 0; }
.dashboard-nav li { margin-bottom: 0.5rem; }
.dashboard-nav a { color: var(--muted); }
.dashboard-nav a:hover { color: var(--text); }
.dashboard-main { flex: 1; min-width: 0; }
.dash table { width: 100%; border-collapse: collapse; }
.dash th, .dash td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.dash td a { border-bottom: 1px solid var(--contrast); }
.dash form p { margin: 0 0 1.25rem; }
.dash form label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.dash form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.dash form select,
.dash form textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #4a5457;
  border-radius: 0;
  font: inherit;
  color: var(--text);
  background: #23282a;
}
.dash form input:focus,
.dash form select:focus,
.dash form textarea:focus { outline: 2px solid var(--contrast); outline-offset: 0; }
.dash .messages li { background: #2f4a50; color: var(--text); }
.dash h1, .dash h2 { color: var(--text); }
.dash .narrow-form { max-width: 480px; }
.dash .helptext { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; }
.dash .text-muted { color: var(--muted); }

@media (max-width: 760px) {
  .dashboard-layout { flex-direction: column; gap: 1.5rem; }
  .dashboard-nav { flex: none; }
}
