:root {
  --ink: #17201c;
  --muted: #607067;
  --paper: #fbfcf8;
  --wash: #eef5ef;
  --line: #dbe4dc;
  --green: #2d6a4f;
  --green-dark: #184c3a;
  --amber: #e9a23b;
  --coral: #d85f4f;
  --blue: #3278a8;
  --violet: #7566b1;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23,32,28,.10);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfcf8 0%, #f2f7f1 52%, #fbfcf8 100%);
  line-height: 1.55;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(219,228,220,.85);
  background: rgba(251,252,248,.92);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 150px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: conic-gradient(from 20deg, var(--green), var(--blue), var(--amber), var(--green));
  color: #fff;
  font-weight: 800;
}
.brand small { display: block; color: var(--muted); font-size: 12px; }
.top-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}
.nav-link.active, .nav-link:hover { background: var(--wash); color: var(--green-dark); }
main { min-height: 70vh; }
.hero-dashboard, .park-hero, .page-intro, .tool-page, .section, .split-section, .metric-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.hero-dashboard {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  align-items: center;
  gap: 28px;
  padding: 48px 0 32px;
}
.hero-copy h1, .page-intro h1, .park-hero h1, .tool-copy h1 {
  margin: 0;
  line-height: 1.02;
  font-size: clamp(42px, 7vw, 82px);
  letter-spacing: 0;
}
.hero-copy p, .page-intro p, .park-hero p, .tool-copy p { color: var(--muted); font-size: 18px; max-width: 720px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
}
.quick-actions, .tool-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button, .tool-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(23,32,28,.05);
}
.button.primary { background: var(--green); color: #fff; border-color: var(--green); }
.status-panel {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 25% 25%, rgba(233,162,59,.20), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(50,120,168,.18), transparent 30%),
    linear-gradient(145deg, #fff, #edf5ee);
  box-shadow: var(--shadow);
}
.status-ring {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  margin-bottom: 20px;
  color: var(--green-dark);
  font-size: 42px;
  font-weight: 900;
  background: conic-gradient(var(--coral), var(--amber), var(--blue), var(--green), var(--coral));
  box-shadow: inset 0 0 0 14px #fff;
}
.status-panel strong { display: block; font-size: 24px; }
.status-panel p, .status-panel a { color: var(--muted); }
.section, .split-section, .metric-grid { padding: 42px 0; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); line-height: 1.1; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.park-tile {
  display: grid;
  grid-template-rows: 110px auto auto auto 1fr;
  gap: 8px;
  min-height: 286px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(23,32,28,.05);
}
.park-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.park-tile strong { font-size: 19px; line-height: 1.18; }
.park-tile small, .park-tile em { color: var(--muted); font-style: normal; }
.tile-meta { display: inline-flex; gap: 8px; align-items: baseline; color: var(--green-dark); font-weight: 800; }
.tile-meta b { font-size: 22px; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.guide-card {
  display: grid;
  gap: 8px;
  min-height: 236px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(23,32,28,.05);
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-card span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}
.guide-card strong { font-size: 20px; line-height: 1.18; }
.guide-card small, .guide-card p { color: var(--muted); margin: 0; }
.park-art, .park-scene {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
}
.visual-mountain { background: linear-gradient(150deg, #dff1f1 0 35%, #5b8c83 36% 52%, #1f5140 53% 100%); }
.visual-sierra { background: linear-gradient(150deg, #eaf5ff 0 32%, #b8c9d5 33% 42%, #557e68 43% 67%, #254f3c 68%); }
.visual-desert { background: linear-gradient(145deg, #ffe1a6 0 30%, #d98251 31% 58%, #874c45 59% 100%); }
.visual-forest { background: linear-gradient(145deg, #d8ecd2 0 34%, #77a66f 35% 55%, #264f39 56% 100%); }
.visual-coast { background: linear-gradient(145deg, #d8f0f4 0 34%, #4c9dc0 35% 58%, #e6d7ad 59% 100%); }
.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.split-section > div, .quake-panel, .calculator, .source-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}
.quake-list, .alert-list, .check-list, .stop-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.quake-list li, .alert-list li, .check-list li, .stop-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.quake-list li:last-child, .alert-list li:last-child, .check-list li:last-child, .stop-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.quake-list a { font-weight: 800; text-decoration: none; }
.quake-list small, .alert-list small { display: block; color: var(--muted); }
.page-intro { padding: 58px 0 24px; }
.park-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: center;
  padding: 50px 0 28px;
}
.signal-pill {
  display: inline-grid;
  gap: 4px;
  max-width: 640px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
}
.signal-pill span { color: var(--muted); font-weight: 600; }
.park-scene { min-height: 300px; position: relative; box-shadow: var(--shadow); }
.park-scene span { position: absolute; border-radius: 50%; background: rgba(255,255,255,.62); }
.park-scene span:nth-child(1) { width: 90px; height: 90px; right: 30px; top: 28px; }
.park-scene span:nth-child(2) { width: 160px; height: 18px; left: 38px; bottom: 58px; border-radius: 999px; }
.park-scene span:nth-child(3) { width: 80px; height: 12px; left: 90px; bottom: 34px; border-radius: 999px; }
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.forecast-card {
  min-height: 176px;
  padding: 18px;
  border-radius: 8px;
  color: #17201c;
  background: #fff;
  border: 1px solid var(--line);
}
.forecast-card strong { display: block; font-size: 34px; margin: 8px 0; }
.forecast-card p { margin: 0 0 12px; }
.forecast-card span, .forecast-card small { color: var(--muted); font-weight: 800; }
.weather-hot { border-color: rgba(216,95,79,.45); background: #fff5f1; }
.weather-warm { border-color: rgba(233,162,59,.45); background: #fff8e8; }
.weather-mild { border-color: rgba(45,106,79,.35); background: #f4fbf3; }
.weather-cool { border-color: rgba(50,120,168,.35); background: #f1f8fb; }
.weather-freeze { border-color: rgba(117,102,177,.35); background: #f6f4ff; }
.good-news { margin: 0; color: var(--green-dark); font-weight: 800; }
.source-strip {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 54px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.metric-card {
  min-height: 120px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.metric-card span { color: var(--muted); font-weight: 800; }
.metric-card strong { display: block; font-size: 42px; }
.metric-card small { color: var(--muted); font-weight: 800; }
.severity-extreme { border-color: rgba(216,95,79,.65); }
.severity-severe { border-color: rgba(233,162,59,.70); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; }
td small { display: block; color: var(--muted); }
.tool-row.large { width: min(1120px, calc(100% - 32px)); margin: 0 auto 48px; }
.tool-row.large a { min-height: 94px; flex: 1 1 240px; font-size: 20px; }
.tool-page {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 520px);
  gap: 28px;
  align-items: start;
  padding: 60px 0;
}
.calculator { display: grid; gap: 14px; box-shadow: var(--shadow); }
.calculator label { display: grid; gap: 6px; color: var(--muted); font-weight: 800; }
.calculator input, .calculator select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.calculator output {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 16px;
  border-radius: 8px;
  background: var(--wash);
}
.calculator output strong { font-size: 32px; }
.calculator output span { color: var(--muted); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer p { margin: 4px 0 0; max-width: 620px; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: var(--green-dark); font-weight: 800; }
.muted { color: var(--muted); }
@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .top-nav { justify-content: flex-start; }
  .hero-dashboard, .park-hero, .split-section, .tool-page { grid-template-columns: 1fr; }
  .hero-dashboard { min-height: auto; padding-top: 34px; }
  .hero-copy h1, .page-intro h1, .park-hero h1, .tool-copy h1 { font-size: 42px; }
  .status-panel, .park-scene { min-height: 250px; }
  .site-footer { flex-direction: column; }
}
