/* Registered so the sky gradient can animate between weathers. */
@property --top {
  syntax: "<color>";
  inherits: false;
  initial-value: #1e3a8a;
}
@property --bottom {
  syntax: "<color>";
  inherits: false;
  initial-value: #60a5fa;
}

:root {
  --glass: rgba(15, 23, 42, 0.3);
  --glass-strong: rgba(15, 23, 42, 0.55);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --muted: rgba(226, 232, 240, 0.78);
  --rain: #7dd3fc;
  --radius: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: #0f172a;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid #fde68a;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ============ Sky ============ */

.sky {
  --top: #2563eb;
  --bottom: #93c5fd;
  --cloud: #ffffff;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, var(--top), var(--bottom));
  transition:
    --top 1.6s ease,
    --bottom 1.6s ease;
}
.sky[data-kind="partly"] {
  --top: #3b7bd6;
  --bottom: #a5c8ec;
}
.sky[data-kind="cloudy"] {
  --top: #64748b;
  --bottom: #b8c3d1;
  --cloud: #e5e9f0;
}
.sky[data-kind="fog"] {
  --top: #7c8798;
  --bottom: #ccd3dc;
  --cloud: #e5e9f0;
}
.sky:is([data-kind="drizzle"], [data-kind="rain"]) {
  --top: #334155;
  --bottom: #6b7c93;
  --cloud: #8a99ad;
}
.sky[data-kind="storm"] {
  --top: #1a2033;
  --bottom: #3f4a5f;
  --cloud: #4a5568;
}
.sky[data-kind="snow"] {
  --top: #556b8c;
  --bottom: #b3c3d6;
  --cloud: #e5e9f0;
}
.sky[data-time="night"] {
  --top: #050816;
  --bottom: #1b2452;
  --cloud: #2b3550;
}
.sky[data-time="night"]:is([data-kind="cloudy"], [data-kind="fog"]) {
  --top: #0f141f;
  --bottom: #303a4d;
  --cloud: #3a4559;
}
.sky[data-time="night"]:is([data-kind="drizzle"], [data-kind="rain"], [data-kind="storm"]) {
  --top: #05070d;
  --bottom: #1c2433;
  --cloud: #252e40;
}
.sky[data-time="night"][data-kind="snow"] {
  --top: #111a2c;
  --bottom: #3c4b63;
  --cloud: #4b5870;
}

/* Sun: a soft disc with slowly turning rays and a breathing glow. */
.sun {
  position: absolute;
  top: 7vh;
  right: 12vw;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe6 0 26%, #ffe08a 42%, rgba(255, 205, 96, 0.35) 58%, transparent 70%);
  opacity: 0;
  transform: translateY(80px) scale(0.8);
  transition:
    opacity 1.4s var(--ease),
    transform 1.6s var(--ease);
}
.sun::before {
  content: "";
  position: absolute;
  inset: -120px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 244, 200, 0.2) 0deg 5deg, transparent 5deg 22.5deg);
  -webkit-mask: radial-gradient(circle, transparent 20%, #000 30%, transparent 72%);
  mask: radial-gradient(circle, transparent 20%, #000 30%, transparent 72%);
  animation: spin 90s linear infinite;
}
.sun::after {
  content: "";
  position: absolute;
  inset: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 140, 0.45), transparent 65%);
  animation: breathe 6s ease-in-out infinite;
}
.sky[data-time="day"]:is([data-kind="clear"], [data-kind="partly"]) .sun {
  opacity: 1;
  transform: none;
}

/* Moon: a crescent cut with an inset shadow. */
.moon {
  position: absolute;
  top: 9vh;
  right: 14vw;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  box-shadow: inset -24px 10px 0 0 #eef2ff;
  filter: drop-shadow(0 0 28px rgba(199, 210, 254, 0.55));
  opacity: 0;
  transform: translateY(60px) rotate(-20deg);
  transition:
    opacity 1.4s var(--ease),
    transform 1.6s var(--ease);
}
.sky[data-time="night"]:is([data-kind="clear"], [data-kind="partly"]) .moon {
  opacity: 1;
  transform: rotate(-20deg);
}

.stars {
  position: absolute;
  inset: 0 0 35% 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.stars i {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: twinkle 3s ease-in-out infinite alternate;
}
.sky[data-time="night"] .stars {
  opacity: 1;
}
.sky[data-time="night"]:not([data-kind="clear"], [data-kind="partly"]) .stars {
  opacity: 0.12;
}

.shooting {
  position: absolute;
  top: 14vh;
  left: 62vw;
  width: 150px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  opacity: 0;
}
.sky[data-time="night"][data-kind="clear"] .shooting {
  animation: shoot 12s ease-in 3s infinite;
}

/* Clouds: three overlapping round shapes that drift across at different speeds and sizes. */
.clouds {
  position: absolute;
  inset: 0;
}
.cloud {
  position: absolute;
  left: 0;
  top: var(--top);
  width: 220px;
  height: 64px;
  border-radius: 64px;
  background: var(--cloud);
  opacity: 0;
  transition:
    opacity 1.6s ease,
    background-color 1.6s ease;
  animation: drift var(--d) linear var(--delay) infinite;
  will-change: transform;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before {
  width: 96px;
  height: 96px;
  left: 32px;
  top: -48px;
}
.cloud::after {
  width: 124px;
  height: 124px;
  left: 84px;
  top: -72px;
}
.sky[data-kind="partly"] .cloud:nth-child(-n + 4) {
  opacity: 0.85;
}
.sky:not([data-kind="clear"], [data-kind="partly"]) .cloud {
  opacity: 0.92;
}

.fog {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.fog i {
  position: absolute;
  left: -50%;
  width: 200%;
  height: 30vh;
  background: linear-gradient(180deg, transparent, rgba(241, 245, 249, 0.5), transparent);
  filter: blur(18px);
  animation: mist 28s ease-in-out infinite alternate;
}
.fog i:first-child {
  top: 36vh;
}
.fog i:last-child {
  top: 62vh;
  animation-duration: 36s;
  animation-direction: alternate-reverse;
}
.sky[data-kind="fog"] .fog {
  opacity: 1;
}
.sky[data-kind="drizzle"] .fog {
  opacity: 0.35;
}

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

.flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 10%, #eef2ff, rgba(199, 210, 254, 0.35) 60%);
  opacity: 0;
}
.sky.flashing .flash {
  animation: flash 0.9s ease-out;
}

/* Pale skies (snow, fog, overcast by day) need darker glass to keep white text readable. */
body:has(.sky[data-time="day"]:is([data-kind="cloudy"], [data-kind="fog"], [data-kind="snow"])) {
  --glass: rgba(15, 23, 42, 0.48);
  --glass-strong: rgba(15, 23, 42, 0.66);
}

/* ============ Header ============ */

.bar {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-shadow: 0 1px 10px rgba(2, 6, 23, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
}
.brand svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 10px rgba(2, 6, 23, 0.3));
}

.search {
  position: relative;
  flex: 0 1 380px;
}
.search-icon {
  position: absolute;
  z-index: 1;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  translate: 0 -50%;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
#q {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  outline: none;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    box-shadow 0.2s;
}
#q::placeholder {
  color: var(--muted);
}
#q:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: var(--glass-strong);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
  animation: drop-in 0.25s var(--ease);
}
.suggestions li {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.suggestions li[aria-selected="true"],
.suggestions li:hover {
  background: rgba(255, 255, 255, 0.1);
}
.suggestions strong {
  font-weight: 500;
}
.suggestions span,
.suggestions .empty {
  color: var(--muted);
  font-size: 0.85rem;
}
.suggestions .empty {
  cursor: default;
}

.icon-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s;
}
.icon-btn:hover {
  background: var(--glass-strong);
  transform: translateY(-1px);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.icon-btn.busy svg {
  animation: spin 1.2s linear infinite;
}

.units {
  position: relative;
  flex: none;
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.units::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.units[data-unit="F"]::before {
  transform: translateX(100%);
}
.units button {
  position: relative;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  transition: color 0.3s;
}
.units button[aria-pressed="true"] {
  color: #0f172a;
  font-weight: 500;
}

/* ============ Cards ============ */

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px 16px 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas:
    "now details"
    "hourly hourly"
    "week week";
}

.card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.22);
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms + 80ms);
}

body.loading .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

h2 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.now {
  grid-area: now;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 300px;
}
.place {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
}
.date,
.range {
  margin: 4px 0 0;
  color: var(--muted);
}
.now-main {
  display: flex;
  align-items: center;
  gap: 4px;
}
.now-icon {
  flex: none;
  width: clamp(100px, 22vw, 150px);
  filter: drop-shadow(0 10px 24px rgba(2, 6, 23, 0.35));
}
.now-icon svg {
  display: block;
  width: 100%;
  height: auto;
}
.temp {
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-size: clamp(4.5rem, 15vw, 7.5rem);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.temp .deg {
  margin-top: 0.22em;
  color: var(--muted);
  font-size: 0.3em;
  font-weight: 300;
  letter-spacing: 0;
}
.label {
  margin: 0;
  font-size: 1.4rem;
}

.details {
  grid-area: details;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}
.grid div {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s;
}
.grid div:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}
dt {
  color: var(--muted);
  font-size: 0.8rem;
}
dd {
  margin: 4px 0 0;
  font-size: 1.35rem;
  font-weight: 500;
}

.daylight {
  margin-top: 18px;
}
.arc {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  overflow: visible;
}
.horizon {
  stroke: rgba(255, 255, 255, 0.25);
}
.arc-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2;
  stroke-dasharray: 3 5;
}
.arc-done {
  fill: none;
  stroke: #fcd34d;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.arc-sun {
  fill: #fde68a;
  filter: drop-shadow(0 0 8px #fbbf24);
  transition: fill 0.6s;
}
.arc-sun.down {
  fill: #94a3b8;
  filter: none;
}
.sun-times {
  display: flex;
  justify-content: space-between;
  max-width: 300px;
  margin: 6px auto 0;
}
.sun-times span:last-child {
  text-align: right;
}
.sun-times small {
  display: block;
  color: var(--muted);
}
.sun-times b {
  font-size: 1.05rem;
  font-weight: 500;
}

.hourly {
  grid-area: hourly;
}
.hours {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 2px 2px 10px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.hours li {
  flex: 0 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  scroll-snap-align: start;
  animation: pop 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 28ms + 250ms);
}
.hours li:first-child {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.16);
}
.hours .wi {
  width: 38px;
  height: 38px;
}
.h-time {
  color: var(--muted);
  font-size: 0.85rem;
}
.h-temp {
  font-size: 1.1rem;
  font-weight: 500;
}
.h-rain,
.d-rain {
  min-height: 1.1em;
  color: var(--rain);
  font-size: 0.78rem;
}

.week {
  grid-area: week;
}
.days {
  margin: 0;
  padding: 0;
  list-style: none;
}
.days li {
  display: grid;
  grid-template-columns: 4.4rem 2.4rem 2.6rem 2.6rem minmax(60px, 1fr) 2.6rem;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: pop 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 60ms + 350ms);
}
.days li:first-child {
  border-top: 0;
}
.d-name {
  font-weight: 500;
}
.days .wi {
  width: 36px;
  height: 36px;
}
.d-min {
  color: var(--muted);
  text-align: right;
}
.d-bar {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.d-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 6px;
  background-image: linear-gradient(90deg, #60a5fa, #34d399 35%, #facc15 65%, #f97316);
  background-repeat: no-repeat;
  transform-origin: left;
  animation: grow 0.9s var(--ease) both;
  animation-delay: calc(var(--i) * 60ms + 500ms);
}

/* ============ Weather icons ============ */

.wi {
  overflow: visible;
}
.wi .spin {
  animation: spin 14s linear infinite;
}
.wi .glow {
  animation: breathe 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.wi .bob {
  animation: bob 5s ease-in-out infinite;
}
.wi .drop {
  animation: fall 1.1s linear infinite;
}
.wi .flake {
  animation: flake 2.6s linear infinite;
}
.wi .bolt {
  animation: bolt 3s ease-in-out infinite;
}
.wi .mist {
  animation: sway 3.2s ease-in-out infinite alternate;
}
.wi .twinkle {
  animation: twinkle 2.4s ease-in-out infinite alternate;
}
/* Small icons hold still until hovered, so a row of 24 doesn't fidget. */
:is(.hours, .days) .wi * {
  animation-play-state: paused;
}
:is(.hours, .days) li:hover .wi * {
  animation-play-state: running;
}

/* ============ Toast and footer ============ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid rgba(254, 202, 202, 0.3);
  border-radius: 14px;
  background: rgba(127, 29, 29, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
}
.toast[data-tone="info"] {
  border-color: var(--line);
  background: rgba(15, 23, 42, 0.88);
}
.toast.show {
  animation: toast-in 0.4s var(--ease) both;
}

.credit {
  padding: 0 16px 22px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
.credit a {
  color: inherit;
}

/* ============ Keyframes ============ */

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
@keyframes breathe {
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}
@keyframes twinkle {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}
@keyframes drift {
  from {
    transform: translateX(-360px) scale(var(--s));
  }
  to {
    transform: translateX(calc(100vw + 60px)) scale(var(--s));
  }
}
@keyframes mist {
  from {
    transform: translateX(-8%);
  }
  to {
    transform: translateX(8%);
  }
}
@keyframes shoot {
  0%,
  92% {
    opacity: 0;
    transform: translate(0, 0) rotate(160deg);
  }
  93% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-280px, 110px) rotate(160deg);
  }
}
@keyframes flash {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 0.7;
  }
  18% {
    opacity: 0.1;
  }
  28% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(6px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}
@keyframes shimmer {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -50% 0;
  }
}
@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}
@keyframes bob {
  50% {
    transform: translateY(-2px);
  }
}
@keyframes fall {
  0% {
    opacity: 0;
    transform: translateY(-3px);
  }
  20%,
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes flake {
  0% {
    opacity: 0;
    transform: translate(0, -4px);
  }
  25%,
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(2px, 9px);
  }
}
@keyframes bolt {
  0%,
  80%,
  100% {
    opacity: 1;
  }
  84% {
    opacity: 0.2;
  }
  88% {
    opacity: 1;
  }
  92% {
    opacity: 0.3;
  }
}
@keyframes sway {
  to {
    transform: translateX(4px);
  }
}

/* ============ Small screens ============ */

@media (max-width: 760px) {
  .bar {
    flex-wrap: wrap;
  }
  .search {
    order: 3;
    flex-basis: 100%;
  }
  main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "now" "details" "hourly" "week";
  }
  .now {
    min-height: 0;
  }
  .days li {
    grid-template-columns: 3.4rem 2rem 2.2rem 2.2rem minmax(40px, 1fr) 2.2rem;
    gap: 8px;
  }
  .sun {
    right: 4vw;
  }
  .moon {
    right: 8vw;
  }
}

/* ============ Reduced motion: keep the look, drop the movement ============ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .cloud {
    animation: none !important;
    transform: translateX(var(--x)) scale(var(--s));
  }
  .sun::before,
  .sun::after,
  .stars i,
  .wi * {
    animation: none !important;
  }
  .shooting {
    display: none;
  }
}
