/* bullseye.li's palette and type (bullseye_website src/styles/tailwind.css),
   at the product's calmer scale. Status colours are the only additions. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2-variations");
}

:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --paper-2: #eeeae0;
  --sheet: #fffefb;
  --ink: #17171c;
  --ink-2: #3a3a44;
  --ash: #6b6b76;
  --rule: #ddd8cb;
  --brand: #5b4bd6;
  --marker: #e3dcff;
  --up: #2f8f5b;
  --part: #c98a12;
  --down: #c8443c;
  --none: #e4dfd2;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121215;
  --paper-2: #1a1a1f;
  --sheet: #1d1d23;
  --ink: #f1eee6;
  --ink-2: #c8c5bc;
  --ash: #8f8c96;
  --rule: #2e2d35;
  --brand: #a497fb;
  --marker: #3a3266;
  --up: #4cb37d;
  --part: #e0a83a;
  --down: #e0675f;
  --none: #2e2d35;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.55 "Inter Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

.nav { border-bottom: 1px solid var(--rule); background: var(--paper); }
.nav-row { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.mark { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.word { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.theme {
  width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
}
.theme:hover { background: var(--paper-2); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

main.wrap { padding-top: 32px; display: grid; gap: 20px; }
.sheet {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.03), 0 8px 24px -16px rgb(0 0 0 / 0.12);
  padding: 22px 24px;
}
.banner { display: flex; gap: 14px; align-items: flex-start; }
.banner h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.banner .sub { margin: 2px 0 0; color: var(--ash); }
.dot { flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--none); }
.dot.up, .live {
  /* The admin dashboard's "online" light (user-presence.tsx): emerald-500 with a
     soft ring, pulsing like Tailwind's animate-pulse. */
  background: #10b981;
  box-shadow: 0 0 0 4px rgb(16 185 129 / 0.18);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .dot.up, .live { animation: none; } }
.dot.part { background: var(--part); box-shadow: 0 0 0 4px color-mix(in srgb, var(--part) 18%, transparent); }
.dot.down { background: var(--down); box-shadow: 0 0 0 4px color-mix(in srgb, var(--down) 18%, transparent); }

.head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.kicker {
  margin: 0; color: var(--ash);
  font: 500 11px/1.6 "JetBrains Mono Variable", ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.hint { margin: 0; color: var(--ash); font-size: 12.5px; }

ul { list-style: none; margin: 0; padding: 0; }
.components li { padding: 16px 0; border-top: 1px solid var(--rule); }
.components li:first-child { border-top: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.name { font-weight: 600; }
.state { font-size: 13px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px rgb(16 185 129 / 0.18); }
.state.up { color: var(--up); }
.state.down { color: var(--down); }
.bars { display: flex; gap: 2px; height: 30px; margin: 10px 0 6px; }
.bar { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--none); }
.bar.up { background: var(--up); }
.bar.part { background: var(--part); }
.bar.down { background: var(--down); }
.scale { display: flex; justify-content: space-between; color: var(--ash); font-size: 12px; }
.scale .pct { color: var(--ink-2); }

.incidents li { padding: 12px 0; border-top: 1px solid var(--rule); }
.incidents li:first-child { border-top: 0; }
.incidents .empty { color: var(--ash); }
.incidents .when { color: var(--ash); font-size: 12.5px; }
.incidents .open { color: var(--down); font-weight: 600; }

.foot { padding-top: 24px; padding-bottom: 40px; color: var(--ash); font-size: 12.5px; }
.foot p { margin: 4px 0; }

@media (max-width: 560px) {
  .sheet { padding: 18px 16px; }
  .bars { gap: 1px; height: 26px; }
  .bar.old { display: none; } /* phones show the last 30 days */
  .head { flex-direction: column; gap: 0; }
}
