/* Maaiwijzer, design v3 (3 Dec 2026)
   Idea: a garden plan. Pale lichen paper, moss ink, lawn green, and the
   yellow of a boundary wire as the one signal colour. Anybody (wide) for
   headings and interface, Source Serif 4 for reading. */

@font-face { font-family: "Anybody"; src: url(/fonts/anybody.woff2) format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/sourceserif4.woff2) format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/sourceserif4-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --paper: #eef0e4;
  --sheet: #f8f9f2;
  --ink: #1e2b1f;
  --ink-soft: #536150;
  --rule: #cdd3bf;
  --lawn: #3f6b2a;
  --lawn-deep: #2c4d1d;
  --lawn-ink: #f3f6ea;
  --turf: #c5d79a;
  --mown: #a6c26b;
  --wire: #e8b517;
  --wire-soft: #f7eac0;
  --soil: #8a6a4c;
  --paving: #dcd9cb;
  --grid: rgba(63, 107, 42, .09);
  --display: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --measure: 38rem;
  --max: 70rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151b14; --sheet: #1c241a; --ink: #e3e9d8; --ink-soft: #a5b39c; --rule: #33402f;
    --lawn: #8fbd5f; --lawn-deep: #1f3317; --lawn-ink: #e8f0dc; --turf: #2b3d22; --mown: #4c6a33;
    --wire: #f0c53a; --wire-soft: #3a3116; --soil: #6e5640; --paving: #2a3027; --grid: rgba(143, 189, 95, .08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151b14; --sheet: #1c241a; --ink: #e3e9d8; --ink-soft: #a5b39c; --rule: #33402f;
  --lawn: #8fbd5f; --lawn-deep: #1f3317; --lawn-ink: #e8f0dc; --turf: #2b3d22; --mown: #4c6a33;
  --wire: #f0c53a; --wire-soft: #3a3116; --soil: #6e5640; --paving: #2a3027; --grid: rgba(143, 189, 95, .08);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.62 var(--text);
  font-optical-sizing: auto;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; padding-bottom: 4rem; }
a { color: var(--lawn); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
main > .wrap > * { max-width: var(--measure); }
main > .wrap > .table-scroll, main > .wrap > .tool, main > .wrap > .result { max-width: 46rem; }

/* Type scale: 18px base, ratio about 1.25 */
h1, h2, h3, legend, .logo, nav.main, .btn, .crumbs, .byline, th, .faq summary, .field label, .index a, .tools-list a, figcaption, .plan text {
  font-family: var(--display);
}
h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.6rem); font-weight: 820; font-stretch: 122%;
  line-height: 1.02; letter-spacing: -.02em; margin: 0 0 .5em; max-width: 16ch;
  text-wrap: balance;
}
h2 { font-size: 1.6rem; font-weight: 760; font-stretch: 115%; line-height: 1.15; margin: 2.4em 0 .5em; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; font-stretch: 105%; line-height: 1.25; margin: 1.6em 0 .35em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .3em; }
strong { font-weight: 650; }
.lead { font-size: 1.28rem; line-height: 1.5; color: var(--ink); margin: 0 0 1em; max-width: 34rem; }

/* Header: paper, ink, and the wire running under it */
header.site { background: var(--paper); }
header.site .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
  background: linear-gradient(90deg, var(--wire) 0 14px, transparent 14px 22px) bottom / 22px 3px repeat-x;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 125%; font-size: 1.3rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.logo b { font-weight: inherit; color: var(--lawn); }
.logo .mark { width: 30px; height: 30px; flex: none; color: var(--ink); }
.mark .needle { transform-origin: 16px 16px; transform: rotate(35deg); }
nav.main { display: flex; flex-wrap: wrap; gap: 2px 4px; font-size: .95rem; font-weight: 560; margin-right: -10px; }
nav.main a { color: var(--ink); text-decoration: none; padding: 6px 10px; }
nav.main a:hover { color: var(--lawn); text-decoration: underline; text-decoration-thickness: 2px; }
nav.main a[aria-current="page"] { color: var(--lawn); }
nav.main a.lang { color: var(--ink-soft); }

/* Page intro on every inner page */
.intro { padding: 2.6rem 0 1.8rem; }
.intro .lead { color: var(--ink); }
.intro + .wrap { padding-top: .5rem; }
.watermark { display: none; }
.crumbs { font-size: .88rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 1.4rem; }
.crumbs a { color: var(--ink-soft); }
.byline { font-size: .88rem; color: var(--ink-soft); margin: 1.2rem 0 0; }
.byline a { color: inherit; }

.disclosure { font-size: .92rem; font-style: italic; color: var(--ink-soft); margin: 0 0 2rem; }

/* Home: hero with the garden plan */
.home-hero { padding: 2.4rem 0 1rem; }
.home-hero .wrap { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) {
  .home-hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; }
  .home-hero .copy { padding-top: 3.5rem; }
}
.home-hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); max-width: 12ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 1.6rem; align-items: center; }

.plan-figure { margin: 0; }
.plan { display: block; width: 100%; height: auto; }
.plan .fence { fill: none; stroke: var(--ink); stroke-width: 2; }
.plan .lawn { fill: var(--turf); }
.plan .house { fill: var(--ink); }
.plan .terrace { fill: var(--paving); }
.plan .bed { fill: var(--soil); opacity: .55; }
.plan .shed { fill: var(--soil); }
.plan .canopy { fill: var(--lawn); opacity: .22; stroke: var(--lawn); stroke-width: 1.5; stroke-dasharray: 3 4; }
.plan .trunk { fill: var(--soil); }
.plan .gravel { fill: var(--paving); }
.plan .track { fill: none; stroke: var(--mown); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.plan .wire { fill: none; stroke: var(--wire); stroke-width: 3; stroke-dasharray: 9 5; stroke-linejoin: round; }
.plan .dock { fill: var(--ink); }
.plan .mower { fill: var(--ink); }
.plan .mower-dot { fill: var(--wire); }
.plan .leader { stroke: var(--ink); stroke-width: 1; fill: none; }
.plan .slope { stroke: var(--lawn-deep); stroke-width: 1.5; fill: none; }
.plan text { fill: var(--ink); font-size: 15px; font-weight: 600; font-stretch: 100%; }
.plan text.big { font-size: 22px; font-weight: 800; font-stretch: 120%; }
.plan text.light { fill: var(--paper); }
.plan a text { fill: var(--lawn-deep); text-decoration: underline; }
.plan a:hover text, .plan a:focus text { fill: var(--lawn); }
:root[data-theme="dark"] .plan a text { fill: var(--lawn); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan a text { fill: var(--lawn); } }
.plan .north path { fill: var(--wire); }
.plan .north circle { fill: none; stroke: var(--ink); stroke-width: 1.5; }
figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .6rem; max-width: 34rem; line-height: 1.45; }

/* The one moment of motion: the mower drives its path once */
@media (prefers-reduced-motion: no-preference) {
  .plan .track { stroke-dasharray: 2900; stroke-dashoffset: 2900; animation: mow 6.5s cubic-bezier(.35, .1, .3, 1) .4s forwards; }
  .plan .mower-g { opacity: 0; animation: arrive .3s ease 6.7s forwards; }
}
@keyframes mow { to { stroke-dashoffset: 0; } }
@keyframes arrive { to { opacity: 1; } }

/* Home: tools and guide index as plain lists */
main > .wrap > .tools-list { list-style: none; padding: 0; margin: 1rem 0 0; max-width: 46rem; border-top: 2px solid var(--ink); }
.tools-list li { margin: 0; padding: 1.1rem 0 1.2rem; border-bottom: 1px solid var(--rule); }
.tools-list a { font-size: 1.35rem; font-weight: 750; font-stretch: 112%; color: var(--ink); text-decoration-color: var(--wire); text-decoration-thickness: 3px; text-underline-offset: .22em; }
.tools-list a:hover { color: var(--lawn); }
.tools-list p { margin: .35rem 0 0; color: var(--ink-soft); }

main > .wrap > .index { display: grid; gap: .5rem 2.5rem; max-width: 60rem; margin-top: 1rem; }
@media (min-width: 720px) { main > .wrap > .index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.index h3 { font-size: 1rem; margin: .8rem 0 .4rem; color: var(--ink-soft); font-weight: 650; }
.index ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.index li { margin: 0; border-bottom: 1px solid var(--rule); }
.index a { display: block; padding: .55rem 0; font-size: 1rem; font-weight: 560; color: var(--ink); text-decoration: none; }
.index a:hover { color: var(--lawn); text-decoration: underline; }

/* Old card markup still used in "Lees ook" blocks: shown as a plain list */
.cards { display: block; margin: 1rem 0; border-top: 1px solid var(--rule); }
.card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; padding: .7rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.card strong { font-family: var(--display); font-weight: 650; font-size: 1.02rem; }
.card small { font-size: .9rem; color: var(--ink-soft); font-style: italic; }
.card:hover strong { color: var(--lawn); text-decoration: underline; }
.card .icon, .card .tag { display: none; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 1.2rem 0 1.6rem; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: .55rem .9rem .55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: .9rem; font-weight: 700; border-bottom: 2px solid var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; font: 650 1rem/1.2 var(--display); font-stretch: 108%;
  background: var(--lawn); color: var(--lawn-ink); border: 2px solid var(--lawn); border-radius: 3px;
  padding: .8rem 1.25rem; text-decoration: none; cursor: pointer; margin: 0 .4rem .5rem 0;
}
.btn:hover { background: var(--lawn-deep); border-color: var(--lawn-deep); color: var(--lawn-ink); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--paper); }
.actions .btn { margin: 0; }
:root[data-theme="dark"] .btn:not(.secondary) { color: #10180c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.secondary) { color: #10180c; } :root:not([data-theme="light"]) .btn:not(.secondary):hover { background: var(--mown); border-color: var(--mown); color: var(--ink); } }

/* Tools: a sheet of plan paper with a 1 m grid */
.tool {
  background-color: var(--sheet);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 2px solid var(--ink); padding: 1.5rem 1.25rem; margin: 1.5rem 0;
}
@media (min-width: 720px) { .tool { padding: 2rem; } }
fieldset { border: 0; padding: 0; margin: 0 0 1.8rem; min-width: 0; }
legend { font-weight: 700; font-size: 1.08rem; margin-bottom: .6rem; padding: 0; }
.options { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.options label {
  display: flex; gap: 12px; align-items: flex-start; padding: .7rem .6rem .7rem .5rem;
  border-bottom: 1px solid var(--rule); border-left: 4px solid transparent; cursor: pointer; background: var(--sheet);
}
.options label:hover { border-left-color: var(--turf); }
.options label:has(input:checked) { border-left-color: var(--lawn); background: var(--paper); }
.options input { margin-top: .4em; accent-color: var(--lawn); width: 1.05em; height: 1.05em; flex: none; }
.field { display: grid; gap: 4px; margin-bottom: 1.2rem; }
.field label { font-weight: 650; font-size: 1rem; }
.field small { color: var(--ink-soft); font-size: .9rem; line-height: 1.4; }
input[type="number"] {
  font: 600 1.05rem var(--display); color: var(--ink); background: var(--sheet);
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: .45rem .1rem; width: 100%; max-width: 12rem;
}
input[type="number"]:focus { outline: none; border-bottom-color: var(--wire); box-shadow: 0 2px 0 var(--wire); }
.grid2 { display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

.result { background: var(--sheet); border: 2px solid var(--lawn); padding: 1.4rem 1.25rem; margin-top: 1.5rem; }
.result h3 { margin-top: 0; font-size: 1.35rem; }
.result.bad { border-color: var(--wire); }
.hidden { display: none; }

/* Tip: marked with a stretch of boundary wire */
.callout {
  margin: 2rem 0; padding: .2rem 0 .2rem 1.1rem; color: var(--ink);
  background: linear-gradient(var(--wire) 0 10px, transparent 10px 15px) left / 3px 15px repeat-y;
}

/* FAQ */
.faq { margin: 1rem 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; padding: .85rem 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lawn); font-weight: 700; font-size: 1.3rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1rem; }

/* Footer */
footer.site { background: var(--lawn-deep); color: var(--lawn-ink); font-size: .95rem; padding: 2.6rem 0 3rem; }
:root[data-theme="dark"] footer.site { background: #0f150e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer.site { background: #0f150e; } }
footer.site .wrap > * { max-width: 46rem; }
footer.site a { color: var(--lawn-ink); }
footer.site .logo { color: var(--lawn-ink); font-size: 1.1rem; margin-bottom: .6rem; }
footer.site .logo b { color: var(--turf); }
footer.site .logo .mark { color: var(--lawn-ink); }
:root[data-theme="dark"] footer.site .logo b { color: var(--lawn); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: .6rem 0 1.2rem; font-family: var(--display); font-size: .92rem; font-weight: 520; }
.foot-nav a { text-decoration: none; opacity: .9; }
.foot-nav a:hover { opacity: 1; text-decoration: underline; }

/* Accessibility */
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--wire); color: #1e2b1f; padding: 8px 14px; font: 650 1rem var(--display); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--wire); outline-offset: 2px; }
.options label:has(input:focus-visible) { outline: 3px solid var(--wire); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.plan text.h { paint-order: stroke; stroke: var(--turf); stroke-width: 5px; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) footer.site .logo b { color: var(--lawn); } }

/* Atmosphere: the top of every page is drawn on plan paper, fading into the page */
.home-hero, .intro { position: relative; isolation: isolate; }
.home-hero::before, .intro::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--sheet), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask: linear-gradient(#000 55%, transparent);
  mask: linear-gradient(#000 55%, transparent);
}

/* Page load: copy arrives in three steps, then the mower drives its path */
@media (prefers-reduced-motion: no-preference) {
  .home-hero h1, .home-hero .lead, .home-hero .actions, .plan-figure, .intro h1, .intro .lead {
    animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
  }
  .home-hero .lead, .intro .lead { animation-delay: .12s; }
  .home-hero .actions { animation-delay: .24s; }
  .plan-figure { animation-name: settle; animation-duration: .9s; animation-delay: .1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes settle { from { opacity: 0; } }
.plan text.light { fill: #f3f6ea; }
.home-hero h1 { max-width: 13ch; font-size: clamp(2.4rem, 6.4vw, 3.9rem); }
:root[data-theme="dark"] .plan .house { fill: #3a4236; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan .house { fill: #3a4236; } }
/* Two-column hero: size the headline to its column so "robotmaaier" never runs into the plan */
@media (min-width: 900px) { .home-hero h1 { font-size: clamp(2.4rem, 4.1vw, 3.9rem); } }
/* Headlines never split a word: size them to their own column (container units).
   "robotmaaier" is about 9em wide in Anybody, so the box must be wider than that. */
.home-hero .copy, .intro .wrap { container-type: inline-size; }
.home-hero h1 { max-width: 10.5em; font-size: clamp(1.7rem, calc(100cqi / 9.3), 3.9rem); overflow-wrap: normal; hyphens: manual; }
.intro h1 { max-width: min(16ch, 100%); font-size: clamp(1.6rem, min(6.2vw, calc(100cqi / 9.3)), 3.6rem); overflow-wrap: normal; hyphens: manual; }

/* Product picks: a ruled list, same language as the tools list */
main > .wrap > .picks { list-style: none; padding: 0; margin: 1rem 0 1.4rem; max-width: 46rem; border-top: 2px solid var(--ink); counter-reset: pick; }
.picks li { margin: 0; padding: 1rem 0 1.1rem 2.4rem; border-bottom: 1px solid var(--rule); position: relative; counter-increment: pick; }
.picks li::before { content: counter(pick); position: absolute; left: 0; top: 1rem; font: 800 1.35rem/1 var(--display); font-stretch: 120%; color: var(--soil); }
.picks h3 { margin: 0 0 .3rem; font-size: 1.18rem; }
.picks p { margin: 0 0 .4rem; }
.picks .meta { font: 560 .9rem/1.4 var(--display); color: var(--ink-soft); }
.picks .shop { font: 650 1rem/1.3 var(--display); font-stretch: 108%; color: var(--ink); text-decoration-color: var(--wire); text-decoration-thickness: 3px; text-underline-offset: .22em; }
.picks .shop:hover { color: var(--lawn); }
.picks-note { font-size: .92rem; font-style: italic; color: var(--ink-soft); }

/* Amazon-schakelaar: verborgen tot AMAZON_TAG in site.js is ingevuld */
html:not(.amazon-on) [data-amazon],
html:not(.amazon-on) [data-amazon-url],
html:not(.amazon-on) .amz { display: none !important; }
