/* status.hulko.xyz: the landing's stationery drawer (main-site/DESIGN.md), as one taped sheet of checks and a rubber stamp with the verdict.
   State inks are the landing's grade inks (each AA on paper and sheet). Dark mode follows the system: black paper. */
@font-face { font-family: "Bricolage Grotesque Variable"; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%; src: url(/fonts/bricolage-latin-ext.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque Variable"; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%; src: url(/fonts/bricolage-latin.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-display: swap; font-weight: 400; src: url(/fonts/plex-sans-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-display: swap; font-weight: 400; src: url(/fonts/plex-sans-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-display: swap; font-weight: 600; src: url(/fonts/plex-sans-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-display: swap; font-weight: 600; src: url(/fonts/plex-sans-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-display: swap; font-weight: 400; src: url(/fonts/plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "Shadows Into Light Two"; font-display: swap; src: url(/fonts/hand-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Shadows Into Light Two"; font-display: swap; src: url(/fonts/hand-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f3ebdd; --sheet: #fffcf6; --ink: #3a0610; --muted: #74434a; --line: #e3d5c0; --line2: #cdb99c;
  --vut: #e4002b; --cream: #f3ebdd; --band: #3a0610; --band-muted: #d8bfb2;
  --up: #116b3a; --slow: #6a6000; --maint: #8a5200; --down: #b5102a;
  --f-display: "Bricolage Grotesque Variable", "Avenir Next Condensed", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --f-hand: "Shadows Into Light Two", "Segoe Print", cursive;
  --out: cubic-bezier(.25, 1, .5, 1); --expo: cubic-bezier(.16, 1, .3, 1);
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --arc: clamp(28px, 5vw, 84px);
  --sh: 58 6 16;
  --shadow: 0 18px 32px -20px rgb(var(--sh) / .45), 0 2px 5px rgb(var(--sh) / .12);
  --ink-blend: multiply;
  color-scheme: light;
}
/* black paper: head.js sets data-theme before first paint (the moon switch's stored choice, else the system's) */
:root[data-theme="dark"] {
  --paper: #1a1111; --sheet: #2a2020; --ink: #f3ebdd; --muted: #b69592; --line: #413434; --line2: #574949;
  --up: #6ad895; --slow: #e3d058; --maint: #f3ae58; --down: #f56b76;
  --sh: 0 0 0; --wash: rgb(26 17 17 / .5); --ink-blend: normal;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--paper); }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column; overflow-x: clip;
  background: linear-gradient(var(--wash, #0000) 0 0), url(/paper.webp) 0 0 / 512px, var(--paper);
  background-blend-mode: normal, soft-light;
  color: var(--ink); font: 400 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--vut); color: #fff; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not([lang="en"]) [lang="en"], html:not([lang="sk"]) [lang="sk"], html:not([lang="cs"]) [lang="cs"] { display: none !important; }
.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gut); }
@media (min-width: 900px) { .wrap { padding-inline: 40px; } }

/* header: wordmark back to hulko.xyz, the page's name, language tab */
.top { display: flex; align-items: center; gap: 12px; padding-block: 20px; }
.wm { display: inline-flex; text-decoration: none; }
.mark { height: 36px; width: auto; }
.mark .n { fill: #f5b80c; }
[data-theme="dark"] .mark .n { fill: #ffc940; }
.tag { font: 800 22px/1 var(--f-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .02em; padding-left: 12px; border-left: 2px solid var(--line2); translate: 0 2px; }
.prefs { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border: 2px solid currentColor; border-radius: 99px; }
.lang button { border: 0; background: none; padding: 5px 12px; border-radius: 99px; font: 800 15px/1 var(--f-display); font-stretch: 75%; letter-spacing: .04em; cursor: pointer; min-width: 44px; min-height: 32px; transition: background-color .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang button:hover:not([aria-pressed="true"]) { background: color-mix(in srgb, currentColor 12%, transparent); }
/* the moon switch, as on the landing: card-stock disc, solid while dark mode is on (drawn from data-theme, so it never flashes the wrong state) */
.mode { display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0; border: 2px solid currentColor; border-radius: 50%; background: none; cursor: pointer; transition: background-color .2s, color .2s; }
.mode svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.mode:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
[data-theme="dark"] .mode { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .mode svg { fill: currentColor; }
.theming *, .theming *::before, .theming *::after { transition: none !important; } /* a theme switch is one change */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; } /* app.js floods the new theme out of the switch instead */

/* verdict */
.stale { width: fit-content; margin-top: 16px; padding: 6px 14px; border-radius: 99px; background: var(--sheet); box-shadow: var(--shadow); font-size: 14px; color: var(--muted); }
#board { --c: var(--up); }
#board[data-state="slow"] { --c: var(--slow); }
#board[data-state="maint"] { --c: var(--maint); }
#board[data-state="down"] { --c: var(--down); }
.disp { margin-top: clamp(28px, 7vh, 80px); font: 800 clamp(48px, 7vw, 104px)/.86 var(--f-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
html:not([lang="en"]) .disp { line-height: .96; } /* room for háčky and čárky over caps, as on the landing */
.meta { margin-top: 18px; font-size: 15px; color: var(--muted); }
.meta .sum { color: var(--ink); font-weight: 600; }
.c-down { color: var(--down); } .c-maint { color: var(--maint); } .c-slow { color: var(--slow); }

/* the sheet of checks, taped down a little crooked; the stamp hangs over its top-right corner */
.desk { margin-top: clamp(40px, 6vh, 64px); display: grid; gap: 28px; }
@media (min-width: 1100px) { .desk { grid-template-columns: minmax(0, 880px) 1fr; align-items: start; gap: 36px; } }
.sheet { position: relative; background: var(--sheet); border-radius: 4px; box-shadow: var(--shadow); padding: clamp(14px, 2.4vw, 26px) clamp(16px, 2.6vw, 30px) clamp(8px, 1.4vw, 14px); rotate: -.35deg; }
.tape { position: absolute; top: -15px; left: 50%; width: 120px; height: 32px; translate: -50% 0; rotate: -3deg; background: url(/tape.svg) center / 100% 100% no-repeat; pointer-events: none; }
.stamp {
  position: absolute; z-index: 1; top: clamp(-34px, -3vw, -22px); right: clamp(10px, 3vw, 40px); rotate: -7deg;
  padding: .26em .5em .14em; border: 3px solid; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--sheet), inset 0 0 0 3.5px var(--c);
  background: color-mix(in oklab, var(--sheet) 82%, transparent); color: var(--c); mix-blend-mode: var(--ink-blend);
  font: 800 clamp(22px, 2.6vw, 32px)/1 var(--f-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  animation: thump .55s var(--expo) .15s both;
}
.stamp.still { animation: none; }
@keyframes thump { from { opacity: 0; scale: 1.7; } 45% { opacity: 1; } to { scale: 1; } }

.row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 76px 84px 152px; gap: 0 18px; align-items: center; padding: 14px 10px; margin-inline: -10px; border-top: 1px dashed var(--line2); border-radius: 3px; }
.row.hd { border-top: 0; padding-block: 0 8px; font-size: 13px; color: var(--muted); }
.row.hd + .row { border-top-color: var(--line2); border-top-style: solid; }
.row.s-down, .row.s-maint, .row.s-slow { background: color-mix(in oklab, var(--rc) 8%, transparent); }
.s-up { --rc: var(--up); } .s-slow { --rc: var(--slow); } .s-maint { --rc: var(--maint); } .s-down { --rc: var(--down); }
.ic { width: 40px; height: 40px; display: block; }
.s-down .ic { filter: grayscale(1); opacity: .55; }
.who { min-width: 0; line-height: 1.3; }
.code { font-weight: 600; font-size: 17px; text-decoration: none; }
.code:hover { text-decoration: underline; text-decoration-color: var(--vut); text-decoration-thickness: 2px; }
.host { font-size: 13px; color: var(--muted); margin-left: 6px; }
.nm { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.why { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--rc); }
.ver, .ms { font-size: 14px; color: var(--muted); }
.ver .num, .ms .num { color: var(--ink); }
.s-slow .ms .num { color: var(--slow); font-weight: 600; }
.st { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: var(--rc); }
.g { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 90 days, one bar each (lib/status.js dayState), drawn like a ledger strip under the row; the title shows date and uptime */
.hist { grid-column: 2 / -1; margin-top: 10px; }
.bars { display: flex; gap: 2px; height: 24px; }
.d { flex: 1; min-width: 0; border-radius: 1.5px; background: var(--line); }
.d-up { background: color-mix(in oklab, var(--up) 72%, var(--sheet)); }  .d-minor { background: var(--slow); } .d-maint { background: var(--maint); } .d-down { background: var(--down); }
.bars .d:hover { opacity: .65; }
.cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.cap .num { color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; padding: 12px 0 8px; border-top: 1px solid var(--line2); font-size: 12.5px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .d { flex: none; width: 7px; height: 14px; }

/* phones: status beside the name, figures on a second line */
@media (max-width: 699px) {
  .row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "ic who st" "ic ver ms" "hist hist hist"; gap: 2px 12px; align-items: start; }
  .row.hd { display: none; }
  .row.hd + .row { border-top: 0; }
  .ic { grid-area: ic; width: 36px; height: 36px; }
  .who { grid-area: who; } .ver { grid-area: ver; } .ms { grid-area: ms; justify-self: end; } .st { grid-area: st; justify-self: end; padding-top: 1px; }
  .ver:empty, .ms:empty { display: none; }
  .hist { grid-area: hist; margin-top: 8px; }
  .bars { gap: 1px; height: 22px; }
  .host { display: none; }
  .nm { white-space: normal; }
  .tape { left: 26%; }
}
@media (max-width: 460px) { /* phones: the wordmark's H tile alone, so language and theme keep full-size targets */
  .top { gap: 10px; }
  .wm { width: 34px; overflow: hidden; flex: none; }
  .mark { height: 34px; width: auto; flex: none; }
  .tag { font-size: 20px; padding-left: 10px; }
  .prefs { gap: 8px; }
}

/* margin note */
.hand { display: flex; align-items: flex-start; gap: 6px; max-width: 30ch; font: 400 clamp(20px, 1.9vw, 25px)/1.15 var(--f-hand); rotate: -2.5deg; justify-self: end; margin-right: 8px; }
.hand svg { width: 40px; height: 34px; flex: none; fill: none; stroke: var(--vut); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; rotate: 200deg; translate: 0 -10px; }
@media (min-width: 1100px) { .hand { justify-self: start; margin: 120px 0 0; } .hand svg { rotate: 115deg; translate: 0 4px; } }

/* footer: an oxblood band with the convex top */
.foot {
  margin-top: clamp(72px, 12vh, 140px); padding: calc(var(--arc) + 28px) 0 calc(32px + env(safe-area-inset-bottom, 0px));
  border-radius: 50% 50% 0 0 / var(--arc) var(--arc) 0 0;
  background: url(/paper.webp) 0 0 / 512px, var(--band); background-blend-mode: soft-light; color: var(--cream);
}
.foot .wrap { display: grid; gap: 10px; }
.foot :focus-visible { outline-color: var(--cream); }
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; font: 800 18px/1 var(--f-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.links a { text-decoration: none; padding-block: 6px; }
.links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--vut); }
.how, .made { font-size: 14px; }
.disc { font-size: 13px; color: var(--band-muted); max-width: 60ch; }

@media (prefers-reduced-motion: reduce) {
  @keyframes thump { from { opacity: 0; } to { opacity: 1; } }
}
