/* Droomgrond. Early morning on a shared farmyard: fog, moss, low sun.
   One typeface (Literata, a book face for reading people's stories) plus the system sans for controls.
   The one bold thing is the full-bleed hero photo; everything else stays quiet. */

@font-face { font-family: "Literata"; src: url("/static/fonts/literata-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/static/fonts/literata-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --fog: #e6ebe4;      /* page: morning mist over grass */
  --paper: #fbfaf6;    /* surfaces you write on */
  --peat: #1d2a22;     /* text */
  --moss: #2f5236;     /* actions, links */
  --fern: #6c8b5a;     /* secondary green */
  --sun: #e3a83c;      /* low sun: votes and focus only */
  --muted: #56655a;
  --line: #cfd8cc;
  --warn: #8f3b1f;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 66ch;
  --night: #121713;    /* the header: the farmyard before sunrise */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fog); color: var(--peat); font: 18px/1.65 var(--serif); font-optical-sizing: auto; }
a { color: var(--moss); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
main:focus, main:focus-visible { outline: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 500; }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.lead { font-size: 20px; max-width: 58ch; }
.small { font-size: 15px; }
.muted { color: var(--muted); }
.pre { white-space: pre-line; }
[hidden] { display: none !important; }

/* chrome */
.demo-bar { background: #f3e6c8; color: #5a3f0c; font: 13px/1.4 var(--sans); text-align: center; padding: 6px 12px; }
/* The header is near-black: a calm frame that lets the photos carry the colour. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px clamp(16px, 4vw, 48px);
  background: var(--night); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #f4f1e8;
  font: 500 24px var(--serif); letter-spacing: .015em; font-variation-settings: "opsz" 48; }
.logo { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #c9d6c2;
  background: radial-gradient(circle at 50% 42%, var(--sun) 0 28%, transparent 29%), linear-gradient(180deg, #f2efe2 0 58%, var(--fern) 58%); }
.main-nav { display: flex; align-items: center; gap: 24px; font: 400 15px var(--sans); letter-spacing: .01em; }
.main-nav a { color: #d9e0d6; text-decoration: none; }
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 7px; }
.main-nav .btn { background: var(--sun); border-color: var(--sun); color: var(--night); }
.main-nav .btn:hover { background: #edb956; color: var(--night); }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; color: #f4f1e8; cursor: pointer; }
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 14px; padding: 16px 20px 22px; background: var(--night); }
  .main-nav.open { display: flex; }
}
main { max-width: 1120px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 64px; outline: none; }
.foot { max-width: 1120px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px) 40px; border-top: 1px solid var(--line);
  font: 14px/1.7 var(--sans); color: var(--muted); }
.foot a { color: var(--muted); margin-right: 14px; }
.foot .credit { display: block; margin-top: 6px; font-size: 13px; }

/* controls */
.btn { display: inline-block; background: var(--moss); color: #fff; border: 1.5px solid var(--moss); border-radius: 999px;
  padding: 11px 22px; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: #24412a; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--moss); }
.btn.ghost:hover { background: rgba(47, 82, 54, .08); }
.btn.light { background: rgba(255,255,255,.92); color: var(--peat); border-color: transparent; }
.btn.small { padding: 7px 15px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--moss); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; font: inherit; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
select, input, textarea { font: 16px/1.4 var(--sans); padding: 10px 12px; border: 1px solid #b9c4b6; border-radius: 10px;
  background: #fff; color: var(--peat); width: 100%; }
textarea { font-family: var(--serif); font-size: 17px; line-height: 1.6; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--moss); margin-top: 5px; }
input[type=file] { border: 0; padding: 4px 0; background: none; }

/* home: the hero is the one bold thing */
.hero-full { margin: -32px calc(50% - 50vw) 0; min-height: min(82vh, 760px); display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(29,42,34,.05) 0%, rgba(29,42,34,.35) 40%, rgba(29,42,34,.78) 100%), url("/static/img/hero.jpg") center 40% / cover; }
.hero-text { max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) clamp(32px, 6vh, 64px); color: #fff; }
.hero-text h1 { max-width: 16ch; font-size: clamp(36px, 6vw, 68px); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-text .lead { color: #eef3ea; }
.slogan { font-style: italic; font-size: 20px; color: #fff3d6; margin-bottom: .6em; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero-note { font: 14px var(--sans); color: var(--muted); margin: 14px 0 0; }

.quotes { margin: 72px 0 0; max-width: 820px; }
.quote { margin: 0 0 30px; padding-left: 22px; border-left: 3px solid var(--sun); }
.quote blockquote { margin: 0; font-size: clamp(21px, 2.4vw, 26px); font-style: italic; line-height: 1.45; }
.quote blockquote a { color: var(--peat); text-decoration: none; }
.quote blockquote a:hover { text-decoration: underline; }
.quote figcaption { font: 15px var(--sans); color: var(--muted); margin-top: 6px; }
.more { font: 600 16px var(--sans); }

.how { margin: 72px 0 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.how h2 { grid-column: 1 / -1; margin-bottom: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--moss); color: var(--moss); font: 600 17px/34px var(--serif); text-align: center; }
.charter-line { background: var(--paper); border-radius: 18px; padding: 22px 26px; }
.charter-line p { margin: 0 0 10px; }
.charter-line p:last-child { margin: 0; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; gap: 24px; } }


.owner { margin: 80px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper); border-radius: 20px; overflow: hidden; }
.owner img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.owner > div { padding: clamp(24px, 4vw, 48px); align-self: center; }
@media (max-width: 760px) { .owner { grid-template-columns: 1fr; } .owner img { min-height: 200px; } }

.story-anim { margin: 80px 0 0; }
.farm-anim { position: relative; width: 100%; max-width: 820px; aspect-ratio: 610 / 296; border-radius: 14px; overflow: hidden; background: #efeadb; }
.farm-anim .frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.farm-anim .frame.on { opacity: 1; }
.farm-anim .dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; display: flex; gap: 2px; padding: 0 6px;
  background: rgba(18,23,19,.38); border-radius: 999px; }
.farm-anim .dot { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.farm-anim .dot::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.65);
  box-shadow: 0 0 0 1.5px rgba(29,42,34,.45); transition: background .3s, transform .3s; }
.farm-anim .dot.on::before { background: var(--sun); transform: scale(1.15); }
.farm-anim .dot:hover::before { background: #fff; }
.anim-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; list-style: none; max-width: 820px; margin: 16px 0; font-size: 16px; }
@media (max-width: 760px) { .anim-steps { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .farm-anim .frame { transition: none; } }
.map-line { margin: 56px 0 0; max-width: var(--measure); }

/* page bands */
.page-band { height: 220px; margin: -32px calc(50% - 50vw) 32px; background-position: center; background-size: cover;
  position: relative; display: flex; align-items: flex-end; }
.page-band figcaption { width: 100%; padding: 40px clamp(16px, 4vw, 48px) 14px; color: #fff; font: italic 17px/1.4 var(--serif);
  background: linear-gradient(180deg, transparent, rgba(18,23,19,.55)); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.page-band figcaption:empty { display: none; }
.band-ontbijt { background-image: url("/static/img/ontbijt.jpg"); background-position: center 62%; }
.band-voedselbos { background-image: url("/static/img/voedselbos.jpg"); }
.band-samen { background-image: url("/static/img/samen-tuinieren.jpg"); background-position: center 70%; }
.band-kas { background-image: url("/static/img/kas.jpg"); }
.band-winter { background-image: url("/static/img/winter.jpg"); background-position: center 55%; }
.band-herfst { background-image: url("/static/img/herfstavond.jpg"); background-position: center 60%; }
.band-wortels { background-image: url("/static/img/wortels.jpg"); background-position: center 45%; }
.band-voedselbos-soft { background-image: url("/static/img/voedselbos.jpg"); background-position: center 70%; }
.narrow .page-band, .prose .page-band, .done .page-band, .links-page .page-band { margin: 0 0 28px; border-radius: 14px; height: 220px; overflow: hidden; }
.prose .page-band { height: 260px; }
.prose .page-band figcaption, .narrow .page-band figcaption, .links-page .page-band figcaption { padding-left: 20px; }
@media (max-width: 760px) { .page-band { height: 140px; } }

/* lists of dreams and places */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 24px; }
.filters label { font: 14px var(--sans); color: var(--muted); display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 32px; }
.card { display: flex; flex-direction: column; }
.dream-card { border-top: 2px solid var(--peat); padding-top: 14px; }
.dream-card .cover { display: block; text-decoration: none; color: var(--peat); }
.dream-card .cover h3 { margin-bottom: .35em; }
.dream-card .cover p { font-size: 17px; margin-bottom: .3em; }
.dream-card .cover-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 8px; margin-bottom: 12px; }
.dream-card .read { display: block; font-family: var(--sans); margin-bottom: .6em; }
.dream-card .cover:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card-meta { margin-top: auto; font-family: var(--sans); }
.who { font: 15px var(--sans); color: var(--muted); margin: 4px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 6px 0; font: 14px var(--sans); }
.tlabel { color: var(--muted); min-width: 46px; }
.tag { border-radius: 6px; padding: 1px 8px; }
.tag.offer { background: #dfe9d9; color: #24412a; }
.tag.need { background: #f3e6c8; color: #6a4a0e; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.card-foot .more { font-size: 15px; }
.example { display: inline-block; font: 12px var(--sans); color: #6a4a0e; background: #f3e6c8; border-radius: 6px; padding: 1px 7px; vertical-align: middle; }
.listing-card .photo { border-radius: 10px; overflow: hidden; }
.listing-card .card-meta { padding-top: 10px; }
.listing-card h3 { margin: 6px 0 2px; } .listing-card h3 a { color: var(--peat); text-decoration: none; }

.votes { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.recognise { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 5px 13px; font: 14px var(--sans); cursor: pointer; color: var(--peat); }
.recognise:hover { border-color: var(--sun); }
.vicon { width: 17px; height: 17px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v-herkenbaar .vicon { stroke: #b8862a; }
.v-herkenbaar .vicon circle:last-child { fill: rgba(227,168,60,.18); }
.v-herkenbaar.on { border-color: var(--sun); background: #f8ebcd; }
.v-herkenbaar.on .vicon circle { fill: rgba(227,168,60,.55); }
.v-inspirerend .vicon { stroke: #8a6a12; }
.v-inspirerend .vicon .base { stroke: var(--muted); }
.v-inspirerend:hover, .v-inspirerend.on { border-color: var(--sun); }
.v-inspirerend.on { background: #fbf0c9; }
.v-inspirerend.on .vicon path:first-child { fill: #f3c64b; stroke: #9a7310; }

/* photos */
.photo { aspect-ratio: 4 / 3; display: flex; align-items: flex-end; justify-content: flex-end; background: #d7dfd3; }
.photo span { font: 12px var(--sans); color: var(--muted); padding: 6px 9px; }
.photo.real img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.placeholder { position: relative; display: block; background: #e7ece3; }
.photo.placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.placeholder span { position: absolute; right: 0; bottom: 0; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.gallery .photo:first-child { grid-row: span 2; aspect-ratio: auto; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: auto; }
.gallery.n1 .photo { aspect-ratio: 16 / 9; }
.gallery.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
.gallery.n2 .photo:first-child { grid-row: auto; aspect-ratio: 4 / 3; }

/* a single dream or place */
.dream-full { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.dream-main { max-width: var(--measure); }
.dream-main h2 { font-size: 20px; font-weight: 600; color: var(--moss); margin: 1.4em 0 .3em; }
.story-photo { margin: -32px calc(50% - 50vw) 36px; height: min(56vh, 520px); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story h1 { font-size: clamp(34px, 5vw, 56px); }
.standfirst { font-size: clamp(21px, 2.4vw, 25px); font-style: italic; line-height: 1.45; color: #34443a; max-width: 40ch; margin-bottom: .6em; }
.story .body p { margin: 0 0 1em; }
.story .body.first > p:first-child::first-letter { float: left; font-size: 3.4em; line-height: .9; padding: 6px 10px 0 0; color: var(--moss); font-weight: 500; }
.after-btn { margin-top: 26px; }
.dream-thumb .current { display: flex; align-items: center; gap: 12px; }
.dream-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 20px; font-family: var(--sans); }
.linked { margin: 16px 0; padding: 12px 16px; background: var(--paper); border-radius: 12px; font-size: 17px; }
.share { display: flex; align-items: center; gap: 14px; margin: 14px 0; flex-wrap: wrap; font-family: var(--sans); }
.react { background: var(--paper); border-radius: 18px; padding: 22px; position: sticky; top: 96px; }
.react h2 { font-size: 22px; }
.tips { margin-top: 18px; font: 15px/1.55 var(--sans); border-top: 1px solid var(--line); padding-top: 14px; }
.tips ul { margin: 6px 0; padding-left: 18px; }
.sent { background: #e3ecdd; border-radius: 12px; padding: 12px 16px; font-family: var(--sans); font-size: 16px; }
.status { display: inline-block; font: 13px var(--sans); border-radius: 6px; padding: 1px 8px; background: #dfe9d9; color: #24412a; margin-right: 6px; }
.status.s-ter-beoordeling { background: #f3e6c8; color: #6a4a0e; }
.status.s-afgewezen, .status.s-verlopen { background: #f5e1d8; color: var(--warn); }
@media (max-width: 900px) { .dream-full { grid-template-columns: 1fr; } .react { position: static; } }

/* forms */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.choice-card { background: var(--paper); border: 1.5px solid transparent; border-radius: 18px; padding: 24px; text-decoration: none; color: var(--peat); display: flex; flex-direction: column; gap: 6px; }
.choice-card:hover { border-color: var(--fern); }
.choice-icon { width: 44px; height: 44px; border-radius: 12px; }
.choice-icon.place { background: linear-gradient(180deg, #f2efe2 0 55%, var(--fern) 55%); border: 2px solid var(--moss); }
.choice-icon.dream { background: radial-gradient(circle, var(--sun) 0 32%, #f8ebcd 33%); border: 2px solid var(--sun); }
@media (max-width: 760px) { .choice { grid-template-columns: 1fr; } }
.post-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }
.post, .react form { display: flex; flex-direction: column; gap: 18px; }
.post label, .react label { display: flex; flex-direction: column; gap: 5px; font: 600 15px var(--sans); }
label.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; }
.hint { font: 400 14px/1.45 var(--sans); color: var(--muted); }
.post fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.post legend { font: 600 15px var(--sans); padding: 0 4px; }
.post fieldset.chips { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
.side-note { background: var(--paper); border-radius: 18px; padding: 6px 24px 18px; font-size: 16px; }
.side-note h3 { font-size: 18px; margin-top: 18px; }
.form-error, .error { color: var(--warn); background: #f8e9e2; border-radius: 10px; padding: 10px 14px; font-family: var(--sans); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.thumb-btn { position: relative; border: 0; padding: 0; background: none; cursor: pointer; }
.thumb-btn span { position: absolute; top: 3px; right: 4px; background: rgba(0,0,0,.6); color: #fff; border-radius: 50%; width: 20px; height: 20px; line-height: 20px; font-size: 14px; }
.locpick .search { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 22px rgba(29,42,34,.14); z-index: 5; font-family: var(--sans); }
.suggest li { padding: 9px 12px; cursor: pointer; font-size: 15px; }
.suggest li:hover { background: var(--fog); }
.narrow { max-width: 600px; }
.done { max-width: 680px; }

/* personal and admin pages */
.mine { max-width: 820px; }
.panel { background: var(--paper); border-radius: 16px; padding: 18px 22px; margin: 12px 0; }
.item h3 { margin: 6px 0; }
.reaction { background: var(--paper); border-radius: 14px; padding: 14px 18px; margin: 12px 0; }
.reaction .actions { margin: 8px 0 0; }
.warnline { color: var(--warn); font-size: 15px; }
form.inline { display: inline; }

/* links page */
.links-page { max-width: 980px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 8px 0 30px; }
.link-card { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border-radius: 16px; padding: 18px 20px;
  text-decoration: none; color: var(--peat); border: 1.5px solid transparent; }
.link-card:hover { border-color: var(--fern); }
.link-card b { display: block; overflow-wrap: anywhere; font-size: 19px; margin-bottom: 4px; }
.link-card .small { display: block; font-family: var(--sans); line-height: 1.5; }
.link-card .domain { margin-top: 6px; }
.mono { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--night);
  color: #f4f1e8; font: 600 15px var(--serif); letter-spacing: .02em; }
.link-grid .link-card:nth-child(3n+2) .mono { background: var(--moss); }
.link-grid .link-card:nth-child(3n+3) .mono { background: #8a6a3a; }

/* reading pages */
.prose { max-width: var(--measure); }
.prose ol.big li { font-size: 20px; margin: 10px 0; }
.prose ul li { margin: 6px 0; }
.prose .panel { font-size: 17px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(29, 42, 34, .5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-box { background: var(--paper); border-radius: 18px; max-width: 500px; width: 100%; max-height: 90vh; overflow: auto; padding: 24px 26px; position: relative; }
.modal-box h2 { font-size: 24px; }
.close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
