:root {
  color-scheme: dark;
  --bg: #071112;
  --panel: #102021;
  --line: rgba(224, 237, 227, .14);
  --text: #f1f5ef;
  --muted: #a0b0aa;
  --moss: #b5cda7;
  --sun: #efc773;
  --rain: #83b6c8;
  --good: #79bf92;
  --warn: #e5b66f;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: radial-gradient(circle at 72% -12%, rgba(98, 136, 114, .2), transparent 34rem), var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.hidden { display: none !important; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; border-radius: .5rem; color: #061011; background: var(--text); }
.skip-link:focus { top: 1rem; }

.site-header, main, footer { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand > span:last-child { display: grid; gap: .12rem; }
.brand small { color: var(--moss); font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 400; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(181, 205, 167, .5); border-radius: 52% 48% 47% 53%; transform: rotate(-10deg); }
.brand-mark i { width: 22px; height: 12px; border: solid var(--moss); border-width: 1px 0 0; transform: skewY(-20deg); box-shadow: 0 -5px 0 -4px var(--moss); }
.freshness { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.freshness time { margin-left: .6rem; padding-left: .9rem; border-left: 1px solid var(--line); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(160,176,170,.08); }
.status-dot.good { background: var(--good); box-shadow: 0 0 0 4px rgba(121,191,146,.1); }
.status-dot.warn { background: var(--warn); }

main { padding-block: 1.5rem 4rem; }
.message-panel { min-height: 62vh; display: grid; place-content: center; justify-items: center; text-align: center; }
.message-panel h1 { margin: .5rem 0; font: 400 2.2rem Georgia, serif; }
.message-panel p { color: var(--muted); }
.message-panel button { padding: .65rem 1rem; border: 1px solid var(--moss); border-radius: 999px; color: var(--text); background: transparent; cursor: pointer; }
.loader { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--moss); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.current-card { min-height: 610px; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: clamp(1.2rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: 24px; background: var(--panel) center / cover no-repeat; box-shadow: 0 24px 70px rgba(0,0,0,.18); }
.current-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--camera-image) center / cover no-repeat; transform: scale(1.005); }
.shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,12,13,.72) 0%, rgba(4,12,13,.36) 54%, rgba(4,12,13,.12) 100%), linear-gradient(0deg, rgba(4,12,13,.5), transparent 56%); }
.current-top, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.eyebrow { margin: 0; color: var(--moss); font-size: .66rem; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.quiet { margin: .42rem 0 0; color: var(--muted); font-size: .76rem; }
.condition-badge { padding: .35rem .62rem; border: 1px solid rgba(121,191,146,.38); border-radius: 999px; color: #a9d8b8; background: rgba(4,12,13,.35); font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(5px); }
.temperature-lockup { display: flex; align-items: flex-end; gap: 1.3rem; margin: auto 0; }
.temperature-lockup > span { font: 400 clamp(7.5rem, 18vw, 13rem)/.72 Georgia, "Times New Roman", serif; letter-spacing: -.08em; text-shadow: 0 4px 28px rgba(0,0,0,.22); }
.temperature-lockup > div { display: grid; gap: .3rem; padding-bottom: .25rem; color: rgba(241,245,239,.72); }
.temperature-lockup strong { color: var(--text); font-size: 1.05rem; font-weight: 550; }
.current-facts { width: min(720px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); margin: 2rem 0 0; padding-top: 1.15rem; border-top: 1px solid rgba(241,245,239,.23); }
.current-facts div { display: grid; gap: .3rem; padding-right: 1rem; }
.current-facts div + div { padding-left: 1rem; border-left: 1px solid rgba(241,245,239,.18); }
.current-facts dt { color: rgba(241,245,239,.68); font-size: .68rem; }
.current-facts dd { margin: 0; font-size: .94rem; font-weight: 600; }
.camera-stamp { position: absolute; right: 1rem; bottom: .75rem; padding: .35rem .55rem; border-radius: 999px; color: rgba(241,245,239,.76); background: rgba(4,12,13,.48); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(5px); }

.forecast-section { margin-top: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(18,35,35,.97), rgba(10,24,24,.97)); }
.section-heading { align-items: end; }
.section-heading h1 { margin: .4rem 0 0; font: 400 clamp(1.8rem, 4vw, 2.7rem) Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.forecast-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.5rem; border-top: 1px solid var(--line); }
.forecast-card { min-width: 0; padding: 1.2rem 1rem .3rem; }
.forecast-card + .forecast-card { border-left: 1px solid var(--line); }
.forecast-card time { color: var(--muted); font-size: .72rem; }
.forecast-card h2 { margin: .65rem 0 .3rem; font: 400 2.35rem Georgia, "Times New Roman", serif; }
.forecast-card .summary { min-height: 2rem; margin: 0; font-size: .78rem; }
.forecast-stats { display: flex; gap: .8rem; margin: 1rem 0; color: var(--muted); font-size: .67rem; }
.confidence { height: 2px; background: rgba(255,255,255,.1); }
.confidence i { display: block; height: 100%; background: linear-gradient(90deg, var(--rain), var(--moss)); }
.forecast-card small { display: block; margin-top: .5rem; color: var(--muted); font-size: .6rem; }
.about-forecast { max-width: 760px; margin: 1rem 0 0 auto; padding: 1.2rem 1.4rem; border-left: 1px solid var(--moss); color: var(--muted); font-size: .78rem; line-height: 1.65; }
.about-forecast p:last-child { margin-bottom: 0; }

footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.2rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .67rem; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 2rem, 1180px); }
  .site-header { align-items: flex-start; padding-block: 1rem; }
  .freshness time { display: none; }
  .brand strong { font-size: 1.25rem; }
  .current-card { min-height: 540px; }
  .shade { background: linear-gradient(90deg, rgba(4,12,13,.7), rgba(4,12,13,.24)), linear-gradient(0deg, rgba(4,12,13,.65), transparent 70%); }
  .temperature-lockup { display: block; }
  .temperature-lockup > div { margin-top: 1rem; }
  .current-facts { grid-template-columns: repeat(2, 1fr); gap: 1rem 0; }
  .current-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .forecast-grid { overflow-x: auto; grid-template-columns: repeat(4, minmax(180px, 1fr)); }
  .section-heading { display: block; }
  .camera-stamp { position: static; align-self: flex-end; margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
