:root {
  --paper: #e8eef1; --panel: #f7fafb; --ink: #14263b; --muted: #55677a; --rule: #c9d5dc;
  --clear: #1b7a66; --watch: #e6b800; --amber: #e2761b; --red: #c2261c; --na: #8a98a5;
  --clear-tint: #dcefe9; --watch-tint: #fbf1c4; --amber-tint: #fbe1cb; --red-tint: #f8d5d1;
  --dot-clear: #1b7a66; --dot-watch: #c99a00;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1826; --panel: #132235; --ink: #e6edf3; --muted: #93a4b5; --rule: #24384f;
    --clear-tint: #12362f; --watch-tint: #3a3208; --amber-tint: #40240c; --red-tint: #431512;
    --dot-clear: #3fb59c; --dot-watch: #e6b800;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
main { max-width: 720px; margin: 0 auto; padding: 0 0 56px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* The signal: one field of colour that says the level */
.hero { padding: 18px 20px 26px; background: var(--rule); color: var(--ink); transition: background-color .4s; }
.hero.lv0 { background: var(--clear); color: #fff; }
.hero.lv1 { background: var(--watch); color: #14263b; }
.hero.lv2 { background: var(--amber); color: #14263b; }
.hero.lv3 { background: var(--red); color: #fff; }
.hero .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.hero .place { font-weight: 500; }
.hero .place span { font-weight: 400; white-space: nowrap; }
.hero button { font: 500 15px var(--text); color: inherit; background: transparent; border: 1.5px solid currentColor; border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.hero h1 { font: 600 clamp(52px, 15vw, 88px)/.92 var(--display); letter-spacing: -.01em; margin: 34px 0 14px; text-wrap: balance; }
.hero ul { margin: 0; padding: 0; list-style: none; max-width: 34em; }
.hero li { padding: 5px 0 5px 22px; position: relative; font-weight: 500; }
.hero li::before { content: ""; position: absolute; left: 0; top: .82em; width: 10px; height: 2px; background: currentColor; }
.hero li.fail { font-weight: 400; opacity: .85; }

/* The board: one lamp per check */
.board { padding: 16px 20px 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.lamp { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; background: var(--panel); border-radius: 999px; text-decoration: none; font: 500 16px/1.2 var(--display); letter-spacing: .01em; }
.lamp i, .state i { width: 11px; height: 11px; border-radius: 50%; background: var(--na); flex: none; }
.lamp i { animation: lit .5s both; animation-delay: calc(var(--i) * 45ms); }
.lv0 i { background: var(--dot-clear); } .lv1 i { background: var(--dot-watch); } .lv2 i { background: var(--amber); } .lv3 i { background: var(--red); }
.na i { background: transparent; border: 2px solid var(--na); }
.lamp.lv1 { background: var(--watch-tint); } .lamp.lv2 { background: var(--amber-tint); } .lamp.lv3 { background: var(--red-tint); }
@keyframes lit { from { opacity: .15; transform: scale(.5); } to { opacity: 1; transform: none; } }
.hist { flex-basis: 100%; margin-top: 10px; }
.hist .bars { display: flex; gap: 3px; }
.hist .bars span { flex: 1; height: 14px; border-radius: 2px; background: var(--rule); }
.hist .bars .lv0 { background: var(--dot-clear); opacity: .6; } .hist .bars .lv1 { background: var(--watch); } .hist .bars .lv2 { background: var(--amber); } .hist .bars .lv3 { background: var(--red); }
.hist p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* The checks */
.group { margin: 26px 20px 0; }
.group h2, .aside h2 { font: 600 24px/1.1 var(--display); margin: 0 0 8px; }
.row { background: var(--panel); border-left: 5px solid var(--dot-clear); padding: 14px 16px 12px; margin-top: 3px; }
.row:first-of-type { border-top-right-radius: 10px; } .row:last-of-type { border-bottom-right-radius: 10px; }
.row.lv1 { border-left-color: var(--watch); background: var(--watch-tint); }
.row.lv2 { border-left-color: var(--amber); background: var(--amber-tint); }
.row.lv3 { border-left-color: var(--red); background: var(--red-tint); }
.row.na { border-left-color: var(--na); border-left-style: dashed; }
.row header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.row h3 { font: 600 17px/1.3 var(--text); margin: 0; }
.state { display: inline-flex; align-items: center; gap: 7px; font: 500 16px var(--display); white-space: nowrap; }
.sum { margin: 4px 0 0; max-width: 62ch; }
.err { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-top: 10px; font-size: 14px; line-height: 1.35; }
.days div { background: var(--paper); padding: 7px 6px; }
.days b { display: block; font: 600 16px var(--display); }
.days span { display: block; }
.tools { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; margin-top: 8px; font-size: 15px; }
details[open] { flex-basis: 100%; }
summary { cursor: pointer; color: var(--muted); font-weight: 500; width: fit-content; }
summary:hover { color: var(--ink); }
details ul { margin: 6px 0 2px; padding-left: 18px; color: var(--muted); }
details li { margin: 4px 0; max-width: 68ch; }
.why div { border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 2px; max-width: 68ch; }
.why p { margin: 8px 0 0; }
.src { color: var(--muted); font-weight: 500; }

/* Reference material below the checks */
.aside { margin: 34px 20px 0; }
.key { margin: 0; padding: 0; list-style: none; }
.key li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.key b { font: 600 17px var(--display); display: flex; align-items: center; gap: 7px; height: 1.5em; }
.key b i { width: 11px; height: 11px; border-radius: 50%; }
.todo { margin: 0; padding-left: 20px; }
.todo li { margin: 4px 0; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 3px; }
.links a { background: var(--panel); padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: 16px; }
.links a:hover { background: var(--rule); }
.links span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.note { margin: 30px 20px 0; font-size: 14px; color: var(--muted); max-width: 68ch; }
@media (min-width: 760px) { main { padding-top: 24px; } .hero { border-radius: 14px; padding: 22px 28px 32px; } }
@media (prefers-reduced-motion: reduce) { .lamp i { animation: none; } html { scroll-behavior: auto; } .hero { transition: none; } }
