/* AlwaysVault status page (KB #2502). Tokens mirror the live app (alwaysvault-saas src/app/globals.css, dark):
   navy ground, opaque surfaces, square corners, Plex Sans UI, Newsreader headings (weight <= 500). Dark only. */
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-var.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-var.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #080f1f;
  --surface: #0d1a35;
  --surface-2: #112040;
  --text: #f0f6ff;
  --muted: #8899bb;
  --primary: #0066ff;
  --primary-deep: #0052cc;
  --hairline: rgba(0, 102, 255, 0.18);
  /* status colours: identical to the app */
  --ok: #12b24b;
  --notice: #f4b740;
  --maint: #f48c40;
  --incident: #e14d4d;
  --font-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: #4d94ff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 64px; }

/* brand: blue gradient tile + white mark, two-colour wordmark (BrandLogo in the app) */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand-tile { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary)); }
.brand-tile img { width: 18px; height: auto; }
.brand-name { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.3px; }
.brand-name span { color: var(--primary); }
.brand-sub { color: var(--muted); font-size: 0.875rem; margin-left: 0.25rem; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

/* the one focal point: overall state */
.state { background: var(--surface); border: 1px solid var(--hairline); border-left: 4px solid var(--state, var(--ok)); padding: 24px; }
.state h1 { font: 500 clamp(1.6rem, 4vw, 2.1rem)/1.2 var(--font-display); margin: 0 0 8px; display: flex; align-items: center; gap: 12px; }
.state p { margin: 0; color: var(--muted); }
.state .guardian { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline); color: var(--text); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--state, var(--ok)); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: breathe 2.6s ease-in-out infinite; }   /* brand status-ring breathe */
  @keyframes breathe { 50% { transform: scale(1.25); opacity: 0.75; } }
}
[data-state="normal"] { --state: var(--ok); }
[data-state="notice"] { --state: var(--notice); }
[data-state="maintenance"] { --state: var(--maint); }
[data-state="incident"] { --state: var(--incident); }

h2 { font: 500 1.25rem/1.3 var(--font-display); margin: 40px 0 12px; }
.list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hairline); }
.list > li { padding: 14px 16px; background: var(--surface); }
.list > li + li { border-top: 1px solid var(--hairline); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tag { font-size: 0.8125rem; font-weight: 500; color: var(--state, var(--ok)); }
.when { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.item-title { font-weight: 500; }
.item-text { margin: 6px 0 0; color: var(--muted); font-size: 0.9375rem; }
.updates { list-style: none; margin: 10px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--surface-2); }
.updates li { margin: 0 0 8px; font-size: 0.9375rem; }
.empty { color: var(--muted); padding: 14px 16px; background: var(--surface); border: 1px solid var(--hairline); margin: 0; }

.meta { margin-top: 40px; color: var(--muted); font-size: 0.875rem; }
.stale { color: var(--notice); }
footer { margin-top: 24px; color: var(--muted); font-size: 0.8125rem; }
