:root {
  --bg: #f7f4ef;
  --bg-2: #efe9df;
  --ink: #14181f;
  --muted: #5c6675;
  --line: rgba(20, 24, 31, 0.1);
  --surface: #ffffff;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --coral: #e85d4c;
  --ok: #0f766e;
  --warn: #d97706;
  --bad: #dc2626;
  --maint: #2563eb;
  --shadow: 0 20px 50px rgba(20, 24, 31, 0.1);
  --radius: 22px;
  --wrap: 52rem;
  --font: "Segoe UI", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --display: "Trebuchet MS", "Segoe UI", "Avenir Next", sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: -0.012em;
  background:
    radial-gradient(900px 420px at 10% -5%, rgba(20, 184, 166, 0.16), transparent 55%),
    radial-gradient(700px 380px at 95% 5%, rgba(232, 93, 76, 0.1), transparent 50%),
    linear-gradient(180deg, #fbf9f6 0%, var(--bg) 42%, #f3efe8 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: #0b5f59;
}

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.8rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

h3 {
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, #0f766e, #12968b 55%, #14b8a6);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
}

.btn--primary:hover {
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn--small {
  min-height: 2.35rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
}

.status-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 246, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.status-header__bar {
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.brand__word {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--sky);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-header__nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-header__nav > a:not(.btn) {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.94rem;
}

.status-header__nav > a:not(.btn):hover {
  color: var(--ink);
}

.status-hero {
  padding: 2.25rem 0 1rem;
}

.status-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.status-banner h1 {
  margin-bottom: 0.35rem;
}

.status-banner p {
  margin: 0;
  color: var(--muted);
}

.status-banner__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--sky);
  position: relative;
  flex-shrink: 0;
}

.status-banner__icon::after {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.18);
}

.status-banner--degraded .status-banner__icon::after,
.status-banner--partial_outage .status-banner__icon::after,
.status-banner--maintenance .status-banner__icon::after {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.18);
}

.status-banner--major_outage .status-banner__icon::after {
  background: var(--bad);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
}

.status-banner--maintenance .status-banner__icon::after {
  background: var(--maint);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.status-banner__details {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.status-banner__details ul {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.15rem;
  color: var(--ink);
}

.status-banner__details li {
  margin: 0.2rem 0;
}

.status-banner__cause {
  color: var(--ink) !important;
  font-size: 0.95rem;
  line-height: 1.5;
}

.status-banner__meta {
  display: grid;
  gap: 0.15rem;
  text-align: right;
  font-size: 0.86rem;
}

.status-banner__meta span {
  color: var(--muted);
}

.status-alert {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.status-alert__title {
  margin: 0 0 0.45rem;
  font-weight: 800;
}

.status-alert ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.status-alert li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.status-section {
  padding: 2rem 0 0.5rem;
}

.section-head {
  margin-bottom: 1.15rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.component-group {
  margin-bottom: 1.35rem;
}

.component-group__title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7e8b9a;
}

.component-list,
.maintenance-list,
.incident-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.component-card,
.maintenance-card,
.incident-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.05rem 1.15rem 1.1rem;
  box-shadow: 0 10px 28px rgba(20, 24, 31, 0.04);
}

.component-card__top {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.component-card__name {
  margin: 0 0 0.2rem;
  font-weight: 800;
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.component-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
  background: #e8f4f2;
  color: var(--ok);
}

.status-chip i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.status-chip--degraded,
.status-chip--partial_outage,
.status-chip--investigating,
.status-chip--identified,
.status-chip--monitoring {
  background: #fff7ed;
  color: var(--warn);
}

.status-chip--major_outage {
  background: #fef2f2;
  color: var(--bad);
}

.status-chip--maintenance,
.status-chip--scheduled {
  background: #eff6ff;
  color: var(--maint);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #eef2f7;
  color: #445164;
}

.pill--degraded {
  background: #fff7ed;
  color: #b45309;
}

.pill--partial_outage,
.pill--major_outage {
  background: #fef2f2;
  color: #b91c1c;
}

.pill--maintenance,
.pill--scheduled {
  background: #eff6ff;
  color: #1d4ed8;
}

.uptime-row {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.uptime-bars {
  display: flex;
  align-items: stretch;
  gap: 1px;
  height: 1.65rem;
  padding: 0.2rem 0;
  border-radius: 4px;
  overflow: hidden;
}

.uptime-bar {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border-radius: 1px;
  background: #0d9488;
  opacity: 0.92;
}

.uptime-bar--degraded,
.uptime-bar--partial_outage {
  background: #d97706;
  opacity: 1;
}

.uptime-bar--major_outage {
  background: #dc2626;
  opacity: 1;
}

.uptime-bar--unknown {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 31, 0.08);
  opacity: 1;
}

.status-source {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.component-card__probe {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.uptime-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
}

.uptime-meta strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.maintenance-card__head,
.incident-card__head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.55rem;
}

.maintenance-card__when,
.incident-card__meta {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.incident-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.timeline {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  border-left: 2px solid rgba(15, 118, 110, 0.18);
}

.timeline__item {
  position: relative;
  padding-left: 1.15rem;
}

.timeline__dot {
  position: absolute;
  left: -0.4rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px #fff;
}

.timeline__status {
  margin: 0;
  font-weight: 800;
  font-size: 0.92rem;
}

.timeline__time {
  margin: 0.15rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.timeline__body p:last-child {
  margin: 0;
}

.empty-note {
  color: var(--muted);
}

.subscribe-panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0f3d3a, #0f766e 55%, #14b8a6);
  color: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.subscribe-panel .kicker {
  color: rgba(255, 255, 255, 0.72);
}

.subscribe-panel h2,
.subscribe-panel p {
  color: #fff;
}

.subscribe-panel > div > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.subscribe-form {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.input {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: #e7fffb;
}

.status-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.status-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

.status-footer p {
  margin: 0;
}

.status-footer a {
  color: var(--muted);
  font-weight: 650;
}

.status-footer a:hover {
  color: var(--teal);
}

@media (max-width: 760px) {
  .status-header__nav > a:not(.btn) {
    display: none;
  }

  .status-banner {
    grid-template-columns: auto 1fr;
  }

  .status-banner__meta {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: 0.25rem;
    border-top: 1px solid var(--line);
  }

  .component-card__top,
  .incident-card__head,
  .maintenance-card__head {
    flex-direction: column;
  }

  .incident-card__tags {
    justify-content: flex-start;
  }

  .uptime-bars {
    height: 1.7rem;
    gap: 1px;
  }
}

@media (min-width: 840px) {
  .subscribe-panel {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
