/* The site's colours and fonts (apps/website/src/styles/site_base.css), so the page reads as part of it. */
@font-face { font-family: "Unbounded Variable"; font-weight: 200 900; font-display: swap; src: url(/fonts/unbounded-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded Variable"; font-weight: 200 900; font-display: swap; src: url(/fonts/unbounded-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans Variable"; font-weight: 200 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans Variable"; font-weight: 200 800; font-display: swap; src: url(/fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --color-background: #0b0c0f;
  --color-surface: #17191e;
  --color-raised: #23262d;
  --color-border: #2a2d35;
  --color-text: #f3f4f6;
  --color-soft-text: #c9cdd6;
  --color-muted: #a4a8b2;
  --color-focus: #00b5ff;
  --tone-good: #6fd08c;
  --tone-warning: #ffb703;
  --tone-bad: #e07a7a;
  --tone-maintenance: #5fb3f0;
  --tone-none: #3a3e47;
  --font-display: "Unbounded Variable", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans Variable", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-background); color: var(--color-text); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

[data-tone="operational"], [data-tone="works"] { --tone: var(--tone-good); }
[data-tone="degraded"], [data-tone="checking"] { --tone: var(--tone-warning); }
[data-tone="down"], [data-tone="broken"] { --tone: var(--tone-bad); }
[data-tone="maintenance"] { --tone: var(--tone-maintenance); }
[data-tone="unknown"], [data-tone="no_data"] { --tone: var(--tone-none); }

.page-width { width: min(960px, 100% - 2 * clamp(16px, 5vw, 48px)); margin-inline: auto; }

.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 40px; }
.brand-link img { display: block; height: 36px; width: auto; }
.back-link { color: var(--color-soft-text); font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--color-text); text-decoration: underline; }

.overall { display: flex; align-items: center; gap: 24px; padding: 32px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border); }
.overall h1 { font-family: var(--font-display); font-size: clamp(24px, 3.6vw, 36px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--tone); }
.overall[data-tone="unknown"] h1 { color: var(--color-text); }
.overall p { margin-top: 6px; color: var(--color-soft-text); }

.pixel-cluster { flex: none; display: grid; grid-template-columns: repeat(3, 14px); gap: 4px; }
.pixel-cluster i { display: block; width: 14px; height: 14px; border-radius: 2px; background: var(--tone); }
.pixel-cluster i:nth-child(2n) { opacity: 0.45; }
.pixel-cluster i:nth-child(5) { opacity: 1; }

.incident { margin-top: 20px; padding: 24px 28px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border); border-left: 4px solid var(--tone); }
.incident-kind { color: var(--tone); font-weight: 700; font-size: 15px; }
.incident h2 { margin-top: 4px; font-family: var(--font-display); font-size: 21px; line-height: 1.3; font-weight: 600; }
.incident-when { margin-top: 4px; color: var(--color-muted); font-size: 15px; }
.incident-updates { margin-top: 16px; display: grid; gap: 12px; }
.incident-updates li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.incident-updates time { color: var(--color-muted); font-size: 15px; padding-top: 1px; }

.block { margin-top: 56px; }
.block h2 { font-family: var(--font-display); font-size: clamp(21px, 2.4vw, 26px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.block-intro { margin-top: 6px; color: var(--color-muted); }
.quiet-line { margin-top: 16px; padding: 20px 24px; border-radius: 14px; border: 1px dashed var(--color-border); color: var(--color-soft-text); }

.component-list, .game-list, .recent-list { margin-top: 18px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border); }
.component-list > li, .game-list > li, .recent-list > li { padding: 22px 28px; }
.component-list > li + li, .game-list > li + li, .recent-list > li + li { border-top: 1px solid var(--color-border); }

.component-head, .game-list > li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.component h3, .game-list h3 { font-size: 18px; font-weight: 700; line-height: 1.35; }
.component-head p, .game-list p { color: var(--color-muted); font-size: 15px; }
.state-word { flex: none; display: inline-flex; align-items: flex-start; gap: 8px; color: var(--tone); font-weight: 700; text-align: right; }
/* Next to the first line when a long state wraps. */
.state-word::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 0.5em; border-radius: 2px; background: var(--tone); }
.game-list .state-word { max-width: 46%; }

.day-strip { margin-top: 16px; display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; }
.day-strip i { display: block; height: 28px; border-radius: 1px; background: var(--tone); }
.day-strip-scale { margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; color: var(--color-muted); font-size: 14px; }
.short-scale { display: none; }

.recent-list summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; cursor: pointer; list-style: none; }
.recent-list summary::-webkit-details-marker { display: none; }
.incident-title { font-weight: 700; }
.incident-title::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 2px; background: var(--tone); }
.incident-span { color: var(--color-muted); font-size: 15px; }

.page-footer { margin-top: 72px; padding: 28px 0 48px; border-top: 1px solid var(--color-raised); color: var(--color-muted); font-size: 15px; display: grid; gap: 6px; }
.page-footer a { color: var(--color-soft-text); }

@media (max-width: 640px) {
  .overall { padding: 24px 20px; gap: 18px; }
  .pixel-cluster { grid-template-columns: repeat(3, 10px); gap: 3px; }
  .pixel-cluster i { width: 10px; height: 10px; }
  .component-list > li, .game-list > li, .recent-list > li, .incident { padding: 20px; }
  .component-head { flex-direction: column; gap: 6px; }
  .state-word { text-align: left; }
  .game-list > li { flex-direction: column; gap: 6px; }
  .game-list .state-word { max-width: none; }
  .day-strip { grid-template-columns: repeat(30, 1fr); gap: 3px; }
  .day-strip i:nth-child(-n + 60) { display: none; }
  .long-scale { display: none; }
  .short-scale { display: inline; }
  .incident-updates li { grid-template-columns: 1fr; gap: 2px; }
}

.stale-notice { margin-bottom: 20px; padding: 16px 20px; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--tone-warning); color: var(--color-text); }

/* An address broken at its hyphen reads as two words. */
.whole-address { white-space: nowrap; }
