:root {
  color-scheme: light;
  --ink: #173d37;
  --muted: #526963;
  --rule: #d9dfd5;
  --paper: #fcfbf6;
  --serif: "PT Serif", Georgia, serif;
  font: 13px/1.45 Inter, Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { width: 432px; height: 576px; }
body { margin: 0; background: var(--paper); overflow-x: hidden; }
.app { min-height: 100%; padding: 0 14px; display: flex; flex-direction: column; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { background: none; border: 0; }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 3px solid #cc741b; outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon.small { width: 13px; height: 13px; }
.masthead, .pill, .hero-top, .hero-bottom, .range, .range > span, .glass, .update, .horo-top, .sign-pill, .dialog-head, .search, .source-link, h1, .horo-top h2, dt, footer { display: flex; align-items: center; }
.masthead { min-height: 55px; justify-content: space-between; gap: 12px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -1.2px; white-space: nowrap; }
h1 img { margin-right: 8px; }
h1 i { font-size: .85em; margin: 0 4px; font-weight: 400; }
.pill { min-width: 0; max-width: 49%; gap: 5px; border: 1px solid #ced8ce; border-radius: 30px; padding: 6px 9px; font-size: 11px; font-weight: 600; background: #f5f6ef; }
.pill:hover, .text-btn:hover, .icon-button:hover { background: #e9eee4; }
#city-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
main { display: grid; gap: 10px; }
.weather { overflow: hidden; border-radius: 15px; border: 1px solid #cfd8cc; background: #fffef9; }
.hero { isolation: isolate; position: relative; color: white; background: #345650; padding: 13px 16px 12px; display: grid; min-height: 179px; align-content: space-between; }
.hero-art, .hero::after { position: absolute; z-index: -1; inset: 0; }
.hero-art { background: url("assets/sky.webp") center center / cover no-repeat; }
.hero[data-sky="muted"] .hero-art { filter: saturate(.67) brightness(.9); }
.hero[data-sky="night"] .hero-art { filter: grayscale(.57) brightness(.62) hue-rotate(14deg); }
.hero::after { content: ""; background: linear-gradient(90deg,rgba(13,47,43,.85) 0%,rgba(18,53,48,.70) 30%,rgba(15,41,43,.18) 66%,rgba(9,27,24,.03) 100%); }
.hero-top, .hero-bottom, .horo-top, .dialog-head, footer { justify-content: space-between; gap: 8px; }
.date { font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: 1.35px; color: #f3f2d8; }
.units { display: flex; border-radius: 24px; padding: 2px; background: #233d37dc; border: 1px solid #ffffff60; }
.units button { border-radius: 18px; font-size: 11px; line-height: 19px; padding: 0 7px; color: #f6f8ef; font-weight: 600; }
.units button[aria-pressed="true"] { background: #f9f8ec; color: #28463b; }
.reading { display: grid; align-content: center; margin: 5px 0; }
#temperature { font: 400 63px/.99 var(--serif); letter-spacing: -4px; }
#weather-label { margin-top: 2px; font-weight: 600; font-size: 13px; }
.range { gap: 13px; font-size: 11px; font-weight: 600; }
.range > span { gap: 3px; }
.range .icon { width: 13px; height: 13px; }
.glass { background: #203e3be5; color: #fff; border: 1px solid #ffffff70; border-radius: 20px; padding: 4px 9px; gap: 5px; font-size: 10px; font-weight: 600; }
.glass:hover:enabled { background: #153d37; }
.glass .icon { width: 13px; height: 13px; }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); padding: 9px 0; }
.metrics > div { display: grid; gap: 1px; padding: 0 14px; }
.metrics > div + div { border-left: 1px solid var(--rule); }
dt { font-size: 10px; font-weight: 500; gap: 5px; color: #536960; white-space: nowrap; }
dt .icon { width: 13px; height: 13px; }
dd { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.panel { border-radius: 13px; border: 1px solid; padding: 13px 15px; }
h2 { font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -.7px; }
.panel p { font-size: 12px; line-height: 1.56; }
.outfit { display: flex; align-items: flex-start; gap: 11px; background: #f0f3e7; border-color: #dbe2d0; }
.outfit-copy { flex: 1; }
.outfit h2 { margin: 0 0 5px; }
.outfit p { color: #364f40; }
.panel-icon { display: grid; place-items: center; margin-top: 1px; height: 34px; width: 34px; flex: none; border-radius: 11px; background: #dde8cf; color: #355b45; }
.panel-icon .icon { width: 25px; height: 25px; }
.horoscope { background: #f3eff6; border-color: #e2dbe6; color: #4a3959; }
.horo-top { gap: 7px; }
.horo-top h2 { gap: 7px; }
.horo-top h2 .icon { width: 21px; height: 21px; color: #7d668d; }
.sign-pill { position: relative; border: 1px solid #d7ccdf; border-radius: 20px; background: #fcf9fd; padding: 0 7px 0 9px; height: 26px; gap: 4px; color: #5f466e; }
#sign-glyph { font-family: "Segoe UI Symbol",sans-serif; font-size: 14px; }
.sign-pill select { appearance: none; border: 0; outline-offset: -2px; border-radius: 20px; background: transparent; padding: 2px 17px 2px 24px; margin-left: -24px; margin-right: -18px; font-size: 11px; font-weight: 600; max-width: 105px; z-index: 1; }
.sign-pill .icon { pointer-events: none; }
#horoscope-text { margin: 9px 0 5px; }
.source-link { width: fit-content; gap: 3px; color: #634d75; font-size: 10px; text-underline-offset: 2px; font-weight: 600; }
.source-link .icon { width: 12px; height: 12px; }
footer { min-height: 36px; margin-top: auto; color: var(--muted); font-size: 10px; }
.update { gap: 3px; }
.icon-button, .close { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.icon-button .icon { width: 13px; height: 13px; }
.text-btn { padding: 5px; border-radius: 5px; font-size: 10px; }
.weather-source { color: var(--muted); text-underline-offset: 2px; }
dialog { margin: auto; padding: 18px; color: var(--ink); background: var(--paper); width: min(382px, calc(100vw - 32px)); border: 1px solid #ced6cd; border-radius: 16px; max-height: calc(100vh - 26px); overflow: auto; box-shadow: 0 12px 45px #172d2a35; }
dialog::backdrop { background: #122e2b66; }
.dialog-head { margin-bottom: 13px; }
.dialog-head h2 { font-size: 24px; }
.close { background: #ecf0e7; }
.close:hover { background: #dfe8d8; }
.search { border: 1px solid #aebdaf; border-radius: 9px; gap: 8px; padding: 8px 10px; background: white; }
.search:focus-within { border-color: #427260; outline: 2px solid #b7cdbb; }
.search input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; }
.list-label,.subtitle { color: var(--muted); font-size: 11px; }
.list-label { margin: 14px 0 4px; font-weight: 600; }
.place-list, .hour-list { max-height: 280px; overflow: auto; scrollbar-width: thin; }
.place { width: 100%; display: flex; align-items: center; text-align: left; padding: 8px 6px; gap: 9px; border-radius: 7px; }
.place:hover, .place:focus-visible { background: #eaf0e5; }
.place > span { display: grid; min-width: 0; }
.place b { font-size: 13px; }
.place small { font-size: 10px; color: var(--muted); }
.place > .icon:last-child:not(:first-child) { margin-left: auto; }
.subtitle { margin: -5px 0 10px; }
.hour-list { max-height: min(350px, 61vh); }
.hour-row { display: grid; grid-template-columns: 54px 20px 1fr auto; align-items: center; gap: 7px; padding: 9px 4px; border-top: 1px solid var(--rule); font-size: 11px; }
.hour-row b { font-size: 14px; }
.hour-row .icon { color: #446d61; }
.hour-date { padding: 8px 4px 4px; font-size: 10px; color: var(--muted); font-weight: 700; }
.info-copy { font-size: 12px; line-height: 1.6; }
.info-copy h3 { font-size: 13px; margin-top: 12px; }
.info-copy a { color: #345f53; }
