/* Schibsted Grotesk, zelf gehost (SIL Open Font License, zie fonts/OFL.txt) */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-italic.woff2") format("woff2");
}

/* Huisstijl "Doorgehaald in salie" */
:root {
  --salie: #C9D9C2;
  --groen: #183A2B;
  --groen-hover: #24503C;
  --lichtsalie: #F3F6F1;
  --fotovlak: #A9BBA3;
  --pen: #B8241B;           /* alleen doorhalingen, aantekeningen en de hero-knop */
  --pen-hover: #9A1D16;
  --wit: #FFFFFF;

  --r-kaart: 18px;
  --r-vlak: 28px;
  --r-pil: 999px;

  --gutter: 16px;
  --max: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--lichtsalie);
  color: var(--groen);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--groen);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Alleen mobiel / alleen desktop */
@media (max-width: 767px) {
  .alleen-desktop { display: none !important; }
}
@media (min-width: 768px) {
  .alleen-mobiel { display: none !important; }
}

/* Pen: doorhaling en aantekening */
s {
  text-decoration: line-through;
  text-decoration-color: var(--pen);
  text-decoration-thickness: 2.5px;
}

.pen {
  display: block;
  width: fit-content;
  color: var(--pen);
  font-style: italic;
  font-weight: 600;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

/* Groot genoeg (24px+) zodat rood op salie aan de contrasteis voor grote tekst voldoet */
.pen--groot { font-size: 1.5rem; }

/* Knoppen */
.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--r-pil);
  border: 2px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.knop--groen { background: var(--groen); color: var(--wit); }
.knop--groen:hover { background: var(--groen-hover); }
.knop--rood { background: var(--pen); color: var(--wit); }
.knop--rood:hover { background: var(--pen-hover); }
.knop--rand { border-color: var(--groen); color: var(--groen); }
.knop--rand:hover { background: var(--groen); color: var(--wit); }
.knop--klein { padding: 0 1.25rem; }

/* Bovenbalk */
.bovenbalk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.merk {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.125rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  font-weight: 600;
  text-decoration: none;
  padding: .75rem 0;
}
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  background: var(--salie);
  border-radius: var(--r-vlak);
  padding: 28px 20px 20px;
  display: grid;
  gap: 28px;
}
.hero h1 { font-size: clamp(2.25rem, 8vw, 3.25rem); }
.hero .pen { margin-top: .9rem; }
.hero-intro { margin-top: 1.25rem; font-size: 1.125rem; max-width: 34ch; }
.knoppen {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.hero-foto img,
.foto-volgt {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  object-position: 50% 25%;
  max-height: 280px;
}
.foto-volgt {
  background: var(--fotovlak);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 40px 40px 40px 56px;
  }
  .hero-foto img { aspect-ratio: 1 / 1; max-height: 400px; }
}
@media (min-width: 768px) {
  .knop.alleen-desktop { display: inline-flex; }
}

/* Twee routes */
.routes {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.route {
  display: block;
  background: var(--groen);
  color: var(--lichtsalie);
  border-radius: var(--r-kaart);
  padding: 28px 24px;
  text-decoration: none;
  transition: background-color .15s ease;
}
.route:hover { background: var(--groen-hover); }
.route--salie { background: var(--salie); color: var(--groen); }
.route--salie:hover { background: var(--fotovlak); }
.route h2 { font-size: 1.625rem; }
.route p { margin-top: .75rem; max-width: 46ch; }
@media (min-width: 768px) {
  .routes { grid-template-columns: 1fr 1fr; }
  .route { padding: 36px; }
}

/* Secties */
.blok { margin-top: 72px; }
.sectiekop { font-size: clamp(2rem, 6vw, 3rem); }

/* Wat ik bouw */
.bouw-raster {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 900px) {
  .bouw-raster { grid-template-columns: repeat(3, 1fr); }
}
.bouw-kaart {
  border-radius: var(--r-kaart);
  padding: 24px;
}
.bouw-kaart h3 { font-size: 1.5rem; margin-top: 1rem; }
.bouw-kaart p { margin-top: .75rem; }
.bouw-kaart--nu { background: var(--wit); }
.bouw-kaart--binnenkort { border: 2px dashed var(--fotovlak); }

.label {
  display: inline-block;
  background: var(--salie);
  border-radius: var(--r-pil);
  padding: .25rem .8rem;
  font-size: .875rem;
  font-weight: 600;
}
.stappen { display: flex; flex-wrap: wrap; gap: .35rem .75rem; }
.stappen strong { font-weight: 600; }

/* Substack */
.substack {
  background: var(--salie);
  border-radius: var(--r-vlak);
  padding: 32px 20px;
}
.lijst {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 1rem;
  max-width: 680px;
}
.lijst li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  font-size: 1.125rem;
}
.nr { font-weight: 800; }
.kaartje {
  background: var(--lichtsalie);
  border-radius: var(--r-kaart);
  padding: 20px 24px;
  margin: 28px 0;
  max-width: 680px;
}
.kaartje-kop { font-weight: 600; font-size: 1.125rem; }
.kaartje .pen { margin-top: .4rem; }
.kaartje .pen + p { margin-top: .75rem; }
@media (min-width: 768px) {
  .substack { padding: 56px; }
}

/* Goed om te weten */
.disclaimer {
  margin-top: 72px;
}
.disclaimer h2,
.disclaimer p {
  max-width: 680px;
}
.disclaimer h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  padding-top: 32px;
  border-top: 2px solid var(--salie);
}
.disclaimer p { margin-top: .75rem; }

/* Voet */
.voet {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-top: 56px;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: .9375rem;
}
.voet-links { display: flex; gap: 1.5rem; }
.voet-links a { font-weight: 600; text-underline-offset: 4px; }

/* 404-pagina */
.hero--fout { padding-block: 56px; }
.hero--fout h1 { font-size: clamp(2.25rem, 8vw, 3.25rem); }
.hero--fout s { text-decoration-thickness: 3px; }
@media (min-width: 768px) {
  .hero--fout { grid-template-columns: 1fr; }
}

/* Over mij */
.over-mij-tekst { max-width: 640px; margin-top: 28px; }
.over-mij-tekst p + p { margin-top: 1rem; }

/* Copyright-regel onderaan de voet */
.voet-copy {
  flex-basis: 100%;
  font-size: .875rem;
  text-align: center;
}
.voet-copy a { text-underline-offset: 3px; }
@media (min-width: 768px) {
  .voet-copy { text-align: left; }
}
