:root {
  --ink: #18211f;
  --muted: #65706d;
  --paper: #f4f1e9;
  --line: rgba(29, 42, 38, .12);
  --white: rgba(255, 255, 255, .66);
  --green: #1f5a4c;
  --orange: #dc8155;
  --shadow: 0 26px 70px rgba(45, 61, 56, .11);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 8%, rgba(247, 197, 141, .32), transparent 26rem),
    linear-gradient(145deg, #dce9e8 0%, #ecece2 46%, #f4e9da 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.015em;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
.sky-orb { position: fixed; border-radius: 50%; filter: blur(3px); pointer-events: none; opacity: .6; }
.orb-one { width: 280px; height: 280px; background: rgba(255,255,255,.45); top: -120px; left: -80px; }
.orb-two { width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.6); bottom: 5%; right: -80px; }
.shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 24px; position: relative; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 54px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 22px/1 Georgia, serif; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); }
.brand-mark svg { width: 23px; fill: none; stroke: #f8f4e9; stroke-width: 1.8; stroke-linecap: round; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-wrap { position: relative; }
.search { height: 44px; width: 270px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: rgba(255,255,255,.47); border: 1px solid rgba(255,255,255,.65); border-radius: 99px; box-shadow: 0 8px 24px rgba(45,61,56,.05); }
.search:focus-within { outline: 2px solid rgba(31,90,76,.28); background: rgba(255,255,255,.72); }
.search svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search input { border: 0; outline: 0; background: transparent; min-width: 0; flex: 1; color: var(--ink); }
.search input::placeholder { color: #727c79; }
kbd { color: #7a827f; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font: 11px/1.4 inherit; }
.search-results { position: absolute; z-index: 10; top: 51px; left: 0; width: 100%; padding: 7px; border-radius: 16px; background: rgba(248,247,241,.96); box-shadow: 0 18px 44px rgba(30,43,39,.18); border: 1px solid var(--line); backdrop-filter: blur(18px); }
.search-result { width: 100%; border: 0; background: transparent; text-align: left; padding: 11px 12px; border-radius: 10px; cursor: pointer; }
.search-result:hover, .search-result:focus { background: #e5ece8; outline: 0; }
.search-result small { display: block; color: var(--muted); margin-top: 2px; }
.unit-toggle { height: 42px; display: flex; align-items: center; padding: 3px; border: 1px solid rgba(255,255,255,.7); border-radius: 99px; background: rgba(255,255,255,.38); cursor: pointer; }
.unit-toggle span { padding: 8px 9px; border-radius: 50%; color: var(--muted); font-size: 12px; }
.unit-toggle .active { background: var(--ink); color: white; }
.avatar { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #d68760; color: white; font-size: 11px; font-weight: 700; cursor: pointer; }

.location-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .15em; font-size: 10px; font-weight: 750; color: #687470; }
.live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #df825d; box-shadow: 0 0 0 4px rgba(223,130,93,.15); }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; margin: 0; }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: .95; }
.local-time { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.location-button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 8px; color: var(--green); font-weight: 650; font-size: 13px; cursor: pointer; }
.location-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.47fr) minmax(340px, .9fr); gap: 18px; }
.current-card, .metric-card, .forecast-section { border: 1px solid rgba(255,255,255,.56); box-shadow: var(--shadow); }
.current-card { overflow: hidden; min-height: 390px; border-radius: var(--radius); background: linear-gradient(150deg, rgba(251,248,239,.84), rgba(230,238,233,.64)); display: flex; flex-direction: column; }
.current-main { flex: 1; display: flex; align-items: center; padding: 30px 46px 22px; gap: 38px; }
.weather-art { position: relative; width: 245px; height: 190px; flex: 0 0 245px; }
.sun-disc { position: absolute; width: 128px; height: 128px; border-radius: 50%; top: 3px; right: 8px; background: #efab68; box-shadow: 0 0 55px rgba(239,171,104,.27); }
.cloud { position: absolute; left: 12px; bottom: 29px; width: 190px; height: 64px; border-radius: 99px; background: #f5f7f2; box-shadow: 0 18px 30px rgba(70,81,77,.12); }
.cloud:before, .cloud:after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud:before { width: 90px; height: 90px; left: 34px; bottom: 17px; }
.cloud:after { width: 69px; height: 69px; right: 23px; bottom: 10px; }
.cloud-back { transform: scale(.72); transform-origin: bottom right; opacity: .54; left: 60px; bottom: 72px; }
.condition { margin: 0 0 0 5px; font-size: 16px; font-weight: 650; }
.temperature { margin: -4px 0 -4px; font-family: Georgia, serif; font-size: clamp(98px, 11vw, 142px); line-height: 1; letter-spacing: -.08em; }
.temperature sup { font-family: Inter, sans-serif; font-size: .28em; vertical-align: top; position: relative; top: .38em; letter-spacing: 0; }
.feels { margin: 0 0 0 6px; color: var(--muted); font-size: 13px; }
.weather-summary { min-height: 89px; border-top: 1px solid var(--line); padding: 19px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: rgba(255,255,255,.19); }
.weather-summary > p { max-width: 340px; margin: 0; font: italic 15px/1.45 Georgia, serif; color: #40504b; }
.sun-times { display: flex; gap: 23px; }
.sun-times span { display: grid; grid-template-columns: auto auto; column-gap: 6px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.sun-times i { grid-row: 1 / 3; align-self: center; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(224,150,93,.13); color: #c5683e; font-style: normal; font-size: 15px; }
.sun-times b { grid-column: 2; margin-top: 3px; color: var(--ink); font-size: 12px; text-transform: none; letter-spacing: 0; }

.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-card { min-width: 0; padding: 20px; border-radius: 22px; background: rgba(252,250,244,.57); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.metric-card:after { content: ""; position: absolute; width: 95px; height: 95px; border-radius: 50%; right: -39px; top: -42px; background: var(--accent); opacity: .12; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); margin-bottom: auto; }
.metric-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.6; }
.metric-card p { margin: 15px 0 4px; color: var(--muted); font-size: 12px; }
.metric-card strong { font: 400 29px/1.1 Georgia, serif; }
.metric-card strong small { font: 600 11px/1 Inter, sans-serif; margin-left: 2px; color: var(--muted); }
.metric-card > span { margin-top: 7px; color: var(--muted); font-size: 10px; }
.accent-wind { --accent: #4e8379; }.accent-humidity { --accent: #577fa4; }.accent-uv { --accent: #d89455; }.accent-rain { --accent: #7776a0; }

.forecast-section { margin-top: 18px; padding: 26px 28px 22px; border-radius: var(--radius); background: rgba(249,248,242,.56); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 21px; }
h2 { font-size: 27px; }
.forecast-tabs { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 99px; }
.tab { border: 0; background: transparent; padding: 8px 15px; border-radius: 99px; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.tab.active { background: var(--ink); color: white; }
.forecast-list { display: grid; grid-template-columns: repeat(7, 1fr); }
.forecast-item { min-width: 0; text-align: center; padding: 12px 10px 8px; border-left: 1px solid var(--line); }
.forecast-item:first-child { border-left: 0; }
.forecast-item.current { background: rgba(255,255,255,.4); border-radius: 18px; border-left-color: transparent; }
.forecast-item .time { display: block; color: var(--muted); font-size: 11px; font-weight: 650; }
.forecast-icon { height: 48px; display: grid; place-items: center; margin: 9px auto 5px; }
.forecast-icon svg { width: 37px; height: 37px; overflow: visible; }
.forecast-item .temp { font: 400 20px/1 Georgia, serif; }
.forecast-item .meta { display: block; height: 13px; margin-top: 7px; color: #648082; font-size: 9px; }
footer { display: flex; justify-content: space-between; padding: 24px 4px 0; color: rgba(43,56,52,.55); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 99px; background: var(--ink); color: white; font-size: 12px; transition: .25s ease; pointer-events: none; box-shadow: 0 12px 35px rgba(24,33,31,.23); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .shell { width: min(100% - 32px, 760px); }
  .topbar { padding-bottom: 42px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 170px; }
  .forecast-list { overflow-x: auto; scroll-snap-type: x mandatory; }
  .forecast-item { min-width: 105px; scroll-snap-align: start; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 24px); padding-top: 18px; }
  .topbar { padding-bottom: 38px; }
  .brand > span:last-child, .avatar, kbd { display: none; }
  .header-actions { gap: 7px; flex: 1; justify-content: flex-end; }
  .search { width: min(53vw, 230px); }
  .location-row { align-items: center; }
  .location-button span { display: none; }
  h1 { font-size: 48px; }
  .current-card { min-height: 440px; }
  .current-main { flex-direction: column; gap: 0; padding: 22px 20px 18px; text-align: center; }
  .weather-art { width: 215px; height: 170px; flex-basis: 170px; }
  .sun-disc { width: 108px; height: 108px; }
  .cloud { transform: scale(.9); left: 4px; }
  .cloud-back { transform: scale(.65); }
  .temperature { font-size: 104px; }
  .weather-summary { padding: 16px; flex-direction: column; text-align: center; }
  .sun-times { width: 100%; justify-content: center; }
  .metric-card { padding: 17px; min-height: 155px; }
  .section-heading { align-items: center; }
  .forecast-section { padding: 21px 14px 18px; }
  h2 { font-size: 23px; }
  footer { flex-direction: column; align-items: center; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
