/* mediteren.app: de basis van elke pagina. Zand, espresso en één terracotta bal (jij).
   Kleuren en veren komen uit het design system Landen (zie docs/site.md). */

/* Jost, de letter van het merk (OFL, zie fonts/OFL.txt). Eigen kopie: geen verzoek naar Google. */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/jost-light.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-regular.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-medium.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/jost-lightitalic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/jost-italic.woff2") format("woff2"); }
/* Newsreader voor de grote koppen (OFL, zie fonts/OFL-newsreader.txt): één snit, 340 bij optische maat 60. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/newsreader.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/newsreader-italic.woff2") format("woff2"); }
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 96%; ascent-override: 98%; descent-override: 30%; line-gap-override: 0%; }
/* Tot Jost er is, neemt Arial precies zoveel ruimte in: de tekst springt niet als de letter wisselt. */
@font-face { font-family: "Jost Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 94%; ascent-override: 113.8%; descent-override: 39.9%; line-gap-override: 0%; }

/* Een pagina die landt. Zand, espresso en één terracotta bal (jij); de beelden zijn de levende plekken uit de app. */
:root {
  --surface: #f6eee3; --surface-sunk: #efe4d5; --surface-card: #fffaf3; --surface-raised: #ffffff;
  --line: #e3d5c3; --line-strong: #8f7a69; --edge: #bdac9a;
  --ink: #3b2a22; --ink-muted: #6b574a; --ink-faint: #8a7666;
  --ball: #c9603f; --ball-hi: #d26b48; --ball-sh: #bb5536; --ball-ink: #a3472a; --ball-soft: #f6dccd;
  --primary: #3b2a22; --on-primary: #fbf5ec; --focus: #a3472a; --on-tone: #fff7ee;
  --success: #2e6670;
  --header-glass: rgba(255, 255, 255, .78);
  --shadow-float: 0 2px 6px #3b2a2214, 0 18px 40px -18px #3b2a2247;
  /* De schaduw onder de bal (shadowBall in de app), op zijn maat: 22, 48 en 88 px. */
  --ball-schaduw-22: 0 2px 4.5px -2px #a3472a80; --ball-schaduw-48: 0 4.4px 9.8px -4.4px #a3472a80; --ball-schaduw-88: 0 8px 18px -8px #a3472a80;
  --font: "Jost", "Jost Fallback", system-ui, sans-serif;
  --serif: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --ease-settle: cubic-bezier(.2, .7, .2, 1);
  --ease-sink: linear(0, 0.054, 0.17, 0.306, 0.437, 0.553, 0.652, 0.732, 0.796, 0.846, 0.885, 0.914, 0.936, 0.953, 0.966, 0.975, 0.982, 0.987, 0.99, 0.993, 0.995, 0.996, 0.997, 0.998, 0.999, 1);
  --ease-tap: linear(0, 0.037, 0.127, 0.242, 0.365, 0.485, 0.595, 0.69, 0.77, 0.836, 0.887, 0.927, 0.956, 0.977, 0.992, 1.002, 1.007, 1.011, 1.012, 1.012, 1.011, 1.009, 1.008, 1.007, 1.005, 1);
  /* De bal die landt (spring-land in de app: 1,3 Hz, dempingsgraad 0,45), over 1460 ms. */
  --ease-land: linear(0, 0.029, 0.105, 0.215, 0.346, 0.487, 0.628, 0.761, 0.881, 0.983, 1.066, 1.128, 1.171, 1.196, 1.205, 1.201, 1.187, 1.165, 1.139, 1.11, 1.081, 1.053, 1.028, 1.007, 0.989, 0.975, 0.966, 0.96, 0.958, 0.958, 0.961, 0.965, 0.971, 0.976, 0.982, 0.988, 0.993, 0.998, 1.002, 1.005, 1.007, 1.008, 1.009, 1.009, 1.008, 1.007, 1.006, 1.005, 1);
  --gutter: clamp(20px, 4.2vw, 56px);
  --content: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #1b1411; --surface-sunk: #140e0c; --surface-card: #251c18; --surface-raised: #2f241f;
    --line: #3d302a; --line-strong: #8c7566; --edge: #614f45;
    --ink: #f2e7da; --ink-muted: #beab9c; --ink-faint: #8f7c6e;
    --ball: #d06a49; --ball-hi: #d8744f; --ball-sh: #c25e3e; --ball-ink: #f0a27e; --ball-soft: #4a2a1e;
    --primary: #f2e7da; --on-primary: #1b1411; --focus: #f0a27e; --on-tone: #fff1e4;
    --success: #8cc5cb;
    --header-glass: rgba(47, 36, 31, .8);
    --shadow-float: 0 2px 6px #00000066, 0 18px 40px -18px #000000cc;
    --ball-schaduw-22: 0 2px 5px -2px #000000b3; --ball-schaduw-48: 0 4.4px 10.9px -4.4px #000000b3; --ball-schaduw-88: 0 8px 20px -8px #000000b3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #1b1411; --surface-sunk: #140e0c; --surface-card: #251c18; --surface-raised: #2f241f;
  --line: #3d302a; --line-strong: #8c7566; --edge: #614f45;
  --ink: #f2e7da; --ink-muted: #beab9c; --ink-faint: #8f7c6e;
  --ball: #d06a49; --ball-hi: #d8744f; --ball-sh: #c25e3e; --ball-ink: #f0a27e; --ball-soft: #4a2a1e;
  --primary: #f2e7da; --on-primary: #1b1411; --focus: #f0a27e; --on-tone: #fff1e4;
  --success: #8cc5cb;
  --header-glass: rgba(47, 36, 31, .8);
  --shadow-float: 0 2px 6px #00000066, 0 18px 40px -18px #000000cc;
  --ball-schaduw-22: 0 2px 5px -2px #000000b3; --ball-schaduw-48: 0 4.4px 10.9px -4.4px #000000b3; --ball-schaduw-88: 0 8px 20px -8px #000000b3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 17px/1.55 var(--font); letter-spacing: .003em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ------------------------------------------------ letters */
.overline { margin: 0; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.display {
  margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.024em; line-height: 1;
  font-size: clamp(46px, 7vw, 108px); text-wrap: balance; font-kerning: normal;
}
.display em { font-style: italic; }
.display > span, .display > em { display: block; text-wrap: balance; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.018em; line-height: 1.04; font-size: clamp(32px, 4vw, 56px); text-wrap: balance; }
.h2 em { font-style: italic; }
.h3 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 500; letter-spacing: -.003em; }
.lead { margin: 0; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--ink-muted); max-width: 33em; text-wrap: pretty; }
.small { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.caption { font-size: 13px; line-height: 18px; color: var(--ink-muted); letter-spacing: .01em; }

/* ------------------------------------------------ knoppen */
.btn {
  --h: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 17px/20px var(--font); letter-spacing: .005em; text-decoration: none;
  transition: transform 300ms var(--ease-tap), background-color 160ms var(--ease-settle);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1.5px) scale(.985); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 15px; }
.btn--ghost { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ------------------------------------------------ kop */
.skip { position: fixed; z-index: 80; left: max(12px, env(safe-area-inset-left, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); padding: 12px 20px; border-radius: 999px; background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 500; transform: translateY(-200%); transition: transform 280ms var(--ease-sink); }
.skip:focus-visible { transform: none; }
.top {
  position: fixed; z-index: 50; left: 0; right: 0; top: env(safe-area-inset-top, 0px);
  padding: 12px max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.top__in {
  pointer-events: auto; max-width: calc(var(--content) + 2 * var(--gutter) - 24px); margin: 0 auto;
  display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 8px 0 20px; border-radius: 999px;
  background: transparent; transition: background-color 420ms var(--ease-settle), box-shadow 420ms var(--ease-settle);
}
.top.is-solid .top__in { background: var(--header-glass); box-shadow: var(--shadow-float); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 48px; border-radius: 12px; }
.brand__mark { width: 50px; height: 24px; overflow: visible; }
.brand__mark path { fill: var(--ink); }
.brand__word { font-size: 21px; line-height: 1; font-weight: 400; letter-spacing: .01em; }
.top__nav { display: flex; gap: 4px; margin-left: auto; }
.top__nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-muted); padding: 12px 14px; border-radius: 999px; transition: color 160ms var(--ease-settle), background-color 160ms var(--ease-settle); }
.top__nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
/* in het donker, zolang de kop doorzichtig over een beeld ligt: de volle inkt, anders verdwijnen de links in een lichte lucht */
:root[data-theme="dark"] .top:not(.is-solid) .top__nav a { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top:not(.is-solid) .top__nav a { color: var(--ink); } }
.top__cta { opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none; transition: opacity 280ms var(--ease-settle), transform 590ms var(--ease-sink), visibility 0s linear 590ms; }
.top.has-cta .top__cta { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
@media (max-width: 860px) { .top__nav { display: none; } .top__cta { margin-left: auto; } }

/* voet */
.voet { padding-block: clamp(64px, 8vw, 104px) calc(40px + env(safe-area-inset-bottom, 0px)); }
.voet .wrap { display: grid; gap: 40px; }
.voet__mark { width: 132px; height: 60px; overflow: visible; }
.voet__mark path { fill: var(--ink); }
.voet__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; }
.voet nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.voet nav a { padding: 10px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-muted); font-size: 15px; }
.voet nav a:hover { color: var(--ink); }
.voet__klein { margin: 0; }
.voet__klein a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.voet__klein a:hover { color: var(--ink); text-decoration-color: currentColor; }
.weergave { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-sunk); }
.weergave button { border: 0; background: transparent; color: var(--ink-muted); font: 500 14px/1 var(--font); padding: 10px 14px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.weergave button[aria-pressed="true"] { background: var(--surface-card); color: var(--ink); }


/* ------------------------------------------------ downloaden: de winkelbadges en de QR-code (voorpagina en /download)
   De officiële badges van Apple en Google, even hoog en Apple eerst. Ze staan er altijd allebei, ook op een iPhone
   of Android (Martijn, 29 november 2026). De QR-code alleen op een computer. */
.winkels { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.winkel { display: block; border-radius: 9px; }
.winkel img { display: block; width: auto; height: 44px; }
@media (min-width: 900px) { .winkel img { height: 48px; } }
.qr { display: grid; justify-items: center; gap: 10px; padding: 18px; border-radius: 24px; background: #fff7ee; color: #3b2a22; }
.qr svg { width: 128px; height: 128px; fill: none; stroke: #3b2a22; stroke-width: 1; }
.qr span { font-size: 13px; }


/* van pagina naar pagina, en van licht naar donker: een korte fade (waar de browser dat kan).
   Ook met Verminder beweging: de site negeert die instelling (besluit 18 nov 2026, docs/site.md). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; animation-timing-function: var(--ease-settle); }
.vt-weergave::view-transition-old(root), .vt-weergave::view-transition-new(root) { animation-duration: 480ms; }
