:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #22211f;
  --muted: #5f5a53;
  --accent: #9c2f22;
  --accent-soft: #f3e4df;
  --border: #e4ded6;
  --radius: 10px;
  --max: 1100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171615;
    --surface: #211f1d;
    --text: #ece8e2;
    --muted: #a8a197;
    --accent: #e0826f;
    --accent-soft: #3a2622;
    --border: #36322e;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--accent); }
.lang {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(62vh, 560px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #333 url("../images/municipality.jpg") center 35% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.1) 60%);
}
.hero .wrap { position: relative; padding-bottom: 48px; padding-top: 48px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.05; margin: 0 0 12px; }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0; }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border); }
h2 { font-size: 1.9rem; margin: 0 0 20px; }
h3 { font-size: 1.15rem; margin: 28px 0 12px; color: var(--accent); }

.intro { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: start; }
.facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0;
}
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 12px 16px 16px; font-size: .95rem; }
.gallery figcaption strong { display: block; margin-bottom: 2px; }
.gallery figcaption span { color: var(--muted); }

/* Organisations */
.orgs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.orgs a {
  display: block;
  height: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.orgs a:hover, .orgs a:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.orgs strong { display: block; }
.orgs span { color: var(--muted); font-size: .88rem; word-break: break-all; }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: .85rem;
}
.site-footer p { margin: 0 0 8px; }
.credits { margin: 8px 0 0; padding-left: 18px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .intro { grid-template-columns: 1fr; gap: 24px; }
  .site-nav { gap: 12px; }
  .hero { min-height: min(48vh, 420px); }
  section { padding: 40px 0; }
  .orgs { grid-template-columns: 1fr; }
}
