:root {
  --text: #1f2937;
  --heading: #111827;
  --muted: #667085;
  --subtle: #98a2b3;
  --page: #f7f8fa;
  --surface: #ffffff;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --green: #16865f;
  --green-pale: #e8f5ef;
  --amber: #d48a16;
  --amber-pale: #fff5df;
  --red: #b42318;
  --red-dark: #8f1c13;
  --red-pale: #fef0ee;
  --blue: #175cd3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.grain { display: none; }
.wrap { width: min(960px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  width: 100%;
  height: 64px;
  padding-inline: max(20px, calc((100% - 960px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}

.brand-light { color: var(--muted); font-weight: 500; }
.brand-mark { display: flex; align-items: flex-start; justify-content: center; gap: 2px; }
.brand-mark span {
  width: 3px;
  height: 17px;
  background: var(--heading);
  border-radius: 2px 2px 5px 5px;
  transform-origin: top;
}
.brand-mark span:nth-child(1) { transform: rotate(-22deg); height: 11px; }
.brand-mark span:nth-child(2) { transform: rotate(-10deg); height: 15px; }
.brand-mark span:nth-child(3) { height: 19px; }
.brand-mark span:nth-child(4) { transform: rotate(10deg); height: 15px; }
.brand-mark span:nth-child(5) { transform: rotate(22deg); height: 11px; }

.header-status, .footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.status-dot, .mini-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}
.status-dot.outage-dot, .mini-dot.maintenance-dot { background: var(--red); }
.status-dot.outage-dot { box-shadow: 0 0 0 4px var(--red-pale); }

.hero { padding-top: 40px; }
.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.eyebrow, .metric-label, .status-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero h1 {
  margin: 0;
  color: var(--heading);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -.035em;
}

.hero-copy {
  max-width: 450px;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.status-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 22px 24px;
  color: white;
  background: var(--red);
  border: 1px solid var(--red-dark);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(180, 35, 24, .12);
}

.status-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  font-size: 19px;
  font-weight: 700;
}
.status-banner .status-label { margin-bottom: 3px; color: rgba(255,255,255,.72); }
.status-banner h2 { margin: 0; color: white; font-size: 23px; font-weight: 650; letter-spacing: -.02em; }
.status-updated { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.status-updated strong { font-size: 12px; font-weight: 650; }
.status-updated span { color: rgba(255,255,255,.7); font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; }

.metrics {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  margin-top: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.metric { min-height: 150px; padding: 22px 24px; }
.metric + .metric { border-left: 1px solid var(--border); }
.metric-value { margin: 18px 0 14px; color: var(--heading); font-size: 38px; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.metric-value span { margin-left: 2px; color: var(--muted); font-size: 19px; font-weight: 500; }
.metric-value-small { margin-top: 24px; font-size: 34px; }
.metric-foot { max-width: 220px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.uptime-track { position: relative; height: 7px; overflow: hidden; background: var(--green); border-radius: 99px; }
.outage { position: absolute; top: 0; width: 3px; height: 100%; background: var(--red); }
.outage-one { left: 43%; }
.outage-two { left: 72%; }
.outage-three { right: 0; }
.track-labels, .legend {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--subtle);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.systems, .incidents { padding-top: 58px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2, .subscribe h2 { margin: 0; color: var(--heading); font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
.section-heading > p, .incident-count { margin: 0 0 2px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }

.system-list {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.system-row {
  display: grid;
  grid-template-columns: 205px 1fr 80px;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding: 0 20px;
}
.system-row + .system-row { border-top: 1px solid var(--border); }
.system-row > div:first-child { display: flex; align-items: center; gap: 10px; }
.system-row strong { color: var(--heading); font-size: 12px; font-weight: 600; }
.operational { color: var(--green); font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; text-align: right; text-transform: uppercase; }
.operational.maintenance { color: var(--red); }
.bars {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 22px;
}
.bars span {
  width: 3px;
  flex: 0 0 3px;
  background: var(--green);
  border-radius: 1px;
}
.bars-degraded-outage span:nth-child(n+87):nth-child(-n+89) { background: var(--amber); }
.bars-outage span:nth-child(90),
.bars-degraded-outage span:nth-child(90) { background: var(--red); }
.legend { margin: 7px 101px 0 245px; }

.incidents { padding-bottom: 58px; }
.incident-list { display: grid; gap: 12px; }
.incident {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.incident-active { border-color: #f3b5af; box-shadow: inset 4px 0 0 var(--red); }
.incident-date strong { display: block; color: var(--heading); font-size: 15px; font-weight: 650; }
.incident-date span { display: block; margin-top: 6px; color: var(--subtle); font-family: "DM Mono", monospace; font-size: 8px; line-height: 1.4; text-transform: uppercase; letter-spacing: .06em; }
.incident-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.incident-title h3 { margin: 1px 0 0; color: var(--heading); font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
.resolved, .investigating, .active, .deployed {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--green);
  background: var(--green-pale);
  border: 1px solid #b7dfce;
  border-radius: 99px;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
}
.active { color: var(--red); background: var(--red-pale); border-color: #f3b5af; }
.investigating { color: #9a6108; background: var(--amber-pale); border-color: #f2d49f; }
.deployed { color: var(--blue); background: #eff4ff; border-color: #b2ccff; }
.incident-copy > p { max-width: 680px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.incident-copy .resolution {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 10px;
  color: var(--text);
  background: #f9fafb;
  border-radius: 5px;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  line-height: 1.45;
}
.resolution span { color: var(--green); }
.incident-updates { display: grid; gap: 1px; margin-top: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; }
.incident-updates p { display: grid; grid-template-columns: 58px 118px 1fr; gap: 8px; margin: 0; padding: 8px 10px; color: var(--muted); background: #f9fafb; font-size: 9px; line-height: 1.45; }
.incident-updates p + p { border-top: 1px solid var(--border); }
.incident-updates time { color: var(--subtle); font-family: "DM Mono", monospace; }
.incident-updates strong { color: var(--red); font-size: 9px; font-weight: 650; }
.incident-updates .degraded-text { color: #a96808; }

.subscribe {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.subscribe p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.subscribe .update-policy {
  margin: 0;
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .05em;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px max(20px, calc((100% - 960px) / 2));
  color: var(--subtle);
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-status { color: var(--red); }

@media (max-width: 720px) {
  .wrap { width: min(100% - 28px, 960px); }
  .site-header { padding-inline: 14px; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-copy { text-align: left; }
  .status-banner { grid-template-columns: auto 1fr; }
  .status-updated { grid-column: 2; align-items: flex-start; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric-wide { grid-column: 1 / -1; }
  .metric + .metric { border-left: 0; border-top: 1px solid var(--border); }
  .metric:last-child { border-left: 1px solid var(--border); }
  .system-row { grid-template-columns: 1fr auto; gap: 12px; padding: 15px 16px; }
  .bars { grid-column: 1 / -1; grid-row: 2; }
  .legend { margin: 7px 0 0; }
  .incident { grid-template-columns: 110px 1fr; gap: 18px; }
  .subscribe { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 480px) {
  .header-status span:last-child { display: none; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 26px; }
  .status-banner { min-height: 0; padding: 18px; }
  .status-banner h2 { font-size: 20px; }
  .status-icon { width: 36px; height: 36px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 130px; }
  .metric:last-child { border-left: 0; }
  .systems, .incidents { padding-top: 44px; }
  .section-heading { align-items: flex-start; }
  .section-heading > p { display: none; }
  .incident-count { max-width: 100px; line-height: 1.5; text-align: right; }
  .incident { grid-template-columns: 1fr; gap: 15px; padding: 20px; }
  .incident-updates p { grid-template-columns: 54px 1fr; }
  .incident-updates p span { grid-column: 1 / -1; }
  .incident-date { display: flex; align-items: baseline; gap: 8px; }
  .incident-date span { margin: 0; }
  .subscribe { width: 100%; margin-bottom: 0; border-width: 1px 0 0; border-radius: 0; padding: 28px 20px; }
  .subscribe .update-policy { text-align: left; }
  footer { flex-wrap: wrap; gap: 10px 20px; }
  footer > p:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
