/* Enumeratio website — nature theme, light + dark, no external fonts. */
/* Fonts: Barlow + Barlow Condensed, self-hosted (OFL-1.1, see fonts/OFL-Barlow.txt). */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600 700; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

/* "Veldboek" identity, shared with the app (frontend/src/styles.css, ADR-023): cool sage paper,
   loden ink, hunter signal orange only for the main action and counted numbers, contour lines
   of a topographic map as the one signature. */
:root {
  color-scheme: light dark;
  --bg: #e6ebe2;
  --bg-alt: #dce3d7;
  --surface: #f5f7f2;
  --text: #26321f;
  --muted: #566152;
  --border: #c9d2c3;
  --primary: #26321f;
  --primary-hover: #35552f;
  --on-primary: #f5f7f2;
  --link: #35552f;
  --accent: #6a5642;
  --accent-soft: #e9e2d8;
  --moss: #6f7f3f;
  --focus: #f2641e;
  --signal: #f2641e;
  --signal-hover: #dc5410;
  --signal-ink: #1c1f16;
  --signal-text: #b8430f;
  --success-bg: #e1eedf;
  --success-text: #1d4b25;
  --error-bg: #f6e2db;
  --error-text: #8a2b14;
  --hill-far: #a9b79b;
  --hill-near: #55614f;
  --tree: #26321f;
  --trunk: #6a5642;
  --sun: #f2641e;
  --sky: #e6ebe2;
  --shadow: none;
  --radius: 4px;
  --maxw: 72rem;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Barlow Condensed", "Barlow", system-ui, sans-serif; /* headings (name kept for existing rules) */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131912;
    --bg-alt: #182017;
    --surface: #1b2219;
    --text: #e4eadf;
    --muted: #9fac99;
    --border: #2f3a2d;
    --primary: #e4eadf;
    --primary-hover: #ffffff;
    --on-primary: #131912;
    --link: #9cc58f;
    --accent: #d2b08a;
    --accent-soft: #2a261f;
    --focus: #ff7a33;
    --signal: #ff7a33;
    --signal-hover: #ff8f52;
    --signal-ink: #131912;
    --signal-text: #ff8a4c;
    --success-bg: #1f3a24;
    --success-text: #c6ecc9;
    --error-bg: #432019;
    --error-text: #ffc9b8;
    --hill-far: #2f3a2d;
    --hill-near: #55614f;
    --tree: #0f140e;
    --trunk: #4a3a2a;
    --sun: #ff7a33;
    --sky: #131912;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.08; letter-spacing: .005em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); letter-spacing: 0; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .container { padding: 0 1.5rem; } }

.skip-link {
  position: absolute; left: .5rem; top: -3rem; z-index: 100;
  background: var(--primary); color: var(--on-primary);
  padding: .5rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: .5rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; color: #e6ebe2;
  background: #26321f url("contours.svg") right center / 760px auto no-repeat;
}
.site-header .brand, .site-header .main-nav a { color: #f5f7f2; }
.site-header .main-nav a:hover { color: #fff; }
.site-header .lang-switch a { color: #e6ebe2; border-color: #6f7c67; }
.site-header .lang-switch a[aria-current="page"] { background: var(--signal); border-color: var(--signal); color: #1c1f16; }
.site-header .btn-primary { background: var(--signal); color: #1c1f16; }
.site-header .btn-primary:hover { background: var(--signal-hover); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem;
  min-height: 4rem; padding-top: .5rem; padding-bottom: .5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem; letter-spacing: .01em;
  color: var(--text); text-decoration: none; margin-right: auto;
}
.brand img { width: 2rem; height: 2rem; }

.main-nav ul, .lang-switch ul, .footer-links {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem;
}
.main-nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: .25rem 0; }
.main-nav a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 52rem) { .main-nav { display: none; } }

.lang-switch ul { gap: .25rem; }
.lang-switch a {
  display: inline-block; min-width: 2.4rem; text-align: center;
  padding: .2rem .45rem; border-radius: 3px; border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: .875rem; font-weight: 600;
}
.lang-switch a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.lang-switch a:hover { border-color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.75rem; padding: .6rem 1.25rem; border-radius: 3px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.btn-primary:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--primary); }
.btn-secondary:hover { background: var(--accent-soft); }
.btn-small { min-height: 2.25rem; padding: .35rem 1rem; font-size: .95rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero { padding: 3.5rem 0 0; background: var(--bg); overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.1fr 1fr; padding-bottom: 2rem; } }
.eyebrow {
  display: inline-block; margin-bottom: .9rem; padding: .2rem .7rem; border-radius: 3px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .9rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-art { width: 100%; max-width: 34rem; justify-self: center; }

.art-sky { fill: var(--sky); }
.art-sun { fill: var(--sun); }
.art-hill-far { fill: var(--hill-far); }
.art-hill-near { fill: var(--hill-near); }
.art-tree { fill: var(--tree); }
.art-trunk { fill: var(--trunk); }
.art-board { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.art-tally { stroke: var(--primary); stroke-width: 5; stroke-linecap: round; fill: none; }
.art-text { fill: var(--muted); font-family: var(--font); font-size: 14px; font-weight: 600; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card-icon {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: .8rem;
  border-radius: var(--radius); background: var(--accent-soft); color: var(--accent);
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.badge {
  display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .55rem; border-radius: 3px;
  background: var(--accent-soft); color: var(--accent); margin-left: .25rem; vertical-align: middle;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 3.75rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 1.2rem; left: 1.4rem;
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); font-weight: 700; font-family: var(--font-serif);
}

.region-code { font-family: var(--font-serif); font-weight: 600; font-size: 1rem; color: var(--signal-text); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.legend li {
  border: 1px solid var(--border); border-radius: 3px; padding: .2rem .75rem; background: var(--surface); font-size: .95rem;
}

/* FAQ */
.faq { max-width: 50rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 1.2rem; margin-bottom: .75rem;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 1rem 0; list-style-position: outside;
}
.faq details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: .75rem; }
.faq details p { color: var(--muted); }

/* CTA band */
.cta-band { background: #26321f url("contours.svg") left center / 900px auto no-repeat; color: #f5f7f2; padding: 3.5rem 0; }
.cta-band h2 { color: #f5f7f2; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .btn-primary { background: var(--signal); color: #1c1f16; }
.cta-band .btn-primary:hover { background: var(--signal-hover); }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.form { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 10px; padding: .65rem .8rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: var(--error-text); }
.field-error { color: var(--error-text); font-size: .9rem; margin: .3rem 0 0; }
.hint { color: var(--muted); font-size: .9rem; }
.turnstile-box { min-height: 65px; }
.form-status { margin: 0; border-radius: 10px; }
.form-status:empty { display: none; }
.form-status[data-state] { padding: .75rem 1rem; }
.form-status[data-state="success"] { background: var(--success-bg); color: var(--success-text); }
.form-status[data-state="error"] { background: var(--error-bg); color: var(--error-text); }
.form-status[data-state="pending"] { background: var(--accent-soft); color: var(--text); }

/* Prose (privacy, terms) */
.prose { max-width: 46rem; padding: 3rem 0 4rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.meta { color: var(--muted); font-size: .95rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.25rem; }
.placeholder { background: var(--accent-soft); color: var(--text); border-radius: 4px; padding: 0 .3em; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 2.5rem 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font); font-size: 1rem; margin-bottom: .5rem; }
.site-footer .footer-links { flex-direction: column; gap: .3rem; }
.site-footer .copy { color: var(--muted); margin-top: 1.5rem; }

/* Root language chooser */
.chooser { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem 1rem; }
.chooser ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
