:root {
  color: #171814;
  background: #f5f1e9;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --paper: #f5f1e9;
  --surface: #fffdf8;
  --ink: #171814;
  --muted: #6b6d64;
  --line: rgba(23, 24, 20, 0.13);
  --green: #2d8661;
  --green-soft: #dcefe3;
  --amber: #c4822c;
  --amber-soft: #f5e7cf;
  --orange: #dd6b32;
  --red: #c94840;
  --red-soft: #f4dcd8;
  --blue: #397b8f;
  --gray-bar: #d8d5cd;
  --shadow: 0 18px 50px rgba(30, 27, 20, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(220, 239, 227, 0.75), transparent 28rem),
    var(--paper);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--ink);
  font-size: 21px;
  font-weight: 780;
}

.brand-divider {
  width: 1px;
  height: 21px;
  margin-left: 2px;
  background: var(--line);
}

.brand-status {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 17px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.75);
}

.button-primary {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

main {
  width: min(920px, calc(100% - 40px));
  margin: 72px auto 0;
}

.hero {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 680px;
  font-size: clamp(42px, 7vw, 66px);
  line-height: 0.98;
  font-weight: 700;
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.overall-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 17px;
  margin-top: 48px;
  align-items: center;
  border: 1px solid;
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.overall-card.overall-operational {
  border-color: rgba(45, 134, 97, 0.25);
  background: var(--green-soft);
}

.overall-card.overall-degraded,
.overall-card.overall-maintenance {
  border-color: rgba(196, 130, 44, 0.28);
  background: var(--amber-soft);
}

.overall-card.overall-outage {
  border-color: rgba(201, 72, 64, 0.28);
  background: var(--red-soft);
}

.overall-card.overall-unknown {
  border-color: var(--line);
  background: var(--surface);
}

.overall-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 18px;
  font-weight: 750;
}

.overall-operational .overall-icon {
  background: var(--green);
}

.overall-degraded .overall-icon,
.overall-maintenance .overall-icon {
  background: var(--amber);
}

.overall-outage .overall-icon {
  background: var(--red);
}

.overall-title {
  margin: 0;
  font-size: 18px;
  font-weight: 690;
}

.overall-copy {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.overall-time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.section {
  margin-top: 86px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.section-heading h2,
.truth-note h2 {
  font-size: 28px;
  font-weight: 680;
}

.monitoring-since {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.components {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.component {
  padding: 23px 24px;
}

.component + .component {
  border-top: 1px solid var(--line);
}

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

.component-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gray-bar);
}

.status-dot.operational {
  background: var(--green);
}

.status-dot.degraded {
  background: var(--amber);
}

.status-dot.partial_outage {
  background: var(--orange);
}

.status-dot.major_outage {
  background: var(--red);
}

.component-title {
  margin: 0;
  font-size: 15px;
  font-weight: 680;
}

.component-state,
.component-meta {
  margin: 4px 0 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.uptime {
  text-align: right;
}

.uptime strong {
  display: block;
  font-size: 14px;
}

.uptime span {
  color: var(--muted);
  font-size: 11px;
}

.history {
  display: grid;
  grid-template-columns: repeat(90, minmax(2px, 1fr));
  gap: 2px;
  height: 35px;
  margin-top: 18px;
}

.history-bar {
  min-width: 2px;
  border-radius: 2px;
  background: var(--gray-bar);
  transition: transform 100ms ease;
}

.history-bar:hover {
  transform: scaleY(1.12);
}

.history-bar.operational {
  background: var(--green);
}

.history-bar.degraded {
  background: var(--amber);
}

.history-bar.partial_outage {
  background: var(--orange);
}

.history-bar.major_outage {
  background: var(--red);
}

.history-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gray-bar);
}

.legend-dot.operational {
  background: var(--green);
}

.legend-dot.degraded {
  background: var(--amber);
}

.legend-dot.outage {
  background: var(--red);
}

.incidents {
  display: grid;
  gap: 14px;
}

.incident {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
  background: var(--surface);
}

.incident.active {
  border-color: rgba(196, 130, 44, 0.35);
}

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

.incident-title {
  margin: 0;
  font-size: 16px;
  font-weight: 680;
}

.incident-time {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.incident-badge {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.incident.active .incident-badge {
  color: #835315;
  background: var(--amber-soft);
}

.updates {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.update + .update {
  margin-top: 17px;
}

.update-meta {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.update-message {
  margin: 5px 0 0;
  color: #454740;
  font-size: 13px;
  line-height: 1.55;
}

.empty-incidents {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(45, 134, 97, 0.25);
  border-radius: 22px;
  padding: 21px 23px;
  background: var(--green-soft);
}

.empty-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.empty-incidents p {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.empty-incidents span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.truth-note {
  display: flex;
  gap: 17px;
  margin: 72px 0 100px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.truth-note-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 750;
}

.truth-note h2 {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.truth-note p {
  max-width: 690px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 38px;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

.footer-separator {
  width: 1px;
  height: 12px;
  background: var(--line);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #e9e5dc;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  content: "";
  animation: shimmer 1.35s infinite;
  transform: translateX(-100%);
}

.component-skeleton {
  height: 118px;
}

.component-skeleton + .component-skeleton {
  border-top: 1px solid var(--line);
}

.incident-skeleton {
  height: 112px;
  border-radius: 22px;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 700px) {
  .site-header {
    width: min(100% - 28px, 1180px);
    padding-top: 18px;
  }

  .button-secondary {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .button-primary {
    display: none;
  }

  main {
    width: min(100% - 28px, 920px);
    margin-top: 48px;
  }

  .overall-card {
    grid-template-columns: auto 1fr;
    padding: 19px;
  }

  .overall-time {
    grid-column: 2;
  }

  .section {
    margin-top: 65px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .component {
    padding: 20px 17px;
  }

  .component-meta {
    display: none;
  }

  .history {
    gap: 1px;
  }

  .incident {
    padding: 19px;
  }

  .incident-head {
    flex-direction: column;
  }

  footer {
    width: min(100% - 28px, 1180px);
    flex-wrap: wrap;
  }
}

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