/* Kraam — template for farm stands (aardbeienkraam, huisverkoop). One file, no build.
   Brand per client: change the tokens below, the logo in assets/img and the fonts. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--ink: #2B1B17;
	--muted: #6B5A52;
	--cream: #FBF4E9;
	--paper: #FFFDF8;
	--line: #EADFCF;
	--berry: #C4122F;      /* accent; 5.6:1 on cream, ok as text */
	--berry-dark: #9E0E26;
	--berry-soft: #FBE3E3;
	--leaf: #2E6B3F;       /* 6:1 on cream */
	--leaf-soft: #DDEBD9;
	--straw: #F2C14E;      /* decoration only, never text on light */
	--radius: 18px;
	--wrap: 1120px;
	--head: "Fraunces", Georgia, serif;
	--body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--berry-dark); text-underline-offset: 0.2em; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 0.6em; font-variation-settings: "SOFT" 100, "WONK" 1; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font: 700 0.8rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf); margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
section { padding-block: clamp(3.5rem, 8vw, 6rem); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.4rem; border: 0; border-radius: 999px; background: var(--berry); color: #fff; font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.btn:hover { background: var(--berry-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--leaf { background: var(--leaf); }
.btn--leaf:hover { background: #224F2E; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* Header */
.head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font: 800 1.35rem/1 var(--head); margin-right: auto; }
.logo svg { width: 38px; height: 38px; }
.nav ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav a:hover { color: var(--berry); }
.menu-btn { display: none; }
@media (max-width: 820px) {
	.menu-btn { display: inline-flex; min-height: 44px; padding: 0.5rem 0.9rem; border: 2px solid var(--ink); border-radius: 999px; background: none; font: 700 0.95rem var(--body); color: var(--ink); cursor: pointer; }
	.nav { position: absolute; inset: 100% 0 auto; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; gap: 0; padding: 0.5rem 1rem 1rem; }
	.nav a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
	.head .btn { display: none; }
}

/* Status badge (filled by kraam.js from /api/status) */
.status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; padding: 0.55rem 1rem 0.55rem 0.8rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.status__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.status[data-state="open"] .status__dot { background: #2FA34A; box-shadow: 0 0 0 4px color-mix(in srgb, #2FA34A 22%, transparent); animation: pulse 2s ease-in-out infinite; }
.status[data-state="bijna-op"] .status__dot { background: var(--straw); }
.status[data-state="uitverkocht"] .status__dot { background: var(--berry); }
.status__time { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.status[data-stale] .status__label::after { content: " (nog geen update vandaag)"; font-weight: 400; color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, #2FA34A 0%, transparent); } }
.note { margin: 1rem 0 0; padding: 0.9rem 1.1rem; border-left: 4px solid var(--straw); background: var(--paper); border-radius: 0 12px 12px 0; max-width: 48ch; }
.note:empty { display: none; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 em { font-style: italic; color: var(--berry); font-weight: 800; }
.hero .lead { margin-bottom: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.hero__art { position: relative; aspect-ratio: 1; border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; background: var(--berry-soft); display: grid; place-items: center; }
.hero__art img, .hero__art svg { width: 86%; }
.hero__art img.photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hero__stamp { position: absolute; right: 2%; top: 4%; width: 112px; height: 112px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; text-align: center; font: 800 0.95rem/1.1 var(--head); transform: rotate(10deg); padding: 0.5rem; }
@media (max-width: 820px) { .hero__in { grid-template-columns: 1fr; } .hero__art { max-width: 420px; justify-self: center; width: 100%; } }

/* Today strip */
.today { background: var(--ink); color: var(--cream); padding-block: 1.25rem; }
.today__in { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; align-items: center; justify-content: space-between; }
.today strong { color: #fff; }
.today a { color: #fff; }
.today ul { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0; padding: 0; list-style: none; }

/* Products */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.card__img { aspect-ratio: 4 / 3; background: var(--berry-soft); display: grid; place-items: center; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img svg { width: 46%; }
.card__body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card__foot { margin-top: auto; padding-top: 0.75rem; display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.price { font: 800 1.45rem/1 var(--head); }
.price small { font: 400 0.85rem var(--body); color: var(--muted); }
.chip { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: var(--leaf-soft); color: var(--leaf); }
.chip--season { background: #F7EBCB; color: #6E5208; }
.chip--out { background: var(--berry-soft); color: var(--berry-dark); }
.card[data-soldout] .card__img { filter: grayscale(0.9) opacity(0.6); }
.card[data-soldout] .price { text-decoration: line-through; color: var(--muted); }
.card[data-soldout] .chip--stock { background: var(--berry-soft); color: var(--berry-dark); }

/* How it works */
.how { background: var(--leaf); color: #fff; }
.how h2, .how .eyebrow { color: #fff; }
.how .eyebrow { opacity: 0.8; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: color-mix(in srgb, #fff 8%, transparent); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--straw); color: var(--ink); font: 800 1.3rem var(--head); margin-bottom: 1rem; }
.steps p { margin: 0; color: color-mix(in srgb, #fff 85%, var(--leaf)); }
.pay { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.pay li { padding: 0.45rem 1rem; border-radius: 999px; background: #fff; color: var(--leaf); font-weight: 700; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Season calendar */
.season { overflow-x: auto; margin-top: 2.5rem; background: var(--paper); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.season table { width: 100%; min-width: 640px; border-collapse: collapse; }
.season th, .season td { padding: 0.7rem 0.3rem; text-align: center; font-size: 0.85rem; }
.season th[scope="row"] { text-align: left; padding-left: 1.25rem; font-size: 1rem; white-space: nowrap; }
.season thead th { color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
.season thead th.now { color: var(--berry); }
.season td span { display: block; height: 14px; border-radius: 7px; }
.season td.y span { background: var(--berry); }
.season td.p span { background: color-mix(in srgb, var(--berry) 40%, var(--paper)); }
.season tr + tr th, .season tr + tr td { border-top: 1px solid var(--line); }
.legend { display: flex; gap: 1.5rem; margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }
.legend span::before { content: ""; display: inline-block; width: 22px; height: 10px; border-radius: 5px; margin-right: 0.4rem; background: var(--berry); }
.legend span + span::before { background: color-mix(in srgb, var(--berry) 40%, var(--paper)); }

/* Order form */
.order { background: var(--berry-soft); }
.order__in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form { background: var(--paper); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 20px 50px -30px rgb(43 27 23 / 0.45); }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.form legend, .form label > span { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.form input, .form textarea, .form select { width: 100%; min-height: 48px; padding: 0.65rem 0.85rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--berry); outline: none; }
.form textarea { min-height: 96px; resize: vertical; }
.form label { display: block; margin-bottom: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.qty label { margin: 0; font-weight: 400; display: flex; flex-direction: column; }
.qty label small { color: var(--muted); }
.qty input { width: 5.5rem; text-align: center; }
.qty[data-soldout] { opacity: 0.5; }
.form .opt { font-weight: 400; color: var(--muted); }
.form .fine { font-size: 0.88rem; color: var(--muted); margin: 1rem 0 0; }
.hp { position: absolute; left: -9999px; }
.msg { padding: 0.9rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 700; }
.msg--ok { background: var(--leaf-soft); color: var(--leaf); }
.msg--err { background: var(--berry-soft); color: var(--berry-dark); }
.msg:empty { display: none; }
.alt { margin-top: 1.5rem; }
@media (max-width: 820px) { .order__in, .form .row { grid-template-columns: 1fr; } }

/* About */
.about__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about figure { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--leaf-soft); overflow: hidden; display: grid; place-items: center; }
.about figure img { width: 100%; height: 100%; object-fit: cover; }
.about figure > img[src$=".svg"] { width: 45%; height: auto; }
.quote { font: italic 600 1.35rem/1.4 var(--head); color: var(--leaf); margin: 1.5rem 0 0; }
@media (max-width: 820px) { .about__in { grid-template-columns: 1fr; } .about figure { aspect-ratio: 4 / 3; } }

/* Visit */
.visit__in { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.panel { background: var(--paper); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 1.5rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 0.55rem 0; text-align: left; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--berry-dark); font-weight: 700; }
.map { display: grid; place-items: center; aspect-ratio: 16 / 9; margin: 1rem 0; border-radius: 12px; background: var(--leaf-soft) url("../img/kaart.svg") center / cover; text-decoration: none; color: var(--ink); font-weight: 700; }
.map span { background: var(--paper); padding: 0.6rem 1rem; border-radius: 999px; box-shadow: 0 6px 20px -8px rgb(0 0 0 / 0.3); }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 820px) { .visit__in { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font: 700 1.15rem/1.3 var(--head); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.9rem; font: 400 1.6rem/1 var(--body); color: var(--berry); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Footer */
.foot { background: var(--ink); color: color-mix(in srgb, #fff 75%, var(--ink)); padding-block: 3rem 6rem; font-size: 0.95rem; }
.foot a { color: #fff; }
.foot__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.foot .logo { color: #fff; margin-bottom: 1rem; }
.foot h2 { font-size: 1.05rem; color: #fff; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin-bottom: 0.4rem; }
.foot__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } }
@media (min-width: 821px) { .foot { padding-bottom: 3rem; } }

/* Mobile bar */
.bar { position: fixed; inset: auto 0 0; z-index: 30; display: none; grid-template-columns: repeat(3, 1fr); background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bar a { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.6rem 0.25rem; color: var(--ink); text-decoration: none; font-size: 0.8rem; font-weight: 700; }
.bar a svg { width: 22px; height: 22px; }
.bar a:last-child { background: var(--berry); color: #fff; }
@media (max-width: 820px) { .bar { display: grid; } }

/* Simple pages (privacy, 404) */
.page { padding-block: 4rem; max-width: 760px; }
.page h2 { font-size: 1.5rem; margin-top: 2rem; }
