:root {
  color-scheme: dark;
  --bg: #0b0f0e;
  --surface: rgba(22, 30, 27, .78);
  --surface-strong: #17211d;
  --line: rgba(195, 244, 139, .18);
  --text: #f2f7ee;
  --muted: #99a79c;
  --accent: #b7f36b;
  --accent-dark: #121a0d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 400 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.page-glow { position: fixed; z-index: -1; width: 360px; height: 360px; border-radius: 50%; filter: blur(100px); opacity: .12; pointer-events: none; }
.page-glow-one { top: -180px; right: -100px; background: var(--accent); }
.page-glow-two { bottom: -220px; left: -140px; background: #4b72ff; }
.topbar, .shell, .footer { width: min(100% - 40px, 1040px); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 82px; border-bottom: 1px solid var(--line); }
.back-link { color: var(--muted); font-size: .9rem; transition: color .2s ease; }
.back-link:hover, .footer a:hover { color: var(--accent); }
.brand { font-weight: 800; letter-spacing: -.04em; }
.brand i { color: var(--accent); font-style: normal; }
.shell { padding: 80px 0 110px; }
.eyebrow { margin: 0; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -.045em; }
h1 { max-width: 660px; margin: 18px 0; font-size: clamp(3rem, 8vw, 6.2rem); }
h1 em { color: var(--accent); font-style: normal; }
.intro-text { max-width: 520px; color: var(--muted); font-size: 1.05rem; }
.search-panel { margin-top: 52px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); backdrop-filter: blur(14px); }
.search-form { display: flex; gap: 10px; }
.search-form input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; outline: 0; background: var(--surface-strong); color: var(--text); }
.search-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(183, 243, 107, .12); }
.search-form button { border: 0; border-radius: 11px; padding: 0 20px; background: var(--accent); color: var(--accent-dark); cursor: pointer; font-weight: 800; transition: transform .2s ease, filter .2s ease; }
.search-form button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.search-form button span { margin-left: 5px; }
.status { min-height: 1.4em; margin: 12px 3px 0; color: var(--muted); font-size: .82rem; }
.status.error { color: #ff9d9d; }
.weather-result { margin-top: 64px; }
.location-row, .forecast-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.location-row h2 { margin: 9px 0 0; font-size: clamp(2rem, 5vw, 3.8rem); }
.muted { color: var(--muted); }
.current-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.card { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 18px 60px rgba(0, 0, 0, .18); }
.current-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 248px; padding: 28px; background: linear-gradient(145deg, rgba(183, 243, 107, .13), var(--surface) 55%); }
.current-heading { display: flex; align-items: center; gap: 18px; }
.weather-icon { font-size: 3.7rem; line-height: 1; }
.current-heading p { margin-bottom: 5px; }
.current-temp { color: var(--accent); font-size: clamp(3.4rem, 8vw, 5.6rem); font-weight: 800; letter-spacing: -.08em; line-height: .9; }
.current-temp sup { margin-left: 5px; color: var(--text); font-size: 1.5rem; letter-spacing: 0; vertical-align: top; }
.current-card > p { margin: 0; font-size: .88rem; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metric { display: flex; flex-direction: column; justify-content: space-between; min-height: 116px; padding: 20px; }
.metric:last-child { grid-column: 1 / -1; }
.metric span { color: var(--muted); font-size: .78rem; }
.metric strong { color: var(--accent); font-size: 1.55rem; }
.forecast-heading { margin-top: 64px; }
.forecast-heading h3 { margin: 0; font-size: 1.5rem; }
.forecast-heading .muted { font-size: .78rem; }
.forecast-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.forecast-day { padding: 18px 14px; text-align: center; }
.forecast-day p { margin-bottom: 12px; }
.forecast-day .day { color: var(--muted); font-size: .78rem; }
.forecast-day .icon { display: block; margin: 10px 0; font-size: 1.8rem; }
.forecast-day strong { display: block; color: var(--text); font-size: 1rem; }
.forecast-day small { color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.footer a { transition: color .2s ease; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 700px) {
  .topbar, .shell, .footer { width: min(100% - 32px, 560px); }
  .shell { padding-top: 58px; }
  .search-form { flex-direction: column; }
  .search-form button { min-height: 48px; }
  .current-grid { grid-template-columns: 1fr; }
  .forecast-grid { grid-template-columns: repeat(2, 1fr); }
  .forecast-day:last-child { grid-column: 1 / -1; }
  .location-row, .forecast-heading, .footer { align-items: flex-start; flex-direction: column; }
  .footer { gap: 8px; }
}
