:root {
  --bg: #0f1720;
  --card-bg: #1a2532;
  --text: #e6edf3;
  --muted: #8b98a5;
  --border: #2b3947;
  --go: #2ea043;
  --maybe: #d29922;
  --skip: #da3633;

  --hero-sky-top: #0b1220;
  --hero-sky-bottom: #1b2a3f;
  --hero-mtn-far: #33475c;
  --hero-mtn-mid: #23384a;
  --hero-mtn-near: #15232f;
  --hero-snow: #eef3f8;
  --hero-sun: #f2c14e;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fa;
    --card-bg: #ffffff;
    --text: #1f2328;
    --muted: #57606a;
    --border: #d0d7de;

    --hero-sky-top: #bcd9f2;
    --hero-sky-bottom: #eaf4fb;
    --hero-mtn-far: #9fb8cf;
    --hero-mtn-mid: #6f8fab;
    --hero-mtn-near: #46617c;
    --hero-snow: #ffffff;
    --hero-sun: #ffd873;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

h1 {
  font-size: 1.5rem;
  margin: 0;
}

.hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
  margin-bottom: 20px;
  background: linear-gradient(to bottom, var(--hero-sky-top), var(--hero-sky-bottom));
}

.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__sun { fill: var(--hero-sun); }
.hero__mtn--far { fill: var(--hero-mtn-far); }
.hero__mtn--mid { fill: var(--hero-mtn-mid); }
.hero__mtn--near { fill: var(--hero-mtn-near); }
.hero__snow { fill: var(--hero-snow); }

.hero h1 {
  position: absolute;
  left: 20px;
  bottom: 16px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.quote {
  margin: 0 0 20px;
  padding: 0 4px;
  text-align: center;
}

.quote p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-style: italic;
}

.quote cite {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: normal;
}

.verdict {
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: #fff;
}

.verdict--go { background: var(--go); }
.verdict--maybe { background: var(--maybe); }
.verdict--skip { background: var(--skip); }
.verdict--unknown { background: var(--muted); }

.verdict__label {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.verdict__tagline {
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
}

.verdict__score {
  margin-top: 6px;
  opacity: 0.9;
}

.reasons {
  margin: 20px 0 0;
  padding: 0 0 0 1.2em;
}

.reasons li {
  margin: 4px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card__heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wicon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.wicon__sun {
  fill: var(--hero-sun);
}

.wicon__rays {
  stroke: var(--hero-sun);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.wicon__moon {
  fill: #aebfd1;
}

.wicon__cloud {
  fill: var(--muted);
}

.wicon__drops {
  stroke: #6fa8dc;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.wicon__flakes {
  fill: var(--hero-snow);
}

.wicon__bolt {
  fill: var(--hero-sun);
}

.wicon__wind {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table th {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  padding: 4px 0;
}

table td {
  text-align: right;
  padding: 4px 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
  margin-top: 10px;
}

.forecast-strip {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.forecast-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.forecast-day__name {
  font-size: 0.8rem;
  color: var(--muted);
}

.forecast-day__temp {
  font-size: 0.9rem;
  font-weight: 600;
}

.status-card {
  margin-top: 16px;
}

.status-subheading {
  margin: 16px 0 8px;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-subheading:first-of-type {
  margin-top: 4px;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-list--columns {
  display: block;
  columns: 2;
  column-gap: 20px;
}

@media (min-width: 600px) {
  .status-list--columns {
    columns: 3;
  }
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  font-size: 0.9rem;
  break-inside: avoid;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--open {
  background: var(--go);
}

.status-dot--closed {
  background: var(--skip);
}

.trend-card {
  margin-top: 16px;
}

.trend-chart {
  width: 100%;
  height: 130px;
  margin-top: 4px;
  overflow: visible;
}

.trend-chart__line {
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.trend-chart__dot {
  stroke: var(--card-bg);
  stroke-width: 2;
}

.trend-chart__dot--go { fill: var(--go); }
.trend-chart__dot--maybe { fill: var(--maybe); }
.trend-chart__dot--skip { fill: var(--skip); }
.trend-chart__dot--unknown { fill: var(--muted); }

.trend-chart__label {
  fill: var(--muted);
  font-size: 9px;
}

.season-card {
  margin-top: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.stat-tile {
  text-align: center;
  padding: 10px 6px;
  border-radius: 8px;
  background: var(--bg);
}

.stat-tile__label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-tile__value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2px;
}

.stat-tile__sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

footer {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--text);
}
