:root {
  --paper: #f4f6f2;
  --surface: #fff;
  --ink: #172019;
  --muted: #69736b;
  --faint: #97a098;
  --line: #dce2dc;
  --green: #087c50;
  --green-wash: #eef8f2;
  --red: #c43f4e;
  --red-wash: #fcf0f1;
  --shadow: 0 22px 60px rgba(31, 47, 35, .065);
}

* { box-sizing: border-box; }
@font-face {
  font-family: "Manrope";
  src: url("/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -90px, rgba(205, 227, 211, .62), transparent 440px),
    var(--paper);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.nav,
main,
footer {
  width: min(840px, calc(100% - 40px));
  margin-inline: auto;
}

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

.brand {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}

.page-label {
  padding: 7px 11px;
  border: 1px solid rgba(23,32,25,.09);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.6);
  box-shadow: 0 1px 2px rgba(23,32,25,.03);
  font-size: 10px;
  font-weight: 600;
}

main { min-height: calc(100vh - 171px); padding: 76px 0 104px; }
.hero { margin-bottom: 72px; }

.status-banner {
  min-height: 148px;
  position: relative;
  overflow: hidden;
  padding: 35px 36px 35px 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid #c8e1d2;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(108,196,148,.12), transparent 230px),
    linear-gradient(110deg, var(--surface), var(--green-wash));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9);
}

.status-banner::before {
  content: "✓";
  position: absolute;
  left: 36px;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  color: var(--surface);
  background: var(--green);
  font-size: 18px;
  font-weight: 650;
  box-shadow: 0 7px 18px rgba(20,122,80,.18);
}

.status-banner.checking {
  border-color: var(--line);
  background: var(--surface);
}
.status-banner.checking::before { content: "…"; color: var(--muted); background: #edf0eb; box-shadow: none; }

.status-banner.down {
  border-color: #eccdd1;
  background: linear-gradient(110deg, var(--surface), var(--red-wash));
}
.status-banner.down::before { content: "!"; background: var(--red); box-shadow: 0 7px 18px rgba(189,63,75,.16); }

.status-banner strong {
  display: block;
  font-size: clamp(25px, 4vw, 31px);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.status-banner div #summary {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.status-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.status-banner.checking .status-kicker { color: var(--faint); }
.status-banner.down .status-kicker { color: var(--red); }

.updated {
  flex: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.panel-heading {
  padding: 0 4px 17px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 0;
}

h1, h2, h3, p { margin-top: 0; }
.panel-heading h1 {
  margin-bottom: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.refreshing {
  color: var(--faint);
  font-size: 10px;
}

.components {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 36px rgba(30,45,33,.035);
}

.component {
  min-height: 96px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}
.component:last-child { border-bottom: 0; }
.component:hover { background: rgba(237,247,240,.64); }

.component h2 {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.component p {
  margin-bottom: 0;
  color: #788079;
  font-size: 11px;
  line-height: 1.5;
}

.pill {
  min-width: 92px;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--green);
  font-size: 10px;
  border: 1px solid rgba(8,124,80,.05);
  border-radius: 999px;
  background: rgba(20,122,80,.065);
  font-weight: 600;
}

.pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(22, 132, 91, .08);
}

.pill.down { color: var(--red); background: rgba(189,63,75,.065); }
.pill.checking { color: var(--faint); background: #f0f1ed; }

.lower-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 18px;
}

.info-card {
  padding: 27px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 36px rgba(30,45,33,.035);
  transition: border-color 160ms ease, transform 160ms ease;
}
.info-card:hover { border-color: #d3d9d1; transform: translateY(-1px); }

.info-card h2 {
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.incident-heading {
  padding-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}

.date { color: var(--faint); font-size: 10px; }
.incident-list { max-height: 250px; overflow: auto; }
.incident-empty {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.incident-empty > span,
.incident-state {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(20,122,80,.07);
}
.incident-empty strong,
.incident-empty small { display: block; }
.incident-empty strong { margin-bottom: 5px; font-size: 12px; font-weight: 600; }
.incident-empty small,
.incident-item small {
  color: var(--muted);
  font-size: 10px;
}
.incident-item {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.incident-item:last-child { border-bottom: 0; }
.incident-details { min-width: 0; flex: 1; }
.incident-details > div { margin-bottom: 5px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.incident-details strong { font-size: 12px; font-weight: 600; }
.incident-details em { color: var(--muted); font-size: 10px; font-style: normal; white-space: nowrap; }
.incident-item.active .incident-state { background: var(--red); box-shadow: 0 0 0 4px rgba(189,63,75,.07); }
.incident-item.active .incident-details em { color: var(--red); }
.incident-list::-webkit-scrollbar { width: 6px; }
.incident-list::-webkit-scrollbar-thumb { border-radius: 6px; background: var(--line); }
.incident-list::-webkit-scrollbar-track { background: transparent; }
.incident-list {
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}

.compact > h2 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

dl { margin: 7px 0 0; }
dl div {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
dt { color: var(--muted); }
dd { margin: 0; font-variant-numeric: tabular-nums; }

footer {
  min-height: 85px;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #909890;
  font-size: 10px;
}

@media (max-width: 600px) {
  .nav, main, footer { width: calc(100% - 32px); }
  .nav { height: 70px; }
  main { padding: 52px 0 72px; }
  .hero { margin-bottom: 44px; }
  .status-banner { min-height: 178px; padding: 28px 22px 25px 72px; align-items: flex-start; flex-direction: column; gap: 17px; }
  .status-banner::before { left: 23px; top: 31px; width: 34px; height: 34px; transform: none; }
  .status-kicker { margin-bottom: 9px; }
  .updated { font-size: 11px; }
  .refreshing { display: none; }
  .component { min-height: 90px; padding: 21px 18px; }
  .component:hover { background: transparent; }
  .info-card:hover { transform: none; }
  .component p { max-width: 220px; }
  .lower-grid { margin-top: 48px; grid-template-columns: 1fr; gap: 42px; }
  footer { gap: 8px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
