:root {
  --bg: #0f1115;
  --panel: #181b21;
  --text: #eef0f3;
  --muted: #8b919c;
  --line: #262a32;
  --rain: #6aa8ff;
  --warn: #f2b84b;
  --warn-ink: #2a1d05;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  cursor: none;
}

[hidden] { display: none !important; }

.day {
  height: 100%;
  padding: 3.2vw 3.6vw 2.4vw;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 2vw;
}

.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 3vw; }
.clock { font-size: 9.5vw; font-weight: 300; line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.date { font-size: 2.2vw; color: var(--muted); margin-top: 0.8vw; }
.now { display: flex; align-items: center; gap: 1.6vw; text-align: right; }
.now-icon { width: 11vw; height: 11vw; flex: none; }
.temp { font-size: 8vw; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.cond { font-size: 2.1vw; margin-top: 0.4vw; }
.feels { font-size: 1.8vw; color: var(--muted); margin-top: 0.3vw; }

.alert-slot { height: 4.8vw; display: flex; gap: 1vw; }
.alert {
  flex: 1; min-width: 0; height: 100%;
  background: var(--warn); color: var(--warn-ink); border-radius: 1.2vw;
  padding: 0 1.8vw; font-size: 2.1vw; font-weight: 600;
  display: flex; gap: 1.2vw; align-items: center; white-space: nowrap;
}
.alert small { font-weight: 500; opacity: 0.8; font-size: 1.7vw; overflow: hidden; text-overflow: ellipsis; }
.alert-slot .unavailable { color: var(--muted); font-size: 1.7vw; align-self: center; }

.hours { display: grid; grid-template-columns: 1.45fr repeat(11, 1fr); gap: 0.6vw; min-height: 0; }
.hour {
  background: var(--panel); border-radius: 1vw; padding: 1.2vw 0.4vw;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.5vw;
  font-variant-numeric: tabular-nums;
}
.hour .h { font-size: 1.45vw; color: var(--muted); }
.hour img { width: 4.6vw; height: 4.6vw; margin: -0.6vw 0; }
.hour .t { font-size: 2.2vw; }
.hour .p, .hour .w, .hour .a { font-size: 1.45vw; color: var(--muted); white-space: nowrap; }
.hour .p.wet { color: var(--rain); font-weight: 600; }
.hour .a { display: flex; align-items: center; gap: 0.4vw; }
.hour .a i { width: 1.1vw; height: 1.1vw; border-radius: 50%; background: var(--dot, transparent); display: inline-block; }
.hour .rule { width: 60%; height: 1px; background: var(--line); }
.hour.first .h { font-size: 1.7vw; color: var(--text); font-weight: 600; }
.hour.first img { width: 5.4vw; height: 5.4vw; }
.hour.first .t { font-size: 2.9vw; }
.hour.first .p, .hour.first .w, .hour.first .a { font-size: 1.7vw; }

.nudges { min-height: 3.2vw; display: flex; gap: 1.2vw; align-items: baseline; }
.nudges .who { font-size: 1.5vw; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); flex: none; }
.nudges p { font-size: 2.6vw; line-height: 1.25; }

.foot { font-size: 1.35vw; color: var(--muted); min-height: 1.35em; }
.foot.stale { color: var(--warn); }

.night { height: 100%; display: grid; place-items: center; }
body.is-night { background: #050608; }
.night .clock { color: #4a4f58; font-size: 14vw; }
