:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --brand-purple: #35002f;
  --brand-purple-light: #531349;
  --brand-coral: #ff4455;
  --brand-cream: #fffbc7;

  --background: #35002f;
  --surface: #fffbc7;
  --surface-soft: #fffef0;
  --text: #35002f;
  --muted: #755b70;
  --border: rgba(53, 0, 47, 0.14);

  --operational: #16a34a;
  --maintenance: #d97706;
  --degraded: #ca8a04;
  --partial: #ea580c;
  --major: #dc2626;
  --unknown: #64748b;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 78% -10%,
      rgba(255, 68, 85, 0.42),
      transparent 38%
    ),
    radial-gradient(
      circle at -10% 35%,
      rgba(255, 251, 199, 0.08),
      transparent 30%
    ),
    var(--background);
  color: var(--brand-cream);
}

.container {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

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

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.logo {
  display: block;
  width: 180px;
  height: auto;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.header-copy h1 {
  margin-bottom: 6px;
  white-space: nowrap;
}

.header-actions {
  flex: 0 0 auto;
  padding-bottom: 6px;
}

.section-heading,
.service-row,
.overall {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

h1 {
  margin-bottom: 6px;
  color: var(--brand-cream);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.subtitle {
  margin-bottom: 0;
  color: rgba(255, 251, 199, 0.74);
}

button {
  border: 2px solid var(--brand-cream);
  border-radius: 999px;
  background: var(--brand-coral);
  color: var(--brand-purple);
  padding: 11px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease;
}

button:hover {
  background: var(--brand-cream);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.overall {
  padding: 28px;
  margin-bottom: 36px;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.overall .label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.85rem;
}

.overall h2 {
  margin: 0;
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--unknown);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--unknown) 15%, transparent);
}

section {
  margin-bottom: 34px;
}

.section-heading {
  align-items: baseline;
}

.section-heading h2 {
  margin-bottom: 12px;
  color: var(--brand-cream);
  font-size: 1.25rem;
}

.section-heading p {
  color: rgba(255, 251, 199, 0.68);
}

.card,
.incident,
.maintenance,
.empty {
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.16);
}

.service-row {
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 140ms ease;
}

.service-row:hover {
  background: rgba(255, 68, 85, 0.08);
}

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

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.service-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--status-color, var(--unknown));
}

.incident,
.maintenance,
.empty {
  padding: 20px;
  margin-bottom: 12px;
}

.incident h3,
.maintenance h3 {
  margin-bottom: 8px;
}

.item-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.item-body {
  margin-bottom: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.error {
  padding: 14px 16px;
  border: 2px solid var(--brand-coral);
  border-radius: 12px;
  background: var(--brand-cream);
  color: var(--brand-purple);
  font-weight: 700;
}

.hidden {
  display: none;
}

footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 251, 199, 0.18);
  color: rgba(255, 251, 199, 0.64);
  font-size: 0.85rem;
}

@media (max-width: 620px) {
  .container {
    padding-top: 28px;
  }

  .header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .header-actions {
    padding-bottom: 0;
  }

  .logo {
    width: 155px;
  }

  .header-copy h1 {
    white-space: normal;
  }

  .service-row {
    align-items: flex-start;
  }

  .service-status {
    text-align: right;
  }

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

.developer-links {
  margin-top: 42px;
}

.feed-actions {
  display: grid;
  gap: 14px;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.16);
}

.feed-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feed-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 2px solid var(--brand-cream);
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--brand-coral);
  color: var(--brand-purple);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.action-button.secondary {
  border-color: var(--brand-purple);
  background: transparent;
  color: var(--brand-purple);
}

.action-button:hover {
  background: var(--brand-cream);
  color: var(--brand-purple);
  transform: translateY(-1px);
}

.action-button.secondary:hover {
  background: rgba(53, 0, 47, 0.08);
}

.copy-message {
  min-height: 22px;
  margin-top: 10px;
  color: rgba(255, 251, 199, 0.75);
  font-size: 0.85rem;
}

@media (max-width: 620px) {
  .feed-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-buttons {
    width: 100%;
    flex-wrap: wrap;
  }
}
