:root {
  color-scheme: light;
  --page: #f7f3ea;
  --surface: rgba(255, 255, 255, .8);
  --ink: #23322a;
  --muted: #68736b;
  --line: rgba(50, 72, 59, .13);
  --green: #28634a;
  --green-soft: #dceade;
  --amber: #a66b27;
  --amber-soft: #f7e4c8;
  --red: #ad4c42;
  --red-soft: #f4d9d4;
  --slate: #6f7772;
  --slate-soft: #e6e9e6;
  --shadow: 0 20px 70px rgba(60, 70, 54, .11);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #151b18;
    --surface: rgba(34, 45, 39, .84);
    --ink: #f3f4ec;
    --muted: #aab5ad;
    --line: rgba(231, 240, 232, .12);
    --green: #8bc5a3;
    --green-soft: #2c4939;
    --amber: #e6b875;
    --amber-soft: #493a27;
    --red: #eba49e;
    --red-soft: #4c302f;
    --slate: #bac1bc;
    --slate-soft: #333b37;
    --shadow: 0 20px 70px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--page); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 2%, rgba(251, 199, 137, .22), transparent 30rem),
    radial-gradient(circle at 92% 24%, rgba(121, 183, 150, .19), transparent 28rem),
    var(--page);
  color: var(--ink);
  font: 16px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a { font: inherit; }
.page-glow { position: fixed; z-index: -1; width: 320px; height: 320px; border-radius: 50%; filter: blur(80px); opacity: .28; }
.page-glow-one { top: -170px; left: 16%; background: #f1b482; }
.page-glow-two { right: -150px; bottom: 5%; background: #82bca0; }
.shell { width: min(1060px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 15px; background: var(--green); color: var(--page); font: 700 20px/1 Georgia, serif; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { margin-top: -3px; color: var(--muted); font-size: 12px; }
.refresh, .error-panel button { border: 0; background: transparent; color: var(--green); font-weight: 750; cursor: pointer; }
.refresh:hover, .error-panel button:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { padding: 92px 4px 66px; }
.eyebrow, .section-kicker { margin: 0 0 9px; color: var(--amber); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 30px; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 16px; font: 600 clamp(42px, 7vw, 76px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.hero-copy { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.overall-pill { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--slate-soft); color: var(--slate); font-weight: 800; white-space: nowrap; }
.overall-pill[data-state="operational"] { background: var(--green-soft); color: var(--green); }
.overall-pill[data-state="degraded"] { background: var(--amber-soft); color: var(--amber); }
.overall-pill[data-state="outage"] { background: var(--red-soft); color: var(--red); }
.updated { margin: 24px 0 0; color: var(--muted); font-size: 13px; }
.section-heading { margin: 0 4px 18px; }
.section-heading h2 { margin: 0; font: 600 29px/1.1 Georgia, "Times New Roman", serif; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.status-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 16px; min-height: 150px; padding: 24px; border: 1px solid var(--line); border-radius: 25px; background: var(--surface); box-shadow: 0 1px 0 rgba(255, 255, 255, .35); backdrop-filter: blur(18px); }
.state-dot { width: 13px; height: 13px; margin-top: 6px; border-radius: 50%; background: var(--slate); box-shadow: 0 0 0 7px var(--slate-soft); }
.status-card[data-state="operational"] .state-dot { background: var(--green); box-shadow: 0 0 0 7px var(--green-soft); }
.status-card[data-state="degraded"] .state-dot { background: var(--amber); box-shadow: 0 0 0 7px var(--amber-soft); }
.status-card[data-state="outage"] .state-dot { background: var(--red); box-shadow: 0 0 0 7px var(--red-soft); }
.status-card strong { display: block; margin-bottom: 7px; font-size: 18px; }
.status-card p { margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.status-card small { color: var(--muted); font-size: 12px; }
.state-label { color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; }
.skeleton span { display: block; height: 12px; border-radius: 99px; background: var(--line); animation: pulse 1.3s ease-in-out infinite; }
.skeleton span:nth-child(1) { width: 14px; }
.skeleton span:nth-child(2) { width: 65%; }
.skeleton span:nth-child(3) { width: 72px; }
@keyframes pulse { 50% { opacity: .35; } }
.error-panel { margin-top: 24px; padding: 22px; border: 1px solid rgba(216, 109, 81, .28); border-radius: 20px; background: rgba(216, 109, 81, .08); }
.error-panel strong, .error-panel span { display: block; }
.error-panel span { margin: 4px 0 12px; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding: 20px 4px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 780px) {
  .shell { width: min(100% - 32px, 680px); padding-top: 20px; }
  .hero { padding: 72px 2px 52px; }
  .hero-row { grid-template-columns: 1fr; }
  .overall-pill { justify-self: start; }
  .status-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 480px); }
  h1 { font-size: clamp(39px, 13vw, 58px); }
  .hero-copy { font-size: 16px; }
  .status-card { grid-template-columns: auto minmax(0, 1fr); min-height: 138px; padding: 20px 18px; border-radius: 21px; }
  .state-label { grid-column: 2; }
  footer { display: grid; margin-top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
