/* The sign-up page, set like a printed feature. Everything grows out of the logo's own parts:
   the frame, the heavy bar (the weekday), the yellow block (the part of the day) and the rule.
   One grid of twelve columns: a margin of four columns for numbers, captions and notes, and the
   text on the fifth column. Sizes are in rem so the page follows the reader's own text size. */

@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url(/letters/atkinson-hyperlegible-next-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 600; font-display: swap; src: url(/letters/atkinson-hyperlegible-next-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-display: swap; src: url(/letters/atkinson-hyperlegible-next-latin-700-normal.woff2) format("woff2"); }

:root {
  --papier: #f6f4ee;
  --wit: #fffefa;
  --inkt: #14130f;
  --zacht: #57544a;
  --geel: #f2c500;
  --blauw: #1d4f9e;
  --rand: #d9d5c8;
  --marge: 1.25rem;
  --goot: 1.5rem;
  --dik: 6px;
  --haar: 1px;
  --wit-boven: 4rem;      /* the white above a section */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* A jump to a section lands just above its rule, not above its white. */
#vragen, #bericht { scroll-margin-top: calc(1.5rem - var(--wit-boven)); }
body {
  margin: 0; background: var(--papier); color: var(--inkt);
  font-family: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1875rem; line-height: 1.5;
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 4px; text-decoration-color: var(--geel); }
:focus-visible { outline: 4px solid var(--blauw); outline-offset: 3px; }
figure { margin: 0; }

/* The grid. On a phone it is one column; from 1040px it is twelve. */
.raster {
  display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--goot);
  max-width: 80rem; margin: 0 auto; padding: 0 var(--marge);
}
.raster > * { grid-column: 1 / -1; }

/* ---- The top of the page is laid out like the screen itself. ---- */
.scherm { padding-top: 1.25rem; }
.merk { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 2rem; font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -0.025em; }
.merk img { width: 3rem; height: 3rem; }
.merk a { display: flex; align-items: center; gap: inherit; text-decoration: none; }
.dag { margin: 0 0 0 -0.045em; font-size: clamp(3rem, 14vw, 9rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.04em; }
.dag.zin { font-size: clamp(3rem, 13.6vw, 9rem); }
.onderdag { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 0.8em; margin: 0.9rem 0 0; min-height: 2.4rem; font-size: clamp(1.3rem, 2.4vw, 1.875rem); line-height: 1.2; }
.dagdeel { display: inline-block; padding: 0.08em 0.6em 0.16em; border-radius: 0.32em; background: var(--geel); font-weight: 700; }
.dagdeel.donker { background: var(--blauw); color: #fff; }
.streep { height: var(--dik); margin: 1.3rem 0 1.3rem; background: var(--inkt); }
h1 { margin: 0; font-size: clamp(2.1rem, 5.4vw, 4.25rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.regel2 { margin: 1rem 0 0; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.3; text-wrap: balance; }
.nu { margin: 1.1rem 0 0; color: var(--zacht); }
.nu a { display: block; width: fit-content; padding: 0.5rem 0; color: var(--inkt); }

/* ---- Pictures and their captions ---- */
figcaption, .klein { font-size: 1.0625rem; line-height: 1.45; }
figcaption { margin-top: 0.75rem; color: var(--zacht); }
.groot { margin-top: 1.75rem; padding: 0; }
.groot img { width: 100%; background: var(--rand); }
.groot figcaption { padding: 0 var(--marge); }

/* ---- A section: a number in the margin, a large heading, the text ---- */
.deel { padding-top: var(--wit-boven); }
.deel > .raster:first-child::before { content: ""; grid-column: 1 / -1; height: var(--haar); margin-bottom: 1.1rem; background: var(--inkt); }
.nr { margin: 0 0 0.6rem; font-size: 1.125rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.02em; }
h2, .eerst { margin: 0 0 1.4rem; font-size: clamp(2.2rem, 4.9vw, 3.75rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.eerst span { display: block; }
.tekst > p:last-child, .tekst > .vel:last-child { margin-bottom: 0; }
.inleiding { font-size: clamp(1.3rem, 2.2vw, 1.625rem); line-height: 1.38; margin-bottom: 0; }

/* The two of us: cut to the faces. On a phone the picture comes after the first paragraph. */
.samen { margin: 0.4rem 0 1.6rem; width: 70%; max-width: 20rem; }
.samen img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; }
.begin .tekst { display: contents; }
.begin .tekst > p:first-child { margin-bottom: 1.1em; }
.begin .samen { order: 1; }
.begin .tekst > p:nth-child(n+2) { order: 2; }

/* ---- What is on the screen: three close cuts of the frame in a row, then the room at night ---- */
.staat img { width: 100%; background: var(--rand); }
/* A close cut of the same picture: only the frame, so the words on the screen can be read.
   The frame stands at 43% from the left and 45% from the top of every picture. */
.uitsnede { overflow: hidden; aspect-ratio: 6 / 5; background: var(--rand); }
.uitsnede img { width: 205%; max-width: none; margin: -27.3% 0 0 -40.5%; }
.rij-beelden { row-gap: 2.25rem; margin-top: 2.25rem; }
.rij-beelden .uitsnede { margin: 0 calc(-1 * var(--marge)); }
.nachtband { margin-top: 3rem; padding: 2rem 0 2.5rem; background: var(--inkt); color: var(--papier); }
.nachtband img { margin: 0 calc(-1 * var(--marge)); width: calc(100% + 2 * var(--marge)); max-width: none; background: #000; }
.nachtband figcaption { color: var(--papier); font-size: 1.3rem; line-height: 1.35; margin-top: 1.1rem; }

/* ---- The forms: set like a paper form ---- */
.aanmelden { margin-top: var(--wit-boven); padding: 3rem 0 3.25rem; background: var(--geel); }
.aanmelden > .raster:first-child::before { display: none; }
.vel { margin-top: 1.9rem; }
form { margin: 0; }
label { display: block; margin: 0 0 0.45rem; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
input[type="email"], input[type="text"], textarea {
  display: block; width: 100%; min-height: 3.75rem; margin: 0; padding: 0.7rem 1rem;
  font: inherit; font-size: 1.25rem; color: var(--inkt); background: var(--wit);
  border: 2px solid var(--inkt); border-radius: 0; -webkit-appearance: none; appearance: none;
}
textarea { min-height: 13rem; line-height: 1.5; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline-offset: 0; }
input::placeholder { color: #736f63; opacity: 1; }
.rij { display: grid; }
.rij button { margin-top: 0.75rem; }
.velden { display: grid; gap: 1.5rem var(--goot); margin-bottom: 1.5rem; }
button, .knop {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.75rem; padding: 0.7rem 1.6rem; cursor: pointer;
  font: inherit; font-size: 1.25rem; font-weight: 700; line-height: 1.2; text-decoration: none;
  color: var(--papier); background: var(--inkt); border: 2px solid var(--inkt); border-radius: 0;
}
button { width: 100%; }
button:hover, .knop:hover { color: var(--inkt); background: var(--wit); }
#berichtformulier button:hover, .knop:hover { background: var(--geel); }
button[disabled] { cursor: progress; opacity: 0.6; }
.niet-invullen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* What went wrong stands right under the field, on white. */
.melding { margin: 0.5rem 0 0; padding: 0.6rem 1rem; font-weight: 700; line-height: 1.4; background: var(--wit); border: 2px solid var(--inkt); }
.melding:empty { margin: 0; padding: 0; border: 0; }
.dank { padding-top: 1.1rem; border-top: var(--dik) solid var(--inkt); }
.dank:focus { outline: none; }
.dank-kop { margin: 0 0 0.5rem; font-size: clamp(2.2rem, 4.9vw, 3.75rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
.dank p:last-child { margin-bottom: 0; }

/* What the family types, and what the screen makes of it. */
.vertaling { margin: 2.2rem 0 2.4rem; }
.vertaling div { padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--inkt); }
.vertaling .wordt { border-top: 6px solid var(--inkt); }
.vertaling dt { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 700; color: var(--zacht); }
.vertaling dd { margin: 0; font-size: 1.35rem; line-height: 1.35; }
.vertaling .wordt dd { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }

/* The questions: a hairline, the question, the answer. On the desk the question stands in the margin. */
.vraag { padding: 1.15rem 0 1.5rem; border-top: var(--haar) solid var(--inkt); }
.vraag h3 { margin: 0 0 0.45rem; font-size: 1.375rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.vraag p { margin: 0; }
.vraag:last-child { padding-bottom: 0; }

/* Writing a message is the quiet second thing: it opens on request, and is drawn in lines, not in fields of colour. */
.schrijf { margin-top: 2rem; }
.schrijf > summary { width: 100%; min-height: 3.75rem; padding: 0 1.1rem; font-size: 1.25rem; border: 2px solid var(--inkt); }
.schrijf > summary:hover { background: var(--wit); text-decoration: none; }
.schrijf .vel { margin-top: 1.5rem; max-width: 30rem; }
.schrijf .velden { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; margin-bottom: 1.25rem; }
.schrijf label { font-size: 1.0625rem; font-weight: 600; }
.schrijf input[type="email"], .schrijf input[type="text"], .schrijf textarea { min-height: 3.25rem; padding: 0.55rem 0.8rem; font-size: 1.1875rem; background: transparent; border-width: var(--haar); }
.schrijf textarea { min-height: 9rem; }
.schrijf .melding:not(:empty) { margin: -0.5rem 0 1.25rem; }
.schrijf button { width: auto; min-height: 3.25rem; padding: 0.55rem 1.4rem; font-size: 1.125rem; color: var(--inkt); background: transparent; }
.schrijf .dank { padding-top: 0.4rem; border-top: 0; }
.schrijf .dank-kop { font-size: 1.75rem; letter-spacing: -0.02em; }
.schrijf > .klein { max-width: 30rem; margin-top: 1.5rem; }

/* The small print stands in the margin. */
.kantlijn { margin-top: 2rem; padding-top: 0.9rem; border-top: var(--haar) solid var(--inkt); }
.klein { margin: 0; color: var(--zacht); }
.aanmelden .klein { color: var(--inkt); }
details.klein { margin-top: 0.5rem; }
details.klein p { margin: 0 0 0.8rem; }
summary { display: flex; align-items: center; gap: 0.6rem; width: fit-content; min-height: 2.75rem; cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 0.9em; font-size: 1.4em; font-weight: 400; line-height: 1; text-align: center; }
details[open] > summary::before { content: "\2212"; }
summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

.groet { margin: var(--wit-boven) 0 0; font-size: 1.4rem; line-height: 1.3; }
.groet strong { display: block; margin-top: 0.2em; font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.025em; }
.terug { margin: 2.5rem 0 0; }

footer { margin-top: var(--wit-boven); padding-bottom: 3.5rem; font-size: 1.0625rem; line-height: 1.5; }
footer .raster::before { content: ""; grid-column: 1 / -1; height: var(--dik); margin-bottom: 1.5rem; background: var(--inkt); }
.klein-merk { margin-bottom: 1.25rem; font-size: 1.5rem; gap: 0.55rem; }
.klein-merk img { width: 2.25rem; height: 2.25rem; }
.voet p { margin: 0 0 0.4em; }
.voet a { display: inline-block; padding: 0.55rem 0; }

.los main { padding-bottom: 5rem; }

/* ---- Between phone and desk: a little more air, a measure that stays readable ---- */
@media (min-width: 700px) {
  :root { --marge: 2.5rem; --wit-boven: 5.5rem; }
  body { font-size: 1.25rem; line-height: 1.6; }
  .merk { font-size: 2.5rem; gap: 0.9rem; margin-bottom: 2.5rem; }
  .merk img { width: 3.75rem; height: 3.75rem; }
  .klein-merk { font-size: 1.5rem; gap: 0.55rem; margin-bottom: 1.25rem; }
  .klein-merk img { width: 2.25rem; height: 2.25rem; }
  .scherm { padding-top: 2rem; }
  .streep { margin: 1.7rem 0 1.6rem; }
  .tekst, .inleiding, .kantlijn, .regel2, .nu, .vragenlijst, .begin .tekst > p { max-width: 38rem; }
  .samen { width: 50%; }
  .groot { padding: 0 var(--marge); }
  .groot figcaption { padding: 0; }
  .rij-beelden .uitsnede { margin: 0; }
  .rij-beelden .staat { max-width: 38rem; }
  .nachtband img { margin: 0; width: 100%; }
  .nachtband { padding: 3rem 0 3.25rem; }
  .rij { grid-template-columns: minmax(0, 1fr) auto; }
  .rij input { grid-area: 1 / 1; border-right: 0; }
  .rij button { grid-area: 1 / 2; margin-top: 0; }
  .rij .melding { grid-area: 2 / 1 / 3 / -1; }
  button { width: auto; }
  .velden { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .veld.heel { grid-column: 1 / -1; }
}

/* ---- Wide enough for the three pictures in one row ---- */
@media (min-width: 800px) {
  .raster.rij-beelden { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rij-beelden > * { grid-column: auto; }
  .rij-beelden .staat { max-width: none; }
}

/* ---- The desk: twelve columns, margin on the left ---- */
@media (min-width: 1040px) {
  :root { --marge: 3rem; --wit-boven: 6rem; --dik: 8px; }
  .raster { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .tekst, .inleiding, .kantlijn, .regel2, .nu, .samen, .vragenlijst, .begin .tekst > p { max-width: none; }

  .scherm { padding-top: 1.75rem; }
  .merk { margin-bottom: 2.25rem; }
  .klein-merk { margin-bottom: 0; }
  .streep { margin: 1.8rem 0 1.7rem; }
  .scherm h1 { grid-column: 5 / -1; }
  .scherm .regel2 { grid-column: 5 / 11; margin-top: 1.1rem; }
  .scherm .nu { grid-column: 5 / -1; }

  .groot { margin-top: 2.5rem; }
  .groot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 42%; }
  .groot figcaption { grid-column: 1 / 5; }

  .deel > .raster:first-child::before { margin-bottom: 1.25rem; }
  .nr { grid-column: 1 / 5; margin: 0.5rem 0 0; font-size: 1.5rem; line-height: 1.2; }
  .raster > h2, .eerst { grid-column: 5 / -1; margin-bottom: 2.75rem; }
  .tekst, .inleiding { grid-column: 5 / 11; }

  .begin .tekst { display: block; }
  .begin .tekst > p:last-child { margin-bottom: 0; }
  .samen { grid-column: 1 / 4; width: auto; margin: 0.45rem 0 0; }

  .rij-beelden { margin-top: 3rem; }
  .nachtband { margin-top: 3rem; padding: 3.5rem 0; }
  .nachtband .staat { align-items: end; }
  .nachtband img { grid-column: 5 / -1; grid-row: 1; }
  .nachtband figcaption { grid-column: 1 / 5; grid-row: 1; margin: 0; font-size: 1.625rem; line-height: 1.32; text-wrap: balance; }

  /* What I type stands in the margin, what the screen makes of it on the text column. */
  .vertaling { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--goot); margin-left: calc((-200% - 2 * var(--goot)) / 3); }
  .vertaling div { grid-column: 1 / 5; padding-top: calc(1.1rem + 5px); }
  .vertaling .wordt { grid-column: 5 / 11; padding-top: 1.1rem; }

  .vraag { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--goot); padding: 1.3rem 0 1.9rem; }
  .vraag h3 { grid-column: 1 / 5; margin: 0.12rem 0 0; }
  .vraag p { grid-column: 5 / 11; }

  .aanmelden { padding: 4.5rem 0 5rem; }
  .vel { margin-top: 2.5rem; }
  .kantlijn { grid-column: 1 / 4; grid-row: 2; align-self: start; margin: 0.55rem 0 0; }

  .groet { grid-column: 5 / 11; }
  .terug { grid-column: 5 / 11; }
  footer .klein-merk { grid-column: 1 / 5; align-self: start; }
  footer .voet { grid-column: 5 / 11; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
