:root {
  color-scheme: light;
  --bg: #efe6d7;
  --sand: #f7f1e7;
  --surface: rgba(255, 251, 245, 0.86);
  --surface-strong: #fffaf2;
  --text: #1d2830;
  --muted: #60707a;
  --line: rgba(29, 40, 48, 0.1);
  --warm: #c66d34;
  --sky: #7ba7c9;
  --sea: #4c8db8;
  --cloud: #8ca0af;
  --mint: #2f7a67;
  --gold: #f4be52;
  --berry: #b35e7a;
  --shadow: 0 24px 60px rgba(115, 87, 39, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(244, 190, 82, 0.34), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(123, 167, 201, 0.24), transparent 22%),
    linear-gradient(180deg, #f8f3eb 0%, var(--bg) 52%, #ebdfcf 100%);
}

.page-shell {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.panel,
.subpanel,
.hero-copy,
.current-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 0;
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 18px;
  overflow: hidden;
}

.hero-copy,
.current-card {
  min-width: 0;
}

.hero-copy {
  padding: 34px;
  background:
    radial-gradient(circle at top left, rgba(244, 190, 82, 0.24), transparent 35%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(255, 248, 237, 0.92));
}

.current-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(123, 167, 201, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.92), rgba(241, 248, 253, 0.92));
}

.dashboard,
.graph-layout,
.three-up,
.split-grid {
  display: grid;
  gap: 20px;
}

.dashboard {
  margin-top: 22px;
}

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

.graph-layout {
  grid-template-columns: 1fr 1fr;
}

.three-up {
  grid-template-columns: repeat(3, 1fr);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--warm);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

h4 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.intro,
.section-note,
.updated-at,
.bullet-item p,
.advice-card p,
.system-card p,
.chart-label,
.hour-meta,
.mini-label,
.label {
  color: var(--muted);
}

.intro {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.live-badge {
  display: inline-flex;
  margin: 18px 0 0;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.live-badge.live {
  color: #155b45;
  background: rgba(47, 122, 103, 0.12);
  border-color: rgba(47, 122, 103, 0.24);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  font-weight: 800;
}

.current-top,
.current-main,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.section-heading {
  margin-bottom: 20px;
  align-items: end;
}

.section-note {
  margin: 0;
  font-size: 0.92rem;
  text-align: right;
}

.label {
  margin: 0 0 6px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.weather-icon {
  font-size: 3.4rem;
  line-height: 1;
}

.current-main {
  margin-top: 18px;
  align-items: end;
}

.temperature-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.temperature {
  font-family: "Fraunces", serif;
  font-size: clamp(3.8rem, 8vw, 5.8rem);
}

.feels-like {
  font-size: 1rem;
  font-weight: 700;
}

.mini-stats,
.stats-grid {
  display: grid;
  gap: 12px;
}

.mini-stats {
  grid-template-columns: repeat(3, minmax(84px, 1fr));
}

.mini-stat,
.stat-card,
.forecast-card,
.advice-card,
.hour-card,
.bullet-item,
.system-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
}

.mini-stat {
  padding: 14px;
}

.mini-label {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.updated-at {
  margin: 28px 0 0;
  font-size: 0.9rem;
}

.panel {
  padding: 26px;
}

.subpanel {
  padding: 20px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.stats-grid.compact {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.stat-card {
  padding: 16px;
}

.stat-label,
.stat-icon {
  font-size: 0.88rem;
}

.stat-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.stat-value {
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 800;
}

.stat-source {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.forecast-card {
  padding: 16px;
}

.forecast-card .icon {
  font-size: 2rem;
}

.day-label {
  margin-top: 10px;
  color: var(--muted);
}

.temp-range {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-weight: 800;
}

.temp-range .min {
  color: var(--muted);
}

.forecast-meta {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.bullet-list,
.hour-list,
.advice-list {
  display: grid;
  gap: 12px;
}

.bullet-item,
.hour-card,
.advice-card {
  padding: 16px;
}

.bullet-item strong,
.hour-card strong,
.advice-card strong {
  display: block;
  margin-bottom: 6px;
}

.bullet-item p,
.hour-card p,
.advice-card p,
.system-card p {
  margin: 0;
  line-height: 1.5;
}

.hour-meta {
  font-size: 0.92rem;
}

.radar-panel {
  overflow: hidden;
}

.radar-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dce6ef;
}

.radar-frame iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}

.chart-card {
  padding: 14px 14px 6px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 6px 10px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.chart-grid-line {
  stroke: rgba(96, 112, 122, 0.16);
  stroke-width: 1;
}

.chart-axis-label {
  fill: #73838d;
  font-size: 12px;
  font-family: "Manrope", sans-serif;
}

.chart-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-fill {
  opacity: 0.08;
}

.advisory-panel {
  background:
    radial-gradient(circle at top left, rgba(244, 190, 82, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(255, 246, 234, 0.96));
}

.system-card {
  margin-top: 18px;
  padding: 18px;
}

.system-card strong {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 1080px) {
  .hero,
  .graph-layout,
  .three-up,
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 16px, 1280px);
    padding-top: 16px;
  }

  .panel,
  .subpanel,
  .hero-copy,
  .current-card {
    padding: 20px;
    border-radius: 24px;
  }

  .section-heading,
  .current-top,
  .current-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-note {
    text-align: left;
  }

  .mini-stats {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid,
  .stats-grid.compact,
  .forecast-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .stats-grid,
  .stats-grid.compact,
  .forecast-grid {
    grid-template-columns: 1fr;
  }
}
