:root {
  color-scheme: dark;
  --ink: #edf2fa;
  --muted: #8997aa;
  --line: rgba(187, 205, 233, .12);
  --panel: rgba(24, 37, 58, .78);
  --mint: #91e3ca;
  --bg: #101a2c;
  --body: "DM Sans", sans-serif;
  --display: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--body);
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(130deg, rgba(35,69,112,.16), transparent 38%), linear-gradient(0deg, rgba(9,17,29,.56), transparent 65%);
  content: "";
  pointer-events: none;
}
.ambient { position: fixed; z-index: -1; width: 420px; height: 420px; border-radius: 50%; filter: blur(110px); opacity: .1; pointer-events: none; }
.ambient-one { top: -250px; left: 16%; background: #388dba; }
.ambient-two { right: -120px; bottom: -290px; background: #5e4b9b; }
.app-shell { width: min(1140px, calc(100% - 72px)); margin: 0 auto; padding: 28px 0 20px; }
.topbar { display: flex; height: 56px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: #f1f5fb; font: 800 21px var(--display); letter-spacing: -1.2px; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(145,227,202,.26); border-radius: 12px; background: rgba(145,227,202,.08); }
.brand-mark svg { width: 22px; fill: none; stroke: var(--mint); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.brand-period { color: var(--mint); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.search-control { position: relative; z-index: 5; width: 252px; }
.search-form { display: flex; width: 100%; height: 42px; align-items: center; gap: 9px; padding: 0 10px 0 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(26,41,62,.76); transition: border-color .2s, background .2s; }
.search-form:focus-within { border-color: rgba(145,227,202,.48); background: rgba(31,47,70,.95); }
.search-form > svg { width: 17px; fill: none; stroke: #98a8bd; stroke-linecap: round; stroke-width: 1.7; }
.search-form input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 13px var(--body); }
.search-form input::placeholder { color: #7a899e; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form kbd { padding: 2px 5px; border: 1px solid rgba(178,196,220,.18); border-radius: 4px; color: #78879b; font: 500 10px var(--body); }
.search-submit, .icon-button { display: grid; place-items: center; border: 0; background: transparent; color: #a7b4c7; cursor: pointer; }
.search-submit { padding: 0; }
.search-submit svg { width: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.search-help { position: absolute; top: calc(100% + 9px); left: 0; width: min(310px, calc(100vw - 30px)); max-height: 330px; overflow-y: auto; padding: 6px; border: 1px solid rgba(187,205,233,.16); border-radius: 14px; background: #1a2940; box-shadow: 0 18px 45px rgba(3,9,17,.4); }
.search-help[hidden] { display: none; }
.search-option { display: grid; width: 100%; gap: 2px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.search-option:hover, .search-option[aria-selected="true"] { background: rgba(145,227,202,.1); }
.search-option:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
.search-option-name { font: 600 12px var(--display); }
.search-option-detail { color: #91a0b2; font: 400 10px var(--body); }
.search-help-status { margin: 0; padding: 9px 10px; color: #96a5b8; font-size: 11px; }
.unit-switch { display: flex; height: 38px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(26,41,62,.72); }
.unit-button { width: 31px; border: 0; border-radius: 7px; background: transparent; color: #8998ac; font: 600 12px var(--body); cursor: pointer; transition: background .2s, color .2s; }
.unit-button.active { background: #31425b; color: #f6f8fc; box-shadow: 0 2px 5px rgba(0,0,0,.17); }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: rgba(26,41,62,.72); transition: color .2s, border .2s; }
.icon-button:hover, .search-submit:hover { color: var(--mint); }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.icon-button.is-loading svg { animation: rotate .8s linear infinite; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; margin: 50px 0 22px; }
.eyebrow { margin: 0; color: #8090a6; font: 700 9px/1.2 var(--body); letter-spacing: 1.65px; }
.welcome-row h1 { margin: 10px 0 0; color: #f2f5fb; font: 700 clamp(27px, 3.3vw, 39px)/1.2 var(--display); letter-spacing: -1.7px; }
.mobile-break { display: none; }
.local-clock { display: grid; grid-template-columns: 8px auto; align-items: center; column-gap: 8px; color: #8392a5; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.local-clock strong { grid-column: 2; margin-top: 4px; color: #c6d1e0; font: 600 13px var(--display); letter-spacing: .2px; }
.live-dot, .today-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgba(145,227,202,.55); }
.status { margin-bottom: 14px; padding: 11px 14px; border: 1px solid rgba(255,147,159,.24); border-radius: 10px; background: rgba(112,48,68,.18); color: #ffb1ba; font-size: 13px; }
.weather-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(320px, 1fr); gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 15px 42px rgba(3,9,17,.12); }
.hero-card { position: relative; min-height: 350px; overflow: hidden; padding: 25px 27px 18px; background: linear-gradient(138deg, rgba(33,58,83,.95), rgba(25,41,65,.9) 58%, rgba(40,50,80,.9)); }
.hero-card::before { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 26%, rgba(133,191,233,.12), transparent 42%), linear-gradient(100deg, rgba(145,227,202,.035), transparent 48%); content: ""; pointer-events: none; }
.hero-sky { position: absolute; top: 29px; right: 16px; width: 300px; height: 210px; opacity: .68; }
.sun { position: absolute; border-radius: 50%; background: linear-gradient(135deg, #e8d7ab, #92c9d0); box-shadow: 0 0 24px rgba(204,216,188,.27); }
.sun-large { top: 12px; right: 48px; width: 78px; height: 78px; }
.cloud { position: absolute; width: 112px; height: 28px; border-radius: 30px; background: linear-gradient(90deg, #bed0d6, #879fb1); filter: drop-shadow(0 9px 10px rgba(9,16,27,.22)); }
.cloud::before, .cloud::after { position: absolute; border-radius: 50%; background: inherit; content: ""; }
.cloud::before { top: -18px; left: 20px; width: 41px; height: 41px; }
.cloud::after { top: -11px; right: 18px; width: 30px; height: 30px; }
.cloud-one { top: 98px; right: 28px; transform: scale(1.05); }
.cloud-two { top: 137px; right: 116px; opacity: .56; transform: scale(.68); }
.hero-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.today-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(145,227,202,.19); border-radius: 20px; background: rgba(145,227,202,.08); color: #b4eadb; font-size: 8px; font-weight: 700; letter-spacing: 1.15px; }
.today-dot { width: 5px; height: 5px; }
.hero-date { color: #91a0b2; font-size: 9px; font-weight: 600; letter-spacing: 1.1px; }
.hero-content { position: relative; z-index: 1; margin-top: 28px; }
.hero-place { display: flex; align-items: center; gap: 9px; }
.pin-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--mint); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.hero-place h2 { margin: 0; color: #f1f5fb; font: 700 17px var(--display); letter-spacing: -.35px; }
.hero-place p { margin: 1px 0 0; color: #8f9eb2; font-size: 10px; }
.temperature-wrap { display: flex; align-items: flex-start; margin: 13px 0 -4px; }
.temperature { color: #f3f6fb; font: 600 79px/.95 var(--display); letter-spacing: -7px; }
.temperature-unit { padding: 8px 0 0 7px; color: #b5c4d7; font: 500 25px var(--display); }
.condition-line { display: flex; min-height: 30px; align-items: center; gap: 7px; color: #c4cedb; font-size: 12px; text-transform: capitalize; }
.current-icon { width: 35px; height: 35px; margin-left: -7px; object-fit: contain; }
.current-icon[hidden], .forecast-icon[hidden] { display: none; }
.hero-bottom { position: absolute; z-index: 1; right: 27px; bottom: 17px; left: 27px; display: flex; align-items: center; gap: 11px; color: #99a9bb; font-size: 9px; font-weight: 600; letter-spacing: .7px; }
.soft-divider { width: 21px; height: 1px; background: var(--mint); opacity: .55; }
.weather-source { margin-left: auto; color: #8293a7; font-size: 8px; letter-spacing: 1px; }
.weather-source span { padding: 0 3px; color: var(--mint); }
.details-card { padding: 24px 25px 17px; background: linear-gradient(160deg, rgba(27,41,62,.88), rgba(22,35,54,.86)); }
.section-heading, .forecast-heading { display: flex; align-items: center; justify-content: space-between; }
.section-heading h2, .forecast-heading h2 { margin: 6px 0 0; font: 700 18px var(--display); letter-spacing: -.6px; }
.heading-orbit { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid rgba(183,162,255,.2); border-radius: 50%; background: rgba(183,162,255,.08); color: #c3b3ff; font-size: 16px; }
.details-list { margin-top: 17px; }
.detail-row { display: flex; min-height: 58px; align-items: center; gap: 11px; border-bottom: 1px solid rgba(187,205,233,.08); }
.detail-row:last-child { border-bottom: 0; }
.detail-symbol { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: rgba(255,255,255,.035); }
.detail-symbol svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.55; }
.humidity-symbol { color: #84c9f3; }
.wind-symbol { color: #9ce1ce; }
.sunrise-symbol { color: #f1ca91; }
.sunset-symbol { color: #dd9fb3; }
.detail-label { display: grid; gap: 2px; color: #d9e0e9; font-size: 11px; font-weight: 600; }
.detail-label small { color: #77879c; font-size: 9px; font-weight: 400; }
.detail-value { margin-left: auto; color: #e5ebf4; font: 600 14px var(--display); white-space: nowrap; }
.detail-value small { margin-left: 3px; color: #8392a7; font: 500 9px var(--body); }
.time-value { font-size: 12px; }
.detail-footnote { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: #91a0b2; font-size: 9px; }
.detail-footnote span { color: #d3b783; }
.forecast-section { margin-top: 29px; }
.forecast-heading { align-items: end; margin-bottom: 14px; }
.forecast-heading h2 { font-size: 19px; }
.forecast-location { color: #78889c; font-size: 10px; }
.forecast-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.forecast-day { min-width: 0; padding: 14px 12px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(28,43,66,.72); text-align: center; transition: transform .18s, border-color .18s, background .18s; }
.forecast-day:hover { transform: translateY(-3px); border-color: rgba(145,227,202,.25); background: rgba(35,52,77,.88); }
.forecast-weekday { color: #e3e9f1; font: 600 11px var(--display); }
.forecast-date { margin-top: 2px; color: #78889c; font-size: 9px; }
.forecast-icon { display: block; width: 51px; height: 51px; margin: 4px auto 1px; object-fit: contain; }
.forecast-description { height: 14px; overflow: hidden; color: #95a4b7; font-size: 9px; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.forecast-temps { display: flex; justify-content: center; gap: 9px; margin-top: 8px; font: 600 12px var(--display); }
.forecast-high { color: #e2e9f2; }
.forecast-low { color: #8796a9; }
.forecast-loading { grid-column: 1 / -1; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: rgba(28,43,66,.72); color: #96a5b7; font-size: 12px; text-align: center; }
.loading-dots { display: inline-block; width: 16px; overflow: hidden; animation: dots 1s steps(4, end) infinite; vertical-align: bottom; }
.footer { display: flex; justify-content: space-between; margin-top: 27px; padding-top: 14px; border-top: 1px solid rgba(187,205,233,.08); color: #6f7e91; font-size: 9px; }
.footer a { color: #95a7ba; text-decoration: none; }
.footer a:hover { color: var(--mint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes dots { 0%, 20% { width: 0; } 40% { width: 5px; } 60% { width: 10px; } 80%, 100% { width: 16px; } }

@media (max-width: 820px) {
  .app-shell { width: min(680px, calc(100% - 40px)); padding-top: 21px; }
  .weather-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 330px; }
  .details-card { padding-bottom: 14px; }
  .detail-row { min-height: 55px; }
  .details-list { margin-top: 9px; }
  .forecast-list { gap: 8px; }
  .forecast-day { padding: 12px 6px; }
  .welcome-row { margin-top: 39px; }
}
@media (max-width: 560px) {
  .app-shell { width: calc(100% - 30px); padding-top: 15px; }
  .topbar { flex-wrap: wrap; }
  .brand { font-size: 19px; }
  .brand-mark { width: 33px; height: 33px; }
  .topbar-right { width: 100%; gap: 8px; }
  .search-control { width: auto; min-width: 0; flex: 1; }
  .search-form { width: 100%; height: 40px; }
  .unit-switch { height: 36px; }
  .unit-button { width: 28px; }
  .icon-button { width: 36px; height: 36px; }
  .welcome-row { align-items: end; margin: 31px 0 18px; }
  .welcome-row h1 { font-size: 28px; letter-spacing: -1.1px; }
  .mobile-break { display: block; }
  .local-clock { margin-bottom: 3px; }
  .hero-card { min-height: 314px; padding: 19px 18px 16px; }
  .hero-sky { top: 25px; right: -55px; opacity: .5; transform: scale(.8); transform-origin: top right; }
  .hero-topline { align-items: flex-start; gap: 12px; }
  .hero-date { font-size: 8px; text-align: right; }
  .hero-content { margin-top: 29px; }
  .temperature { font-size: 73px; }
  .hero-bottom { right: 18px; bottom: 15px; left: 18px; gap: 7px; font-size: 8px; }
  .weather-source { font-size: 7px; }
  .details-card { padding: 19px 17px 13px; }
  .forecast-section { margin-top: 25px; }
  .forecast-heading h2 { font-size: 17px; }
  .forecast-location { font-size: 9px; text-align: right; }
  .forecast-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .forecast-day { padding: 10px 3px 9px; border-radius: 11px; }
  .forecast-weekday { font-size: 10px; }
  .forecast-date { font-size: 8px; }
  .forecast-icon { width: 40px; height: 40px; margin: 5px auto 2px; }
  .forecast-description { font-size: 8px; }
  .forecast-temps { gap: 5px; font-size: 10px; }
  .footer { gap: 14px; font-size: 8px; }
  .status { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
