/*
 * De stijl van de server-pagina's: voorpagina, inloggen, tuin.
 * De versies (src/versies/*) hebben elk hun eigen stijl en delen hier niets mee.
 * Container queries in plaats van media queries: een blok reageert op de
 * breedte van zijn container, niet op die van het scherm.
 */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/lettertypes/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/lettertypes/inter.woff2") format("woff2");
}

:root {
  --zand: #f3ede4;
  --papier: #fbf8f3;
  --inkt: #3a302a;
  --inkt-zacht: #6b5f57;
  --salie: #8a9a7b;
  --oudroze: #c99a92;
  --lijn: #e4dbcf;
  --fout: #9b4a3f;

  --kop: "Fraunces", Georgia, serif;
  --tekst: "Inter", system-ui, sans-serif;
  --rond: 6px;
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--zand);
  color: var(--inkt);
  font-family: var(--tekst);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── De balk bovenaan ─────────────────────────────────────────────────────── */
.balk {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 5vw, 3rem);
}
.merk {
  font-family: var(--kop);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: .01em;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  text-decoration: none;
}
.balk__login, .balk__uit {
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--inkt-zacht);
  text-decoration: none;
  background: none;
  border: 0;
  padding: .25rem 0;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.balk__login:hover, .balk__uit:hover { border-bottom-color: currentColor; }
.balk__uitform { margin: 0; }

/* ── De voorpagina ────────────────────────────────────────────────────────── */
.voor__midden {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem clamp(1rem, 6vw, 4rem) 4rem;
}
.voor__tekening {
  width: min(220px, 55vw);
  height: auto;
  margin-bottom: 2.25rem;
}
.voor__kop {
  font-family: var(--kop);
  font-weight: 400;
  font-size: clamp(2.1rem, 7vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  max-width: 14ch;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.voor__tekst {
  margin: 0;
  color: var(--inkt-zacht);
  font-size: 1.0625rem;
  max-width: 32ch;
}

/* ── De voet ──────────────────────────────────────────────────────────────── */
.voet {
  padding: 1.25rem clamp(1rem, 5vw, 3rem);
  border-top: 1px solid var(--lijn);
  font-size: .8125rem;
  color: var(--inkt-zacht);
}

/* ── Inloggen ─────────────────────────────────────────────────────────────── */
.inlog {
  width: min(100%, 22rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.inlog__kop {
  font-family: var(--kop);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.15;
  font-variation-settings: "SOFT" 50, "opsz" 96;
  margin: 0 0 .5rem;
  text-align: center;
}
.inlog__melding {
  margin: 0;
  padding: .7rem .9rem;
  border-left: 3px solid var(--fout);
  background: var(--papier);
  color: var(--fout);
  font-size: .9375rem;
}
.inlog__veld { display: flex; flex-direction: column; gap: .35rem; }
.inlog__veld span {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--inkt-zacht);
}
.inlog__veld input {
  font: inherit;
  font-size: 1rem; /* 16px: anders zoomt iOS Safari in bij focus */
  color: var(--inkt);
  background: var(--papier);
  border: 1px solid var(--lijn);
  border-radius: var(--rond);
  padding: .75rem .85rem;
}
.inlog__veld input:focus { outline: 2px solid var(--salie); outline-offset: 1px; border-color: transparent; }
.inlog__vink { display: flex; align-items: center; gap: .6rem; font-size: .9375rem; color: var(--inkt-zacht); }
.inlog__vink input { width: 1.1rem; height: 1.1rem; accent-color: var(--inkt); }
.knop {
  font: inherit;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--papier);
  background: var(--inkt);
  border: 0;
  border-radius: var(--rond);
  padding: .85rem 1.25rem;
  cursor: pointer;
  margin-top: .5rem;
}
.knop:hover { background: #2a221d; }

/* ── De tuin ──────────────────────────────────────────────────────────────── */
.tuin__midden {
  flex: 1;
  width: min(100%, 68rem);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 3rem) 4rem;
  container-type: inline-size;
}
.tuin__kop {
  font-family: var(--kop);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  font-variation-settings: "SOFT" 50, "opsz" 144;
  margin: 0 0 .5rem;
}
.tuin__tekst { margin: 0 0 2.25rem; color: var(--inkt-zacht); max-width: 36ch; }

.tegels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@container (min-width: 40rem) {
  .tegels { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
}

.tegel {
  display: flex;
  flex-direction: column;
  background: var(--papier);
  border: 1px solid var(--lijn);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.tegel:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -14px rgba(58, 48, 42, .35);
}
.tegel__beeld {
  aspect-ratio: 4 / 3;
  background: var(--zand);
  border-bottom: 1px solid var(--lijn);
  overflow: hidden;
}
.tegel__beeld img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.tegel__beeld--tekening { display: grid; place-items: center; }
.tegel__beeld--tekening img { width: 62%; height: auto; object-fit: contain; }
.tegel__tekst { padding: 1rem 1.15rem 1.25rem; }
.tegel__datum {
  margin: 0 0 .35rem;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--inkt-zacht);
}
.tegel__titel {
  font-family: var(--kop);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.2;
  font-variation-settings: "SOFT" 50, "opsz" 72;
  margin: 0 0 .25rem;
}
.tegel__nieuw { margin: 0; color: var(--inkt-zacht); font-size: .9375rem; }
.tegel__af {
  display: inline-block;
  margin: .75rem 0 0;
  padding: .15rem .55rem;
  border: 1px solid var(--lijn);
  border-radius: 999px;
  font-size: .75rem;
  color: var(--inkt-zacht);
}
