/* hidje.app — een schrift, geen dashboard.
   De koraalkleurige kantlijn loopt van boven naar beneden door de pagina; labels staan in de kantlijn,
   de tekst rechts ervan. Eén blikvanger: het nachtlog in de hero. Verder rust.
   Tokens volgen de app (src/index.css). Fonts staan lokaal: geen verzoeken naar derden. */

@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces.woff2) format("woff2-variations"), url(/fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito.woff2) format("woff2-variations"), url(/fonts/nunito.woff2) format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/fonts/dm-mono.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #fdf7ee;
  --surface: #ffffff;
  --ink: #2d2a26;
  --muted: #6f665d;          /* iets donkerder dan de app (#7d746a) voor 4.5:1 op papier */
  --line: #ece2d4;
  --coral: #f08a5d;          /* vlakken, de kantlijn */
  --coral-ink: #a8482a;      /* koraal als tekst/link: 5.6:1 op papier */
  --coral-wash: #fbe3d6;
  --rule: rgb(240 138 93 / .55);
  --ruled: rgb(45 42 38 / .07);
  --phone: #2d2a26;
  --screen-empty: #f6ece0;
  --lift: 0 8px 24px -16px rgb(45 42 38 / .35);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --margin: 10.5rem;          /* breedte van de kantlijnkolom */
  --gutter: 2.25rem;          /* afstand tekst tot kantlijn */
  --measure: 38rem;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1a22;
    --surface: #26252f;
    --ink: #f1ece6;
    --muted: #b3aa9f;
    --line: #34323d;
    --coral: #f08a5d;
    --coral-ink: #f6a47f;
    --coral-wash: #3a2b29;
    --rule: rgb(240 138 93 / .45);
    --ruled: rgb(241 236 230 / .07);
    --phone: #0e0d12;
    --screen-empty: #2c2a35;
    --lift: 0 8px 24px -16px rgb(0 0 0 / .7);
  }
}
:root[data-theme="dark"] {
  --paper: #1b1a22; --surface: #26252f; --ink: #f1ece6; --muted: #b3aa9f; --line: #34323d;
  --coral-ink: #f6a47f; --coral-wash: #3a2b29; --rule: rgb(240 138 93 / .45); --ruled: rgb(241 236 230 / .07);
  --phone: #0e0d12; --screen-empty: #2c2a35; --lift: 0 8px 24px -16px rgb(0 0 0 / .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--coral-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem); font-weight: 560; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 800; letter-spacing: 0; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }

/* ---------- taalhint ---------- */
.lang-hint { background: var(--coral-wash); font-size: .95rem; }
.lang-hint p { margin: 0 auto; padding: .55rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lang-hint-close { font: inherit; font-size: 1.4rem; line-height: 1; background: none; border: 0; color: var(--ink); min-width: 48px; min-height: 48px; margin: -.6rem -.6rem -.6rem 0; cursor: pointer; }

/* ---------- kop ---------- */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 600 1.5rem/1 var(--serif); letter-spacing: -.01em; min-height: 48px; }
.wordmark img { border-radius: 9px; }
.masthead ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin: 0; padding: 0; }
.masthead nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; font-size: .98rem; }
.masthead nav a:hover { color: var(--coral-ink); }
.masthead .lang-link { color: var(--muted); font-weight: 400; }

/* ---------- het schrift: kantlijn + tekst ---------- */
.sheet { display: grid; grid-template-columns: var(--margin) minmax(0, 1fr); }
.sheet > * { grid-column: 2; }
.sheet > .margin-note { grid-column: 1; }
.margin-note {
  margin: 0; padding: .55rem 1.25rem 0 0; text-align: right;
  font: 400 .8rem/1.4 var(--mono); font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--muted);
}
.margin-note a { color: inherit; }
.section-body, .screens, .hero-text { border-left: 2px solid var(--rule); padding-left: var(--gutter); }
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-body > :last-child { margin-bottom: 0; }
.intro, .lede { font-size: 1.2rem; line-height: 1.55; max-width: var(--measure); }
.lede { color: var(--ink); }
.footnote { color: var(--muted); max-width: var(--measure); margin-top: 1.75rem; font-size: .98rem; }

/* ---------- hero ---------- */
.hero { grid-template-columns: var(--margin) minmax(0, 1fr) minmax(0, 23rem); column-gap: 0; padding-top: clamp(1.5rem, 1rem + 3vw, 4rem); }
.hero-text { grid-column: 2; padding-top: 1rem; padding-right: 4.5rem; }
.hero h1 { max-width: 15ch; margin-bottom: .6em; }
.hero .lede { max-width: 33rem; }
.availability { color: var(--muted); font-size: .95rem; margin-top: .8rem; }
.hero-visual { grid-column: 3; position: relative; padding-bottom: 2rem; }
.hero .phone { margin-left: auto; width: min(100%, 17.5rem); }

/* het nachtlog: een stukje gelinieerd papier tegen de telefoon */
.log {
  position: absolute; left: -4rem; bottom: 0; width: 19rem; margin: 0;
  background-color: var(--surface);
  background-image: linear-gradient(90deg, transparent 3.6rem, var(--rule) 3.6rem, var(--rule) calc(3.6rem + 1.5px), transparent calc(3.6rem + 1.5px)),
                    repeating-linear-gradient(180deg, transparent 0 calc(2rem - 1px), var(--ruled) calc(2rem - 1px) 2rem);
  background-position: 0 0, 0 .5rem;
  border: 1px solid var(--line); border-radius: 4px 4px 14px 4px; box-shadow: var(--lift);
  padding: .5rem .9rem 1rem 0; font-size: .9rem; white-space: nowrap;
}
.log figcaption { height: 2rem; display: flex; align-items: center; padding-left: 4.4rem; font: 400 .74rem/1 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.log table { border-collapse: collapse; width: 100%; }
.log th, .log td { height: 2rem; padding: 0; vertical-align: middle; line-height: 1.2; }
.log th { width: 3.6rem; padding-right: .7rem; text-align: right; font: 400 .8rem var(--mono); color: var(--coral-ink); font-variant-numeric: tabular-nums; }
.log td { padding-left: .8rem; }

/* ---------- knoppen ---------- */
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .7rem 1.35rem; border-radius: 14px; font-weight: 800; font-size: 1rem; text-decoration: none; transition: transform 120ms var(--ease-out), background-color 120ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--coral); color: #2d2a26; }
.btn-primary:hover { background: #ec7a49; }
.btn-quiet { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }

/* ---------- telefoonkader ---------- */
.phone { margin: 0; width: 100%; max-width: 15.5rem; border-radius: 2.6rem; padding: .55rem; background: var(--phone); box-shadow: var(--lift); }
.phone-screen { position: relative; aspect-ratio: 390 / 844; border-radius: 2.1rem; overflow: hidden; background: var(--screen-empty); }
.phone-screen > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; color: var(--muted); font: 400 .74rem var(--mono); text-align: center; padding: 1rem;
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(1.75rem - 1px), var(--ruled) calc(1.75rem - 1px) 1.75rem); }
.phone-empty img { border-radius: 12px; opacity: .55; }

/* ---------- voor wie ---------- */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 2.25rem 0 0; }
.who dt, .privacy dt { font: 600 1.2rem/1.25 var(--serif); margin-bottom: .45rem; }
.who dd, .privacy dd { margin: 0; color: var(--ink); }

/* ---------- schermen ---------- */
.screens { list-style: none; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-top: .5rem; padding-bottom: .5rem; }
.screens .phone { max-width: 14rem; margin-bottom: 1.5rem; }
.screens h3 { margin-bottom: .35rem; }
.screens p { margin: 0; max-width: 22rem; }

/* ---------- familie ---------- */
.family { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem 3rem; margin-top: 2rem; }
.seen { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.seen h4 { margin-bottom: .5rem; }
.seen ul { list-style: none; margin: 0; padding: 0; }
.seen li { position: relative; padding-left: 1.3rem; margin-bottom: .3rem; }
.seen li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; border-radius: 50%; }
.list-yes li::before { background: var(--coral); }
.list-no li::before { box-shadow: inset 0 0 0 1.5px var(--muted); }
.list-no li { color: var(--muted); }

/* ---------- privacy ---------- */
.privacy { margin: 2rem 0 0; max-width: 44rem; }
.privacy > div { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.5rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.privacy > div:last-child { border-bottom: 1px solid var(--line); }
.privacy dt { margin: 0; font-size: 1.1rem; }

/* ---------- wie ---------- */
.makers p { max-width: var(--measure); font-size: 1.1rem; }
.makers .signature { font: 500 1.6rem/1.2 var(--serif); margin-top: 1.5rem; color: var(--coral-ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 44rem; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; padding-block: .8rem; font-weight: 800; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background:
  linear-gradient(var(--coral-ink), var(--coral-ink)) center / 14px 2px no-repeat,
  linear-gradient(var(--coral-ink), var(--coral-ink)) center / 2px 14px no-repeat; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.1rem; max-width: var(--measure); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- blog ---------- */
.post-list { list-style: none; margin: 1.75rem 0 0; padding: 0; max-width: 44rem; }
.post-list li { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { font: 600 1.3rem/1.25 var(--serif); color: var(--ink); text-decoration: none; }
.post-list a:hover { color: var(--coral-ink); text-decoration: underline; }
.post-list p { margin: .4rem 0 0; color: var(--muted); }
.post-meta { color: var(--muted); font-size: .95rem; }

/* ---------- lopende tekst (blog, juridisch) ---------- */
.doc { padding-top: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.doc h1 { max-width: 20ch; }
.prose { max-width: var(--measure); margin-top: 2rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--coral-ink); }
.prose blockquote { margin: 1.5em 0; padding-left: 1rem; border-left: 3px solid var(--coral); color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose code { font-family: var(--mono); font-size: .9em; }
.notice { max-width: var(--measure); padding: .9rem 1.1rem; background: var(--coral-wash); border-radius: 10px; font-size: .97rem; }
.faq + h2 { margin-top: 2.75rem; }
.contact-line { font: 500 1.35rem/1.3 var(--serif); }
.not-found h2 { margin-top: 2.5rem; font-size: 1.4rem; }

/* ---------- voet ---------- */
.colophon { margin-top: clamp(4rem, 3rem + 4vw, 7rem); padding-bottom: 3rem; }
.colophon-body { border-left: 2px solid var(--rule); padding: 2.5rem 0 0 var(--gutter); border-top: 1px solid var(--line); }
.colophon .margin-note { padding-top: 2.5rem; border-top: 1px solid var(--line); }
.colophon .margin-note img { border-radius: 10px; display: inline-block; }
.colophon-get { font: 600 1.4rem/1.25 var(--serif); margin: 0; }
.colophon-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 2rem 0 1rem; padding: 0; }
.colophon-links a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 700; }
.colophon-small { color: var(--muted); font-size: .9rem; max-width: 44rem; margin-bottom: .5rem; }
.colophon-small a { color: var(--muted); }

/* ---------- smaller ---------- */
@media (max-width: 64rem) {
  :root { --margin: 7.5rem; --gutter: 1.75rem; }
  .hero { grid-template-columns: var(--margin) minmax(0, 1fr); }
  .hero-text { padding-right: 0; }
  .hero-visual { grid-column: 2; border-left: 2px solid var(--rule); padding: 2.5rem 0 0 var(--gutter); display: flex; gap: 1.5rem; align-items: flex-end; }
  .hero .phone { margin: 0; width: 15rem; flex: none; }
  .log { position: static; width: auto; flex: 1; max-width: 19rem; }
  .who { grid-template-columns: 1fr; gap: 1.5rem; max-width: var(--measure); }
  .family { grid-template-columns: 1fr; }
  .screens { gap: 1.5rem; }
}
@media (max-width: 44rem) {
  :root { --gutter: 1.1rem; }
  body { font-size: 1rem; }
  .masthead { padding-block: .5rem; }
  .masthead ul { gap: 0 1rem; }
  .nav-anchor { display: none; }
  .sheet, .hero { grid-template-columns: minmax(0, 1fr); }
  .sheet > *, .sheet > .margin-note, .hero-text, .hero-visual { grid-column: 1; }
  .margin-note { text-align: left; padding: 0 0 .5rem calc(var(--gutter) + 2px); }
  .hero-text { padding-top: 0; }
  .hero-visual { flex-direction: column-reverse; align-items: stretch; padding-top: 2rem; }
  .hero .phone { width: min(100%, 13rem); }
  .log { max-width: none; white-space: normal; }
  .intro, .lede { font-size: 1.1rem; }
  .screens { grid-template-columns: 1fr; gap: 2.5rem; }
  .screens .phone { max-width: 13rem; }
  .seen { grid-template-columns: 1fr; padding: 1rem; }
  .privacy > div { grid-template-columns: 1fr; gap: .3rem; }
  .cta .btn { flex: 1 1 100%; }
  .colophon .margin-note { border-top: 0; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

@media print {
  .masthead nav, .lang-hint, .colophon .cta, .hero-visual, .phone { display: none; }
  .section-body, .hero-text, .screens, .colophon-body { border-left: 0; }
  .faq details > .answer { display: block; }
}
