/* Vrienden van 'kLEEF: familie van stichtingkleef.nl (Montserrat, magenta en oker). */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-400.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/montserrat-600.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/montserrat-700.woff2") format("woff2");
}

:root {
  --magenta: #a1187c;
  --magenta-donker: #7c105f;
  --geel: #fbba00;
  --tekst: #333;
  --zacht: #5c5c5c;
  --roze: #fcf8fb;
  --lijn: #ead9e4;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: #fff;
  color: var(--tekst);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
}

a {
  color: var(--magenta);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--magenta-donker);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
}

h1,
h2 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.breed {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.overslaan {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: #fff;
  font-weight: 600;
}

.overslaan:focus {
  top: 1rem;
}

/* ------------------------------------------------------------ kop */

.kop {
  border-top: 8px solid var(--geel);
  background: #fff;
}

.kop .breed {
  display: flex;
  align-items: center;
  min-height: 5.5rem;
  padding-block: 0.75rem;
}

.merk {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--magenta);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.merk img {
  flex: none;
  width: auto;
  height: 3.5rem;
}

.merk:hover {
  color: var(--magenta-donker);
}

/* ------------------------------------------------------------ foto */

.hero {
  position: relative;
  height: clamp(17rem, 46vw, 36rem);
  overflow: hidden;
  background: #5b5560;
}

.hero-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(25 12 22 / 0.62) 0%, rgb(25 12 22 / 0.34) 45%, rgb(25 12 22 / 0.08) 80%),
    linear-gradient(0deg, rgb(25 12 22 / 0.35) 0%, rgb(25 12 22 / 0) 55%);
}

.hero-tekst {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: clamp(1.75rem, 6vw, 4.5rem);
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.375rem, 6.4vw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------ blokken */

.blok {
  padding-block: clamp(2.75rem, 7vw, 5.5rem);
}

.blok.roze {
  background: var(--roze);
}

.raster {
  display: grid;
  gap: 1rem 4rem;
}

.blok h2 {
  margin: 0;
  color: var(--magenta);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.tekst {
  max-width: 44rem;
}

.tekst > :first-child {
  margin-top: 0;
}

.tekst > :last-child {
  margin-bottom: 0;
}

.tekst p,
.tekst ul {
  margin: 0 0 1.1em;
}

.tekst ul {
  padding-left: 1.3em;
}

.tekst li {
  margin-block: 0.3em;
}

.tekst li::marker {
  color: var(--magenta);
}

.intro {
  font-size: 1.25rem;
  line-height: 1.65;
}

.inhoudsopgave {
  margin-top: 1rem;
}

.blok .inhoudsopgave h2 {
  color: var(--tekst);
  font-size: 1.125rem;
}

.inhoudsopgave ol {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.inhoudsopgave li {
  margin: 0;
}

.inhoudsopgave a {
  display: inline-block;
  padding-block: 0.3rem;
  font-weight: 600;
  text-decoration: none;
}

.inhoudsopgave a:hover {
  text-decoration: underline;
}

/* ANBI-gegevens */
.gegevens {
  margin: 0;
}

.gegevens div {
  display: grid;
  gap: 0 1.5rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--lijn);
}

.gegevens div:first-child {
  padding-top: 0;
}

.gegevens dt {
  font-weight: 600;
}

.gegevens dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Bestuur */
.tekst ul.bestuur,
.tekst ul.documenten {
  padding-left: 0;
}

.bestuur {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bestuur li {
  display: grid;
  gap: 0 1.5rem;
  margin: 0;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--lijn);
}

.bestuur li:first-child {
  padding-top: 0;
}

.bestuur .naam {
  font-weight: 600;
}

.bestuur .functie {
  color: var(--zacht);
}

/* Jaarstukken */
.documenten {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--lijn);
}

.tekst > .documenten:first-child {
  margin-top: 0;
}

.documenten li {
  margin: 0;
  border-bottom: 1px solid var(--lijn);
}

.documenten a {
  display: grid;
  gap: 0.15rem;
  padding-block: 1rem;
  text-decoration: none;
}

.documenten .titel {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.documenten a:hover .titel {
  text-decoration-thickness: 2px;
}

.documenten .meta {
  color: var(--zacht);
  font-size: 1rem;
  white-space: nowrap;
}

/* ------------------------------------------------------------ voet */

.voet {
  padding-block: 2.5rem;
  background: var(--magenta);
  color: #fff;
  font-size: 1rem;
}

.voet p {
  margin: 0 0 0.35rem;
}

.voet p:last-child {
  margin-bottom: 0;
}

.voet-naam {
  font-weight: 700;
}

.voet a {
  color: var(--geel);
  font-weight: 600;
}

.voet a:hover {
  color: #fff;
}

.voet :focus-visible {
  outline-color: var(--geel);
}

/* 410-pagina */
.verdwenen h1 {
  margin: 0 0 1rem;
  color: var(--magenta);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}

/* ------------------------------------------------------------ groter scherm */

@media (min-width: 40rem) {
  .breed {
    padding-inline: 2rem;
  }

  .merk {
    font-size: 1.375rem;
  }

  .merk img {
    height: 4.25rem;
  }

  .kop .breed {
    min-height: 6.5rem;
  }

  .gegevens div {
    grid-template-columns: 14rem minmax(0, 1fr);
  }

  .bestuur li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .documenten a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.15rem 1.5rem;
  }
}

@media (min-width: 60rem) {
  .raster {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .raster > .intro {
    grid-column: 2;
  }

  .raster > .inhoudsopgave {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
  }

  .tekst {
    font-size: 1.125rem;
  }

  .intro {
    font-size: 1.3125rem;
  }
}

@media print {
  .overslaan,
  .hero-foto,
  .hero::after,
  .inhoudsopgave {
    display: none;
  }

  .hero {
    height: auto;
    background: none;
  }

  .hero h1 {
    color: var(--magenta);
  }

  body {
    font-size: 11pt;
  }

  .blok,
  .blok.roze {
    padding-block: 1rem;
    background: none;
  }

  .voet {
    background: none;
    color: #000;
  }

  .voet a {
    color: #000;
  }
}
