/* Leavory Status: public page (status.leavory.com). Leavory DS, dark. */
@font-face { font-family: Geist; src: url(/fonts/geist.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/plex-mono-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/plex-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --red: #c62a3d; --ink: #1e1c1b;
  --t1: #fff; --t2: rgb(255 255 255 / .68); --t3: rgb(255 255 255 / .54);
  --rule: rgb(255 255 255 / .14); --hair: rgb(255 255 255 / .08); --bound: rgb(255 255 255 / .24);
  /* states */
  --ok: #5e9e6a; --degraded: #d4a64a; --partial: #e0703f; --major: #c62a3d; --none: rgb(255 255 255 / .08);
  --sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--t1); font: 400 15px/22px var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--bound); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

header { display: flex; align-items: center; justify-content: space-between; height: 88px; border-bottom: 1px solid var(--hair); }
.lockup { display: flex; align-items: center; gap: .4em; font-size: 20px; font-weight: 540; letter-spacing: -.04em; text-decoration: none; }
.lockup img { height: 1.2em; width: auto; }
.lockup .sub { color: var(--t3); font-weight: 400; letter-spacing: -.02em; }
.label { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }

/* summary */
.summary { margin: 48px 0 28px; display: flex; align-items: center; gap: 16px; }
.summary h1 { margin: 0; font-weight: 500; font-size: 34px; line-height: 38px; letter-spacing: -.035em; }
.summary h1 .g { color: var(--t3); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--none); }

/* network error / noscript */
.notice { margin: -12px 0 28px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 10px; font-size: 13px; color: var(--t2); background: rgb(255 255 255 / .03); }

/* components */
.uptime-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 13px; color: var(--t3); }
.uptime-head h2 { margin: 0; }
.updated { font: 400 12px/1 var(--mono); color: var(--t3); }
.panel { border: 1px solid var(--rule); border-radius: 14px; background: linear-gradient(135deg, rgb(255 255 255 / .04), rgb(255 255 255 / .015)); min-height: 120px; }
.comp { padding: 22px 24px 18px; border-bottom: 1px solid var(--hair); }
.comp:last-child { border-bottom: 0; }
.comp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.comp-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-weight: 500; font-size: 17px; line-height: 22px; letter-spacing: -.02em; }
.comp-name .host { font: 400 12px/1 var(--mono); color: var(--t3); letter-spacing: 0; }
.state { font: 500 13px/1 var(--sans); white-space: nowrap; }
.bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 34px; }
.bar { border-radius: 2px; background: var(--none); cursor: default; transition: opacity .15s; }
.bar:hover { opacity: .7; }
.axis { display: flex; align-items: center; gap: 14px; margin-top: 10px; font: 400 12px/1 var(--mono); color: var(--t3); white-space: nowrap; }
.axis .line { flex: 1; height: 1px; background: var(--hair); }
.axis .d30 { display: none; }

/* state colours (by class, never inline) */
.bar.s-ok, .dot.s-ok, .legend i.s-ok { background: var(--ok); }
.bar.s-degraded, .dot.s-degraded, .legend i.s-degraded { background: var(--degraded); }
.bar.s-partial, .dot.s-partial, .legend i.s-partial { background: var(--partial); }
.bar.s-major, .dot.s-major, .legend i.s-major { background: var(--major); }
.bar.s-none, .dot.s-none, .legend i.s-none { background: var(--none); }
.state.s-ok, .tip .ts.s-ok { color: var(--ok); }
.state.s-degraded, .tip .ts.s-degraded { color: var(--degraded); }
.state.s-partial, .tip .ts.s-partial { color: var(--partial); }
.state.s-major, .tip .ts.s-major { color: var(--major); }
.state.s-none, .tip .ts.s-none { color: var(--t3); }

/* legend */
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 56px; padding: 0; list-style: none; font: 400 12px/1 var(--mono); color: var(--t3); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

footer { border-top: 1px solid var(--hair); padding: 28px 0 48px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--t3); }
footer a { text-decoration: none; color: var(--t2); }
footer a:hover { color: var(--t1); }

/* tooltip */
.tip { position: fixed; z-index: 10; pointer-events: none; min-width: 180px; max-width: 280px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: #262423; box-shadow: 0 12px 32px rgb(0 0 0 / .4); font-size: 13px; line-height: 18px; }
.tip .td { font: 500 12px/1 var(--mono); color: var(--t3); margin-bottom: 8px; }
.tip .ts { font-weight: 500; }

/* 404 */
.lost { margin: 96px 0 120px; }
.lost h1 { margin: 0 0 12px; font-weight: 500; font-size: 34px; line-height: 38px; letter-spacing: -.035em; }
.lost p { margin: 0; color: var(--t2); }
.lost a { color: var(--t1); }

@media (max-width: 640px) {
  .bars { grid-template-columns: repeat(30, 1fr); }
  .bar:nth-child(-n+60) { display: none; }
  .axis .d90 { display: none; }
  .axis .d30 { display: inline; }
  .summary h1, .lost h1 { font-size: 26px; line-height: 30px; }
  .comp { padding: 18px 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .bar { transition: none; }
}
