@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/manrope-latin-wght.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/space-grotesk-latin-wght.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #000926;
  --glow: rgba(11, 183, 128, 0.14);
  --surface: #020f2e;
  --surface-raised: #0a1a3f;
  --text: #e9efee;
  --text-soft: #b9c4c2;
  --text-muted: #a7b3b1;
  --border: rgba(233, 239, 238, 0.1);
  --accent: #0bb780;
  --accent-hover: #4fd6a8;
  --on-tone: #000926;
  --operational: #0bb780;
  --degraded: #f5b544;
  --down: #ff7a7a;
  --no-data: #26365a;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at top, var(--glow), transparent 60%) top center / 100% 720px no-repeat, var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

.site-header,
main {
  width: min(100% - 32px, 850px);
  margin-inline: auto;
}

.site-header {
  padding-top: 40px;
}

main {
  padding-block: 40px 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

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

.brand__logo {
  display: block;
  width: auto;
  height: 40px;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
.incident__title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h2 {
  margin-top: 56px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.banner--operational,
.service__status--operational {
  --tone: var(--operational);
}

.banner--degraded,
.service__status--degraded,
.incident--degraded {
  --tone: var(--degraded);
}

.banner--down,
.service__status--down,
.incident--down {
  --tone: var(--down);
}

.banner {
  overflow: hidden;
  border: 1px solid var(--tone);
  border-radius: var(--radius);
  background: var(--surface);
}

.banner h1 {
  padding: 18px 24px;
  background: var(--tone);
  color: var(--on-tone);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
}

.banner .incident {
  margin: 0;
  padding: 20px 24px;
}

.banner .incident + .incident {
  border-top: 1px solid var(--border);
}

.notice {
  margin-top: 16px;
  padding: 14px 24px;
  border: 1px solid var(--degraded);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--degraded);
  font-weight: 600;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 48px;
}

.section-heading h2 {
  margin: 0;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.updated {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.services {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.service {
  padding: 20px 24px;
}

.service__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
}

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

.service__name {
  font-family: var(--font-display);
  font-weight: 600;
}

.service__status {
  color: var(--tone);
  font-size: 0.9375rem;
  font-weight: 600;
}

.history {
  display: flex;
  gap: 2px;
  margin-top: 14px;
}

.history__day {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  border-radius: 2px;
  background: var(--tone, var(--no-data));
}

.history__day--operational {
  --tone: var(--operational);
}

.history__day--degraded {
  --tone: var(--degraded);
}

.history__day--down {
  --tone: var(--down);
}

.history__legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 600px) {
  .site-header {
    padding-top: 28px;
  }

  .brand__logo {
    height: 32px;
  }

  .history {
    gap: 1px;
  }

  .history__legend {
    flex-wrap: wrap;
  }

  .history__uptime {
    order: 3;
    flex-basis: 100%;
  }
}

.day {
  margin-top: 32px;
}

.day h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 1.25rem;
  font-weight: 600;
}

.empty {
  margin-top: 16px;
  color: var(--text-muted);
}

.incident {
  margin-top: 16px;
}

.incident__title {
  color: var(--tone);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.update {
  margin-top: 12px;
  color: var(--text-soft);
}

.update strong {
  color: var(--text);
}

.update time {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
}
