/* Copied unchanged from angelo-website/src/styles/tokens.css (the design baseline; DESIGN.md says copy the file,
   not single values). Re-copy it when the website's tokens change. */
/*
 * Angelo design tokens: the baseline the console and every Angelo surface follow.
 * A gallery after dark: warm charcoal walls and warm light; the raven mark (helmet teal,
 * eye mint, beak coral) supplies the accents. The sketchbook tokens are the kid side.
 * See DESIGN.md for usage rules.
 */
:root {
  /* Ink: the visor. Backgrounds and surfaces, darkest first. */
  --ink-0: #090807;
  --ink-1: #0e0c0b;
  --ink-2: #151311;
  --ink-3: #1d1a17;
  --ink-4: #2a2622;
  --line: rgba(243, 236, 226, 0.08);
  --line-2: rgba(243, 236, 226, 0.14);
  --line-3: rgba(243, 236, 226, 0.26);

  /* Text: the eyes. */
  --text: #f3ece2;
  --text-2: #bdb2a3;
  --text-3: #82786b;
  --text-on-teal: #031e22;

  /* Teal: the helmet, from deep to the mint highlight. */
  --teal-950: #04363d;
  --teal-900: #087787;
  --teal-800: #0b8a99;
  --teal-700: #1aa3ad;
  --teal-500: #27bdbf;
  --mint-300: #a1f4d6;
  --mint-100: #e6ffef;

  /* Coral: the beak. Highlights, the selected object, the one thing to look at. */
  --coral-700: #d66f55;
  --coral-500: #ef8869;
  --coral-300: #ffb79b;

  /* Data: the comparison side is neutral, never a "bad" red. */
  --data-other: #74838a;
  --data-other-soft: rgba(116, 131, 138, 0.28);
  --data-angelo: var(--teal-500);
  --ok: #6fe3b5;
  --warn: #ffcf73;
  --danger: #ff7b7b;

  /* Sketchbook: paper, graphite and the crayon box. The kid side of the brand. */
  --paper: #f4ede0;
  --paper-2: #ece3d2;
  --paper-3: #e0d4bd;
  --paper-edge: rgba(74, 58, 34, 0.14);
  --graphite: #26221d;
  --graphite-2: #574f44;
  --graphite-3: #8b8172;
  --crayon-teal: #17a2a8;
  --crayon-coral: #ee7d5c;
  --crayon-sun: #f0b429;
  --crayon-grape: #8a63d2;
  --crayon-leaf: #4aa35f;
  --crayon-sky: #3f86d8;
  --tape: rgba(250, 236, 196, 0.72);
  --cork: #b98a5c;

  --grad-helmet: linear-gradient(135deg, #087787 0%, #27bdbf 55%, #a1f4d6 100%);
  --grad-beak: linear-gradient(135deg, #ef8869 0%, #ffb79b 100%);
  --grad-text: linear-gradient(100deg, #ffd9a3 0%, #f2a65a 45%, #ef8869 100%);
  /* Gallery light: the warm spot every piece stands in. */
  --light: #ffd9a3;
  --light-soft: rgba(255, 217, 163, 0.16);

  /* Type. Inter matches the wordmark and runs the UI. */
  /* The artist: Fraunces. The kid: Gochi Hand. */
  --font-art: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-hand: "Gochi Hand", "Comic Sans MS", "Chalkboard SE", cursive;
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: var(--font-art);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-hero: clamp(2.9rem, 7.2vw, 8.4rem);
  --fs-display: clamp(2.5rem, 5.4vw, 6rem);
  --fs-h2: clamp(2rem, 3.5vw, 3.5rem);
  --fs-h3: clamp(1.2rem, 1.5vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1.2vw, 1.28rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.72rem;
  --track-display: -0.045em;
  --track-tight: -0.02em;
  --track-mono: 0.08em;

  /* Space and layout. */
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(96px, 13vw, 190px);
  --max: 1440px;
  --nav-h: 76px;

  /* Shape. */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Motion: quick to respond, slow to settle. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 0.18s;
  --dur-2: 0.36s;
  --dur-3: 0.8s;

  /* Elevation. */
  --shadow-1: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --shadow-2: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 120px -40px rgba(0, 0, 0, 0.85);
  --glow-teal: 0 0 0 1px rgba(39, 189, 191, 0.4), 0 12px 48px -12px rgba(39, 189, 191, 0.55);
  --glass: rgba(21, 19, 17, 0.62);
  --blur: saturate(140%) blur(18px);
}

/* Reset, type and controls, following angelo-website/src/styles/base.css (same names, same values). */

/* One deliberate change to the copied tokens: tertiary text is lifted a step so the small mono
   labels pass WCAG AA (4.5:1) on the cards as well as on the wall. */
:root {
  --text-3: #9a8f80;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink-1);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(70% 620px at 22% 0%, var(--light-soft), transparent 70%),
    radial-gradient(50% 460px at 100% 0%, rgba(39, 189, 191, 0.07), transparent 70%),
    var(--ink-1);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--teal-500);
  color: var(--text-on-teal);
}

:focus-visible {
  outline: 2px solid var(--mint-300);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--mint-300);
  color: var(--text-on-teal);
  font-weight: 600;
}
.skip:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Film grain keeps the large dark fields from banding. Still here: the page is calm. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
}

.lead {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
  max-width: 58ch;
}

.quiet {
  margin: 0;
  color: var(--text-3);
}
.quiet a,
.lead a {
  color: var(--mint-300);
  text-decoration: underline;
  text-decoration-color: rgba(161, 244, 214, 0.35);
  text-underline-offset: 3px;
}

.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color var(--dur-2), box-shadow var(--dur-2), color var(--dur-2);
}
.btn--ghost {
  background: rgba(230, 255, 244, 0.04);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost:hover {
  background: rgba(230, 255, 244, 0.08);
  box-shadow: inset 0 0 0 1px var(--line-3);
}
.btn--primary {
  background: var(--grad-helmet);
  color: var(--text-on-teal);
  box-shadow: 0 12px 48px -12px rgba(39, 189, 191, 0.55);
}
.btn--primary:hover {
  box-shadow: var(--glow-teal);
}
.btn--sm {
  --h: 38px;
  padding: 0 16px;
  font-size: 0.85rem;
}

.card,
.comp,
.incident {
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(33, 30, 27, 0.78), rgba(20, 18, 16, 0.78));
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Page layout: header, section heads, "How we check" and the footer. */

/* ---------- Header ---------- */

.top__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--nav-h);
}
.top__brand img {
  height: 30px;
  width: auto;
}
.top__label {
  padding-left: 16px;
  border-left: 1px solid var(--line-2);
  color: var(--text-2);
  line-height: 22px;
}
.top__feed {
  margin-left: auto;
}

/* ---------- Sections ---------- */

.block {
  padding-block: clamp(28px, 4vw, 52px);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  padding-bottom: 18px;
  margin-bottom: clamp(24px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--text-3);
}
.section-head__title {
  margin: 0;
  font: inherit;
  color: var(--text-2);
}
.section-head b {
  color: var(--mint-300);
  font-weight: 500;
}
.section-head--alert b {
  color: var(--warn);
}
.tone-down .section-head--alert b {
  color: var(--danger);
}

/* ---------- How we check ---------- */

.method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  margin: 0;
}
.method div {
  display: grid;
  gap: 8px;
  align-content: start;
}
.method dt {
  color: var(--light);
  font-size: 0.62rem;
}
.method dd {
  margin: 0;
  color: var(--text-2);
}
.method__links {
  margin-top: 32px;
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */

.foot {
  margin-top: clamp(32px, 5vw, 64px);
}
.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 0.6fr)) minmax(0, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.foot__cols > div {
  display: grid;
  align-content: start;
  gap: 10px;
}
.foot__cols h2 {
  margin: 0 0 6px;
  font-weight: 500;
  color: var(--text-3);
}
.foot__cols a {
  color: var(--text-2);
  font-size: 0.92rem;
  transition: color var(--dur-2);
  overflow-wrap: anywhere;
}
.foot__cols a:hover {
  color: var(--mint-300);
}
.foot__help a {
  color: var(--text);
}
.foot__help p {
  margin: 0;
  color: var(--text-3);
  font-size: 0.82rem;
}
.foot__word {
  width: 100%;
  height: auto;
  margin-top: clamp(48px, 7vw, 96px);
  opacity: 0.07;
}
.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 24px 0 32px;
  color: var(--text-3);
  font-size: 0.6rem;
}

/* ---------- 404 and 405: a serif line, the way back, and "Still in the marble" beside it ---------- */

.missing {
  min-height: calc(100svh - var(--nav-h) - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: 40px;
}
/* The game's host (public/assets/after-hours): the mark under the lamp until the canvas draws. */
.missing__stage {
  position: relative;
  order: 2;
  width: 100%;
  aspect-ratio: 1 / 1.02;
  max-height: 600px;
  min-height: 300px;
}
.missing__piece {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.missing__light {
  position: absolute;
  inset: 12% 22% 32%;
  background: radial-gradient(closest-side at 50% 42%, rgba(255, 217, 163, 0.2), rgba(255, 217, 163, 0.05) 60%, transparent);
}
.missing__mark {
  position: relative;
  width: min(34%, 150px);
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
}
.missing__eyebrow {
  margin: 0 0 18px;
  color: var(--light);
}
.missing__title {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
}
.missing__lead {
  margin: 18px 0 0;
  max-width: 46ch;
}
.missing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
}
@media (max-width: 900px) {
  .missing {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 12px 40px;
    text-align: center;
  }
  .missing__stage {
    order: 0;
    aspect-ratio: auto;
    height: clamp(320px, 96vw, 420px);
  }
  .missing__lead {
    margin-inline: auto;
  }
  .missing__actions {
    justify-content: center;
  }
}
.missing__legal {
  display: flex;
  gap: 20px;
}
.missing__legal a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .method {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .foot__help {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .top__label {
    padding-left: 12px;
  }
  .method {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The hero: the current state as the headline, a few hard numbers, and the mark under gallery light. */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 7vw, 104px) 0 clamp(24px, 4vw, 56px);
}
.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 24px;
  color: var(--light);
}
.hero__checked {
  color: var(--text-3);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.live__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
}
.live__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  opacity: 0;
  animation: live 2.8s var(--ease-out) infinite;
}
@keyframes live {
  0% { transform: scale(0.4); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.tone-quiet .live__dot { background: var(--text-3); box-shadow: none; }
.tone-quiet .live__dot::after { display: none; }

.hero__title {
  margin: 0;
  font-family: var(--font-art);
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 0;
  font-size: clamp(2.7rem, 6.4vw, 6.2rem);
  font-weight: 540;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #fbf6ee;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.hero__title--incident {
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
  line-height: 1.04;
}
.hero__lead {
  margin-top: 26px;
}
.hero__more {
  margin: 24px 0 0;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
/* Labels may wrap on narrow screens; the numbers still share one baseline row. */
.specs div {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
}
.specs dt {
  color: var(--text-3);
  font-size: 0.64rem;
}
.specs dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: var(--track-tight);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.specs dd span {
  color: var(--text-3);
  font-weight: 500;
}

/* The mark hangs on the wall under its own warm light. */
.hero__piece {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(280px, 30vw, 420px);
}
.hero__light {
  position: absolute;
  inset: -30% 0 4%;
  background: radial-gradient(46% 62% at 50% 34%, rgba(255, 217, 163, 0.22), rgba(255, 217, 163, 0.06) 55%, transparent 76%);
  clip-path: polygon(41% 0, 59% 0, 100% 100%, 0 100%);
  filter: blur(22px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 78%, transparent 100%);
}
.hero__mark {
  position: relative;
  width: clamp(150px, 16vw, 230px);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 60px rgba(255, 217, 163, 0.12));
}
.hero__plinth {
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: 46%;
  height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.6), transparent 70%);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__piece {
    display: none;
  }
}
@media (max-width: 640px) {
  .specs {
    gap: 16px;
  }
  .specs dd {
    font-size: 1.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live__dot::after {
    display: none;
  }
}

/* Component cards: state chip, response time, uptime and the 90 daily bars; dependencies; legend. */

.comps,
.deps,
.legend,
.pasts,
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comps {
  display: grid;
  gap: 14px;
}
.comp {
  padding: clamp(20px, 2.6vw, 32px);
}
.comp--down {
  box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(255, 123, 123, 0.35);
}
.comp--degraded {
  box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(255, 207, 115, 0.3);
}
.comp__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.comp__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: var(--track-tight);
}
.comp__desc {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 0.92rem;
}
.comp__state {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: none;
}
.comp__since {
  color: var(--text-3);
  font-size: 0.6rem;
}

.state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  --c: var(--text-3);
  color: var(--c);
  background: color-mix(in srgb, var(--c) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 34%, transparent);
}
.state__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.state--operational { --c: var(--ok); }
.state--degraded { --c: var(--warn); }
.state--down { --c: var(--danger); }
.state--unknown .state__dot { box-shadow: none; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  margin: 18px 0 0;
}
.meta div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.meta dt {
  color: var(--text-3);
  font-size: 0.62rem;
}
.meta dd {
  margin: 0;
}
.meta__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.meta__value--muted {
  color: var(--text-3);
  font-weight: 500;
}

.bars {
  display: flex;
  gap: 3px;
  height: 40px;
  margin-top: 22px;
}
.bar {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
  transition: filter var(--dur-1), transform var(--dur-1) var(--ease-out);
  transform-origin: bottom;
}
.bar--ok { background: linear-gradient(180deg, rgba(161, 244, 214, 0.92), rgba(39, 189, 191, 0.62)); }
.bar--degraded { background: linear-gradient(180deg, #ffdc96, rgba(255, 207, 115, 0.66)); }
.bar--down { background: linear-gradient(180deg, #ff9a9a, rgba(255, 123, 123, 0.7)); }
.bar--none { background: rgba(243, 236, 226, 0.055); }
.bar:hover {
  filter: brightness(1.25);
  transform: scaleY(1.08);
}
.bar::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  z-index: 5;
  transform: translateX(-50%) translateY(4px);
  padding: 7px 11px;
  border-radius: var(--r-xs);
  background: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.bar:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.bar:nth-child(-n + 14)::after { left: 0; transform: translateY(4px); }
.bar:nth-child(-n + 14):hover::after { transform: translateY(0); }
.bar:nth-last-child(-n + 14)::after { left: auto; right: 0; transform: translateY(4px); }
.bar:nth-last-child(-n + 14):hover::after { transform: translateY(0); }

.axis {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: var(--text-3);
  font-size: 0.6rem;
}
.axis__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.axis__narrow {
  display: none;
}

.deps {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.dep {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.dep__by {
  margin-left: 8px;
  color: var(--text-3);
  font-size: 0.62rem;
  vertical-align: 2px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  color: var(--text-3);
  font-size: 0.6rem;
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .comp__head,
  .dep {
    flex-direction: column;
    align-items: flex-start;
  }
  .comp__state {
    justify-items: start;
    grid-auto-flow: column;
    align-items: center;
    gap: 12px;
  }
  /* The most recent 45 days: bars stay wide enough to read. */
  .bars {
    gap: 2px;
    height: 34px;
  }
  .bar--old {
    display: none;
  }
  .axis__wide {
    display: none;
  }
  .axis__narrow {
    display: inline;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar:hover {
    transform: none;
  }
}

/* Active incidents with their timelines, and the last 14 days of resolved ones. */

.incidents {
  display: grid;
  gap: 16px;
}
.incident {
  padding: clamp(24px, 3vw, 40px);
  background: radial-gradient(90% 140% at 0% 0%, rgba(255, 207, 115, 0.08), transparent 60%), var(--ink-2);
  box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(255, 207, 115, 0.28);
}
.tone-down .incident {
  background: radial-gradient(90% 140% at 0% 0%, rgba(255, 123, 123, 0.08), transparent 60%), var(--ink-2);
  box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(255, 123, 123, 0.32);
}
.incident__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.incident__started {
  color: var(--text-3);
  font-size: 0.62rem;
}
.incident__title {
  margin: 18px 0 0;
  font-family: var(--font-art);
  font-variation-settings: "opsz" 96, "SOFT" 50, "WONK" 0;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.incident__affects {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 0.64rem;
}
.incident__affects span {
  color: var(--text-3);
  margin-right: 6px;
}
.incident__body,
.past__text {
  color: var(--text-2);
}
.incident__body p,
.past__text p {
  margin: 14px 0 0;
}
.incident__body a,
.past__text a,
.timeline__text a {
  color: var(--mint-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ichip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  --c: var(--text-2);
  color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 36%, transparent);
}
.ichip--investigating { --c: var(--danger); }
.ichip--identified { --c: var(--warn); }
.ichip--monitoring { --c: var(--mint-300); }
.ichip--resolved { --c: var(--ok); }

.timeline {
  display: grid;
  gap: 22px;
  margin-top: 28px;
  padding-left: 22px;
  border-left: 1px solid var(--line-2);
}
.timeline__item {
  position: relative;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -26.5px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-1);
  box-shadow: inset 0 0 0 1.5px var(--line-3);
}
.timeline__item:first-child::before {
  background: var(--light);
  box-shadow: 0 0 12px var(--light);
}
.timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  color: var(--text-3);
  font-size: 0.62rem;
}
.timeline__text {
  margin: 10px 0 0;
  color: var(--text);
  max-width: 68ch;
}

.pasts {
  display: grid;
}
.past {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 12px 40px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.past:first-child {
  border-top: 0;
  padding-top: 0;
}
.past__when {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 0.62rem;
}
.past__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: var(--track-tight);
}
.past__text {
  margin: 10px 0 0;
  max-width: 68ch;
}
.past__more {
  margin-top: 14px;
}
.past__more summary {
  cursor: pointer;
  color: var(--mint-300);
  font-size: 0.62rem;
}
.past__more .timeline {
  margin-top: 18px;
}

@media (max-width: 640px) {
  .past {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}
