/* Ophis "Steep" tokens (apps/frontend/apps/ophis-landing/scripts/tokens-to-css.mjs) plus three
   status colours. Text, dots and white space: no cards, no rules, no decoration. */
:root {
  --bg: #ffffff;
  --ink: #17191c;
  --muted: #5b5f68;
  --faded: #6e737d;
  --peach: #fbe1d1;
  --up: #1d7a50;
  --warn: #c9820a;
  --warn-ink: #8a5200;
  --down: #b93025;
  --none: #c7c9cf;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0 auto;
  max-width: 920px;
  padding: 0 24px 64px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Neue Haas Unica Pro', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.quiet { color: var(--faded); font-size: 14px; }

header { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
header nav { display: flex; gap: 22px; font-size: 14px; }
header nav a { color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; text-decoration: none; }
.brand span { color: var(--faded); font-weight: 400; }

h1, h2 { font-family: Georgia, 'Times New Roman', ui-serif, serif; font-weight: 400; letter-spacing: -0.015em; }
h1 { margin: 56px 0 0; font-size: clamp(1.7rem, 4.6vw, 2.25rem); line-height: 1.2; }
h1 .dot { width: 0.42em; height: 0.42em; margin-right: 0.42em; vertical-align: 0.14em; }
#summary { margin: 8px 0 0; }
h2 { margin: 44px 0 6px; font-size: 1.25rem; line-height: 1.3; }

/* A state is a dot. Whatever is not operational also says so in words. */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--none); }
.up { background: var(--up); fill: var(--up); }
.warn { background: var(--warn); fill: var(--warn); }
.down { background: var(--down); fill: var(--down); }
.none { fill: var(--none); }

/* A note written by hand while an incident lasts */
.note { margin: 28px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--peach); }
.note strong { display: block; font-weight: 600; }
.note time { color: var(--muted); font-size: 13px; }

.switch { display: flex; justify-content: flex-end; gap: 18px; margin-top: 40px; }
.switch + #groups h2:first-child { margin-top: -26px; }
.switch button { border: 0; padding: 2px 0; background: none; color: var(--faded); font: inherit; font-size: 14px; cursor: pointer; }
.switch button[aria-pressed='true'] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

ul { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 9px minmax(130px, 1fr) 70px minmax(0, 540px);
  align-items: center;
  gap: 2px 14px;
  padding-block: 7px;
}
.row .num { color: var(--muted); font-size: 14px; text-align: right; }
.row .strand { display: block; width: 100%; height: 12px; overflow: visible; }
.row .why { grid-column: 2 / -1; font-size: 14px; }
.why.is-warn { color: var(--warn-ink); }
.why.is-down { color: var(--down); }

.event { display: grid; grid-template-columns: 120px 1fr; gap: 0 14px; padding-block: 7px; }
.event time, .event .more { color: var(--faded); font-size: 14px; }
.event p { margin: 0; }

footer { margin-top: 64px; }
footer p { max-width: 72ch; margin: 0; }

@media (max-width: 720px) {
  h1 { margin-top: 36px; }
  .row { grid-template-columns: 9px 1fr auto; }
  .row .strand, .row .why { grid-column: 1 / -1; }
  .event { grid-template-columns: 1fr; }
}
