:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --panel: #fff;
  --text: #202e31;
  --muted: #697577;
  --line: #dedfda;
  --temp: #b85c3f;
  --dew: #227f88;
  --precip: #477ac2;
  --precip-fill: rgba(71, 122, 194, 0.16);
  --midnight: #8b9cba;
  --track: #e9eae4;
  --notice: #f0e7ce;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
main {
  max-width: 1000px;
  margin: auto;
  padding: 30px 36px;
}
header,
footer,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.wordmark {
  font-size: 12px;
  letter-spacing: 0.13em;
  font-weight: 750;
}
.wordmark span,
.source,
.muted,
footer {
  color: var(--muted);
}
.wordmark span {
  font-weight: 400;
}
.source {
  font-size: 12px;
  text-align: right;
}
.fetched-at {
  display: block;
  font-size: 10px;
}
.conditions-time {
  margin-left: 8px;
  font-weight: 400;
  letter-spacing: normal;
  white-space: nowrap;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 7px;
}
h1 {
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -0.04em;
  margin: 0;
}
h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.025em;
  margin: 0;
}
.status {
  margin: 20px 0;
  padding: 12px 16px;
  background: var(--notice);
  border-radius: 6px;
  font-size: 13px;
}
.status[hidden] {
  display: none;
}
section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.current {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  gap: 50px;
  padding: 38px 0;
}
.current-reading {
  display: grid;
  grid-template-columns: max-content minmax(0, max-content);
  column-gap: 16px;
  margin-top: 13px;
}
.temperature {
  display: flex;
  align-items: flex-start;
  line-height: 1.15;
  margin: 0;
  font-size: 104px;
  font-weight: 350;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}
.degree {
  font-size: 29px;
  letter-spacing: -0.04em;
  padding-top: 17px;
  color: var(--muted);
}
.conditions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.hero-icon {
  display: flex;
  color: var(--temp);
}
.hero-icon svg {
  width: 66px;
  height: 66px;
}
.summary {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  margin: 0;
  overflow-wrap: anywhere;
}
.feels-like {
  grid-column: 1;
}
.current .muted {
  margin: 0;
}
.details {
  display: flex;
}
dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 23px;
  align-content: space-between;
  flex: 1;
  margin: 0;
}
dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}
dd {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 450;
  letter-spacing: -0.035em;
  margin: 0;
}
dd small {
  font-size: 14px;
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 11px;
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 18px;
  border-top: 2px solid var(--temp);
  margin: 0 6px 3px 0;
}
.legend .dew-key:before {
  border-top: 2px dashed var(--dew);
}
.readout {
  font-variant-numeric: tabular-nums;
  min-height: 21px;
  font-size: 12px;
  margin: 22px 0 8px;
  color: var(--muted);
}
#chart {
  width: 100%;
  min-height: 265px;
  overflow: hidden;
}
.uplot {
  font-family: inherit;
}
.u-over {
  touch-action: pan-y;
}
.chart-point-label {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: var(--bg);
  color: var(--temp);
  font: 600 12px/18px system-ui;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chart-point-label.dewPoint {
  color: var(--dew);
}
.daily {
  margin-top: 21px;
}
.day-row {
  display: grid;
  grid-template-columns: 66px 30px 42px 1fr 42px;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  font-variant-numeric: tabular-nums;
}
.day-row + .day-row {
  border-top: 1px solid var(--line);
}
.day-name {
  font-size: 14px;
}
.day-row svg {
  width: 23px;
  height: 23px;
  color: var(--muted);
}
.low {
  color: var(--muted);
  text-align: right;
}
.high {
  text-align: right;
}
.range-track {
  height: 7px;
  background: var(--track);
  border-radius: 8px;
  position: relative;
}
.range-bar {
  position: absolute;
  top: 0;
  height: 7px;
  min-width: 3px;
  border-radius: 8px;
  background: linear-gradient(90deg, #5b9ca4, #c19c6b, #bc694a);
}
footer {
  padding: 22px 0;
  font-size: 11px;
}
.scale-caption {
  font-size: 11px;
}
[hidden] {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #182225;
    --panel: #202c2e;
    --text: #e5ece7;
    --muted: #a0afaf;
    --line: #354245;
    --temp: #efa07b;
    --dew: #76c1c8;
    --precip: #86b5f4;
    --precip-fill: rgba(134, 181, 244, 0.18);
    --midnight: #8198b8;
    --track: #354346;
    --notice: #3c3929;
  }
}
@media (max-width: 600px) {
  main {
    padding: 20px;
  }
  .wordmark span {
    display: none;
  }
  .current {
    gap: 22px;
    grid-template-columns: 1fr;
    padding: 28px 0;
  }
  .temperature {
    font-size: 94px;
  }
  .details {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
  dl {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  dd {
    font-size: 20px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  section {
    padding: 26px 0;
  }
  .day-row {
    grid-template-columns: 49px 23px 30px 1fr 30px;
    gap: 10px;
  }
  .legend {
    gap: 18px;
  }
  footer {
    align-items: flex-start;
    font-size: 10px;
  }
  h2 {
    font-size: 19px;
  }
  .readout {
    font-size: 11px;
    min-height: 34px;
  }
}

#alerts {
  margin-top: 24px;
  overflow-wrap: anywhere;
}
.weather-alert,
.alert-age {
  margin: 10px 0;
  padding: 14px 18px;
  background: var(--notice);
  border-radius: 6px;
  border-left: 4px solid var(--muted);
}
.weather-alert.urgent {
  border-left-color: var(--temp);
}
.weather-alert summary {
  cursor: pointer;
}
.alert-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.alert-description {
  white-space: pre-wrap;
}
.weather-alert a {
  text-decoration: underline;
  font-size: 13px;
}
.alert-age {
  font-size: 13px;
}

.day-accordion + .day-accordion {
  border-top: 1px solid var(--line);
}
.day-row {
  grid-template-columns: 66px 30px 42px 1fr 42px;
  cursor: pointer;
  list-style: none;
  border-radius: 4px;
}
.day-row::-webkit-details-marker {
  display: none;
}
.day-row:hover {
  background: var(--panel);
}
.day-row:focus-visible,
.day-hours:focus-visible {
  outline: 2px solid var(--dew);
  outline-offset: 3px;
}
.day-content {
  padding: 0 0 16px;
}
.day-content > p {
  margin: 8px 0 16px;
}
.day-hours {
  overflow-x: auto;
}
@media (max-width: 600px) {
  .day-row {
    grid-template-columns: 49px 23px 30px 1fr 30px;
    gap: 8px;
  }
}
:root { --wind: #8064ad; }
@media (prefers-color-scheme: dark) {
  :root { --wind: #c2a5ed; }
}
.daily-legend { flex-wrap: wrap; gap: 10px 18px; }
.legend .precip-key:before { border-color: var(--precip); }
.chart-point-label.precipProbability { color: var(--precip); }
.legend .wind-key:before { border-color: var(--wind); border-top-style: dashed; }
.legend .gust-key:before { border-color: var(--wind); border-top-style: dotted; }
.daily-chart-canvas { padding-top: 4px; }
.wind-chart-heading { margin: 8px 0 4px 58px; }
.hourly-icons { position: relative; height: 52px; }
.hourly-icons > span { position: absolute; transform: translateX(-50%); text-align: center; }
.hourly-icons svg { display: block; width: 22px; height: 22px; margin: auto; color: var(--muted); }
.hourly-icons small { display: block; font-size: 10px; white-space: nowrap; color: var(--muted); }
.day-content .readout { margin: 12px 0; min-height: 36px; }

@media (max-width: 600px) {
  .hourly-icons { display: none; }
}

.chart-point-label.windSpeed,
.chart-point-label.windGust { color: var(--wind); }

.location-line {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}
#location-update {
  margin-left: 6px;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
#location-update:disabled {
  opacity: .6;
  cursor: wait;
}
.brand {
  min-width: 0;
}
