:root {
  color-scheme: light;
  --ink: #16332b;
  --muted: #65766f;
  --paper: #f2f0e8;
  --card: rgba(255, 255, 252, 0.84);
  --line: rgba(22, 51, 43, 0.12);
  --leaf: #356e55;
  --sun: #d99a35;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 4%, rgba(217, 154, 53, 0.18), transparent 28rem),
    linear-gradient(145deg, #edf0e7 0%, var(--paper) 48%, #e4ebe3 100%);
}

.shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 28px; }
header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
h1 { margin: 2px 0 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(2.1rem, 5vw, 4.1rem); letter-spacing: -0.045em; }
.eyebrow, .label { margin: 0; color: var(--leaf); font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; padding-bottom: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #aab1ad; box-shadow: 0 0 0 5px rgba(170, 177, 173, .14); }
.status.live .dot { background: #55a36f; box-shadow: 0 0 0 5px rgba(85, 163, 111, .14); }
.status.offline .dot {
  background: #c34b45;
  box-shadow: 0 0 0 5px rgba(195, 75, 69, .14);
}
.status.offline { color: #a43f39; }

.status.stale .dot { background: var(--sun); box-shadow: 0 0 0 5px rgba(217, 154, 53, .14); }

.card { border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 18px 55px rgba(28, 50, 42, .07); backdrop-filter: blur(14px); }
.hero { min-height: 260px; padding: clamp(28px, 6vw, 58px); display: flex; justify-content: space-between; align-items: end; gap: 30px; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; top: -115px; right: -75px; border: 42px solid rgba(217,154,53,.10); }
.hero-value { font-size: clamp(5rem, 14vw, 9rem); font-weight: 300; line-height: .84; letter-spacing: -.08em; margin: 20px 0 12px; }
.hero-value small { font-size: .28em; vertical-align: top; letter-spacing: -.02em; margin-left: .15em; }
.hero-side { min-width: 160px; text-align: right; position: relative; z-index: 1; }
.large { margin: 15px 0 7px; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 350; line-height: 1; letter-spacing: -.045em; }
.large small { font-size: .37em; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.secondary { margin: 0; color: var(--muted); font-size: .92rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.grid .card { min-height: 190px; padding: 25px; }
.wind-card, .rain-card { grid-column: span 2; }
.wind-content { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.compass { width: 82px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: rgba(53,110,85,.06); position: relative; }
.compass::before { content: "N"; position: absolute; top: 5px; color: var(--muted); font-size: .62rem; }
.compass span { font-size: 2.6rem; color: var(--leaf); transform-origin: center; transition: transform .5s ease; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 15px; }
.mini-grid p { margin: 0; font-size: 1.15rem; }
.mini-grid small { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; }
footer { text-align: center; color: var(--muted); font-size: .74rem; margin-top: 25px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 20px, 600px); padding-top: 25px; }
  header { align-items: start; flex-direction: column; gap: 8px; }
  .status { padding: 0; }
  .hero { min-height: 230px; padding: 28px 24px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .wind-card, .rain-card { grid-column: span 2; }
}

@media (max-width: 470px) {
  .hero { align-items: start; flex-direction: column; }
  .hero-side { min-width: 0; text-align: left; }
  .grid { grid-template-columns: 1fr; }
  .grid .card, .wind-card, .rain-card { grid-column: auto; }
  .mini-grid { gap: 9px; }
}
