@import url("/fonts/fonts.css");

/* Layout: a single reading column; the hero pairs the thesis with the cadastral map,
   then one anchored block per audience, each with one plain action. */
:root {
  --paper: #f5f7f3;
  --card: #ffffff;
  --ink: #17201a;
  --muted: #56625b;
  --line: #d3dad3;
  --map: #f1d03a;      /* the yellow ALKIS highlight of parcel 349 */
  --map-ink: #2a2405;
  --green: #2c5a3b;    /* the planned public green */
  --green-soft: #e3ede5;
  --display: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111613; --card: #19201b; --ink: #e5ebe6; --muted: #9ba79f; --line: #2a332d;
    --map: #e2c232; --map-ink: #1d1903; --green: #8cc79f; --green-soft: #1d2a21;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111613; --card: #19201b; --ink: #e5ebe6; --muted: #9ba79f; --line: #2a332d;
  --map: #e2c232; --map-ink: #1d1903; --green: #8cc79f; --green-soft: #1d2a21;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
.wrap {
  max-width: 1040px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--map); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0; max-width: 65ch; }
.eyebrow {
  font: 600 0.8rem/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* top bar */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 10px; }
.brand { font: 700 1.05rem/1 var(--display); letter-spacing: 0.02em; color: var(--ink); text-decoration: none; }
.brand span { background: var(--map); color: var(--map-ink); padding: 2px 6px; border-radius: 3px; margin-left: 4px; }
.lang { font-size: 0.9rem; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; padding-block: 36px 28px; }
.hero-text { display: grid; gap: 16px; min-width: 0; }
.lede { font-size: 1.15rem; color: var(--ink); }
.hero figure { margin: 0; min-width: 0; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 0; }
.facts div { background: var(--card); padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.facts dt { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; line-height: 1.35; }

/* audience chooser */
.choose { padding-block: 28px 8px; }
.choose h2 { margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile {
  display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); text-decoration: none; min-width: 0;
}
.tile strong { font: 700 1.3rem/1.1 var(--display); }
.tile span { color: var(--muted); font-size: 0.95rem; }
.tile:hover { border-color: var(--green); }

section.block { padding-block: 40px; border-top: 1px solid var(--line); }
section.block > .wrap > h2 { margin-bottom: 8px; }
section.block > .wrap > p.intro { color: var(--muted); margin-bottom: 20px; }

/* photos */
.photos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.photos figure { margin: 0; min-width: 0; }
.photos img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* the four asks */
.asks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; padding: 0; list-style: none; }
.asks li { background: var(--green-soft); border-radius: 8px; padding: 16px; display: grid; gap: 4px; min-width: 0; }
.asks strong { font: 600 1.2rem/1.2 var(--display); }

/* audience sections */
.role { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding-block: 28px; border-top: 1px dashed var(--line); }
.role:first-of-type { border-top: 0; }
.role-head { display: grid; gap: 6px; align-content: start; }
.role-head .who { color: var(--muted); font-size: 0.92rem; }
.role-body { display: grid; gap: 14px; min-width: 0; }
.ask { font-size: 1.12rem; font-weight: 600; }
.why { color: var(--muted); }
.why b { color: var(--ink); font-weight: 600; }
.steps { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 6px;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--map); color: var(--map-ink); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); }
.addr { font: 600 1rem/1 var(--body); user-select: all; }
.copybox { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: grid; gap: 10px; }
.copybox ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.offices { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.offices li { display: grid; gap: 2px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.offices strong { font-weight: 600; }
.offices span { color: var(--muted); font-size: 0.95rem; }

/* resident actions: one collapsed panel each */
.acts { display: grid; gap: 8px; }
.acts details { margin: 0; padding: 0; }
.acts summary { list-style: none; display: grid; gap: 2px; padding: 12px 40px 12px 16px; position: relative; }
.acts summary::-webkit-details-marker { display: none; }
.acts summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font: 600 1.3rem/1 var(--body); color: var(--green); }
.acts details[open] summary::after { content: "–"; }
.acts details[open] summary { margin-bottom: 0; border-bottom: 1px solid var(--line); }
.acts details > :not(summary) { margin: 12px 16px; }
.acts .t { font: 600 1.15rem/1.25 var(--display); }
.acts .b { color: var(--muted); font-weight: 400; font-size: 0.95rem; }
pre.tpl { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 12px; font: 0.9rem/1.5 var(--body); max-width: 65ch; overflow-x: auto; }
.note { color: var(--muted); font-size: 0.92rem; }

/* timeline */
.timeline { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }

/* background details */
details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 10px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: grid; gap: 10px; }
.toast { color: var(--green); font-size: 0.9rem; min-height: 1.2em; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .photos figure:first-child { grid-column: span 2; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .role { grid-template-columns: 1fr; gap: 12px; }
  .asks { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}
