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

:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --bg-raised: #0f1522;
  --bg-inset: #131b2a;
  --line: #1c2433;
  --line-strong: #2a3446;
  --text: #dfe6f1;
  --text-strong: #f6f8fc;
  --text-soft: #b7c2d4;
  --text-faint: #8a97ab;
  --pink: #f472b6;
  --blue: #7cc4ff;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #fb7185;
  --none: #7f8ba0;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Space Grotesk', system-ui, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 24px; }

.top { border-bottom: 1px solid var(--line); }
.top .wrap { padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; color: var(--text-strong); }
.brand svg, .brand .accent { color: var(--pink); }

main.wrap { padding-block: 40px 72px; display: flex; flex-direction: column; gap: 24px; }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--none); }
[data-state="up"] > .dot, [data-state="up"] > * > .dot { background: var(--ok); }
[data-state="partial"] > .dot, [data-state="partial"] > * > .dot { background: var(--warn); }
[data-state="down"] > .dot, [data-state="down"] > * > .dot { background: var(--bad); }

.overall { display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--bg-raised); }
.overall .dot { width: 16px; height: 16px; }
.overall[data-state="up"] { border-color: #1f3a2e; background: #0f1d18; }
.overall[data-state="up"] .dot { box-shadow: 0 0 0 6px #4ade8022; }
.overall[data-state="partial"] { border-color: #4a3412; background: #1a1208; }
.overall[data-state="down"] { border-color: #4c1d26; background: #1c0d11; }
.overall h1 { margin: 0; font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.02em; line-height: 1.15; color: var(--text-strong); }
.overall p { margin: 4px 0 0; color: var(--text-soft); }

.notices:empty { display: none; }
.notice { margin: 0 0 10px; padding: 14px 18px; border-radius: 14px; border: 1px solid #1d3a5a; background: #0c1828; color: #cfe6ff; }
.notice[data-type="warning"] { border-color: #4a3412; background: #1a1208; color: #f5deb0; }

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.svc { border: 1px solid var(--line); background: var(--bg-raised); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.svc[data-state="partial"] { border-color: #4a3412; }
.svc[data-state="down"] { border-color: #4c1d26; }

.svc-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; padding: 18px 20px; text-decoration: none; }
a.svc-top { transition: background-color 0.2s; }
a.svc-top:hover, a.svc-top:focus-visible { background: var(--bg-inset); }
.svc-name { min-width: 0; overflow-wrap: anywhere; font-size: 20px; font-weight: 600; color: var(--text-strong); }
.svc-state { font-size: 14px; color: var(--text-soft); }
.svc-go { grid-column: 2 / 4; font-size: 14px; color: var(--pink); }
a.svc-top:hover .svc-go { text-decoration: underline; }

.checks { list-style: none; margin: 0; padding: 6px 0 10px; border-top: 1px solid var(--line); }
.checks a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; padding: 9px 20px; text-decoration: none; font-size: 15px; color: var(--text); }
.checks a:hover, .checks a:focus-visible { background: var(--bg-inset); color: var(--text-strong); }
.checks .dot { width: 8px; height: 8px; }
.check-name { min-width: 0; overflow-wrap: anywhere; }

.bar { grid-column: 2; display: flex; gap: 2px; }
.bar i { flex: 1; max-width: 8px; height: 10px; border-radius: 1px; background: var(--ok); opacity: 0.6; }
.bar i.bad { background: var(--bad); opacity: 1; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.foot { margin: 8px 0 0; font-size: 14px; color: var(--text-faint); }

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  main.wrap { padding-top: 24px; }
  .overall { padding: 20px; }
}
