/* ============================================
   THUNDERSTAR

   Eén typeface (Archivo, breedte-as als systeem) plus IBM Plex Mono
   voor de kleine labels.

   Drie maten tekst:   --t-display  --t-lede  --t-body
   Drie maten ruimte:  --s1  --s2  --s3
   Alles op de site gebruikt die zes waarden, niets anders.
   ============================================ */

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

:root {
  --bone:   #EAEAE4;
  --ink:    #0F0F10;
  --quiet:  #77776F;
  --rule:   rgba(15, 15, 16, 0.16);
  --rule-l: rgba(234, 234, 228, 0.22);
  --quiet-l: rgba(234, 234, 228, 0.62);
  --rule-sterk: rgba(15, 15, 16, 0.32);
  --logo:    #FFFFFF;

  --pad:    clamp(1.25rem, 4vw, 4rem);
  --bar-h:  54px;

  --s1:     clamp(0.7rem, 1.2vw, 1rem);
  --s2:     clamp(1.25rem, 2.2vw, 1.75rem);
  --s3:     clamp(2rem, 3.6vw, 2.75rem);

  --t-display: clamp(2rem, 5.2vw, 4.25rem);
  --t-lede:    clamp(1.35rem, 2.8vw, 2.1rem);
  --t-body:    clamp(0.95rem, 1.15vw, 1.05rem);
  --t-mono:    clamp(0.62rem, 1vw, 0.7rem);
}

section[id] { scroll-margin-top: var(--bar-h); }

html {
  scroll-behavior: smooth;
  background: var(--bone);
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.label, .bar-nav, .row-no, .note-key, .meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--t-mono);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* tekst die nog tussen blokhaken staat */
.fill { opacity: 0.5; }

/* ============================================
   BALK
   ============================================ */

.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 0 var(--pad);
  background: var(--bone);
  border-bottom: 1px solid var(--rule);
}

.sr { position: absolute; width: 0; height: 0; overflow: hidden; }

.mark { display: block; fill: currentColor; }
.mark-bar { height: 11px; aspect-ratio: 965 / 84; }

.bar-mark { line-height: 0; }

.bar-nav { display: flex; gap: var(--s2); }

.bar-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s1);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s linear;
}

.bar-nav a:hover { border-bottom-color: var(--ink); }
.bar-nav i { font-style: normal; color: var(--quiet); }

/* ============================================
   MASTHEAD
   ============================================ */

.masthead {
  padding: var(--bar-h) 0 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
}

.banner {
  width: 100%;
  height: clamp(150px, 30vh, 380px);
  background-image: url("images/banner.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-mark {
  width: clamp(170px, 38%, 420px);
  height: auto;
  aspect-ratio: 965 / 84;
  color: var(--logo);
}

.statement {
  padding: var(--s2) var(--pad) 0;
  max-width: 26ch;
  font-size: var(--t-lede);
  font-variation-settings: 'wdth' 96;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

/* ============================================
   SECTIES
   ============================================ */

.block { padding: var(--s3) var(--pad); }

.block-ink {
  background: var(--ink);
  color: var(--bone);
}

.label {
  display: flex;
  gap: var(--s1);
  color: var(--quiet);
  padding-bottom: var(--s1);
  margin-bottom: var(--s2);
  border-bottom: 1px solid var(--rule);
}

.label i { font-style: normal; }

.label-light {
  color: var(--quiet-l);
  border-bottom-color: var(--rule-l);
}

/* ============================================
   RIJ
   Eén opbouw, gebruikt voor de diensten en voor de roster.
   ============================================ */

.index { list-style: none; }
.figures { display: block; }

.row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s2);
  align-items: start;
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.block-ink .row { border-color: var(--rule-l); }

.row-no {
  color: var(--quiet);
  padding-top: 0.85em;
}

.row-name {
  font-size: var(--t-display);
  font-variation-settings: 'wdth' 112;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.row-note {
  max-width: 44ch;
  font-size: var(--t-body);
  font-variation-settings: 'wdth' 88;
  line-height: 1.55;
  color: var(--quiet);
  padding-top: 0.35em;
}

.block-ink .row-no,
.block-ink .row-note { color: var(--quiet-l); }

/* ============================================
   NOTITIES
   ============================================ */

/* een leeg blok mag geen ruimte innemen */
.notes:empty { display: none; }

.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2);
  margin-top: var(--s2);
}

.note {
  font-size: var(--t-body);
  font-variation-settings: 'wdth' 88;
  line-height: 1.55;
  color: var(--quiet-l);
}

.note-key {
  display: block;
  color: var(--quiet-l);
  margin-bottom: var(--s1);
}

/* ============================================
   FILOSOFIE
   ============================================ */

.lede {
  max-width: 26ch;
  font-size: var(--t-lede);
  font-variation-settings: 'wdth' 96;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede + .lede { margin-top: var(--s1); }
.lede-quiet { color: var(--quiet); }

/* ============================================
   CONTACT
   ============================================ */

.address {
  display: block;
  font-size: var(--t-display);
  font-variation-settings: 'wdth' 112;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.035em;
  word-break: break-word;
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--rule);
  transition: opacity 0.12s linear;
}

.address:hover { opacity: 0.55; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: baseline;
  color: var(--quiet);
}

.meta-bottom { padding-top: var(--s1); }

.meta-bottom a { border-bottom: 1px solid transparent; }
.meta-bottom a:hover { border-bottom-color: currentColor; }

/* ============================================
   SMALLE SCHERMEN
   ============================================ */

@media (max-width: 820px) {
  .bar-nav { gap: var(--s1); }
  .bar-nav i { display: none; }

  .row {
    grid-template-columns: 2.5rem 1fr;
    gap: var(--s1) var(--s2);
  }
  .row-no { padding-top: 0.55em; }
  .row-note { grid-column: 2; max-width: none; padding-top: var(--s1); }

  .notes { grid-template-columns: 1fr; }
  .lede { max-width: none; }
}

@media (max-width: 430px) {
  .bar-nav { display: none; }
}

/* ============================================
   AANPASMODUS (?edit)
   ============================================ */

.bewerkbaar {
  outline: 1px dashed var(--rule-sterk);
  outline-offset: 5px;
  cursor: text;
  min-height: 1.1em;
  min-width: 3rem;
}

.block-ink .bewerkbaar { outline-color: var(--rule-l); }

.bewerkbaar:focus {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.bewerkbaar:empty::before {
  content: "typ hier";
  opacity: 0.45;
}

.weg {
  position: absolute;
  top: var(--s1);
  right: 0;
  width: 1.5rem;
  height: 1.5rem;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--quiet);
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
}

.block-ink .weg { border-color: var(--rule-l); color: var(--quiet-l); }

.link-set {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: var(--s1);
  padding-right: 2rem;
}

.link-set .weg { top: -0.2rem; }

.link-url {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--quiet);
  text-transform: none;
}

.note { position: relative; }

.erbij {
  display: inline-block;
  margin-top: var(--s2);
  padding: 0.55rem 0.9rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  cursor: pointer;
}

.block-ink .erbij { color: var(--bone); border-color: var(--rule-l); }

.editbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--s1);
  padding: 0.8rem var(--pad);
  background: var(--ink);
  color: var(--bone);
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editbar .stand { margin-right: auto; }

.editbar input {
  font: inherit;
  text-transform: none;
  padding: 0.55rem 0.7rem;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--rule-l);
}

.editbar button {
  font: inherit;
  padding: 0.6rem 1rem;
  color: var(--ink);
  background: var(--bone);
  border: none;
  cursor: pointer;
}

.editbar button.ghost {
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--rule-l);
}

body:has(.editbar) { padding-bottom: 4rem; }

@media (max-width: 640px) {
  .editbar { flex-wrap: wrap; }
  .editbar .stand { width: 100%; margin-bottom: 0.4rem; }
}
