@font-face {
  font-family: Nunito;
  src: url("vendor/nunito-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --surface: #fff;
  --ink: #2b332b;
  --muted: #505e53;
  --action: #264f3c;
  --action-hover: #315f49;
  --action-pressed: #1d4030;
  --sage: #dde7d6;
  --track: #f4f7f0;
  --line: #daddd4;
  --control-line: #c2cabf;
  --control-radius: 12px;
  --quick: 140ms;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font: 400 1.0625rem/1.5 Nunito, system-ui, sans-serif;
  font-synthesis: none;
}
h1, h2, h3, p, figure, ul { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--action-hover); outline-offset: 4px; }
::selection { background: var(--sage); color: var(--ink); }
.muted, .caption { color: var(--muted); }
.caption { font-size: .9375rem; }
.wrap { width: min(1040px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; padding: 8px 16px; background: var(--surface); transform: translateY(-120%); }
.skip:focus { transform: translate(12px, 12px); }

.top {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
.brand { color: var(--action); font-size: 1.125rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.top nav { display: flex; flex-wrap: wrap; gap: 5px 26px; margin-inline-start: auto; }
.top nav a { display: inline-grid; min-height: 44px; place-items: center; font-size: 1rem; font-weight: 600; text-decoration: none; }
.top nav a:hover, .brand:hover { text-decoration: underline; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  padding: 8px 16px;
  color: var(--action);
  background: var(--surface);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--quick), border-color var(--quick), color var(--quick);
}
.button.primary { background: var(--action); border-color: var(--action); color: var(--surface); }
.button.primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.button.primary:active { background: var(--action-pressed); border-color: var(--action-pressed); }
.button.secondary { border-color: var(--control-line); }
.button.secondary:hover { background: var(--track); }
.button.secondary:active { background: var(--sage); }
.login { min-width: 112px; }
.join { min-width: 178px; }

.hero-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 35.6%); min-height: 198px; gap: 20px; }
.hero-heading h1 { color: var(--action); font-size: clamp(4.45rem, 11.43vw, 8rem); font-weight: 600; line-height: 1.24; }
.hero-intro { align-self: end; max-width: 330px; padding: 24px 0 18px; }
.hero-subtitle { font-size: 1.5625rem; font-weight: 600; line-height: 1.32; }
.hero-intro .muted { margin-top: 4px; font-size: 1.125rem; line-height: 1.38; }
.hero-intro .button { margin-top: 14px; }
.panorama img { display: block; width: 100%; height: auto; aspect-ratio: 1040 / 365; object-fit: cover; object-position: center; border-radius: 4px; }
.panorama figcaption { margin-top: 5px; color: var(--muted); font-size: .8125rem; }

.section { margin-top: 72px; }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.375rem); font-weight: 600; line-height: 1.18; letter-spacing: -.012em; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 22px; }
.section-description { margin-top: 6px; }
.news-row {
  display: grid;
  grid-template-columns: minmax(140px, 22%) minmax(0, 1fr);
  gap: 16px;
  min-height: 85px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.category { color: var(--action); font-size: .9375rem; padding-top: 3px; }
.news-row h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.23; }
.news-row p { font-size: 1rem; }
.doc { border-top: 1px solid var(--line); }
.doc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 82px;
  padding: 12px 0;
  list-style: none;
  cursor: pointer;
}
.doc summary::-webkit-details-marker { display: none; }
.doc summary strong { display: block; color: var(--action); font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
.doc summary small { display: block; margin-top: 3px; color: var(--muted); font-size: .9375rem; }
.doc summary .button { min-width: 116px; }
.doc summary:hover .button { background: var(--track); }
.doc .when-open, .doc[open] .when-closed { display: none; }
.doc[open] .when-open { display: inline; }
.doc-status { padding: 0 16px 16px 0; }
.all-docs { margin-top: 10px; }

.expenses { margin-top: 48px; padding: 27px 28px 29px; border-radius: 14px; background: var(--sage); }
.expense-chart { display: grid; gap: 16px; margin-top: 27px; padding: 0; list-style: none; }
.expense-chart li { display: grid; grid-template-columns: minmax(140px, 23%) minmax(0, 1fr) 54px; align-items: center; gap: 20px; }
.expense-chart strong { font-variant-numeric: tabular-nums; font-weight: 600; text-align: end; }
.expense-chart meter { width: 100%; min-width: 0; height: 15px; border: 0; border-radius: 5px; background: var(--track); appearance: none; -webkit-appearance: none; }
.expense-chart meter::-webkit-meter-inner-element { display: block; box-sizing: border-box; }
.expense-chart meter::-webkit-meter-bar { height: 15px; border: 0; border-radius: 5px; background: var(--track); }
.expense-chart meter::-webkit-meter-optimum-value { border-radius: 5px; background: var(--bar); }
.expense-chart meter::-moz-meter-bar { border-radius: 5px; background: var(--bar); }
.expense-chart .roads { --bar: #264f3c; }
.expense-chart .electricity { --bar: #64866b; }
.expense-chart .water { --bar: #83551f; }
.expense-chart .work { --bar: #697453; }
.expense-cta { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--control-line); }
.expense-cta .button { margin-top: 10px; }

.foot { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 16px 32px; margin-top: 68px; padding: 22px 0 40px; border-top: 1px solid var(--line); }
.foot h2 { font-size: 1.0625rem; font-weight: 600; }
.foot p { margin-top: 4px; font-size: .9375rem; }
dialog { width: min(480px, calc(100% - 32px)); max-width: unset; margin: auto; padding: 0; border: 1px solid var(--control-line); border-radius: 14px; color: var(--ink); }
dialog::backdrop { background: #192e2460; }
.dialog-content { display: grid; gap: 12px; padding: 24px; }
.dialog-content h2 { font-size: 1.625rem; font-weight: 600; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 4px; }

@media (max-width: 850px) {
  .wrap { width: min(1040px, calc(100% - 48px)); }
  .top { gap: 12px 16px; }
  .top nav { column-gap: 15px; }
  .hero-heading { min-height: 0; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .top { flex-wrap: wrap; justify-content: space-between; }
  .top nav { order: 1; width: 100%; justify-content: space-between; margin: 0; }
  .hero-heading { grid-template-columns: 1fr; gap: 0; padding: 22px 0 16px; }
  .hero-heading h1 { line-height: 1.03; }
  .hero-intro { padding: 8px 0 0; }
  .panorama img { aspect-ratio: 1.85; }
  .section, .foot { margin-top: 46px; }
  .section-heading { margin-bottom: 16px; }
  .news-row, .foot { grid-template-columns: 1fr; gap: 3px; }
  .foot { gap: 16px; }
  .doc summary strong { font-size: 1.15rem; }
  .doc summary .button { min-width: 90px; }
  .expenses { padding: 20px 16px; }
  .expense-chart { gap: 14px; }
  .expense-chart li { grid-template-columns: minmax(0, 1fr) max-content; gap: 4px 10px; }
  .expense-chart meter { grid-column: 1 / -1; grid-row: 2; }
  .expenses .login { min-width: 104px; }
}
@media (max-width: 375px) {
  .top nav { column-gap: 6px; }
  .top nav a { font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
