/* DoohBase status page: the website's default violet look (doohbase.com, 13.10.2026) and its own copies of two of its
   typefaces (Figtree and Barlow Condensed, SIL Open Font License 1.1, see fonts/LICENSE-*.txt) */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0e1016;
  --surface: #181c26;
  --surface-2: #1f2430;
  --line: #2a3040;
  --fg: #eef0f7;
  --muted: #a1a7ba;
  --accent: #6a4dff;
  --accent-text: #a595ff;
  --accent-bg: rgba(106, 77, 255, 0.16);
  --logo-off: #2a3040;
  --ok: #4cc27a;
  --ok-bg: rgba(76, 194, 122, 0.18);
  --down: #e0605a;
  --down-bg: rgba(224, 96, 90, 0.2);
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 760px; margin-inline: auto; padding-inline: 16px; }

.top { display: flex; align-items: center; gap: 12px; padding-block: 22px 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: 0.02em; }
.brand svg { width: 26px; height: 26px; flex: 0 0 auto; }
.brand .tile { fill: var(--bg); }
.brand .on { fill: var(--accent); }
.brand .off { fill: var(--logo-off); }
.tag { color: var(--muted); font-size: 0.95rem; font-weight: 600; border-left: 1px solid var(--line); padding-left: 12px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
main { display: grid; gap: 16px; padding-bottom: 28px; }

.overall { display: flex; align-items: center; gap: 18px; padding: 22px 22px; }
.overall .ov { min-width: 0; }
.overall h1 {
  margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em;
  font-size: clamp(1.7rem, 5.2vw, 2.4rem); line-height: 1.05; overflow-wrap: anywhere; hyphens: auto;
}
.checked { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.checked span:empty { display: none; }
#again {
  font: inherit; font-weight: 600; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 14px; cursor: pointer;
}
#again:hover { border-color: var(--accent); }
#again:disabled { opacity: 0.55; cursor: default; }

.dot { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; background: var(--muted); }
.overall[data-state="ok"] .dot { background: var(--ok); animation: pulse 2.4s ease-in-out infinite; }
.overall[data-state="issue"] .dot, .overall[data-state="alldown"] .dot { background: var(--down); }
.overall[data-state="maint"] .dot { background: var(--accent); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(76, 194, 122, 0.55); } 50% { box-shadow: 0 0 0 7px rgba(76, 194, 122, 0); } }
@media (prefers-reduced-motion: reduce) { .overall[data-state="ok"] .dot { animation: none; } }

.parts { list-style: none; margin: 0; padding: 4px 0; }
.parts li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; }
.parts li + li { border-top: 1px solid var(--line); }
.parts .name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.parts .state, .chip {
  flex: 0 0 auto; font-size: 0.85rem; font-weight: 600; border-radius: 999px; padding: 2px 11px; white-space: nowrap;
  color: var(--muted); background: var(--surface-2);
}
.parts li[data-state="ok"] .state { color: var(--ok); background: var(--ok-bg); }
.parts li[data-state="down"] .state { color: var(--down); background: var(--down-bg); }
.parts li[data-state="maint"] .state { color: var(--accent-text); background: var(--accent-bg); }

.hint, .setup { margin: 0; padding: 12px 16px; border-radius: 10px; font-size: 0.95rem; }
.hint { background: var(--down-bg); color: var(--fg); }
.setup { background: var(--accent-bg); color: var(--fg); font-weight: 600; }

.notices { padding: 18px 20px; }
.notices h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; letter-spacing: 0.02em; }
#noticeList { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
#noticeList li { border-left: 3px solid var(--line); padding-left: 12px; }
#noticeList li[data-type="tDisruption"] { border-left-color: var(--down); }
#noticeList li[data-type="tMaintenance"] { border-left-color: var(--accent); }
.nhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ndate { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
li[data-type="tDisruption"] .chip { color: var(--down); background: var(--down-bg); }
li[data-type="tMaintenance"] .chip { color: var(--accent-text); background: var(--accent-bg); }
#noticeList p { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.none { margin: 0; color: var(--muted); }

.how { margin: 0; color: var(--muted); font-size: 0.9rem; }
.foot {
  border-top: 1px solid var(--line); padding-block: 20px 28px; color: var(--muted); font-size: 0.9rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
}
.foot a { color: var(--fg); }
.langpick { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.langpick select {
  font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px;
}
@media (max-width: 520px) {
  .overall { padding: 18px 16px; gap: 14px; }
  .parts li { padding: 12px 14px; }
  .langpick { margin-left: 0; }
}
