:root {
  color-scheme: dark;
}

body.large-text {
  --page-top: #102b25;
  --page-bottom: #31544d;
  --glass: rgba(23, 48, 56, 0.68);
  --glass-strong: rgba(17, 39, 47, 0.82);
  --line: rgba(255, 255, 255, 0.14);
  --muted: rgba(239, 246, 247, 0.72);
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 2%, rgba(143, 198, 187, 0.26), transparent 28rem),
    linear-gradient(180deg, var(--page-top), var(--page-bottom));
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
  transition: background-color 280ms ease;
}

body.theme-seattle {
  --page-top: #102b3c;
  --page-bottom: #31576d;
  --glass: rgba(18, 48, 67, 0.69);
  --glass-strong: rgba(15, 40, 57, 0.84);
}

body.theme-malmo {
  --page-top: #17353d;
  --page-bottom: #487277;
  --glass: rgba(23, 58, 65, 0.69);
  --glass-strong: rgba(17, 47, 55, 0.84);
}

body.theme-dc {
  --page-top: #3d2924;
  --page-bottom: #7a5a49;
  --glass: rgba(61, 40, 34, 0.7);
  --glass-strong: rgba(52, 33, 29, 0.84);
}

body.theme-nyc {
  --page-top: #171c35;
  --page-bottom: #424d6d;
  --glass: rgba(27, 32, 58, 0.7);
  --glass-strong: rgba(21, 25, 49, 0.84);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 410px;
  overflow: hidden;
  background-position: center;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 20, 25, 0.12) 0%, rgba(8, 25, 34, 0.42) 58%, var(--page-top) 100%);
}

.bar,
.tabs,
.copy,
.content {
  width: min(980px, calc(100% - 40px));
}

.bar {
  padding: 24px 0 18px;
}

.brand {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tabs {
  gap: 9px;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar,
.dayparts::-webkit-scrollbar {
  display: none;
}

.tabs button {
  min-height: 42px;
  padding: 9px 17px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(14, 32, 43, 0.28);
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.tabs button.active {
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
}

.copy {
  padding: 44px 0 122px;
  text-align: center;
}

.copy p {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0.015em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.content {
  margin-top: -96px;
  padding-bottom: 52px;
}

.card,
.day-plan,
.forecast .days {
  border: 1px solid var(--line);
  background: var(--glass);
  color: #fff;
  box-shadow: 0 24px 70px rgba(3, 15, 24, 0.24);
  backdrop-filter: blur(24px) saturate(118%);
  -webkit-backdrop-filter: blur(24px) saturate(118%);
}

.card {
  grid-template-columns: 1.55fr repeat(4, minmax(0, 1fr));
  border-radius: 28px;
}

.now,
.feel,
.stats div {
  min-width: 0;
  padding: 25px 16px;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

.now {
  padding-left: 26px;
}

.kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.temp {
  margin-top: 7px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 72px;
  font-weight: 200;
  letter-spacing: -0.055em;
}

.temp sup {
  margin-left: 3px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
}

.condition {
  margin: 12px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
}

.high-low {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.feel,
.stats div {
  justify-items: start;
  text-align: left;
}

.feel span:not(.metric-icon),
.stats span:not(.metric-icon) {
  color: var(--muted);
  font-size: 13px;
}

.feel b,
.stats b {
  color: #fff;
  font-size: 18px;
  font-weight: 680;
}

.metric-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.weather-alert {
  margin-top: 18px;
  border-color: rgba(255, 214, 128, 0.38);
  border-radius: 18px;
  background: rgba(115, 75, 19, 0.66);
  color: #fff8e6;
  box-shadow: 0 18px 46px rgba(3, 15, 24, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.weather-alert.danger {
  border-color: rgba(255, 154, 137, 0.4);
  background: rgba(119, 42, 35, 0.72);
  color: #fff;
}

.day-plan {
  margin: 18px 0 22px;
  padding: 22px 24px 18px;
  border-radius: 24px;
}

.plan-heading {
  align-items: center;
  margin-bottom: 14px;
}

.plan-heading h2,
.forecast h2 {
  margin-top: 5px;
  color: #fff;
  font-family: inherit;
  font-size: 25px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

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

.weather-summary {
  border-color: var(--line);
  color: rgba(255, 255, 255, 0.9);
}

.dayparts {
  margin: 0 -8px;
  padding: 1px 8px 7px;
  scrollbar-width: none;
}

.daypart,
.large-text .daypart {
  flex-basis: 88px;
  min-height: 126px;
  border-color: var(--line);
  color: #fff;
}

.daypart .hour-label,
.daypart .hour-rain {
  color: var(--muted);
}

.daypart .part-icon {
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.2));
}

.forecast {
  margin-top: 0;
}

.forecast > .kicker,
.forecast > h2 {
  display: none;
}

.forecast .days {
  padding: 8px 24px;
  border-radius: 24px;
}

.forecast .day {
  min-height: 68px;
  border-color: var(--line);
  color: #fff;
}

.forecast .day .date,
.forecast .day .low,
.forecast .day .rain {
  color: var(--muted);
}

.source {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

@media (max-width: 720px) {
  body.large-text {
    background:
      radial-gradient(circle at 90% 3%, rgba(165, 213, 205, 0.2), transparent 22rem),
      linear-gradient(180deg, var(--page-top), var(--page-bottom));
  }

  .hero {
    min-height: 355px;
  }

  .bar,
  .tabs,
  .copy {
    width: calc(100% - 30px);
  }

  .bar {
    padding: 17px 0 12px;
  }

  .brand {
    font-size: 17px;
  }

  .tabs {
    gap: 7px;
  }

  .tabs button {
    min-height: 40px;
    padding: 8px 15px;
    font-size: 14px;
  }

  .copy {
    padding: 30px 0 112px;
  }

  .copy p {
    font-size: 20px;
  }

  .content {
    width: 100%;
    margin-top: -84px;
    padding: 0 13px 42px;
    background: transparent;
  }

  .card {
    grid-template-columns: repeat(4, 1fr);
    border-radius: 25px;
  }

  .now {
    grid-column: 1 / -1;
    padding: 10px 10px 25px;
    text-align: center;
  }

  .temp {
    font-size: 88px;
  }

  .condition {
    font-size: 19px;
  }

  .feel,
  .stats div {
    min-height: 104px;
    justify-items: center;
    padding: 13px 5px 15px;
    text-align: center;
  }

  .feel span:not(.metric-icon),
  .stats span:not(.metric-icon) {
    font-size: 12px;
  }

  .feel b,
  .stats b {
    font-size: 16px;
  }

  .metric-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    border-radius: 9px;
    font-size: 15px;
  }

  .day-plan {
    padding: 19px 17px 14px;
    border-radius: 22px;
  }

  .plan-heading {
    align-items: flex-start;
  }

  .plan-heading h2 {
    font-size: 23px;
  }

  .sun-times {
    gap: 5px;
    font-size: 12px;
  }

  .weather-summary {
    font-size: 16px;
  }

  .forecast .days {
    padding: 7px 16px;
    border-radius: 22px;
  }

  .forecast .day {
    grid-template-columns: 52px 54px 36px 36px 36px minmax(70px, 1fr);
    min-height: 67px;
    font-size: 14px;
  }

  .source {
    padding: 0 20px;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
