:root {
  color-scheme: light;
  --ink: #292722;
  --muted: #77736a;
  --paper: #f7f5f0;
  --card: #fffefa;
  --line: #e6e1d8;
  --green: #2b8060;
  --green-soft: #e3f1e9;
  --amber: #ad7220;
  --amber-soft: #f7ecd6;
  --red: #b94b45;
  --red-soft: #f7e4e1;
  --gray-soft: #ece9e2;
  --shadow: 0 12px 34px rgba(64, 55, 39, 0.07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 0%, rgba(194, 173, 130, 0.13), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
}
.page-name { color: var(--muted); font-size: 14px; }

main { padding: 56px 0 64px; }

.summary {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 25px 28px;
  border: 1px solid transparent;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.summary-operational { background: var(--green-soft); border-color: #c8e3d5; }
.summary-degraded { background: var(--amber-soft); border-color: #ead7b1; }
.summary-outage { background: var(--red-soft); border-color: #edc8c4; }
.summary-loading { background: var(--card); border-color: var(--line); }

.summary-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 800;
}

.summary-degraded .summary-icon { background: var(--amber); }
.summary-outage .summary-icon { background: var(--red); }
.summary-loading .summary-icon { background: var(--gray-soft); }
.summary h1 { margin: 0 0 5px; font-size: clamp(22px, 4vw, 28px); letter-spacing: -0.035em; }
.summary p { margin: 0; color: #625f58; line-height: 1.5; }

.spinner {
  width: 21px;
  height: 21px;
  border: 2px solid #cfc9bd;
  border-top-color: #77736a;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.content-section { margin-top: 55px; }
.section-heading { margin-bottom: 18px; }
.eyebrow { margin: 0 0 7px; color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: 23px; letter-spacing: -0.025em; }
.components-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.legend { margin: 0 0 2px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.legend span { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: var(--green); border-radius: 2px; }

.components { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.component { padding: 25px 26px; }
.component + .component { border-top: 1px solid var(--line); }
.component-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.component h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; }
.component-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.component-status { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; color: var(--green); font-size: 13px; font-weight: 700; }
.component-status::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px var(--green-soft); }
.status-outage { color: var(--red); }
.status-outage::before { box-shadow: 0 0 0 4px var(--red-soft); }
.status-unknown { color: var(--muted); }
.status-unknown::before { box-shadow: 0 0 0 4px var(--gray-soft); }

.uptime-row { display: flex; gap: 3px; margin-top: 22px; }
.uptime-day { flex: 1 1 0; height: 24px; min-width: 3px; background: var(--green); border-radius: 3px; }
.uptime-day.partial { background: var(--amber); }
.uptime-day.down { background: var(--red); }
.uptime-day.unknown { background: var(--gray-soft); }
.component-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 9px; color: var(--muted); font-size: 11px; }

.notice-list { display: grid; gap: 12px; }
.notice { padding: 23px 25px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); }
.notice-maintenance { border-left: 4px solid var(--amber); }
.notice-incident { border-left: 4px solid var(--red); }
.notice-resolved { border-left-color: var(--green); }
.notice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.notice h3 { margin: 0; font-size: 16px; }
.notice p { margin: 10px 0 0; color: #615e57; font-size: 14px; line-height: 1.55; }
.notice-time { flex: 0 0 auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.notice-badge { display: inline-block; margin-top: 14px; padding: 5px 9px; color: var(--muted); background: var(--gray-soft); border-radius: 999px; font-size: 11px; font-weight: 700; }

.quiet-section { display: flex; align-items: center; gap: 15px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); }
.quiet-section > span { display: grid; width: 32px; height: 32px; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 50%; font-weight: 800; }
.quiet-section p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.quiet-section strong { color: var(--ink); font-weight: 650; }

.skeleton { min-height: 135px; background: linear-gradient(100deg, transparent 30%, rgba(230,225,216,.55) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position-x: -250%; } }
.hidden { display: none !important; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 100px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
footer p { margin: 0; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); text-underline-offset: 3px; }
footer a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .page-shell { width: min(100% - 28px, 760px); }
  .site-header { min-height: 76px; }
  main { padding: 36px 0 48px; }
  .summary { align-items: flex-start; padding: 22px 20px; }
  .summary-icon { flex-basis: 40px; width: 40px; height: 40px; font-size: 20px; }
  .component { padding: 22px 19px; }
  .component-line { display: block; }
  .component-status { margin-top: 14px; }
  .legend { display: none; }
  .notice-head { display: block; }
  .notice-time { display: block; margin-top: 8px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
