@font-face { font-family: "Weather Roboto"; src: url("../fonts/Roboto.ttf") format("truetype"); font-style: normal; font-weight: 100 900; font-display: swap; }
:root { color-scheme: light dark; --bg: #fff; --ink: #383a3c; --muted: #6c6e71; --line: #e8e8e8; font-family: "Weather Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); font-synthesis: none; }
@media (prefers-color-scheme: dark) { :root { --bg: #202123; --ink: #ececee; --muted: #a7a8ac; --line: #393a3d; } }
* { box-sizing: border-box; }
body { margin: 0; min-width: 260px; }
button { font: inherit; color: inherit; }
.weather { --current-gap: 10.72px; --forecast-time-gap: 22px; --forecast-value-gap: 6px; --detail-value-gap: 20px; width: min(100%, 640px); margin-inline: auto; min-height: 100svh; display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) max(24px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
.topline { display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.location-date { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.topline time { font-weight: 400; }
.topline time::first-letter { text-transform: uppercase; }
#refresh { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; border: 0; padding: 11px; background: transparent; cursor: pointer; border-radius: 50%; }
#refresh:hover { background: var(--line); }
#refresh:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#refresh[aria-busy="true"] { opacity: .4; cursor: wait; }
.current { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; row-gap: var(--current-gap); text-align: center; padding: 25px 0 23px; }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: inherit; font-weight: 700; letter-spacing: normal; line-height: inherit; }
.condition { font-size: 14.4px; font-weight: 350; letter-spacing: 2.28px; min-height: 2.5em; max-width: 100%; line-height: 1.5; color: var(--muted); }
.hero-icon { width: clamp(125px, 20svh, 181.25px); height: clamp(125px, 20svh, 181.25px); }
.weather-icon { display: block; width: 100%; height: 100%; overflow: visible; }
.temperature { font-size: clamp(69px, 12.75svh, 111px); font-weight: 200; letter-spacing: -.065em; line-height: 1.15; font-variant-numeric: tabular-nums; position: relative; padding-right: .06em; }
.temperature span { position: absolute; font-size: .45em; top: .13em; margin-left: .08em; font-weight: 250; }
.extremes { display: flex; align-items: center; justify-content: center; }
.extremes p { display: flex; align-items: baseline; gap: 9px; padding: 0 19px; font-size: 13px; }
.extremes p + p { border-left: 1px solid var(--line); }
.extremes span { color: var(--muted); font-size: 11px; }
.extremes strong { font-weight: 400; font-variant-numeric: tabular-nums; }
.forecast { border-top: 1px solid var(--line); padding: 22px 0 24px; }
h2 { color: var(--muted); text-align: center; font-size: 9px; font-weight: 500; letter-spacing: .18em; }
.forecast-points { display: flex; justify-content: space-around; margin-top: 20px; min-height: 91px; }
.forecast-point { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; row-gap: var(--forecast-value-gap); text-align: center; }
.forecast-hour { font-size: 13.2px; font-weight: 400; color: var(--muted); }
.forecast-icon { width: 46.2px; height: 46.2px; margin: calc(var(--forecast-time-gap) - var(--forecast-value-gap)) 0 0; }
.forecast-temperature { font-size: 18.7px; font-weight: 350; font-variant-numeric: tabular-nums; min-height: 23.1px; }
.forecast-empty { align-self: center; font-size: 12px; color: var(--muted); }
.details { border-top: 1px solid var(--line); padding-top: 22px; }
.details dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.details dl > div { display: flex; flex-direction: column; row-gap: var(--detail-value-gap); text-align: center; padding-inline: 4px; }
.details dl > div + div { border-left: 1px solid var(--line); }
dt { font-size: 10px; color: var(--muted); }
dd { font-size: 18px; font-weight: 350; white-space: nowrap; font-variant-numeric: tabular-nums; }
dd small { font-size: 10px; font-weight: 400; color: var(--muted); }
footer { text-align: center; padding: 23px 0 0; min-height: 49px; }
#status { color: var(--muted); font-size: 10px; line-height: 1.6; min-height: 16px; }
#status[data-stale="true"] { color: var(--ink); }
@media (min-width: 768px) { .weather { --current-gap: 14.74px; padding-bottom: 22px; } .current { padding-top: 35px; padding-bottom: 35px; } .forecast { padding-top: 26px; padding-bottom: 30px; } .details { padding-top: 28px; } dt { font-size: 11px; } dd { font-size: 20px; } footer { padding-top: 30px; } }
@media (min-height: 1000px) { .weather { min-height: min(100svh, 1080px); } }
@media (min-height: 701px) and (max-height: 900px) and (max-width: 767px) { .current { padding-block: 12px; } .forecast { padding-block: 18px; } footer { min-height: 39px; } }
@media (max-height: 800px) and (min-width: 768px) { .weather { --current-gap: 5.36px; } .current { padding: 12px 0 18px; } .hero-icon { width: 125px; height: 125px; } .temperature { font-size: 82.5px; } .forecast { padding: 18px 0; } .forecast-points { margin-top: 15px; } .details { padding-top: 20px; } footer { padding-top: 20px; } }
@media (max-height: 700px) and (max-width: 767px) { .weather { --current-gap: 1.34px; } .current { padding: 12px 0 16px; } .hero-icon { width: 110px; height: 110px; } .temperature { font-size: 66px; } .forecast { padding: 15px 0; } .forecast-points { margin-top: 13px; } .details { padding-top: 16px; } footer { padding-top: 15px; min-height: 38px; } }
@media (max-width: 340px) { .weather { padding-inline: 18px; } .details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; } .details dl > div:nth-child(3) { border-left: 0; } }
@media (max-width: 340px) and (max-height: 600px) { .weather { --current-gap: 0px; --forecast-time-gap: 20px; --forecast-value-gap: 4px; padding-bottom: max(8px, env(safe-area-inset-bottom)); } .current { padding: 6px 0; } .condition { min-height: 1.5em; } .forecast { padding-block: 10px; } .forecast-points { margin-top: 8px; } .details { padding-top: 12px; } .details dl { row-gap: 10px; } footer { padding-top: 10px; min-height: 26px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.external-precipitation { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.external-precipitation h2 { font-size: 10px; letter-spacing: .08em; }
.external-precipitation dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; gap: 12px; }
.external-precipitation dt { line-height: 1.5; }
.external-precipitation dd { margin-top: 8px; }
.external-note { font-size: 10px; line-height: 1.6; color: var(--muted); margin-top: 9px; }
.external-note + .external-note { margin-top: 2px; }
.external-note a { color: inherit; text-underline-offset: 2px; }
