:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #65738a;
  --line: #d7dde8;
  --green: #16794a;
  --amber: #9a6400;
  --red: #ba2b32;
  --blue: #315fba;
  --shadow: 0 16px 40px rgba(27, 38, 63, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.status-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.lede,
.section-header p,
.timestamp,
.version-line,
.component-message,
.incident-meta {
  color: var(--muted);
}

.lede {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1rem;
}

.overall-panel {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
}

.status-operational {
  background: rgba(22, 121, 74, 0.12);
  color: var(--green);
}

.status-degraded,
.status-unknown {
  background: rgba(154, 100, 0, 0.14);
  color: var(--amber);
}

.status-outage {
  background: rgba(186, 43, 50, 0.12);
  color: var(--red);
}

.timestamp,
.version-line {
  margin: 0;
  font-size: 0.9rem;
}

.section,
.incident-panel {
  margin-top: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 20px;
}

.section-header p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.component {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.component-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.component h3 {
  margin: 0;
  font-size: 1rem;
}

.component-message {
  margin: 16px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.incident-panel {
  border-color: rgba(154, 100, 0, 0.4);
}

.incident {
  padding: 14px 0 0;
}

.incident p {
  margin-bottom: 8px;
}

.incident-meta {
  font-size: 0.9rem;
}

.changelog-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.changelog-list li {
  line-height: 1.45;
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding: 20px 0;
  }

  .status-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .section,
  .incident-panel {
    padding: 20px;
  }

  .section-header {
    display: block;
  }
}
