@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora-VariableFont_wght.ttf") format("truetype-variations");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  --page-bg: #f1f2f2;
  --surface: #ffffff;
  --surface-muted: #f7f7f6;
  --ink: #111111;
  --muted: #5f6366;
  --soft: #7d8285;
  --line: #d4d7d8;
  --line-strong: #aeb4b7;
  --accent: #f26a21;
  --accent-dark: #a93e0b;
  --accent-soft: #ffe3d2;
  --success: #16835a;
  --success-soft: #dff3ea;
  --warning: #c98116;
  --warning-soft: #fff0d6;
  --danger: #d71920;
  --danger-soft: #ffe1e3;
  --unknown: #667085;
  --unknown-soft: #eef1f3;
  --radius-sm: 6px;
  --radius-md: 8px;
  --shadow-panel: 0 14px 36px rgba(16, 20, 24, 0.09);
  --font: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 242, 242, 0) 34rem),
    radial-gradient(circle at 12% 0%, rgba(242, 106, 33, 0.12), transparent 30rem),
    linear-gradient(90deg, rgba(16, 20, 24, 0.018) 1px, transparent 1px) 0 0 / 76px 76px,
    var(--page-bg);
  color: var(--ink);
  font-family: var(--font);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(16, 20, 24, 0.12);
  background: rgba(241, 242, 242, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 860;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 36px;
}

.site-header__label {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(16, 20, 24, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
  padding: 0 13px;
}

.hero {
  padding: 86px 0 58px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 42px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero__summary {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.34rem);
  line-height: 1.42;
}

.summary-card {
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
  padding: 24px;
}

.summary-card__label {
  margin-bottom: 12px;
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: uppercase;
}

.summary-card__state {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 840;
  line-height: 1.12;
}

.summary-card__meta {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.summary-card__meta:last-child {
  margin-bottom: 0;
}

.status-section {
  padding: 44px 0 82px;
  border-top: 1px solid rgba(16, 20, 24, 0.08);
}

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

.section-header--compact {
  margin-top: 42px;
}

.refresh-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 20, 24, 0.22);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 760;
  padding: 0 14px;
}

.refresh-button:hover {
  border-color: rgba(16, 20, 24, 0.32);
  background: var(--surface);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.maintenance-panel {
  margin-bottom: 16px;
  border: 1px solid rgba(201, 129, 22, 0.28);
  border-radius: var(--radius-md);
  background: var(--warning-soft);
  color: #5f3a00;
  padding: 18px 20px;
}

.maintenance-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1rem;
}

.maintenance-panel p {
  margin-bottom: 0;
  color: #6d4609;
  font-size: 0.92rem;
  line-height: 1.5;
}

.service-list {
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.service-list-header,
.service-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(150px, 0.78fr) repeat(4, minmax(92px, 0.62fr));
  gap: 18px;
  align-items: center;
}

.service-list-header {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.09);
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.service-list-header__metric {
  text-align: right;
}

.service-row {
  min-height: 76px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.09);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-name {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.service-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.service-maintenance {
  margin: 8px 0 0;
  color: #6d4609;
  font-size: 0.88rem;
  line-height: 1.45;
}

.service-details {
  min-width: 0;
}

.uptime-cell {
  min-width: 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
}

.uptime-cell__label {
  display: none;
}

.status-badge {
  display: inline-flex;
  min-width: 116px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 820;
  padding: 0 10px;
  text-align: center;
}

.status-badge--operational {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge--maintenance {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-badge--outage {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-badge--unknown {
  background: var(--unknown-soft);
  color: var(--unknown);
}

.content-block {
  margin-top: 34px;
}

.summary-metrics,
.updates-card {
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-metric {
  padding: 24px;
  border-right: 1px solid rgba(17, 17, 17, 0.09);
}

.summary-metric:last-child {
  border-right: 0;
}

.summary-metric strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.summary-metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.updates-card {
  padding: 6px 0;
}

.status-update {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.09);
}

.status-update:last-child {
  border-bottom: 0;
}

.status-update strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.status-update p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.empty-state {
  margin: 0;
  padding: 24px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(16, 20, 24, 0.12);
  background: #111111;
  color: #f7f7f4;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
}

.site-footer p,
.site-footer a {
  margin: 0;
  color: rgba(247, 247, 244, 0.68);
  font-size: 0.84rem;
  line-height: 1.45;
}

.site-footer a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(247, 247, 244, 0.24);
  border-radius: 7px;
  background: rgba(247, 247, 244, 0.08);
  color: rgba(247, 247, 244, 0.86);
  font-weight: 720;
  padding: 0 12px;
  text-decoration: none;
}

.site-footer a:hover {
  border-color: rgba(247, 247, 244, 0.42);
  background: rgba(247, 247, 244, 0.14);
  color: #ffffff;
}

@media (max-width: 760px) {
  .container,
  .site-header__inner {
    width: min(100% - 28px, var(--container));
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand span {
    font-size: 0.98rem;
  }

  .site-header__label {
    min-height: 36px;
    font-size: 0.78rem;
    padding: 0 11px;
  }

  .hero {
    padding: 52px 0 36px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .summary-card {
    padding: 20px;
  }

  .status-section {
    padding: 34px 0 54px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-row {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .service-list-header {
    display: none;
  }

  .uptime-cell {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    text-align: right;
  }

  .uptime-cell__label {
    display: inline;
    color: var(--soft);
    font-size: 0.72rem;
    font-weight: 760;
    text-transform: uppercase;
  }

  .summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-metric:nth-child(2) {
    border-right: 0;
  }

  .summary-metric:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(17, 17, 17, 0.09);
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand img {
    height: 32px;
  }

  .site-header__label {
    max-width: 122px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-badge {
    min-width: 100%;
  }

  .summary-metrics {
    grid-template-columns: 1fr;
  }

  .summary-metric,
  .summary-metric:nth-child(2) {
    border-right: 0;
  }

  .summary-metric:not(:last-child) {
    border-bottom: 1px solid rgba(17, 17, 17, 0.09);
  }
}
