/* status.slopped.site. Hand-written; status/scripts/build.mjs doesn't touch it. Brand tokens and type as on
   slopped.site (slopped-brand). The idea: a meter-reader's ledger. Ruled section heads like growth's, the verdict as the
   H1, every site one ruled row, and 30 days as strips of slots. State is always a word and a shape (circle up,
   triangle slow, crossed square down), never colour alone; text is ink or muted, acid only ever a fill. Phone first. */
@font-face { font-family: "Archivo Black"; src: url(/fonts/archivo-black-latin.woff2) format("woff2"); font-weight: 400 1000; font-display: swap; }
@font-face { font-family: "Archivo Black Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Noto Sans Bold"), local("NotoSans-Bold"); size-adjust: 112%; }
:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --ink: #171815;
  --acid: #e3ff59;
  --orange: #ffa53d;
  --pink: #ff8cc6;
  --muted: #6b6b62;
  --line: #d4d2c9;
  --panel: #ebe7dc;
  --focus: #728600;
  --head: "Archivo Black", "Arial Black", "Archivo Black Fallback", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { min-width: 320px; margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
a { color: inherit; }
:where(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 1000; letter-spacing: -1.5px; line-height: 1.02; font-synthesis: none; }
img { max-width: 100%; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.wrap { max-width: 1440px; margin: auto; padding: 0 5%; }
main:focus { outline: none; }
html:not(.can-install) [data-install] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 15px Arial, Helvetica, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pill:hover { background: var(--acid); }
.pill.dark { background: var(--ink); color: var(--paper); }
.pill.dark:hover { background: #33342f; }
.pill[aria-busy="true"] { cursor: progress; background: #33342f; }

/* the verdict */
.intro { padding: 48px 0 40px; }
.intro h1 { max-width: 15ch; font-size: clamp(46px, 7.6vw, 120px); letter-spacing: -3px; overflow-wrap: break-word; }
.intro h1 .turn { display: block; color: var(--muted); }
.checkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.when { margin: 0; font-size: 16px; max-width: 60ch; }
.snapshot-note { max-width: 720px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--ink); border-radius: 9px; background: var(--panel); font-size: 15px; }
.js .snapshot-note { display: none; }
.tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 36px 0 0; border-top: 2px solid var(--ink); }
.tally div { padding: 14px 16px 0 0; border-right: 1px solid var(--line); }
.tally div + div { padding-left: 16px; }
.tally div:last-child { border-right: 0; }
.tally dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.tally dd { margin: 4px 0 0; font: 1000 clamp(34px, 4.4vw, 64px)/1 var(--head); letter-spacing: -2px; font-variant-numeric: tabular-nums; font-synthesis: none; }
.tally div.hot dd { display: inline-block; padding: 0 .12em; background: var(--orange); }
.tally div.hot[data-k="down"] dd { background: var(--pink); }

/* ruled section heads, as on growth */
.part { padding-bottom: 64px; }
.part-head { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 600px); gap: 12px 48px; align-items: end; justify-content: space-between; padding-top: 26px; margin-bottom: 26px; border-top: 2px solid var(--ink); }
.part-head h2 { font-size: clamp(40px, 5.6vw, 80px); letter-spacing: -2.5px; }
.who { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.sub-h { margin: 34px 0 12px; font-size: 26px; letter-spacing: -.8px; }

/* the shapes: circle up (acid), triangle slow (orange), crossed square down (ink), hollow circle not checked */
.shape { width: 16px; height: 16px; flex: none; overflow: visible; }
.shape .f-up { fill: var(--acid); stroke: var(--ink); stroke-width: 1.6; }
.shape .f-slow { fill: var(--orange); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.shape .f-down { fill: var(--ink); stroke: var(--ink); stroke-width: 1.6; }
.shape .x { stroke: var(--paper); stroke-width: 2; stroke-linecap: round; }
.shape .f-none { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 2.6 2.4; }

/* the rows */
.sites { width: 100%; border-collapse: collapse; font-size: 15px; }
.sites thead th { padding: 0 12px 10px 0; color: var(--muted); font-size: 13px; font-weight: 700; text-align: left; border-bottom: 1px solid var(--ink); }
.sites td, .sites tbody th { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.sites tbody th { font-weight: 700; font-size: 17px; white-space: nowrap; }
.sites tbody th a { text-decoration: none; }
.sites tbody th a:hover { text-decoration: underline; }
.domain { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.state { white-space: nowrap; }
.state > * { vertical-align: -2px; }
.state .word { margin-left: 8px; font-weight: 700; }
.state[data-state="down"] .word { padding: 1px 6px; background: var(--pink); }
.state[data-state="checking"] .shape { animation: breathe 1.1s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: 1 } to { opacity: .25 } }
.ms { font-variant-numeric: tabular-nums; white-space: nowrap; }
.deployed time { margin-left: 6px; }
.deployed .note { display: block; color: var(--muted); font-size: 13px; }
.data .differs { font-weight: 700; padding: 0 4px; background: var(--orange); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 7px; }

/* 30 days */
.strips { display: grid; gap: 0; }
.strip-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 92px; gap: 6px 16px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.strip-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-name a { text-decoration: none; }
.strip-pct { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.strip-pct small { display: block; color: var(--muted); font-size: 12px; }
.strip svg { display: block; width: 100%; height: 24px; }
.strip .bg { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.strip .u { fill: var(--acid); }
.strip .s { fill: var(--orange); }
.strip .d { fill: var(--ink); }
.strip .gap { fill: url(#gap); }
.axis { display: grid; grid-template-columns: 150px minmax(0, 1fr) 92px; gap: 16px; color: var(--muted); font-size: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.axis .ends { display: flex; justify-content: space-between; }
.empty { color: var(--muted); margin: 0; }
.began { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.strip-legend { margin-top: 14px; }
.strip-legend .sw { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--ink); }
.sw.u { background: var(--acid); } .sw.s { background: var(--orange); } .sw.d { background: var(--ink); }
.sw.gap { background: repeating-linear-gradient(135deg, var(--paper) 0 3px, var(--line) 3px 5px); }
.incidents { margin: 0; padding: 0; list-style: none; max-width: 820px; }
.incidents li { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.incidents li .shape { transform: translateY(2px); }
.incidents li.empty { display: block; }
.incidents .ongoing { font-weight: 700; padding: 0 4px; background: var(--pink); }

/* deploys */
.deploys { margin: 0; padding: 0; list-style: none; columns: 2 320px; column-gap: 48px; }
.deploys li { break-inside: avoid; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.deploys li b { min-width: 9em; }
.deploys time { color: var(--muted); font-size: 14px; }

/* what's checked */
.rules { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.rules li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.capacity { margin: 28px 0 0; padding: 14px 16px; border-left: 6px solid var(--acid); background: var(--panel); max-width: 820px; }

footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .brand img { width: 150px; height: auto; display: block; }
footer p { margin: 0; }

@media (max-width: 900px) {
  .part-head { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .intro { padding: 30px 0 30px; }
  .intro h1 { letter-spacing: -2px; }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tally div:nth-child(2) { border-right: 0; }
  .tally div:nth-child(3) { padding-left: 0; }
  .tally div:nth-child(n+3) { margin-top: 12px; border-top: 1px solid var(--line); }
  /* the table becomes one block per site: name and state on a line, then answer, deploy and data */
  .sites thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sites, .sites tbody, .sites tr { display: block; }
  .sites tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sites td, .sites tbody th { display: block; padding: 0; border: 0; }
  .sites tbody th { grid-column: 1; grid-row: 1 / span 2; white-space: normal; }
  .sites .state { grid-column: 2; grid-row: 1; justify-self: end; }
  .sites .ms { grid-column: 2; grid-row: 2; justify-self: end; color: var(--muted); font-size: 13px; }
  .sites .deployed { margin-top: 6px; }
  .sites .deployed, .sites .data { grid-column: 1 / -1; font-size: 14px; }
  .sites .deployed::before { content: "Deployed "; color: var(--muted); }
  .sites .data::before { content: "Data: "; color: var(--muted); }
  .strip-row, .axis { grid-template-columns: minmax(0, 1fr) auto; }
  .strip-row .strip { grid-column: 1 / -1; grid-row: 2; }
  .axis .ends { grid-column: 1 / -1; }
  .axis > span:not(.ends) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .state[data-state="checking"] .shape { animation: none; opacity: .5; }
}
