@font-face { font-family: "Lexend"; src: url("/fonts/lexend-latin-wght-normal.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light dark;
  --bg: #f7f3f6;
  --surface: #fffafd;
  --surface-strong: #fffdfd;
  --text: #272127;
  --muted: #716872;
  --line: #ded5dc;
  --accent: oklch(0.68 0.16 350);
  --accent-soft: oklch(0.94 0.035 350);
  --good: #287a58;
  --good-soft: #e3f3eb;
  --warn: #9b681b;
  --warn-soft: #f8edd7;
  --bad: #a64455;
  --bad-soft: #f8e5e9;
  --radius: 16px;
  --shadow: 0 18px 55px rgb(84 55 75 / 9%);
  font-family: "Lexend", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171318;
    --surface: #211b21;
    --surface-strong: #292129;
    --text: #f2ebf0;
    --muted: #b8acb5;
    --line: #403541;
    --accent: oklch(0.8 0.145 350);
    --accent-soft: #38232f;
    --good: #75caa3;
    --good-soft: #1d352b;
    --warn: #e2b56c;
    --warn-soft: #392e1f;
    --bad: #e58c9a;
    --bad-soft: #3d242c;
    --shadow: 0 18px 60px rgb(8 4 7 / 25%);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 0%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 32rem),
    var(--bg);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.masthead,
.service-heading,
.summary,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.masthead {
  min-height: 52px;
  margin-bottom: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px color-mix(in oklab, var(--surface) 55%, transparent);
}

.brand-muted,
.last-check,
footer {
  color: var(--muted);
}

.last-check,
footer p {
  margin: 0;
  font-size: 0.78rem;
}

.last-check time {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.summary {
  min-height: 158px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.summary-copy {
  display: flex;
  align-items: center;
  gap: 20px;
}

.summary .state-dot {
  width: 18px;
  height: 18px;
}

.summary-label,
.service-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  line-height: 1.08;
}

h2 {
  font-size: 1.28rem;
}

.summary > p {
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
}

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

.service {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.minecraft {
  grid-column: span 2;
}

.state-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.state-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

[data-state="operational"] .state-dot {
  background: var(--good);
}

[data-state="degraded"] .state-dot {
  background: var(--warn);
}

[data-state="outage"] .state-dot {
  background: var(--bad);
}

[data-state="operational"] .state-chip {
  color: var(--good);
  background: var(--good-soft);
}

[data-state="degraded"] .state-chip {
  color: var(--warn);
  background: var(--warn-soft);
}

[data-state="outage"] .state-chip {
  color: var(--bad);
  background: var(--bad-soft);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 20px;
}

.metrics div {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.service-link {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration-color: color-mix(in oklab, var(--accent) 55%, transparent);
  text-underline-offset: 4px;
}

.service-link:hover,
.service-link:focus-visible {
  color: var(--accent);
}

.motd {
  min-height: 3em;
  margin: 34px 0 30px;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
}

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

.service-detail {
  margin: 18px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--warn);
  background: var(--warn-soft);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 24px; padding: 0 4px;
}

[data-loading="true"] dd,
[data-loading="true"] .motd {
  color: transparent; border-radius: 4px;
  background: color-mix(in oklab, var(--line) 65%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  [data-loading="true"] dd,
  [data-loading="true"] .motd {
    animation: breathe 1.4s ease-in-out infinite alternate;
  }

  @keyframes breathe {
    to { opacity: 0.5; }
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 640px); padding-top: 16px;
  }

  .masthead { margin-bottom: 28px; }

  .summary {
    align-items: flex-start; flex-direction: column;
    min-height: 0; padding: 24px;
  }

  .summary > p { padding-left: 38px; }

  .services { grid-template-columns: 1fr; }

  .service,
  .minecraft {
    grid-column: 1; grid-row: auto;
  }

  .minecraft-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .last-check { max-width: 14ch; text-align: right; }
  .service { padding: 20px; }
  .service-heading { align-items: flex-start; gap: 12px; }
  footer { align-items: flex-start; flex-direction: column; gap: 4px; }
}
