:root {
  color-scheme: light;
  --bg: #eef1f3;
  --ink: #172026;
  --muted: #63717c;
  --line: #cfd8dc;
  --panel: #ffffff;
  --panel-soft: #f7faf9;
  --accent: #247b7b;
  --accent-strong: #125b5f;
  --warm: #b95f32;
  --rain: #4f7fb7;
  --ok: #1f8f5f;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent 28%),
    linear-gradient(135deg, rgba(36, 123, 123, 0.13), transparent 38%),
    linear-gradient(315deg, rgba(185, 95, 50, 0.1), transparent 32%),
    var(--bg);
}

code {
  padding: 0.1rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8f7f4;
  font-size: 0.95em;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.workspace {
  width: min(1180px, 100%);
}

.intro {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.summary {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.status-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  box-shadow: 0 14px 32px rgba(30, 35, 43, 0.07);
}

.label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--accent-strong);
  font-size: 1.35rem;
  line-height: 1.2;
}

.panel {
  margin-top: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 16px 36px rgba(30, 35, 43, 0.08);
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.panel-header .eyebrow {
  margin-bottom: 8px;
}

h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.panel-note {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: right;
}

.clock-grid,
.weather-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.weather-comparison {
  margin: 20px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.clock-card,
.weather-card {
  display: grid;
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.clock-card {
  align-content: space-between;
  gap: 18px;
}

.card-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.clock-time {
  display: block;
  color: var(--accent-strong);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: 0;
}

.clock-date {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.weather-card {
  align-content: start;
  gap: 14px;
  min-height: 470px;
}

.weather-temp {
  color: var(--warm);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.weather-condition {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.weather-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.weather-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.weather-card dt,
.metric-card dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.weather-card dd,
.metric-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
}

.weather-trend {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.sparkline-header,
.sparkline-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
}

.sparkline {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.sparkline-temp {
  fill: none;
  stroke: var(--warm);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.sparkline-rain {
  fill: none;
  stroke: var(--rain);
  stroke-linecap: round;
  stroke-width: 7;
  opacity: 0.42;
}

.weather-explanation {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.health-grid,
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
}

.metric-card {
  min-height: 98px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.metric-card dt {
  margin-bottom: 12px;
}

.metric-card dd {
  font-size: 1.18rem;
  text-align: left;
}

@media (max-width: 720px) {
  .shell {
    place-items: start;
    padding: 24px 18px;
  }

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

  .panel-header {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .clock-grid,
  .weather-grid,
  .health-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

}
