/* Site styles. Colours, type, spacing and radii come from tokens.css (the design system);
   do not type a value here that has a token. Layout follows design-system/README.md "Layout, web". */

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/comfortaa-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/comfortaa-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Owner decision 2026-11-30: square corners and eCommons UI (ecommons-ui) block shadows: a hard
   offset, no blur. Circles (50%) stay round. These override the design-system radius tokens. */
:root { --radius-sm: 0; --radius-md: 0; --radius-lg: 0; --radius-pill: 0; --block-shadow: 4px 4px 0 var(--ink); }
.card, .row, .board, .panel, .video-cover, .split-img.framed img { box-shadow: var(--block-shadow); }
.split-img.framed img { border: var(--stroke) solid var(--ink); }
/* Buttons as in ecommons-ui: small resting shadow, lift on hover, press on click. */
.btn { box-shadow: 3px 3px 0 var(--ink); transition: transform 0.1s, box-shadow 0.1s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { transform: none; box-shadow: none; }

*, *::before, *::after { box-sizing: border-box; }
/* --header-h: the sticky header's height (84px at every width), so a jump to an anchor lands below it. */
:root { --header-h: 84px; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-3)); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: var(--text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--lime); }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
h1, h2, h3 { margin: 0 0 var(--space-4); text-wrap: balance; }
h1 { font: var(--text-display); letter-spacing: -0.025em; }
h2 { font: var(--text-h2); letter-spacing: -0.02em; }
h3 { font: var(--text-h3); }
p { margin: 0 0 var(--space-3); }
ul, ol { margin: 0 0 var(--space-3); padding-left: 1.3em; }
li + li { margin-top: var(--space-1); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 10; background: var(--paper); padding: var(--space-2) var(--space-3); border: var(--stroke-thin) solid var(--ink); border-radius: var(--radius-pill); }
.skip:focus { top: var(--space-2); }
.anchor { display: block; position: relative; top: calc(-1 * var(--space-5)); }

/* Soft blurred blobs behind the content (design system "Ground"). */
.blobs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.9; }
.blobs i:nth-child(1) { width: 560px; height: 560px; left: -200px; top: -220px; background: var(--lime); }
.blobs i:nth-child(2) { width: 520px; height: 520px; right: -240px; top: 900px; background: var(--mint); opacity: 0.5; }
.blobs i:nth-child(3) { width: 480px; height: 480px; left: -240px; bottom: 400px; background: var(--accent); opacity: 0.35; }
/* Moving blobs (owner 2026-11-30): site.js adds .blobs-move. The blobs stay on screen and move with every
   bit of scroll through random scenes, as between slides in reference/Software for Care.html. Without JS
   the still blobs above remain. */
html.blobs-move .blobs { position: fixed; }
html.blobs-move .blobs i {
  left: 0; top: 0; right: auto; bottom: auto; width: 36vmax; height: 36vmax;
  background: var(--c); opacity: var(--o); will-change: transform;
  transform: translate(calc(var(--x, 50) * 1vw - 50%), calc(var(--y, 50) * 1vh - 50%)) scale(var(--s, 1));
}

/* Grid: container 1120px, side gutter space-4, sections space-6 (space-7 on wide screens). */
.wrap { max-width: calc(1120px + 2 * var(--space-4)); margin: 0 auto; padding: 0 var(--space-4); }
.wrap.narrow { max-width: calc(760px + 2 * var(--space-4)); }
.section { padding: var(--space-6) 0 0; margin: 0; }
.section.tight { padding-top: var(--space-5); }
main { padding-bottom: var(--space-6); }
@media (min-width: 1024px) { .section { padding-top: var(--space-7); } }

.overline { font: var(--text-overline); letter-spacing: 0.16em; text-transform: uppercase; color: var(--deep); margin-bottom: var(--space-3); }
.lead, .lead p { font: var(--text-body-lg); color: #363c38; text-wrap: pretty; }
.prose { max-width: 68ch; text-wrap: pretty; }
/* Long Dutch compounds (verwerkingsverantwoordelijke) must not widen the page on phones. */
main { overflow-wrap: break-word; } /* never hyphenate: a word moves whole to the next line (owner 2026-12-01) */
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font: var(--text-h3); margin-top: var(--space-5); }
.prose h3 { font: 700 20px/1.3 var(--font-display); margin-top: var(--space-4); }
.prose table { border-collapse: collapse; width: 100%; margin: var(--space-4) 0; font: var(--text-small); display: block; overflow-x: auto; }
.prose th, .prose td { border: var(--stroke-thin) solid var(--line); padding: var(--space-2) var(--space-3); text-align: left; vertical-align: top; }
.prose th { background: var(--paper); }
.subheading { font: var(--text-body-lg); color: var(--deep); margin-top: calc(-1 * var(--space-3)); }

/* Buttons (design system Button). */
.buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0 0; }
.buttons.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  border: var(--stroke-thin) solid var(--ink); border-radius: var(--radius-pill);
  padding: 10px 22px; font: 700 17px/1.2 var(--font-display);
  background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none;
}
.btn.primary { background: var(--lime); }
.btn:hover { background: var(--lime); }
.btn.primary:hover { background: var(--paper); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Header (design system SiteHeader). */
/* Sticky (owner 2026-11-30). At the top of the page it has no ground of its own and is part of the page;
   once the page scrolls (site.js sets html.scrolled) it fades to a blurred see-through ground, so the
   blobs show through and the text under it does not (owner 2026-12-01). */
.site-header {
  position: sticky; top: 0; z-index: 9; padding: var(--space-4) 0;
  transition: background-color 0.4s, backdrop-filter 0.4s;
}
html.scrolled .site-header { background-color: color-mix(in srgb, var(--ground) 55%, transparent); backdrop-filter: blur(16px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.lockup { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #000; font: 700 22px/1 var(--font-display); letter-spacing: 0.01em; }
.lockup img { width: 40px; height: 40px; }
.menu { display: none; }
.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin: 0; }
.site-nav a:not(.btn) { font: var(--text-chip); text-decoration: none; padding: 2px 0; }
/* The nav button is white and turns lime on hover (owner 2026-11-30); on its own page it stays lime. */
.site-nav .btn[aria-current="page"] { background: var(--lime); }
.site-nav a[aria-current="page"]:not(.btn), .site-nav a:not(.btn):hover {
  background: linear-gradient(transparent 70%, var(--lime) 70%, var(--lime) 92%, transparent 92%);
}
@media (max-width: 639px) {
  .menu { display: block; }
  .lockup img { width: 32px; height: 32px; }
  .lockup { font-size: 18px; }
  .menu summary {
    display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; cursor: pointer; list-style: none;
    border: var(--stroke-thin) solid var(--ink); border-radius: 50%; background: var(--paper);
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; width: 18px; height: 2px; background: var(--ink); }
  .menu[open] summary { background: var(--lime); }
  .site-nav { display: none; }
  .site-header:has(.menu[open]) .site-nav {
    display: flex; position: absolute; left: var(--space-4); right: var(--space-4); top: 76px; z-index: 5;
    flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-4);
    background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--radius-lg);
  }
  .site-nav ul { flex-direction: column; gap: var(--space-3); }
}

/* Hero. */
.hero { text-align: center; padding-top: var(--space-6); }
.hero h1 { max-width: 24ch; margin-inline: auto; }
.hero-sub { font: var(--text-h3); color: var(--deep); }
.hero .buttons { justify-content: center; }
@media (min-width: 1024px) { .hero { padding: var(--space-7) 0 var(--space-5); } }

/* Text block, optionally with an image beside it. */
.split { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.img-right .split-img { order: 2; }
}
.split-img { margin: 0; }
.split-img img { display: block; border-radius: var(--radius-lg); }
.text-block.center { text-align: center; }
.text-block.center .prose { margin-inline: auto; }
.text-block.quote .prose { font: var(--text-h3); color: var(--deep); margin-inline: auto; text-align: center; }

/* Three columns (home: waarom / wat wij doen / ons plan). The intro is the statement; the columns stay open,
   no rules or panels (owner 2026-12-01): space and the green labels do the grouping. */
/* Intro statement: twice the h3 size (owner 2026-12-01); 32px on phones, below the 40px phone h1. Buttons centred. */
.columns-block .lead, .columns-block .lead p { font: var(--text-h3); font-size: 56px; font-weight: 400; line-height: 1.2; color: var(--ink); }
@media (max-width: 639px) { .columns-block .lead, .columns-block .lead p { font-size: 32px; } }
.columns-block .buttons { justify-content: center; }
.columns { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
@media (min-width: 768px) { .columns { grid-template-columns: repeat(3, 1fr); } }
.column h3 { font: var(--text-overline); font-size: 15px; letter-spacing: 0.16em; color: var(--deep); margin-bottom: var(--space-3); }

/* Staggered rows: each row steps to the right on wide screens, as on the old site. */
.rows { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-5); counter-reset: none; }
.rows li + li { margin: 0; }
.row { background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--radius-lg); padding: var(--space-5); max-width: 640px; position: relative; }
@media (min-width: 900px) {
  .row:nth-child(3n + 2) { margin-left: 240px; }
  .row:nth-child(3n + 3) { margin-left: 480px; }
  .rows.two .row:nth-child(odd) { margin-left: 0; }
  .rows.two .row:nth-child(even) { margin-left: auto; }
}
.row h3 { text-transform: none; }
.row-num { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-3); border-radius: 50%; background: var(--lime); border: var(--stroke-thin) solid var(--ink); font: 700 20px/1 var(--font-display); }

/* Cards (design system SiteCards / InfoCard). */
.cards { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: var(--space-4); }
.cards li + li { margin: 0; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.card { background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-4); display: flex; flex-direction: column; }
.card h3 { font: 700 22px/1.25 var(--font-display); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
.card-sub { color: var(--ink-2); }
.card .prose ul { padding-left: 1.1em; }
.card-btn { margin: auto 0 0; padding-top: var(--space-4); }
.disc { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--space-4); border-radius: 50%; background: var(--lime); border: var(--stroke-thin) solid var(--ink); }
.disc img { width: 36px; height: 36px; }
/* Mint line icons are unreadable on lime: a block can ask to draw them in ink. */
.cards.ink .disc img { filter: brightness(0); }
.cards.small .card h3 { font-size: 19px; }

/* Partner logos: a still grid. Until a partner's logo file exists, its name stands in the logo's place. */
.logos { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .logos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.logos li { display: grid; place-items: center; min-height: 112px; padding: var(--space-3) 0; text-align: center; font: var(--text-chip); color: var(--ink-2); overflow-wrap: anywhere; }
.logos img { display: block; max-width: 100%; max-height: 64px; }
@media (max-width: 639px) { .logos li { font-size: 14px; } }

/* Team. */
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); text-align: center; }
.team li + li { margin: 0; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(3, 1fr); } }
.team img { width: 200px; height: 200px; border-radius: 50%; background: var(--paper); border: var(--stroke) solid var(--ink); object-fit: cover; }
.team h3 { font: 700 20px/1.25 var(--font-display); margin: var(--space-3) 0 var(--space-1); }
.team p { color: var(--ink-2); }

/* Call to action board (design system Board). */
.board { background: var(--paper); border: var(--stroke-heavy) solid var(--ink); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); text-align: center; }
.board h2 { margin-bottom: var(--space-3); }
.board p { font: var(--text-h3); color: var(--deep); max-width: 30ch; margin-inline: auto; text-wrap: balance; }
.board .buttons { margin-top: var(--space-5); }
@media (max-width: 639px) { .board { padding: var(--space-5) var(--space-4); } .board p { font-size: 20px; } }

/* Images. */
.image-block img { display: block; margin: 0 auto; border-radius: var(--radius-lg); }
.image-block figcaption { font: var(--text-small); color: var(--ink-2); text-align: center; margin-top: var(--space-2); }

/* Video cover and dialog. */
.video-cover { display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden; border: var(--stroke) solid var(--ink); }
.video-cover img { display: block; width: 100%; }
.video-cover .play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--lime); border: var(--stroke) solid var(--ink); }
.video-cover .play::after { content: ""; position: absolute; left: 34px; top: 24px; border-style: solid; border-width: 20px 0 20px 30px; border-color: transparent transparent transparent var(--ink); }
.video-title { position: absolute; left: var(--space-4); bottom: var(--space-4); background: var(--paper); border: var(--stroke-thin) solid var(--ink); border-radius: var(--radius-pill); padding: 6px 14px; font: var(--text-chip); }
.video-dialog { width: min(1100px, 94vw); padding: 0; border: var(--stroke) solid var(--ink); border-radius: var(--radius-lg); background: #000; overflow: hidden; }
.video-dialog::backdrop { background: rgba(30, 30, 30, 0.8); }
.video-dialog video { display: block; width: 100%; max-height: 85vh; }
.video-dialog .close { position: absolute; right: var(--space-2); top: var(--space-2); z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: var(--stroke-thin) solid var(--ink); background: var(--paper); font: 700 24px/1 var(--font-display); cursor: pointer; }

/* Forms. */
.panel { background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--radius-lg); padding: var(--space-5); }
@media (max-width: 639px) { .panel { padding: var(--space-5) var(--space-4); } }
.field { margin: 0 0 var(--space-4); border: 0; padding: 0; }
.field > label, legend { display: block; font: 700 16px/1.3 var(--font-display); margin-bottom: var(--space-2); padding: 0; }
.req { color: var(--deep); }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: var(--text-body); color: var(--ink); background: var(--paper);
  border: var(--stroke-thin) solid var(--ink); border-radius: var(--radius-sm); padding: 10px 14px;
}
textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: var(--space-2); font: var(--text-body); margin-bottom: var(--space-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--deep); flex: none; }
.help { font: var(--text-small); color: var(--ink-2); }
.form-status { background: var(--lime); border: var(--stroke-thin) solid var(--ink); border-radius: var(--radius-md); padding: var(--space-4); font: 700 18px/1.4 var(--font-display); }
.form-error { color: var(--warn); font-weight: 700; }
.form-error::before { content: "! "; }
altcha-widget { display: block; margin-bottom: var(--space-4); }

/* Text pages (legal, donate). */
.prose-page h1 { font: var(--text-h2); }
.prose-page .prose { max-width: none; }

/* Footer (design system SiteFooter). */
.site-footer { padding: 0 0 var(--space-5); }
.site-footer .panel { display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .site-footer .panel { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer p { font: var(--text-small); color: var(--ink-2); margin-top: var(--space-3); }
.site-footer h2 { font: var(--text-overline); letter-spacing: 0.16em; text-transform: uppercase; color: var(--deep); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: var(--space-2); }
.site-footer nav a { font: 600 16px/1.3 var(--font-display); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-decoration-color: var(--lime); }
.footer-icons { display: flex; gap: var(--space-3); }
.footer-icons a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: var(--stroke-thin) solid var(--ink); border-radius: 50%; color: var(--ink); }
.footer-icons a:hover { background: var(--lime); }

@media (max-width: 639px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }
  .lead, .lead p { font-size: 19px; }
  .hero-sub { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Sub-items inside a text block (`items:`). */
.sub-item { margin-top: var(--space-5); }
.sub-item h3 { font: var(--text-overline); font-size: 15px; letter-spacing: 0.16em; color: var(--deep); }
.top .split { align-items: start; }

/* Text block style "half" (home: TerpStack, Living Lab; owner 2026-12-01): one item per screen, its text on one half,
   the other half kept for a drawing (empty until it exists); "half end" puts the text on the right. Same width as a
   `.split` column, so an `image:` drops in without moving the text. On phones the text is full width. */
@media (min-width: 768px) {
  .text-block.half .wrap:not(.split) .split-text { width: calc(50% - var(--space-5) / 2); }
  .text-block.half.end .wrap:not(.split) .split-text { margin-left: auto; }
}
.text-block.half h2 { font: var(--text-display); letter-spacing: -0.025em; }
@media (max-width: 639px) { .text-block.half h2 { font-size: 40px; } }
.text-block .hero-sub { margin-top: var(--space-2); text-wrap: balance; }

/* Screens (home, owner 2026-12-01): every section fills the visible screen below the sticky header, its content
   centred; taller content simply grows. The "next" arrow scrolls one screen on, landing exactly under the header. */
html:has(main.screens) { scroll-padding-top: var(--header-h); scroll-behavior: smooth; }
.screens > .section { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding-block: var(--space-6); }
.screens > .section > .wrap { width: 100%; }
/* Room for the arrow so tall content never runs under it; same on top so the content stays centred. */
.screens > .section:has(> .next) { padding-block: calc(48px + var(--space-4) + var(--space-3)); }
.next { position: absolute; left: 50%; bottom: var(--space-4); display: grid; place-items: center; width: 48px; height: 48px; margin-left: -24px; color: var(--ink); animation: next-bob 2.4s ease-in-out infinite; }
.next svg { width: 32px; height: 32px; }
@keyframes next-bob { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .next { animation: none; } }
