:root {
  --paper: #f5f6f3;
  --surface: #ffffff;
  --ink: #1c2833;
  --muted: #56636e;
  --rule: #d3d8d2;
  --council: #1f4d40;
  --council-soft: #dbe6e1;
  --seat-field: #9cc9b6;
  --focus: #2c5a4c;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::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(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--council); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

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

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: #fff; padding: 0.5rem 0.75rem; z-index: 10;
}
.skip:focus { left: 0.5rem; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.012em; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; max-width: 62ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.brand-logo { height: 2.5rem; width: auto; display: block; }
.brand-name { font-size: 0.8rem; line-height: 1.25; font-weight: 500; color: var(--muted); padding-left: 0.7rem; border-left: 1px solid var(--rule); }
nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--council); text-decoration: underline; }

@media (max-width: 760px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding-top: 0.75rem; padding-bottom: 0.6rem; }
  nav ul { gap: 1.1rem; flex-wrap: wrap; }
  .site-header { position: static; }
}

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2rem; }

.button {
  display: inline-block; background: var(--council); color: #fff; border: 0;
  font: inherit; font-weight: 600; padding: 0.8rem 1.4rem; border-radius: 6px;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--ink); color: #fff; }
.text-link { font-weight: 600; }

.table-figure { margin: 0; }
#seating { width: 100%; max-width: 26rem; margin: 0 auto; }
#seating .table-top { fill: var(--surface); stroke: var(--rule); stroke-width: 1.5; }
#seating .seat-gov { fill: var(--council); }
#seating .seat-field { fill: var(--seat-field); }
#seating .moderator { fill: none; stroke: var(--council); stroke-width: 2; }
#seating .table-label { font-family: var(--serif); font-size: 19px; fill: var(--ink); text-anchor: middle; }
#seating .table-sub { font-family: var(--sans); font-size: 12.5px; fill: var(--muted); text-anchor: middle; }
.table-figure figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; margin-top: 1rem; font-size: 0.88rem; color: var(--muted); }
.key { display: inline-flex; align-items: center; gap: 0.45rem; }
.key::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; flex: none; }
.key-gov::before { background: var(--council); }
.key-field::before { background: var(--seat-field); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  #seating { max-width: 20rem; }
}

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--rule); }
.band { background: var(--council-soft); padding: clamp(3rem, 7vw, 5rem) 0; }
.band + .section, .section + .band { border-top: 0; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.two-col h3 { margin-top: 0.4rem; }
.statement { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; max-width: 40ch; }
.note { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3.5rem; margin: 0; }
.principles dt { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.35rem; }
.principles dd { margin: 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 680px) { .principles { grid-template-columns: 1fr; } }

/* Summit */
.summit .intro { font-size: 1.15rem; max-width: 58ch; margin-bottom: 2.5rem; }
.running-order { list-style: none; counter-reset: step; margin: 0 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.running-order li { counter-increment: step; position: relative; padding: 3.25rem 1.75rem 0 0; }
.running-order li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--council); color: #fff;
  font-family: var(--serif); font-size: 1.15rem;
}
.running-order li::after {
  content: ""; position: absolute; top: 1.125rem; left: 2.75rem; right: 0.5rem;
  border-top: 1px solid var(--rule);
}
.running-order li:last-child::after { display: none; }
.running-order p { color: var(--muted); }
@media (max-width: 760px) {
  .running-order { grid-template-columns: 1fr; gap: 1.5rem; }
  .running-order li { padding: 0 0 0 3.25rem; }
  .running-order li::after { display: none; }
}

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.facts > div { padding: 1rem 1.5rem 1rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.88rem; color: var(--muted); }
.facts dd { margin: 0.15rem 0 0; font-weight: 500; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }

/* Board */
.board { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.board li { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.2rem; }
.board .name { font-family: var(--serif); font-size: 1.35rem; }
.board .role { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .board { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-form { display: grid; gap: 0.35rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: clamp(1.25rem, 3vw, 2rem); }
.contact-form label { font-weight: 600; font-size: 0.95rem; margin-top: 0.75rem; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #b9c1bb; border-radius: 6px; padding: 0.65rem 0.75rem; width: 100%;
}
.contact-form textarea { resize: vertical; }
.contact-form .button { margin-top: 1.25rem; justify-self: start; }
.form-status { margin: 0.5rem 0 0; font-size: 0.95rem; min-height: 1.5em; }
.form-status.is-error { color: #9b2c2c; }
.form-status.is-ok { color: var(--council); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 2rem 0; font-size: 0.9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-inner p { margin: 0; }

/* 404 */
.notfound { padding: 6rem 0; }
