:root {
  color-scheme: light;
  --ink: #20312d;
  --muted: #65736f;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #d9ded5;
  --forest: #285447;
  --moss: #6d8f5d;
  --water: #2f7ea5;
  --amber: #c98632;
  --rose: #b65a4b;
  --shadow: 0 18px 45px rgba(32, 49, 45, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 28px;
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(217, 222, 213, 0.85);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--forest);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--forest);
}

.hero {
  min-height: calc(92vh - 64px);
  display: flex;
  align-items: center;
  padding: 72px 28px;
  background:
    linear-gradient(90deg, rgba(19, 34, 31, 0.78), rgba(19, 34, 31, 0.36) 46%, rgba(19, 34, 31, 0.05)),
    url("assets/community-hero.png") center / cover;
}

.hero__content {
  width: min(760px, 100%);
  margin-left: max(0px, calc((100vw - 1160px) / 2));
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e5b36f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

.status-band,
.content-band {
  padding: 72px 28px;
}

.status-band {
  background: var(--paper);
}

.content-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.content-band--muted {
  background: #eef1e8;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-inner--split {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 42px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.water-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.2fr);
  gap: 22px;
  align-items: stretch;
}

.reading-panel,
.chart-panel,
.notice-list article,
.project-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.reading-panel,
.chart-panel {
  padding: 24px;
}

.reading-panel__topline,
.chart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-pill--normal {
  background: var(--forest);
}

.status-pill--watch {
  background: var(--amber);
}

.status-pill--low,
.status-pill--unknown {
  background: var(--rose);
}

.primary-reading {
  display: grid;
  gap: 4px;
  margin: 36px 0 20px;
}

.primary-reading span:first-child {
  color: var(--forest);
  font-size: clamp(3.8rem, 10vw, 6.5rem);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: 0;
}

.primary-reading span:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.meter {
  height: 14px;
  overflow: hidden;
  background: #dce8eb;
  border-radius: 999px;
}

.meter__fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--water), var(--moss));
  border-radius: inherit;
  transition: width 280ms ease;
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
}

.reading-grid div {
  min-width: 0;
  padding: 14px;
  background: #f5f7f1;
  border: 1px solid var(--line);
  border-radius: 6px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
}

.chart-panel {
  min-width: 0;
}

.chart-panel h3 {
  margin: 0;
  font-size: 1.15rem;
}

.chart-panel__header span {
  color: var(--muted);
  font-size: 0.86rem;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 24px;
}

.notice-list {
  display: grid;
  gap: 14px;
}

.notice-list article,
.project-grid article {
  padding: 22px;
}

.notice-list time {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.notice-list h3,
.project-grid h3 {
  margin: 8px 0;
  font-size: 1.1rem;
}

.notice-list p,
.project-grid p,
.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 28px;
  color: #dfe8df;
  background: #20312d;
}

.site-footer a {
  color: #f0bd77;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .hero,
  .status-band,
  .content-band {
    padding-inline: 20px;
  }

  .hero {
    min-height: 78vh;
    align-items: flex-end;
  }

  .water-layout,
  .section-inner--split,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .reading-panel__topline,
  .chart-panel__header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 3.1rem;
  }

  .reading-grid {
    grid-template-columns: 1fr;
  }

  .reading-panel,
  .chart-panel {
    padding: 18px;
  }
}
