/* status.sayscreen.com: the layout of a classic status page (owner, 2026-11-18: "the simple look of status.claude.com... clean,
   minimalistic"), in sayscreen.com's colors (site/app/globals.css, .dark). System fonts: nothing to load. */
:root {
  color-scheme: dark;
  --bg: oklch(0.179 0.005 219.8);
  --fg: oklch(0.95 0.003 165.1);
  --card: oklch(0.214 0.006 214.4);
  --muted: oklch(0.708 0.01 189);
  --border: oklch(1 0 0 / 9%);
  --brand: oklch(0.751 0.116 182.2);
  /* The status palette (site/lib/status.ts): reserved for state, and always beside words that say it. Text gets lighter tints. */
  --ok: #0ca30c;
  --slow: #fab219;
  --down: #d03b3b;
  --none: oklch(0.29 0.008 211.1);
  --ok-text: #4ade80;
  --slow-text: #fbbf24;
  --down-text: #f87171;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.quiet { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- header */
.top { padding: 40px 0 32px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { flex: none; }
.brand h1, .brand-name { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; color: var(--muted); }
.brand h1 span, .brand-name span { color: var(--fg); font-weight: 650; }
.button {
  flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid oklch(1 0 0 / 14%); font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background-color 0.15s;
}
.button:hover { background: oklch(1 0 0 / 6%); }
a:focus-visible, .bar-strip:focus-visible, .info:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 420px) { .brand h1, .brand-name { font-size: 19px; } .button { padding: 0 10px; } }

/* ---------------------------------------------------------------- right now */
.now { border-radius: 12px; border: 1px solid var(--border); background: var(--card); padding: 18px 20px; }
.now-head { display: flex; align-items: center; gap: 12px; }
.now-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.now-when { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--none); }
.now-ok { border-color: color-mix(in oklch, var(--ok) 45%, transparent); background: color-mix(in oklch, var(--ok) 9%, var(--card)); }
.now-ok .dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in oklch, var(--ok) 25%, transparent); }
.now-slow { border-color: color-mix(in oklch, var(--slow) 50%, transparent); background: color-mix(in oklch, var(--slow) 8%, var(--card)); }
.now-slow .dot { background: var(--slow); box-shadow: 0 0 0 4px color-mix(in oklch, var(--slow) 25%, transparent); }
.now-down { border-color: color-mix(in oklch, var(--down) 55%, transparent); background: color-mix(in oklch, var(--down) 10%, var(--card)); }
.now-down .dot { background: var(--down); box-shadow: 0 0 0 4px color-mix(in oklch, var(--down) 25%, transparent); }
.now-list { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.now-list li { font-size: 14px; }
.now-list strong { font-weight: 600; }
.now-list .meta { color: var(--muted); }
.now-note { margin-top: 12px; color: var(--muted); font-size: 14px; }
@media (max-width: 520px) {
  .now-head { flex-wrap: wrap; row-gap: 2px; }
  .now-when { margin-left: 24px; width: 100%; }
}

/* ---------------------------------------------------------------- the parts */
.parts { margin-top: 40px; }
.parts-caption { display: flex; justify-content: flex-end; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.card { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.part { padding: 18px 20px 16px; }
.part + .part { border-top: 1px solid var(--border); }
.part-head { display: flex; align-items: center; gap: 8px; }
.part-head h3 { font-size: 15px; font-weight: 600; }
.state { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.state-operational { color: var(--ok-text); }
.state-degraded { color: var(--slow-text); }
.state-outage { color: var(--down-text); }
.part-what { color: var(--muted); font-size: 13px; margin-top: 2px; }
.part-note { color: var(--fg); font-size: 13px; margin-top: 2px; }
/* The ⓘ beside a part's name: what it covers, on hover or focus (a tap on a phone). */
.info { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: var(--muted); cursor: help; }
.info svg { width: 14px; height: 14px; }
.info:hover, .info:focus-visible { color: var(--fg); }
.info .tip-text {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 240px;
  padding: 6px 10px; border-radius: 6px; background: oklch(0.27 0.008 211.1); color: var(--fg); font-size: 12px; line-height: 1.45;
  font-weight: 400; box-shadow: 0 6px 20px rgb(0 0 0 / 0.4); border: 1px solid var(--border); visibility: hidden; opacity: 0;
  transition: opacity 0.12s; z-index: 5; pointer-events: none;
}
.info:hover .tip-text, .info:focus .tip-text { visibility: visible; opacity: 1; }

.bar-strip { display: flex; gap: 2px; height: 34px; margin-top: 12px; }
.bar { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--none); transition: opacity 0.12s; }
.bar.operational { background: var(--ok); }
.bar.degraded { background: var(--slow); }
.bar.outage { background: var(--down); }
.bar-strip:hover .bar { opacity: 0.65; }
.bar-strip:hover .bar:hover { opacity: 1; }
/* A phone shows the last 30 days: 90 bars there would be hairlines. */
@media (max-width: 599px) { .bar.old { display: none; } }
.bar-foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.bar-foot .line { flex: 1; height: 1px; background: var(--border); }
.bar-foot .wide { display: none; }
@media (min-width: 600px) { .bar-foot .wide { display: inline; } .bar-foot .narrow { display: none; } }

/* The day under the pointer. */
.tip {
  position: absolute; z-index: 10; width: max-content; max-width: 260px; padding: 8px 10px; border-radius: 8px;
  background: oklch(0.27 0.008 211.1); border: 1px solid var(--border); box-shadow: 0 8px 24px rgb(0 0 0 / 0.45);
  font-size: 12px; line-height: 1.5; pointer-events: none;
}
.tip strong { display: block; font-weight: 600; }
.tip span { display: block; color: var(--muted); }

/* ---------------------------------------------------------------- past incidents */
.history { margin-top: 56px; }
.history > h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.day { margin-top: 24px; }
.day h3 { font-size: 15px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.day .quiet { margin-top: 10px; }
.incident { margin-top: 14px; }
.incident h4 { margin: 0; font-size: 15px; font-weight: 600; }
.incident.outage h4 { color: var(--down-text); }
.incident.degraded h4 { color: var(--slow-text); }
.incident p { font-size: 14px; margin-top: 3px; }
.incident .when { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: 64px; padding-top: 24px; padding-bottom: 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot a { color: var(--fg); text-underline-offset: 3px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
