:root {
  --bg: #060708;
  --bg-elevated: #0d0f12;
  --bg-soft: #121519;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fa;
  --muted: #8b949e;
  --soft: #5f6670;
  --success: #8dd3a7;
  --danger: #f0a5a5;
  --warning: #e3c17a;
  --urgent: #f0a5a5;
  --success-bg: #0f1a13;
  --danger-bg: #1a1111;
  --warning-bg: #19160f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #050607 0%, #090b0d 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-frame {
  max-width: 1180px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a:hover {
  color: var(--text);
}

.status-page {
  padding: 16px 0 28px;
}

.status-hero {
  display: grid;
  gap: 20px;
}

.status-title h1 {
  max-width: 12ch;
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
}

.eyebrow,
.summary-strip span,
.plan-badge,
.server-meta span,
.news-date {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subtle-copy,
.panel-copy,
.server-card p,
.news-item p {
  color: var(--muted);
}

.subtle-copy {
  max-width: 360px;
  margin: 12px 0 0;
  line-height: 1.6;
}

.panel-copy {
  max-width: 48ch;
  margin: 8px 0 0;
  line-height: 1.55;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.summary-strip div {
  min-width: 0;
  padding: 16px;
  background: var(--bg-elevated);
}

.summary-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.urgent-section {
  display: grid;
  margin-top: 24px;
}

.urgent-section[hidden] {
  display: none;
}

.dash-panel {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01));
}

.urgent-panel {
  min-height: 0;
  border-color: rgba(240, 165, 165, 0.46);
  background:
    linear-gradient(180deg, rgba(240, 165, 165, 0.055), rgba(240, 165, 165, 0.018)),
    #0a0c0f;
}

.panel-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-headline h2 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.urgent-eyebrow {
  color: var(--urgent);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(240, 165, 165, 0.42);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.link-button:hover {
  border-color: rgba(240, 165, 165, 0.72);
  background: rgba(240, 165, 165, 0.06);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  white-space: nowrap;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.server-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #0a0c0f;
}

.server-card.is-online {
  border-color: rgba(141, 211, 167, 0.28);
}

.server-card.is-maintenance {
  border-color: rgba(227, 193, 122, 0.36);
}

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

.server-location {
  display: grid;
  gap: 6px;
}

.server-location strong {
  font-size: 1.08rem;
  font-weight: 600;
}

.server-location span {
  color: var(--muted);
  font-size: 0.92rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.is-online {
  border-color: rgba(141, 211, 167, 0.45);
  background: var(--success-bg);
  color: var(--success);
}

.status-pill.is-maintenance {
  border-color: rgba(227, 193, 122, 0.45);
  background: var(--warning-bg);
  color: var(--warning);
}

.server-card p {
  margin: 0;
  line-height: 1.5;
}

.server-meta {
  display: grid;
  gap: 1px;
  margin-top: auto;
  background: var(--line);
}

.server-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  background: var(--bg-elevated);
}

.server-meta strong {
  text-align: right;
  font-size: 0.92rem;
  font-weight: 600;
}

.news-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.urgent-list {
  display: grid;
  gap: 10px;
}

.urgent-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(240, 165, 165, 0.3);
  background: rgba(26, 17, 17, 0.58);
}

.urgent-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.urgent-item p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.urgent-date {
  color: var(--urgent);
}

.news-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  background: var(--bg-elevated);
}

.news-item h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.news-item p {
  margin: 7px 0 0;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .summary-strip,
  .server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .urgent-item,
  .news-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 620px) {
  .site-frame {
    padding: 18px;
  }

  .site-header,
  .site-footer,
  .panel-headline,
  .server-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .status-title h1 {
    max-width: none;
  }

  .summary-strip,
  .server-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-panel {
    padding: 16px;
  }
}
