/* Probably Fine Labs status: the pflabs brand (monochrome, Inter, the ring);
   colour only where it says something: fine, degraded, down, paused. */
@font-face { font-family: "Inter"; src: url("inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #000; --surface: #0a0a0a; --ink: #fff; --muted: #8f8f8f; --line: #222; --hl: #6b6b6b;
  --ok: #4ade80; --warn: #fbbf24; --bad: #f87171; --idle: #6b6b6b; --none: #1c1c1c;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #fff; --surface: #fafafa; --ink: #0a0a0a; --muted: #666; --line: #e6e6e6; --hl: #a1a1a1;
    --ok: #16a34a; --warn: #d97706; --bad: #dc2626; --idle: #a1a1a1; --none: #ededed; color-scheme: light; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }
.label { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin: 36px 0 12px; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px max(24px, calc((100vw - 1040px) / 2 + 24px)); border-bottom: 1px solid var(--line); max-width: none; }
.logo { display: flex; align-items: center; gap: .42em; font-weight: 600; font-size: 17px; letter-spacing: -.04em; }
.logo .ring { width: 1.44em; height: 1.44em; }
.faded { color: var(--hl); }
.back { color: var(--muted); font-size: 14px; }
.back:hover { color: var(--ink); }

.hero { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 44px 0 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; border: 1px solid var(--line); background: var(--surface);
  padding: 6px 12px; border-radius: 999px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--idle); box-shadow: 0 0 0 3px color-mix(in srgb, var(--idle) 25%, transparent); }
.s-operational .dot { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.s-degraded .dot { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 25%, transparent); }
.s-outage .dot { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 25%, transparent); }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -.045em; font-weight: 600; margin: 20px 0 14px; }
h1 em { font-style: normal; color: var(--hl); display: block; }
.lede { font-size: 17px; color: var(--muted); max-width: 620px; }
.big { position: relative; width: 190px; height: 190px; }
.big svg { width: 100%; height: 100%; }
.big .in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.big .pct { font-size: 28px; font-weight: 600; letter-spacing: -.04em; }
.big .sub { font-size: 12.5px; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.svc { padding: 18px 0 14px; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; }
.svc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.svc-head b { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.state { font-size: 13px; color: var(--muted); }
.state.degraded { color: var(--warn); } .state.outage { color: var(--bad); }
.svc-head .up { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.mark { width: 16px; height: 16px; flex: none; }
.bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 30px; }
.bars i { display: block; border-radius: 2px; background: var(--none); }
.bars i.operational { background: var(--ok); opacity: .85; }
.bars i.degraded { background: var(--warn); }
.bars i.outage { background: var(--bad); }
.bars i.maintenance { background: var(--idle); opacity: .6; }
.bars i:hover { outline: 1.5px solid var(--ink); outline-offset: 1px; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--hl); margin-top: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend i.operational { background: var(--ok); } .legend i.degraded { background: var(--warn); } .legend i.outage { background: var(--bad); }
.legend i.maintenance { background: var(--idle); } .legend i.none { background: var(--none); }

.inc { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.inc:first-child { border-top: 0; }
.inc .when { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }
.tag { font-size: 11px; border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; color: var(--muted); white-space: nowrap; }
.tag.on { color: var(--ink); border-color: var(--ink); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted);
  padding-top: 28px; padding-bottom: 32px; margin-top: auto; }
.foot a:hover { color: var(--ink); }
main { padding-bottom: 24px; }

@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; }
  .big { display: none; }
  .bars { grid-template-columns: repeat(45, 1fr); }
  .bars i:nth-child(-n+45) { display: none; }
  .axis .old { visibility: hidden; }
  .inc { flex-wrap: wrap; }
  .inc .when { margin-left: 0; text-align: left; width: 100%; }
}
