/* Singels Breda. Tokens en regels volgen DESIGN.md; namen komen overeen met het Figma-bestand. */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("/static/fonts/familjen-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/static/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --nacht: #101a3c;
  --nacht-diep: #0a1128;
  --schemer: #4d5578;
  --papier: #f6f3ec;
  --emaille: #fbfaf6;
  --lijn: #ddd8cb;
  --lantaarn-licht: #f2b45c;
  --lantaarn-diep: #8a540e;

  --kop: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --tekst: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --balk: 64px;
  --hoek: 8px;
}

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

html,
body {
  margin: 0;
  overflow-x: clip;
}

body {
  background: var(--papier);
  color: var(--nacht);
  font: 400 16px/1.45 var(--tekst);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
::selection {
  background: var(--nacht);
  color: var(--emaille);
}
:focus-visible {
  outline: 2px solid var(--nacht);
  outline-offset: 3px;
  border-radius: 4px;
}

.spring {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--nacht);
  color: var(--emaille);
  padding: 10px 14px;
  border-radius: var(--hoek);
  z-index: 10;
}
.spring:focus {
  left: 8px;
}

/* ---------- Het bord ---------- */
.bord {
  --maat: 36px;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--maat);
  height: var(--maat);
  border-radius: 50%;
  font: 600 calc(var(--maat) * 0.5) / 1 var(--kop);
  position: relative;
}
.bord--groot {
  --maat: 52px;
}
.bord--merk,
.bord--hier {
  background: var(--nacht);
  color: var(--emaille);
}
.bord--live {
  background: var(--lantaarn-licht);
  color: var(--nacht);
}
.bord--merk::after,
.bord--hier::after,
.bord--live::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: max(1px, calc(var(--maat) * 0.035)) solid currentColor;
}
.bord--stop {
  background: var(--emaille);
  color: var(--nacht);
  border: max(2px, calc(var(--maat) * 0.065)) solid var(--nacht);
}

/* ---------- Balk en menu ---------- */
.balk {
  height: var(--balk);
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: var(--emaille);
  border-bottom: 1px solid var(--lijn);
}
.balk__links {
  display: flex;
  align-items: center;
  gap: 44px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}
.logo__woord {
  font: 400 20px/1 var(--kop);
  letter-spacing: -0.01em;
}
.logo__woord b {
  font-weight: 600;
}
.balk__menu {
  display: flex;
  gap: 28px;
}
.tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--schemer);
  border-bottom: 2px solid transparent;
  border-top: 2px solid transparent;
}
.tab--aan {
  color: var(--nacht);
  font-weight: 600;
  border-bottom-color: var(--nacht);
}
.tabbalk {
  display: none;
}

/* ---------- Vlakken ---------- */
.vlak {
  display: grid;
  min-height: calc(100vh - var(--balk));
}
.vlak--drie {
  grid-template-columns: 320px minmax(0, 1fr) 400px;
}
.vlak--twee {
  grid-template-columns: minmax(0, 1fr) 400px;
}
.vlak--een {
  grid-template-columns: minmax(0, 720px);
}
.kolom {
  padding: 24px 32px 48px;
  min-width: 0;
}
.zijkant {
  padding: 24px 28px 48px;
  background: var(--emaille);
  border-left: 1px solid var(--lijn);
  min-width: 0;
}
.zijkant > * + .kop {
  margin-top: 28px;
}

/* ---------- Moment ---------- */
.moment {
  display: flex;
  align-items: flex-end;
  padding: 28px;
  background: var(--emaille);
  border-right: 1px solid var(--lijn);
}
.moment--foto {
  color: var(--emaille);
  border-right: 0;
  background:
    linear-gradient(to bottom, rgb(10 17 40 / 0) 35%, rgb(10 17 40 / 0.92) 78%, rgb(10 17 40 / 0.96)),
    var(--nacht-diep) url("/static/foto/haven-blauw-uur.jpg") 62% 20% / cover no-repeat;
}
.moment__tekst {
  display: grid;
  gap: 6px;
}
.moment__kop {
  font: 600 28px/1.12 var(--kop);
  letter-spacing: -0.015em;
}
.moment__credit {
  font-size: 14px;
  opacity: 0.7;
}

/* ---------- Koppen ---------- */
.pagina-kop {
  font: 600 28px/1.12 var(--kop);
  letter-spacing: -0.015em;
  margin-top: 4px;
}
.onder-kop {
  color: var(--schemer);
  margin-top: 4px;
}
.onder-kop--live {
  color: var(--lantaarn-diep);
  font-weight: 600;
}
.kop {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--lijn);
  margin-top: 24px;
}
.kolom > .onder-kop + .kop {
  margin-top: 20px;
}
.kolom > .kop:first-child,
.zijkant > .kop:first-child {
  margin-top: 0;
}
.kop__titel {
  font: 600 18px/1.25 var(--kop);
  letter-spacing: -0.005em;
}
h2.kop__titel {
  font-size: 22px;
  line-height: 1.18;
}
.zijkant h2.kop__titel {
  font-size: 18px;
}
.kop__rechts {
  font-size: 14px;
  color: var(--schemer);
  text-align: right;
}

/* ---------- Regel ---------- */
.regel {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--lijn);
}
.regel__tijd {
  flex: none;
  width: 64px;
  font: 600 18px/1.2 var(--kop);
  font-variant-numeric: tabular-nums;
}
.regel--live .regel__tijd {
  color: var(--lantaarn-diep);
}
.regel__tekst {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.regel__titel {
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.regel__titel:hover {
  text-decoration: underline;
}
.regel__meta,
.regel__rechts {
  font-size: 14px;
  line-height: 1.4;
  color: var(--schemer);
}
.regel__status {
  font-size: 14px;
  font-weight: 600;
}
.regel__rechts {
  flex: none;
  text-align: right;
}
.regel__rechts--sterk {
  color: var(--nacht);
  font-weight: 600;
}
.regel__rechts--live {
  color: var(--lantaarn-diep);
  font-weight: 600;
}
.regel--afgelast .regel__tijd,
.regel--afgelast .regel__titel {
  color: var(--schemer);
  text-decoration: line-through;
}
.zijkant .regel__tijd {
  width: 52px;
}
.na-lijst {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stil {
  color: var(--schemer);
  font-size: 14px;
  padding: 12px 0;
}
.lijst--compact .rij {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lijn);
}
.lijst--compact .rij span {
  color: var(--schemer);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.lijst--compact a {
  text-decoration: none;
}
.lijst--compact a:hover {
  text-decoration: underline;
}

/* ---------- Feiten en bronnen ---------- */
.feit {
  display: flex;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--lijn);
}
.feit dt {
  flex: none;
  width: 150px;
  font-size: 14px;
  color: var(--schemer);
  padding-top: 2px;
}
.feit dd {
  flex: 1;
  min-width: 0;
}
.feit--live {
  color: var(--lantaarn-diep);
  font-weight: 600;
}
.bron {
  display: grid;
  gap: 1px;
  padding: 9px 0;
  border-bottom: 1px solid var(--lijn);
  font-size: 14px;
}
.bron__wat {
  font-weight: 600;
}
.bron__waar,
.bron__fragment {
  color: var(--schemer);
}
.plek-kop {
  display: flex;
  align-items: center;
  gap: 16px;
}
.plek-kop .pagina-kop {
  margin-top: 0;
}

/* ---------- Melding, chips, knoppen ---------- */
.melding {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  margin: 12px 0;
  background: var(--emaille);
  border: 1px solid var(--lijn);
  border-radius: var(--hoek);
}
.kolom .melding {
  max-width: 640px;
}
.melding--letop {
  border: 1.5px solid var(--nacht);
}
.melding__titel {
  font-weight: 600;
}
.melding__tekst {
  font-size: 14px;
  color: var(--schemer);
}
.melding__actie {
  font-size: 14px;
  font-weight: 600;
  justify-self: start;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--lijn);
  border-radius: 999px;
  background: var(--emaille);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.chip--aan {
  background: var(--nacht);
  border-color: var(--nacht);
  color: var(--emaille);
}
.letters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0 4px;
}
.chip--letter {
  justify-content: center;
  width: 44px;
  padding: 0;
}
.lijst--compact .rij--aan a {
  font-weight: 600;
}
.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--hoek);
  background: var(--nacht);
  color: var(--emaille);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease-out;
}
.knop:hover {
  background: var(--nacht-diep);
}
.knop--tweede {
  background: transparent;
  color: var(--nacht);
  box-shadow: inset 0 0 0 1.5px var(--nacht);
}
.knop--tweede:hover {
  background: var(--emaille);
}

/* ---------- Smal scherm ---------- */
@media (max-width: 1100px) {
  .vlak--drie {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .vlak--drie .zijkant,
  .vlak--twee .zijkant {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--lijn);
  }
  .vlak--twee {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .balk {
    padding: 0 20px;
    height: 56px;
  }
  .balk__menu {
    display: none;
  }
  .vlak,
  .vlak--drie {
    display: block;
    min-height: 0;
    padding-bottom: 72px;
  }
  .kolom,
  .zijkant {
    padding: 16px 20px 24px;
  }
  .moment {
    min-height: 0;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--lijn);
  }
  .moment--foto {
    min-height: 150px;
    border-bottom: 0;
    background-position: 50% 30%;
  }
  .moment__kop,
  .pagina-kop {
    font-size: 22px;
    line-height: 1.18;
  }
  h2.kop__titel {
    font-size: 18px;
  }
  .regel__tijd {
    width: 52px;
  }
  .feit dt {
    width: 104px;
  }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -20px;
    padding-right: 20px;
    scrollbar-width: none;
  }
  .chip {
    flex: none;
  }
  .tabbalk {
    position: fixed;
    inset: auto 0 0 0;
    display: flex;
    justify-content: space-around;
    padding: 0 24px calc(10px + env(safe-area-inset-bottom));
    background: var(--emaille);
    border-top: 1px solid var(--lijn);
    font-size: 14px;
  }
  .tabbalk .tab {
    border-bottom: 0;
    padding: 6px 12px 0;
  }
  .tabbalk .tab--aan {
    border-top-color: var(--nacht);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media print {
  .balk__menu,
  .tabbalk,
  .moment--foto {
    display: none;
  }
}

/* ---------- Leespagina ---------- */
.tekst p:not(.onder-kop) {
  max-width: 68ch;
  margin-top: 12px;
}
