/* Polderbytes — "Polder in perspectief" with seasons.
   The page is a polder: a perspective landscape in the hero, plots separated by ditch lines,
   a dike cross-section in the footer. <html data-season> (set by /assets/season.js, herfst
   without JS) recolours the landscape and switches small seasonal details. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --sky: #EEF3F1;          /* page */
  --plot: #FFFFFF;         /* cards */
  --ink: #13272C;
  --ink-soft: #4A5F63;
  --water: #1D5C74;
  --water-soft: #D6E7EC;
  --on-water: #FFFFFF;
  --meadow: #3D6929;
  --meadow-soft: #E1EDD6;
  --ditch: #C5D5D3;
  --dike: #6F9A4E;
  --horizon: #DCE7E4;
  --cloud: #FFFFFF;
  --brick: #9B5B43;
  --roof: #3D4A4C;
  --trunk: #5B4636;
  --sun: #F2C14E;
  /* season (herfst is the default) */
  --s-sky: #EFEAE1;
  --m1: #6E8A3E; --m2: #8FA457; --m3: #B5B878; --m4: #D2C994;
  --tree: #B4643A; --tree-2: #D98A3E;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 75rem;
  color-scheme: light;
}
:root[data-season="lente"]  { --s-sky: #E8F2EA; --m1: #6FA046; --m2: #8DBA5F; --m3: #AFD088; --m4: #CFE3B3; --tree: #3F7A35; --tree-2: #5E9A45; }
:root[data-season="zomer"]  { --s-sky: #E6F0F5; --m1: #4F8A35; --m2: #6A9E45; --m3: #8DB862; --m4: #B4D08E; --tree: #2C5A2A; --tree-2: #3F7A35; }
:root[data-season="winter"] { --s-sky: #E4EBF0; --m1: #7D8F78; --m2: #95A590; --m3: #B3BFAE; --m4: #D3DBD0; --tree: #4E5A55; --tree-2: #66736D; }

@media (prefers-color-scheme: dark) {
  :root {
    --sky: #0E1A1D; --plot: #15252A; --ink: #E3ECE9; --ink-soft: #A3B6B5;
    --water: #86C0D3; --water-soft: #1B3640; --on-water: #0E1A1D;
    --meadow: #9CC67E; --meadow-soft: #20341C; --ditch: #29403F; --dike: #3B5E33;
    --horizon: #16282C; --cloud: #1E3237; --brick: #8A5240; --roof: #2B3537; --trunk: #8A7360; --sun: #E3B341;
    --s-sky: #17191A; --m1: #3A4424; --m2: #4A5230; --m3: #5A5D38; --m4: #6A6A42; --tree: #8A4A28; --tree-2: #A0602E;
    color-scheme: dark;
  }
  :root[data-season="lente"]  { --s-sky: #0F1C1D; --m1: #2F4E26; --m2: #3A5E2E; --m3: #466F37; --m4: #537E42; --tree: #2E5A28; --tree-2: #3E6E34; }
  :root[data-season="zomer"]  { --s-sky: #0E1A20; --m1: #284A22; --m2: #33592B; --m3: #3E6834; --m4: #4A763E; --tree: #1E3F1C; --tree-2: #2B5226; }
  :root[data-season="winter"] { --s-sky: #0F1A20; --m1: #2E3A35; --m2: #36443E; --m3: #3F4E47; --m4: #4A5951; --tree: #3A4642; --tree-2: #4A5651; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
a { color: var(--water); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 6.4vw, 5.6rem); letter-spacing: -.025em; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -.02em; }
h3 { font-weight: 800; font-size: 1.3rem; }
p { margin: 0; }
code { font-family: var(--mono); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--plot); color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 48rem) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.eyebrow { font: 500 .8125rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--water); }
.muted { color: var(--ink-soft); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 56ch; }

/* season switches: only the current season's detail shows */
.only-lente, .only-zomer, .only-herfst, .only-winter { display: none; }
:root:not([data-season]) .only-herfst,
:root[data-season="herfst"] .only-herfst,
:root[data-season="lente"] .only-lente,
:root[data-season="zomer"] .only-zomer,
:root[data-season="winter"] .only-winter { display: revert; }
:root[data-season="winter"] .not-winter { display: none; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--ditch); background: var(--s-sky); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 800 1.3rem var(--display); letter-spacing: -.01em; min-height: 48px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; font-size: 1rem; }
.nav a { color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.6rem; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--water); color: var(--on-water); border: 1.5px solid var(--water); }
.button:hover { text-decoration: underline; }
.button.ghost { background: transparent; color: var(--water); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- hero ---------- */
.hero { background: var(--s-sky); }
.hero-text { display: grid; gap: 1.4rem; padding-block: clamp(2.5rem, 7vw, 5rem) .5rem; }
.hero h1 { max-width: 14ch; }
.landscape { display: block; width: 100%; height: clamp(300px, 38vw, 560px); }
.landscape.small { height: clamp(200px, 24vw, 340px); }
.landscape text { font-family: var(--mono); font-size: 13px; fill: var(--ink-soft); paint-order: stroke; stroke: var(--s-sky); stroke-width: 4px; stroke-linejoin: round; }
.landscape .nap-label { fill: var(--water); font-size: 14px; }
.landscape .frost { fill: #FFFFFF; opacity: .38; }
@media (prefers-color-scheme: dark) { .landscape .frost { opacity: .12; } }
.season-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.season-picker[hidden] { display: none; }
.season-picker p { font-size: .95rem; color: var(--ink-soft); flex-basis: 100%; }
.season-btn { font: 700 1rem var(--body); min-height: 48px; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--ditch); background: var(--plot); color: var(--ink); cursor: pointer; }
.season-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sky); }
.season-btn:hover { border-color: var(--ink); }

/* falling leaves (autumn) and drifting clouds only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .leaf { animation: fall 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .leaf:nth-child(2) { animation-delay: -2.2s; animation-duration: 8s; }
  .leaf:nth-child(3) { animation-delay: -4.5s; animation-duration: 6.5s; }
  .leaf:nth-child(4) { animation-delay: -1.1s; animation-duration: 9s; }
  .leaf:nth-child(5) { animation-delay: -5.6s; animation-duration: 7.5s; }
  @keyframes fall {
    0%   { transform: translate(0, -30px) rotate(0deg); opacity: 0; }
    15%  { opacity: 1; }
    100% { transform: translate(-40px, 70px) rotate(200deg); opacity: 0; }
  }
  .clouds { animation: drift 60s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translateX(0); } to { transform: translateX(-40px); } }
}
@media (prefers-reduced-motion: reduce) {
  .leaves-falling { display: none !important; }
}

/* ---------- sections ---------- */
.band { border-top: 1px solid var(--ditch); padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.stack { display: grid; gap: 1.1rem; min-width: 0; align-content: start; }
.badge { display: inline-block; justify-self: start; font: 700 .875rem var(--body); background: var(--meadow-soft); color: var(--meadow); padding: .25rem .8rem; border-radius: 999px; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.features li { display: flex; gap: .9rem; align-items: flex-start; }
.dot-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--meadow-soft); color: var(--meadow); display: grid; place-items: center; }
.dot-icon svg { width: 20px; height: 20px; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.card { background: var(--plot); border: 1px solid var(--ditch); border-radius: 22px; padding: 1.5rem; display: grid; gap: .6rem; align-content: start; }
.card p { color: var(--ink-soft); }
.card-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--water-soft); color: var(--water); display: grid; place-items: center; }
.card-icon svg { width: 24px; height: 24px; }

.polder-band { background: var(--water); color: var(--on-water); padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.polder-band p { font-size: 1.2rem; max-width: 54ch; }
.polder-band :focus-visible { outline-color: var(--on-water); }

.mail { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--water); }
.mail li { display: flex; flex-wrap: wrap; gap: .1rem 1rem; align-items: baseline; padding: .85rem 0 .85rem 1.25rem; border-bottom: 1px solid var(--ditch); }
.mail li:last-child { border-bottom: 0; }
.mail code { font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.mail span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Tuinritme showcase (Fris salie colours, fixed in both themes) ---------- */
.showcase { position: relative; margin: 0; border-radius: 32px; background: var(--meadow-soft); padding: clamp(1.5rem, 4vw, 3rem) 1rem; display: grid; justify-items: center; gap: 1rem; overflow: hidden; }
.showcase figcaption { font-size: .95rem; color: var(--ink-soft); text-align: center; position: relative; }
.showcase .ditches { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone { position: relative; width: min(300px, 100%); aspect-ratio: 300 / 620; padding: 10px; border-radius: 46px; background: #13272C; font-family: var(--body); }
.screen { height: 100%; border-radius: 37px; background: #F4F7F2; color: #1D3B2A; overflow: hidden; display: flex; flex-direction: column; }
.screen-body { padding: 28px 16px 0; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.screen-top { display: flex; justify-content: space-between; align-items: center; }
.chip { display: inline-block; background: #FBE3DA; color: #8A3A22; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 10px; }
.screen-title { font: 800 21px/1.2 "Nunito", var(--body); }
.tasks { background: #FFFFFF; border-radius: 22px; padding: 4px 10px; list-style: none; margin: 0; }
.tasks li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #E2EADF; }
.tasks li:last-child { border-bottom: 0; }
.fam { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.fam svg { width: 18px; height: 18px; }
.fam.plant { background: #DCEBDD; color: #245236; }
.fam.snoei { background: #FBE3DA; color: #8A3A22; }
.fam.bescherm { background: #E6E1F3; color: #4A3F78; }
.task-text { flex-grow: 1; min-width: 0; display: grid; line-height: 1.35; }
.task-text b { font-size: 14px; }
.task-text span { font-size: 12px; color: #55665B; }
.check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #74857A; }
.check.done { background: #3E7A57; border-color: #3E7A57; display: grid; place-items: center; }
.check.done svg { width: 12px; height: 12px; }
.screen-cta { background: #3E7A57; color: #FFFFFF; border-radius: 999px; text-align: center; padding: 12px; font-size: 14px; font-weight: 700; }
.screen-nav { background: #FFFFFF; display: flex; justify-content: space-around; padding: 10px 6px 16px; font-size: 11px; color: #55665B; margin-top: 12px; }
.screen-nav span { display: grid; justify-items: center; gap: 3px; }
.screen-nav i { display: grid; place-items: center; padding: 3px 14px; border-radius: 14px; font-style: normal; }
.screen-nav svg { width: 18px; height: 18px; }
.screen-nav .on { color: #1D3B2A; font-weight: 700; }
.screen-nav .on i { background: #DCEBDD; }

.examples { background: var(--plot); border: 1px solid var(--ditch); border-radius: 22px; padding: 1.25rem 1.4rem; display: grid; gap: .5rem; }
.examples h3 { font-size: 1.1rem; }
.examples ul { list-style: none; margin: 0; padding: 0; }
.examples li { display: flex; gap: .75rem; align-items: baseline; border-top: 1px solid var(--ditch); padding-block: .55rem; }
.examples li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--meadow); transform: translateY(-1px); }
.examples .note { font-size: .95rem; color: var(--ink-soft); }

/* ---------- long-form (privacy) ---------- */
.prose { padding-block: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1.1rem; }
.prose > * { max-width: 68ch; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.prose h2 { font-size: 1.45rem; margin-top: 1.4rem; }
.prose ul { margin: 0; padding-left: 1.25rem; display: grid; gap: .4rem; }
.prose .meta { color: var(--ink-soft); font-size: .95rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .6rem .75rem .6rem 0; border-top: 1px solid var(--ditch); }
.note-box { background: var(--water-soft); border-radius: 14px; padding: 1rem 1.25rem; }

/* ---------- footer: dike cross-section ---------- */
.site-foot svg { display: block; width: 100%; height: 140px; }
.site-foot text { font-family: var(--mono); font-size: 13px; fill: var(--ink-soft); }
.foot-bar { background: var(--dike); color: var(--ink); }
.foot-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; padding-block: 1.25rem 1.75rem; font-size: .95rem; }
.foot-bar nav { display: flex; flex-wrap: wrap; gap: 0 1.4rem; }
.foot-bar a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.foot-bar :focus-visible { outline-color: var(--ink); }

/* small phones */
@media (max-width: 30rem) {
  .hero h1 { font-size: clamp(2.3rem, 11vw, 2.8rem); }
  .actions .button { flex: 1 1 100%; }
}

/* footer dike section v2 + small landscape framing */
:root { --sea: #1D5C74; --on-sea: #D6E7EC; --sea-deep: #174A5E; --stone: #7E8782; --brick: #9C4F36; --roof: #2F3B3A; }
:root[data-season="winter"] { --dike: #8C9D84; }
@media (prefers-color-scheme: dark) {
  :root { --sea: #23566A; --on-sea: #CFE6EE; --sea-deep: #173F4E; --stone: #56605B; --brick: #6E3A29; --roof: #1E2826; }
  :root[data-season="winter"] { --dike: #3E4C44; }
}
.site-foot svg.dike-section { height: clamp(140px, 11.8vw, 240px); }
.site-foot .dike-section text.on-sea { fill: var(--on-sea); }
.site-foot .dike-section text.nap { fill: var(--water); }
.site-foot .dike-section text.on-land { fill: var(--ink); }
.landscape.small { height: auto; aspect-ratio: 1440 / 440; min-height: 180px; }
.landscape.small .sun-zomer { transform: translateY(50px); }
