/* =====================================================================
   bit.css: qRust44 in 1-bit.
   Ink and paper, one colour per section, dot-matrix titles, pixel labels, outlined windows
   with older ones stacked behind them, a halftone that gathers in the corners.
   Crypto-anarchy, privacy, freedom, open source, love and peace, drawn in as few colours as possible.
   Loaded last, after style.css and refresh.css. Print stays black on white.
   Delete the <link> to this file and the site goes back to the previous look.
   ===================================================================== */
/* pixel ornaments, drawn as tiny SVGs */
:root {
  --b-trio-col: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='7' viewBox='0 0 27 7' shape-rendering='crispEdges'%3E%3Cpath fill='%235cc4e6' d='M1 0h1v1h-1zM2 0h1v1h-1zM3 0h1v1h-1zM4 0h1v1h-1zM5 0h1v1h-1zM0 1h1v1h-1zM3 1h1v1h-1zM6 1h1v1h-1zM0 2h1v1h-1zM3 2h1v1h-1zM6 2h1v1h-1zM0 3h1v1h-1zM2 3h1v1h-1zM3 3h1v1h-1zM4 3h1v1h-1zM6 3h1v1h-1zM0 4h1v1h-1zM1 4h1v1h-1zM3 4h1v1h-1zM5 4h1v1h-1zM6 4h1v1h-1zM0 5h1v1h-1zM3 5h1v1h-1zM6 5h1v1h-1zM1 6h1v1h-1zM2 6h1v1h-1zM3 6h1v1h-1zM4 6h1v1h-1zM5 6h1v1h-1z'/%3E%3Cpath fill='%23e67aa9' d='M11 0h1v1h-1zM12 0h1v1h-1zM14 0h1v1h-1zM15 0h1v1h-1zM10 1h1v1h-1zM11 1h1v1h-1zM12 1h1v1h-1zM13 1h1v1h-1zM14 1h1v1h-1zM15 1h1v1h-1zM16 1h1v1h-1zM10 2h1v1h-1zM11 2h1v1h-1zM12 2h1v1h-1zM13 2h1v1h-1zM14 2h1v1h-1zM15 2h1v1h-1zM16 2h1v1h-1zM10 3h1v1h-1zM11 3h1v1h-1zM12 3h1v1h-1zM13 3h1v1h-1zM14 3h1v1h-1zM15 3h1v1h-1zM16 3h1v1h-1zM11 4h1v1h-1zM12 4h1v1h-1zM13 4h1v1h-1zM14 4h1v1h-1zM15 4h1v1h-1zM12 5h1v1h-1zM13 5h1v1h-1zM14 5h1v1h-1zM13 6h1v1h-1z'/%3E%3Cpath fill='%23f2cc5c' d='M21 0h1v1h-1zM22 0h1v1h-1zM23 0h1v1h-1zM24 0h1v1h-1zM25 0h1v1h-1zM20 1h1v1h-1zM23 1h1v1h-1zM26 1h1v1h-1zM20 2h1v1h-1zM22 2h1v1h-1zM24 2h1v1h-1zM26 2h1v1h-1zM20 3h1v1h-1zM21 3h1v1h-1zM25 3h1v1h-1zM26 3h1v1h-1zM20 4h1v1h-1zM21 4h1v1h-1zM22 4h1v1h-1zM23 4h1v1h-1zM24 4h1v1h-1zM25 4h1v1h-1zM26 4h1v1h-1zM20 5h1v1h-1zM21 5h1v1h-1zM25 5h1v1h-1zM26 5h1v1h-1zM21 6h1v1h-1zM22 6h1v1h-1zM23 6h1v1h-1zM24 6h1v1h-1zM25 6h1v1h-1z'/%3E%3C/svg%3E");
  --b-trio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='7' viewBox='0 0 27 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23e8e4d8' d='M1 0h5v1h-5zM11 0h2v1h-2zM14 0h2v1h-2zM21 0h5v1h-5zM0 1h1v1h-1zM3 1h1v1h-1zM6 1h1v1h-1zM10 1h7v1h-7zM20 1h1v1h-1zM23 1h1v1h-1zM26 1h1v1h-1zM0 2h1v1h-1zM3 2h1v1h-1zM6 2h1v1h-1zM10 2h7v1h-7zM20 2h1v1h-1zM22 2h1v1h-1zM24 2h1v1h-1zM26 2h1v1h-1zM0 3h1v1h-1zM2 3h3v1h-3zM6 3h1v1h-1zM10 3h7v1h-7zM20 3h2v1h-2zM25 3h2v1h-2zM0 4h2v1h-2zM3 4h1v1h-1zM5 4h2v1h-2zM11 4h5v1h-5zM20 4h7v1h-7zM0 5h1v1h-1zM3 5h1v1h-1zM6 5h1v1h-1zM12 5h3v1h-3zM20 5h2v1h-2zM25 5h2v1h-2zM1 6h5v1h-5zM13 6h1v1h-1zM21 6h5v1h-5z'/%3E%3C/svg%3E");
  --b-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23e8e4d8' d='M3 0h1v1h-1zM3 1h1v1h-1zM2 2h3v1h-3zM0 3h7v1h-7zM2 4h3v1h-3zM3 5h1v1h-1zM3 6h1v1h-1z'/%3E%3C/svg%3E");
  --b-star8: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%23e8e4d8' d='M0 0h1v1h-1zM4 0h1v1h-1zM8 0h1v1h-1zM1 1h1v1h-1zM4 1h1v1h-1zM7 1h1v1h-1zM2 2h1v1h-1zM4 2h1v1h-1zM6 2h1v1h-1zM3 3h3v1h-3zM0 4h9v1h-9zM3 5h3v1h-3zM2 6h1v1h-1zM4 6h1v1h-1zM6 6h1v1h-1zM1 7h1v1h-1zM4 7h1v1h-1zM7 7h1v1h-1zM0 8h1v1h-1zM4 8h1v1h-1zM8 8h1v1h-1z'/%3E%3C/svg%3E");
  --b-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' viewBox='0 0 7 4' shape-rendering='crispEdges'%3E%3Cpath fill='%23e8e4d8' d='M3 0h1v1h-1zM2 1h3v1h-3zM1 2h5v1h-5zM0 3h7v1h-7z'/%3E%3C/svg%3E");
  --b-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' viewBox='0 0 7 4' shape-rendering='crispEdges'%3E%3Cpath fill='%23e8e4d8' d='M0 0h7v1h-7zM1 1h5v1h-5zM2 2h3v1h-3zM3 3h1v1h-1z'/%3E%3C/svg%3E");
  --b-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='7' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23e8e4d8' d='M0 0h1v1h-1zM0 1h2v1h-2zM0 2h3v1h-3zM0 3h4v1h-4zM0 4h3v1h-3zM0 5h2v1h-2zM0 6h1v1h-1z'/%3E%3C/svg%3E");
}

/* ---------- fonts: Tiny5 (headings, the same pixel letters as the logo), IBM Plex Sans (text) and IBM Plex Mono (code, labels, the tree). All served from this site. ---------- */
@font-face { font-family: "Tiny5"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/tiny5-latin-400-normal.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: "Tiny5"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/tiny5-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.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-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.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-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-italic.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-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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 Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.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-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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 Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-mono-latin-700-normal.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-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ibm-plex-mono-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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 Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-italic.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-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

/* ---------- the palette: ink, paper, and one colour per section ---------- */
:root {
  --ink: #0d0d0e;
  --ink-2: #131314;
  --paper: #e8e4d8;
  --paper-rgb: 232, 228, 216;
  --dim: rgba(232, 228, 216, .62);
  --faint: rgba(232, 228, 216, .3);
  --hair: rgba(232, 228, 216, .16);
  --black: var(--ink);
  --white: var(--paper);
  --muted: #a8a59b;
  --line: rgba(232, 228, 216, .16);
  --c-da: #c2ec4a;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font: var(--mono);
  --pixel: "Tiny5", "Pixelify Sans Variable", ui-monospace, monospace;
  --dots: var(--pixel);
  --hdr: 52px;
}
/* Digital Autonomy goes acid green; the other sections keep their colours */
:root, body[data-sec="da"] { --accent: #c2ec4a; --accent-rgb: 194, 236, 74; --accent-dim: #7e9d23; }
body[data-sec="da"] { --tint-rgb: 194, 236, 74; }
.sec-da, .qt-li.sec-da { --sec: #c2ec4a; --sec-rgb: 194, 236, 74; }
.site-header nav li:nth-child(2) { --sec-rgb: 194, 236, 74; }
body:not([data-sec]) { --tint-rgb: 242, 204, 92; }
/* no page has a side table of contents any more (the tree does that job), so the page is always one column */
.page { grid-template-columns: minmax(0, 1fr) !important; }

@media screen {

/* ---------- 1. Ground: ink, and a dot-matrix halftone that gathers in the corners ---------- */
html, html:has(body[data-sec]) { background: var(--ink); }
body { font-family: var(--mono); font-size: 15px; }
body::before, body[data-sec]::before, body:not([data-sec])::before {
  content: ""; position: fixed; inset: 0; top: 0; height: auto; z-index: -4; pointer-events: none;
  animation: none; transform: none; opacity: 1;
  background: radial-gradient(circle, rgba(var(--tint-rgb, 232, 228, 216), .5) 0 1.05px, transparent 1.45px) 0 0 / 7px 7px;
  -webkit-mask: radial-gradient(120% 95% at 55% 45%, transparent 52%, #000 100%) !important;
  mask: radial-gradient(120% 95% at 55% 45%, transparent 52%, #000 100%) !important;
}
body::after { display: none; }
main::before { display: none !important; }
::selection { background: rgb(var(--accent-rgb)); color: var(--ink); }

/* scroll bars: an outlined thumb and pixel arrows */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--ink); box-shadow: inset 1px 0 0 var(--faint); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 1px solid var(--paper); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 20px rgba(var(--paper-rgb), .14); }
::-webkit-scrollbar-thumb:hover { box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 20px rgba(var(--paper-rgb), .4); }
::-webkit-scrollbar-button:single-button { display: block; height: 14px; background: var(--ink) center / 7px 4px no-repeat; box-shadow: inset 1px 0 0 var(--faint); }
::-webkit-scrollbar-button:single-button:vertical:decrement { background-image: var(--b-up); }
::-webkit-scrollbar-button:single-button:vertical:increment { background-image: var(--b-down); }
::-webkit-scrollbar-button:horizontal { display: none; }
::-webkit-scrollbar-corner { background: var(--ink); }
@supports not selector(::-webkit-scrollbar) { html, .qt-nav { scrollbar-color: var(--faint) var(--ink); } }

/* ---------- 2. Type ---------- */
h1, .hero h1, .content h1 {
  font-family: var(--pixel) !important; font-weight: 400 !important;
  font-size: clamp(2.2rem, 5vw, 3.5rem) !important; line-height: 1.08 !important; letter-spacing: .01em;
  color: rgb(var(--accent-rgb)); text-shadow: none !important;
}
h1 .dot, .hero h1 .dot { color: rgb(var(--accent-rgb)); }
.hero h1 .accent { color: var(--me); white-space: nowrap; }
.hero h1 { white-space: normal !important; }
.crumbs { white-space: normal !important; overflow-wrap: anywhere; }
h2, h3, .content h2, .hero h2 { font-family: var(--pixel); font-weight: 400; letter-spacing: .01em; }
.content h2, .hero h2 { display: flex; align-items: center; gap: .5em; font-size: 1.7rem; line-height: 1.15; }
.content h2::before, .hero h2::before { content: none !important; }
.content h2::after, .hero h2::after {   /* a dotted rule runs to the edge */
  content: ""; flex: 1 1 30px; min-width: 24px; height: 6px; margin-left: .2em;
  background: radial-gradient(circle, rgba(var(--paper-rgb), .45) 0 1px, transparent 1.4px) 0 50% / 6px 6px repeat-x;
}
.h2ico { order: 2; }
.content h3 { font-size: 1.3rem; color: var(--paper); }
.lead { color: var(--paper); }
a { text-decoration-thickness: 1px; }
.content a:not([class]):hover, .hero a:not([class]):hover, .content p a:hover, .content li a:hover {
  background: rgb(var(--accent-rgb)); color: var(--ink) !important; text-decoration: none;
}
.content .hl, .pl-body .hl, .intro-item .hl { text-decoration-color: rgb(var(--accent-rgb)); }
code { background: transparent; border: 1px dotted var(--faint); border-radius: 0; padding: 1px 5px; }
pre code { border: 0; padding: 0; }
kbd { background: var(--ink); border: 1px solid var(--dim); border-bottom-width: 2px; border-radius: 0; color: var(--paper); font-family: var(--pixel); font-size: .9em; }
.muted { color: var(--muted); }

/* ---------- 3. Header: a quiet bar with a dither edge ---------- */
.site-header {
  padding: 0 !important; background: var(--ink) !important; border-bottom: 1px solid var(--paper) !important; box-shadow: none !important;
}
.site-header::after {   /* a 50% checker dither under the line */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 4px; pointer-events: none;
  background: conic-gradient(rgba(var(--paper-rgb), .55) 25%, transparent 0 50%, rgba(var(--paper-rgb), .55) 0 75%, transparent 0) 0 0 / 2px 2px;
  -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent);
}
.site-header .wrap { min-height: var(--hdr); align-items: center; gap: 0 18px; flex-wrap: nowrap; }
.brand { font-family: var(--pixel) !important; font-size: 1.35rem !important; font-weight: 400 !important; color: var(--paper) !important; letter-spacing: .02em; }
.brand::before { background: rgb(var(--accent-rgb)) !important; width: 1.15em; height: 1.15em; }
.site-header .hp-form { align-self: center; }
.site-header .hp-form label { min-height: 0 !important; height: 30px; align-items: center; padding: 0 10px; border: 1px solid var(--faint); background: transparent; }
.site-header .hp-form label:hover { border-color: var(--dim); }
.hdr-path { color: var(--dim) !important; font-family: var(--mono); }
.site-header .hp-in, .site-header .hp-in:hover, .site-header .hp-in:focus { background: transparent !important; border: 0 !important; box-shadow: none !important; outline: none; }
.site-header .hp-in { color: rgb(var(--accent-rgb)); }
.hdr-blk { font: 13px var(--pixel); letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }
.hdr-blk b { color: rgb(var(--accent-rgb)); font-weight: 400; }
.ht-b { height: 26px; border: 1px solid var(--faint); border-radius: 0; background: var(--ink); color: var(--dim); font: 13px var(--pixel); letter-spacing: .08em; }
.ht-b:hover { border-color: var(--paper); color: var(--paper); }
.ht-lang[data-on="en"] [data-l="en"], .ht-lang[data-on="cs"] [data-l="cs"] { color: var(--ink); background: var(--paper); opacity: 1; padding: 0 3px; }
.map-btn { border: 1px solid var(--paper) !important; background: var(--ink) !important; color: var(--paper) !important; box-shadow: -3px 3px 0 -1px var(--ink), -3px 3px 0 0 var(--paper) !important; font: 13px var(--pixel) !important; letter-spacing: .1em; padding: 6px 12px; }
.map-btn .map-ic { color: rgb(var(--accent-rgb)); }
.progress { background: rgb(var(--accent-rgb)); height: 2px; }

/* ---------- 4. Windows: an outline, a title row, a paper strip, and two older windows stacked behind ---------- */
main { padding: 34px 0 48px; }
.page > .content, main > .hero {
  position: relative; isolation: isolate;
  background: var(--ink); border: 1px solid var(--paper);
  padding: 0 34px 38px !important;
  box-shadow: -7px 7px 0 -1px var(--ink), -7px 7px 0 0 var(--paper), -14px 14px 0 -1px var(--ink), -14px 14px 0 0 rgba(var(--paper-rgb), .55);
  margin-left: 14px;
}
main > .hero { max-width: none; overflow: clip; }
.page > .content::before, main > .hero::before {   /* title row: the page name, peace · love · anarchy on the right */
  content: attr(data-title) !important; display: block; position: relative; z-index: 3;
  height: 34px; line-height: 34px; margin: 0 -34px 50px !important; padding: 0 92px 0 16px;
  background: var(--b-trio) right 14px center / 54px 14px no-repeat, var(--ink);
  border-bottom: 1px solid var(--paper);
  color: var(--paper); font: 14px/34px var(--pixel); letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; image-rendering: pixelated;
}
.page > .content::after, main > .hero::after {   /* the paper strip under it: what this site does not do */
  content: "No cookies · No trackers · Nothing leaves your device · No rights reserved";
  position: absolute; z-index: 3; left: 0; right: 0; top: 35px; height: 20px; padding: 0 16px; overflow: hidden;
  background: var(--paper); color: var(--ink); font: 12px/20px var(--pixel); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis;
}
html[lang="cs"] .page > .content::after, html[lang="cs"] main > .hero::after { content: "Žádné cookies · Žádné sledování · Nic neopustí tvoje zařízení · Žádná práva vyhrazena"; }
.page > .content { padding-top: 0 !important; }
.page > .content > h1:first-of-type, main > .hero .hero-top { margin-top: 0; }
.hero-bg { top: 40px !important; opacity: .42 !important; }
/* the little pixel scene beside the title sits under the title row */
@media (min-width: 761px) {
  .page > .content > .page-art { top: 84px; right: 30px; }
  .page > .content > .page-art:has(.kitty.top) { top: 150px; }   /* room for the cat sitting on top */
}
/* the chapter list beside the window on mid-size screens */
.page > .toc { align-self: start; border: 1px solid var(--faint); padding: 0 0 10px; background: var(--ink); }
.toc-title { margin: 0 0 8px !important; padding: 6px 10px; border-bottom: 1px solid var(--faint); font: 13px var(--pixel) !important; letter-spacing: .12em !important; color: var(--paper) !important; }
.toc ul { padding: 0 10px; }

/* ---------- 5. The tree, in its own window ---------- */
.qt { background: var(--ink) !important; padding: 0 0 10px; gap: 10px; font-family: var(--mono); }
@media (min-width: 1100px) {
  .qt {
    top: calc(var(--hdr) + 20px); left: 28px; bottom: 26px; width: calc(var(--map-w) - 40px);
    border: 1px solid var(--paper);
    box-shadow: -7px 7px 0 -1px var(--ink), -7px 7px 0 0 rgba(var(--paper-rgb), .55);
  }
  body.has-map main > .wrap { padding-left: 10px; }
}
@media (max-width: 1099px) { .qt { border-right: 1px solid var(--paper); } }
.qt::after { display: none; }
.qt-top { height: 34px; padding: 0 8px 0 14px; margin: 0; border-bottom: 1px solid var(--paper); background: var(--ink); }
.qt-cmd { color: var(--paper); font: 14px var(--pixel); letter-spacing: .1em; text-transform: uppercase; }
.qt-ps { color: rgb(var(--accent-rgb)); }
.qt-close { width: 26px !important; height: 26px !important; border: 1px solid var(--paper) !important; border-radius: 0 !important; background: var(--ink) !important; color: var(--paper) !important; font: 14px var(--pixel) !important; }
.qt-close:hover { background: var(--paper) !important; color: var(--ink) !important; }
.qt-find { padding: 0 12px; }
.qt-sum { color: var(--muted); font: 12px var(--pixel); letter-spacing: .08em; text-transform: uppercase; }
.g-V::before, .g-T::before, .g-L::before { border-left: 1px dotted rgba(var(--paper-rgb), .38) !important; }
.g-T::after, .g-L::after { border-top: 1px dotted rgba(var(--paper-rgb), .38) !important; }
.qt-cur > .qt-a { background: rgb(var(--sec-rgb)) !important; box-shadow: none !important; }
.qt-cur > .qt-a .qt-l, .qt-cur > .qt-a .qt-here { color: var(--ink) !important; }
.qt-a:hover { background: rgba(var(--sec-rgb), .14); }

/* ---------- 6. Buttons: outlined; hover inverts; on and main actions take the colour ---------- */
main :is(.btn, .seg button, .mk-b, .stack-plat button, .gfilter button, .copy, button.ck-b, .qz-level, [role="tab"], .pw-mode button, .read-btn),
dialog :is(.btn, button), .term-x {
  border: 1px solid var(--paper) !important; border-radius: 0 !important;
  background: var(--ink) !important; color: var(--paper) !important;
  box-shadow: none !important; transform: none !important; transition: none !important;
  font-family: var(--pixel) !important; font-weight: 400 !important; font-size: 14px !important; letter-spacing: .08em !important; text-transform: uppercase !important;
}
main :is(.btn, .seg button, .mk-b, .stack-plat button, .gfilter button, .copy, button.ck-b, .qz-level, [role="tab"], .pw-mode button, .read-btn):hover,
dialog :is(.btn, button):hover, .term-x:hover {
  background: var(--paper) !important; color: var(--ink) !important;
}
main :is(.btn, .seg button, .mk-b, .stack-plat button, .gfilter button, .copy, button.ck-b, .qz-level, [role="tab"], .pw-mode button):focus-visible { outline: 1px solid rgb(var(--accent-rgb)); outline-offset: 2px; }
main :is(.seg button, .stack-plat button, .gfilter button, .mk-b)[aria-pressed="true"], main .qz-level.on,
main [role="tab"][aria-selected="true"], main .pw-mode button[aria-selected="true"] {
  background: rgb(var(--accent-rgb)) !important; border-color: rgb(var(--accent-rgb)) !important; color: var(--ink) !important;
}
main :is(.btn:not(.small):not(.ghost), .mk-b.mk-main) {
  background: rgb(var(--accent-rgb)) !important; border-color: rgb(var(--accent-rgb)) !important; color: var(--ink) !important;
  box-shadow: -4px 4px 0 -1px var(--ink), -4px 4px 0 0 rgb(var(--accent-rgb)) !important;
}
main :is(.btn:not(.small):not(.ghost), .mk-b.mk-main):hover { background: var(--paper) !important; border-color: var(--paper) !important; }
main .btn::after { content: none !important; }
.btn { padding: 9px 16px; }
.btn.small { padding: 5px 10px; }
.gfilter button span { opacity: .6; }
.gfilter button i, .gtag i { font-style: normal; }
.pw-mode { border: 0 !important; gap: 6px; }

/* ---------- 7. Fields ---------- */
:is(main, dialog, .qt) :is(input[type="text"], input[type="search"], input[type="url"], input[type="email"], input[type="password"], input[type="number"], input:not([type]), select, textarea) {
  background: var(--ink) !important; color: var(--paper); border: 1px solid var(--faint) !important; border-radius: 0 !important; box-shadow: none !important; font-family: var(--mono);
}
:is(main, dialog, .qt) :is(input, select, textarea):focus { border-color: rgb(var(--accent-rgb)) !important; outline: none; caret-color: rgb(var(--accent-rgb)); }
input::placeholder, textarea::placeholder { color: rgba(var(--paper-rgb), .38); }
label, legend { font-family: var(--pixel); font-size: 13px; letter-spacing: .1em; }
input[type="checkbox"], input[type="radio"] { accent-color: rgb(var(--accent-rgb)); }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 18px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: var(--ink); border: 1px solid var(--dim); }
input[type="range"]::-moz-range-track { height: 4px; background: var(--ink); border: 1px solid var(--dim); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 18px; margin-top: -7px; background: var(--paper); border: 1px solid var(--ink); border-radius: 0; }
input[type="range"]::-moz-range-thumb { width: 8px; height: 16px; background: var(--paper); border: 1px solid var(--ink); border-radius: 0; }

/* ---------- 8. Fold-outs and groups: outlined boxes, + and − ---------- */
main details:not(.intro-more):not(.about-box):not(.tools > details) {
  background: var(--ink) !important; border: 1px solid var(--faint) !important; border-radius: 0 !important; box-shadow: none !important;
}
main details:not(.intro-more):not(.about-box):not(.tools > details):hover { border-color: var(--dim) !important; }
main details[open]:not(.intro-more):not(.about-box):not(.tools > details) { border-color: var(--paper) !important; box-shadow: -5px 5px 0 -1px var(--ink), -5px 5px 0 0 rgba(var(--paper-rgb), .4) !important; }
main details[open]:not(.intro-more):not(.about-box):not(.tools > details) > summary { border-bottom: 1px solid var(--paper) !important; }
main details:not(.intro-more):not(.about-box) > summary::after {
  content: "+" !important; display: grid !important; place-items: center; flex: none; width: 20px !important; height: 20px !important; padding: 0 !important;
  border: 1px solid var(--dim) !important; border-radius: 0 !important; background: var(--ink) !important; box-shadow: none !important;
  color: var(--paper) !important; font: 15px/1 var(--pixel) !important; transform: none !important;
}
main details[open]:not(.intro-more):not(.about-box) > summary::after { content: "−" !important; background: var(--paper) !important; color: var(--ink) !important; border-color: var(--paper) !important; }
details[data-topic] > summary .gt-name { font-weight: 700; }
/* My stack */
.stack { gap: 14px; }
.sg-t { font-family: var(--pixel) !important; font-size: 1.3rem !important; line-height: 1.15 !important; color: var(--paper) !important; letter-spacing: .02em; }
.sg-d { color: var(--muted) !important; }
.sg-n { border: 1px solid var(--dim) !important; border-radius: 0 !important; background: var(--ink) !important; color: rgb(var(--accent-rgb)) !important; font: 14px/1 var(--pixel) !important; padding: 4px 7px !important; min-width: 2.4em; }
.sg[open] .sg-n { background: rgb(var(--accent-rgb)) !important; color: var(--ink) !important; border-color: rgb(var(--accent-rgb)) !important; }
/* app logos in one colour, so the page stays 1-bit; the open app shows them dark on paper */
.ico:not(.mono) { filter: brightness(0) invert(.9); }
.ico.mono { border: 1px solid var(--dim) !important; border-radius: 0 !important; color: var(--paper) !important; background: transparent !important; font-family: var(--pixel) !important; }
.tools > details { background: transparent !important; border: 0 !important; border-top: 1px dotted var(--faint) !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; }
.tools > details:first-child { border-top: 0 !important; }
.tools > details > summary { transition: none !important; }
.tools > details > summary:hover { padding-left: 20px !important; background: rgba(var(--paper-rgb), .06); }
.tools > details[open] > summary { background: var(--paper) !important; border-bottom: 0 !important; }
.tools > details[open] > summary :is(.cat, .name, .plat) { color: var(--ink) !important; opacity: 1 !important; }
.tools > details[open] > summary .ico:not(.mono) { filter: brightness(0); }
.tools > details[open] > summary .ico.mono { color: var(--ink) !important; border-color: var(--ink) !important; }
.tools > details[open] > summary .oss { background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important; }
.tools > details[open] > summary .tip-tag { color: var(--ink) !important; border-color: var(--ink) !important; background: transparent !important; }
main .tools > details:not(.intro-more):not(.about-box) > summary::after { width: 16px !important; height: 16px !important; font-size: 13px !important; }
main .tools > details[open]:not(.intro-more):not(.about-box) > summary::after { background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink) !important; }
.tools > details[open] > .body { border-left: 1px solid var(--paper); margin-left: 0; }
.tools summary .cat { font-family: var(--pixel) !important; font-size: 13px !important; letter-spacing: .1em !important; }
.tools summary .plat { font-family: var(--pixel) !important; font-size: 12px !important; letter-spacing: .08em !important; }
.tools > details.tip > summary .name { color: var(--dim) !important; }
.tools > details.tip[open] > summary .name { color: var(--ink) !important; }
.stack-bar { padding: 0; background: transparent; border: 0; }
.stack-count { font-family: var(--pixel); letter-spacing: .06em; }
.halving { border: 1px dotted var(--faint) !important; border-radius: 0 !important; background: transparent !important; font-family: var(--pixel); letter-spacing: .04em; }
.halving b { color: rgb(var(--accent-rgb)); font-weight: 400; }
/* badges */
.oss { background: var(--paper) !important; color: var(--ink) !important; border: 1px solid var(--paper); border-radius: 0 !important; font: 12px/1 var(--pixel) !important; letter-spacing: .08em !important; padding: 3px 5px 2px !important; text-shadow: none; box-shadow: none !important; }
.oss.part { background: transparent !important; color: var(--paper) !important; border: 1px dashed var(--paper); }
.tip-tag { color: rgb(var(--accent-rgb)); border: 1px dashed rgb(var(--accent-rgb)); background: transparent; border-radius: 0; font: 12px/1 var(--pixel); letter-spacing: .1em; padding: 3px 5px 2px; box-shadow: none; }
.legend { display: block; line-height: 2.2; }
.legend-sep { display: inline-block; vertical-align: middle; margin: 0 10px; background: var(--faint); }
.legend .oss { margin-right: 5px; }
.legend-n { color: rgb(var(--accent-rgb)); font-family: var(--pixel); font-size: 13px; letter-spacing: .06em; }
.gtag { border: 1px solid var(--faint) !important; border-radius: 0 !important; background: transparent !important; color: var(--paper) !important; font: 12px/1 var(--pixel) !important; letter-spacing: .08em; }
.chip { border-radius: 0 !important; font-family: var(--pixel); font-size: 12px; letter-spacing: .1em; }
.lg-k { border-radius: 0; font-family: var(--pixel); }

/* ---------- 9. Cards: outlined; on hover an older card shows up behind ---------- */
.tcard, .proj, .lg, .bn, .lvl-card, .howto-card, .card, .book-card, .reach div, .start, .co-card, .ac {
  background: var(--ink) !important; border: 1px solid var(--faint) !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
}
.tcard::after, .proj::after, .card::before { display: none !important; }
.tcard:hover, .tcard:focus-visible, .proj:hover, .lg:hover, .bn:hover, .start:hover, .start:focus-visible, .card:hover {
  border-color: var(--paper) !important; box-shadow: -6px 6px 0 -1px var(--ink), -6px 6px 0 0 rgb(var(--sec-rgb, var(--accent-rgb))) !important;
}
.tc-t, .start-t, .proj-info h3 { font-family: var(--pixel) !important; }
.tcard .tc-t { font-size: 1.15rem; }
.start-t { font-size: 1.45rem !important; }
.start::before { opacity: 1; background: rgb(var(--sec-rgb)) !important; }
.co-card.got, .ac.got { border-color: var(--dim) !important; }
.co-tier .co-card.got { border-color: var(--tc) !important; }
.ac-i { border-radius: 0; }
/* About me */
.about-box { background: var(--ink) !important; border: 1px solid var(--me) !important; border-radius: 0 !important; box-shadow: -6px 6px 0 -1px var(--ink), -6px 6px 0 0 rgba(var(--me-rgb), .55) !important; }
.ab-k { background: var(--me) !important; color: var(--ink) !important; border: 0 !important; border-radius: 0 !important; font-family: var(--pixel) !important; box-shadow: none !important; }
.ab-t { font-family: var(--pixel) !important; }
.ab-tw { font-family: var(--pixel) !important; }

/* ---------- 10. Notes and quotes ---------- */
.grp-note { border-left: 2px solid rgb(var(--accent-rgb)) !important; padding-left: 14px !important; box-shadow: none !important; background: transparent !important; }
.tip-why { border: 0 !important; border-left: 2px dotted rgb(var(--accent-rgb)) !important; padding: 0 0 0 14px !important; background: transparent !important; font-style: italic; box-shadow: none !important; }
.pull { font-family: var(--pixel) !important; font-size: 1.45rem !important; line-height: 1.4 !important; background: none !important; border: 0 !important; border-left: 0 !important;
  padding: 0 0 0 34px !important; position: relative; box-shadow: none !important; color: var(--paper); }
.pull::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; background: var(--b-star8) center / 18px 18px no-repeat; image-rendering: pixelated; filter: none; }
body.reading main .content .pull { font-family: var(--pixel) !important; font-style: normal; }
.gl-tip { background: var(--paper) !important; color: var(--ink) !important; border: 1px solid var(--ink) !important; border-radius: 0 !important; box-shadow: -4px 4px 0 -1px var(--ink), -4px 4px 0 0 var(--paper) !important; font: 13px/1.45 var(--mono) !important; }
.egg-toast { background: var(--paper) !important; color: var(--ink) !important; border: 1px solid var(--paper) !important; border-radius: 0 !important; box-shadow: -5px 5px 0 -1px var(--ink), -5px 5px 0 0 var(--paper) !important; font: 13px/1.5 var(--mono) !important; }
.egg-toast a, .egg-toast b { color: var(--ink) !important; }
abbr.gl { text-decoration-color: rgba(var(--paper-rgb), .45); }

/* ---------- 11. Code blocks and the terminal ---------- */
pre { background: var(--ink) !important; border: 1px solid var(--faint) !important; border-radius: 0 !important; padding-top: 0 !important; color: var(--paper); }
pre::before {
  content: "Terminal"; display: block; position: sticky; left: 0; margin: 0 -16px 10px; padding: 0 12px; height: 22px; line-height: 22px;
  border-bottom: 1px dotted var(--faint); color: var(--muted); font: 12px/22px var(--pixel); letter-spacing: .14em; text-transform: uppercase;
}
html[lang="cs"] pre::before { content: "Terminál"; }
pre.has-copy .btn { top: 30px !important; }
pre.as-out::before { content: none; }
pre.as-out { padding-top: 14px !important; }
.term { background: var(--ink) !important; border: 1px solid var(--paper) !important; border-bottom: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.term-bar { border-bottom: 1px solid var(--paper) !important; color: var(--paper) !important; font: 14px var(--pixel) !important; letter-spacing: .12em !important; text-transform: uppercase; }
.term-x { width: 26px; height: 24px; padding: 0 !important; }
.term-in, .term-in:focus { border: 0 !important; box-shadow: none !important; background: transparent !important; outline: none !important; }
.term a.t-dir { color: rgb(var(--accent-rgb)); }

/* ---------- 12. Meters, drop zones, panels ---------- */
.pw-bar, .ep-bar, .co-bar, .ck-bar { height: 14px !important; padding: 2px; background: var(--ink) !important; border: 1px solid var(--paper) !important; border-radius: 0 !important; box-shadow: none !important; }
.pw-bar i, .ep-bar i, .ck-bar i { border-radius: 0; -webkit-mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px); mask: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 7px); }
.ep-bar i, .ck-bar i { background: rgb(var(--accent-rgb)) !important; }
.drop, .ph-drop { background: transparent !important; border: 1px dashed var(--dim) !important; border-radius: 0 !important; box-shadow: none !important; }
.drop:hover, .drop.over, .drop:focus-visible { border-style: solid !important; border-color: rgb(var(--accent-rgb)) !important; background: rgba(var(--accent-rgb), .05) !important; }
.pw, .seen-id, .bcmp, .co-live, .mu-screen, .st-scroll, .ep-empty, .quiz-cta, .mk, form.tool, .np, .mu, .ep-step, .case {
  background: var(--ink) !important; border: 1px solid var(--faint) !important; border-radius: 0 !important; box-shadow: none !important;
}
.pw-out, .as-out { background: var(--ink) !important; border: 1px solid var(--paper) !important; border-radius: 0 !important; box-shadow: none !important; }
.mk fieldset, .as fieldset, .mu fieldset { border: 1px dotted var(--faint) !important; border-radius: 0 !important; }
.mk legend, .as legend, .mu legend { color: var(--paper) !important; padding: 0 6px !important; }
.ep-chip span { border: 1px solid var(--faint) !important; border-radius: 0 !important; background: var(--ink) !important; font-family: var(--pixel); font-size: 14px; letter-spacing: .04em; }
.ep-chip:hover span { border-color: var(--paper) !important; }
.ep-chip input:checked + span { background: rgb(var(--accent-rgb)) !important; color: var(--ink) !important; border-color: rgb(var(--accent-rgb)) !important; }
.ep-num { font-family: var(--pixel); font-weight: 400; }
.seen-id .seen-v, .co-count b { font-family: var(--pixel); font-weight: 400; }

/* ---------- 13. Pictures ---------- */
.shot-btn, .proj-shot { border: 1px solid var(--faint) !important; border-radius: 0 !important; }
.shot-btn:hover, .proj-shot:hover { border-color: var(--paper) !important; box-shadow: -5px 5px 0 -1px var(--ink), -5px 5px 0 0 var(--paper); }
.shot { border: 1px dashed var(--faint) !important; border-radius: 0 !important; background: transparent; font-family: var(--pixel); letter-spacing: .1em; }

/* ---------- 14. Footer ---------- */
.site-footer {
  position: relative; background: transparent !important; border-top: 0 !important; color: var(--muted);
  padding: 26px 0 30px; font-family: var(--mono);
}
.site-footer::before {
  display: block !important; content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: radial-gradient(circle, rgba(var(--paper-rgb), .45) 0 1px, transparent 1.4px) 0 50% / 6px 6px repeat-x; -webkit-mask: none; mask: none; transform: none;
}
@media (min-width: 1100px) { body.has-map .site-footer .wrap { padding-left: 38px; } }
.foot-me { font-family: var(--pixel); letter-spacing: .06em; font-size: 15px; }
.pgp-end { font-family: var(--pixel); letter-spacing: .08em; }

/* ---------- 15. Dialogs ---------- */
dialog { background: var(--ink) !important; border: 1px solid var(--paper) !important; border-radius: 0 !important; box-shadow: -7px 7px 0 -1px var(--ink), -7px 7px 0 0 var(--paper) !important; color: var(--paper); }

/* ---------- 16. Cats are off (see QR_CATS in symbol.js) ---------- */
html.no-cats :is(.kitty, .kitty-perch, .paw-trail, .paw, .yarn, .walker, .pet-heart, .cat-only) { display: none !important; }
@media (max-width: 760px) { html.no-cats .page-art:has(.kitty.top) { margin-top: 1.4rem; } }

/* ---------- 17. Phones ---------- */
@media (max-width: 760px) {
  main { padding: 22px 0 34px; }
  main > .wrap { padding-left: 14px; padding-right: 14px; }
  .page > .content, main > .hero { padding: 0 18px 28px !important; margin-left: 7px; box-shadow: -7px 7px 0 -1px var(--ink), -7px 7px 0 0 rgba(var(--paper-rgb), .55); }
  .page > .content::before, main > .hero::before { margin: 0 -18px 40px !important; padding-right: 76px; font-size: 13px; letter-spacing: .1em; }
  .page > .content::after, main > .hero::after { content: "No cookies · No trackers · No rights reserved"; font-size: 11px; letter-spacing: .08em; padding: 0 12px; }
  html[lang="cs"] .page > .content::after, html[lang="cs"] main > .hero::after { content: "Žádné cookies · Žádné sledování · Žádná práva"; }
  .content h2, .hero h2 { font-size: 1.45rem; }
  .site-header .wrap { gap: 0 10px; }
}

/* ---------- 18. The logo and the name, one piece: a stamp with the mark cut out of a coloured block ---------- */
.site-header .brand {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px 0 0; gap: 0; flex: none;
  border: 1px solid var(--paper); background: var(--ink);
  box-shadow: -4px 4px 0 -1px var(--ink), -4px 4px 0 0 rgba(var(--paper-rgb), .55);
  font-size: 1.3rem !important; line-height: 1; text-decoration: none;
}
.site-header .brand::before {
  width: 34px !important; height: 34px !important; margin: -1px 11px -1px -1px !important; flex: none;
  background: rgb(var(--accent-rgb)) !important;
  -webkit-mask: var(--logo) center / 22px 22px no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: var(--logo) center / 22px 22px no-repeat exclude, linear-gradient(#000 0 0);
  transform: none !important; animation: none;
}
.site-header .brand:hover { background: var(--paper); color: var(--ink) !important; }
.site-header .brand:hover::before { transform: none !important; animation: none !important; }
body.egg-anarchy .site-header .brand::before { animation: egg-spin 1.2s var(--ease) !important; }

/* ---------- 19. One big, very quiet picture per section, centred at the top of the window ---------- */
body[data-sec="home"], body:not([data-sec]) { --art: url("assets/art/moon.png"); --art-w: 800px; --art-h: 680px; }
body[data-sec="da"]   { --art: url("assets/art/lock.png");  --art-w: 600px; --art-h: 760px; }
body[data-sec="web"]  { --art: url("assets/art/globe.png"); --art-w: 760px; --art-h: 760px; }
body[data-sec="res"]  { --art: url("assets/art/book.png");  --art-w: 920px; --art-h: 640px; }
body[data-sec="lab"]  { --art: url("assets/art/burst.png"); --art-w: 800px; --art-h: 800px; }
body[data-sec="con"]  { --art: url("assets/art/heart.png"); --art-w: 760px; --art-h: 680px; }
body[data-sec="site"] { --art: url("assets/art/peace.png"); --art-w: 720px; --art-h: 720px; }
.page > .content, main > .hero { background: var(--art) center 90px / var(--art-w) var(--art-h) no-repeat, var(--ink); }
@media (max-width: 760px) {
  .page > .content, main > .hero { background-size: calc(var(--art-w) / 2) calc(var(--art-h) / 2), auto; background-position: center 70px, 0 0; }
}
.mv-spin { animation: hd-spin 3.2s steps(1) infinite; }
@keyframes hd-spin { 0%, 70% { transform: scaleX(1); } 74% { transform: scaleX(.5); } 78% { transform: scaleX(.12); } 82% { transform: scaleX(-.5); } 86% { transform: scaleX(-1); } 90% { transform: scaleX(-.5); } 94% { transform: scaleX(.12); } 98% { transform: scaleX(.5); } }
.mv-flick { animation: hd-flick 4s steps(1) infinite; }
@keyframes hd-flick { 0%, 80%, 86%, 100% { opacity: 1; } 82%, 88% { opacity: .25; } }
.mv-beat { animation: hd-beat 1.8s steps(1) infinite; }
@keyframes hd-beat { 0%, 30%, 100% { transform: scale(1); } 10% { transform: scale(1.125); } 20% { transform: scale(1); } 24% { transform: scale(1.0625); } }
.mv-blink { animation: hd-blink 5s steps(1) infinite; }
@keyframes hd-blink { 0%, 92%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.25); } 96% { transform: scaleY(.0625); } }
@media (prefers-reduced-motion: reduce) { .hd-art { animation: none !important; } }
@media print { .hd-art { display: none !important; } }

/* ---------- 20. No bar on top of the window: it starts with the title ---------- */
.page > .content::before, main > .hero::before, .page > .content::after, main > .hero::after { content: none !important; display: none !important; }
.page > .content, main > .hero { padding-top: 40px !important; }
@media (max-width: 760px) { .page > .content, main > .hero { padding-top: 26px !important; } }
.hero h1 .accent { color: inherit; }

/* ---------- 21. Cats: only on Home and Contact, and a little bigger there ---------- */
body:not([data-sec="home"]):not([data-sec="con"]) :is(.kitty, .kitty-perch, .paw-trail, .paw, .yarn, .walker, .pet-heart) { display: none !important; }
body[data-sec="home"] .about-box .kitty.k-lounge { --px: 4px; }
.con-perch { position: relative; height: 0; max-width: 560px; }
.con-perch .kitty { position: absolute; right: 14px; bottom: -3px; top: auto; left: auto; }
body[data-sec="con"] .con-perch .k-lying { --px: 3.2px; }
body:is([data-sec="home"], [data-sec="con"]) .foot-me .kitty.k-head { --px: 2.4px; }
@media (max-width: 760px) { body[data-sec="home"] .about-box .kitty.k-lounge { --px: 3px; } body[data-sec="con"] .con-perch .k-lying { --px: 2.6px; } }

/* ---------- 22. More colour ---------- */
.content h2::after, .hero h2::after { background-image: radial-gradient(circle, rgba(var(--accent-rgb), .6) 0 1px, transparent 1.4px); }
.ico:not(.mono) { filter: none; }                                   /* app logos in their own colours again */
.tools > details[open] > summary .ico:not(.mono) { filter: none; }
.oss { background: #c2ec4a !important; border-color: #c2ec4a; color: var(--ink) !important; }
.oss.part { background: transparent !important; color: #f2cc5c !important; border: 1px dashed #f2cc5c; }
.legend-n { color: #c2ec4a; }
.tip-tag { color: #f2cc5c; border-color: #f2cc5c; }
/* guide topics each have a colour: tags, filter buttons and the group labels */
/* their own palette, so they never look like the section colours of the tree */
.gt-start { --tc: 255, 107, 94; } .gt-keys { --tc: 53, 208, 186; } .gt-phone { --tc: 127, 140, 255; } .gt-system { --tc: 216, 195, 154; }
.gt-files { --tc: 232, 228, 216; } .gt-books { --tc: 201, 137, 155; } .gt-audio { --tc: 214, 92, 255; }
.gtag[class*="gt-"] { color: rgb(var(--tc)) !important; border-color: rgba(var(--tc), .6) !important; }
main .gfilter button[class*="gt-"] { color: rgb(var(--tc)) !important; border-color: rgba(var(--tc), .6) !important; }
main .gfilter button[class*="gt-"]:hover, main .gfilter button[class*="gt-"][aria-pressed="true"] { background: rgb(var(--tc)) !important; border-color: rgb(var(--tc)) !important; color: var(--ink) !important; }
.g-grp { display: flex; align-items: center; gap: 10px; margin: 1.8rem 0 .5rem; font: 15px var(--pixel); letter-spacing: .12em; text-transform: uppercase; }
.g-grp .g-n { padding: 3px 6px 2px; font-size: 12px; color: var(--ink); background: rgb(var(--gc)); }
.g-grp > span:last-child { color: rgb(var(--gc)); }
.g-grp[data-grp="start"] { --gc: 255, 107, 94; } .g-grp[data-grp="keys"] { --gc: 53, 208, 186; } .g-grp[data-grp="phone"] { --gc: 127, 140, 255; }
.g-grp[data-grp="system"] { --gc: 216, 195, 154; } .g-grp[data-grp="files"] { --gc: 232, 228, 216; } .g-grp[data-grp="books"] { --gc: 201, 137, 155; } .g-grp[data-grp="audio"] { --gc: 214, 92, 255; }
.g-grp[hidden] { display: none; }
/* the tool cards' hashtags and the stack categories in the section colour */
.tc-tag { color: rgb(var(--accent-rgb)); }
.tools summary .cat { color: rgba(var(--accent-rgb), .85) !important; }
.tools > details[open] > summary .cat { color: var(--ink) !important; }

/* ---------- 23. One window, not a stack, and fewer of the usual tricks ---------- */
html body :is(.page > .content, main > .hero, .qt, .about-box, dialog, .map-btn, .site-header .brand, .gl-tip, .egg-toast),
html body main details[open], html body main :is(.btn, .mk-b.mk-main),
html body :is(.tcard, .proj, .lg, .bn, .start, .card, .shot-btn, .proj-shot):is(:hover, :focus-visible) { box-shadow: none !important; }
@media (max-width: 760px) { html body :is(.page > .content, main > .hero) { margin-left: 0; } }
@media (min-width: 761px) { .page > .content, main > .hero { margin-left: 0; } }
/* no coloured full stop after every title */
h1 .dot { display: none; }
/* no dotted rule after every heading */
.content h2::after, .hero h2::after { content: none !important; }
/* no arrows and hashtags on every card */
.start-t::after, .tc-tag::before { content: none !important; }
/* emphasis is just bold, not bold and underlined */
.content .hl, .pl-body .hl, .intro-item .hl { text-decoration: none !important; background: none !important; }
/* the dotted lead-in before the note on the home page */
.map-note .mn-line { display: none; }
/* long handles and keys may break anywhere */
.reach dd, .reach dd a, .addr code { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.reach div { grid-template-columns: minmax(70px, 90px) minmax(0, 1fr) !important; }

/* ---------- 24. Easier to read: proportional text, bigger, calmer labels ---------- */
:root { --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
body { font-family: var(--text); font-size: 17px; }
main .content, main .hero { font-family: var(--text); }
main :is(p, li, dd, dt, td, th, blockquote, figcaption, summary, label, .lead) { font-family: var(--text); }
main :is(code, pre, kbd, .addr, .mono, .pw-value, .as-out, input, textarea, select) { font-family: var(--mono); }
main p, main li { line-height: 1.7; }
main .content > p, main .content > ul, main .content > ol, main .body > p, main .body > ul, main .body > ol { max-width: 68ch; }
.lead { font-size: 1.2rem; line-height: 1.6; }
main strong, main b { font-weight: 600; }
/* buttons, chips and little labels: plain words, not shouting */
main :is(.btn, .seg button, .mk-b, .stack-plat button, .gfilter button, .copy, button.ck-b, .qz-level, [role="tab"], .pw-mode button, .read-btn),
dialog :is(.btn, button) { font-family: var(--text) !important; font-size: 15px !important; font-weight: 600 !important; letter-spacing: .01em !important; text-transform: none !important; }
.tools summary .cat, .tools summary .plat, .gtag, .chip, .tip-tag, .oss, label, legend, .stack-count, .legend-n, .qt-sum, .hdr-blk, .ht-b, .toc-title, .halving { text-transform: none !important; letter-spacing: .02em !important; }
.tools summary .cat, .tools summary .plat, label, legend, .stack-count, .halving { font-family: var(--mono) !important; font-size: 12.5px !important; }
.gtag, .tip-tag, .oss, .chip { font-family: var(--mono) !important; font-size: 11.5px !important; }
.g-grp { font-family: var(--pixel); }
main summary .gt-name, .sg-d, .tc-d, .start-d, .start-k { font-family: var(--text); }
.tools summary .name { font-family: var(--text); font-weight: 600; }
h3 { font-size: 1.4rem; }

/* ---------- 25. Pixel dividers above the chapters (deco.js) ---------- */
main h2.has-pxd { border-top: 0 !important; padding-top: 34px; }
h3.has-pxd { position: relative; padding-top: 28px; margin-top: 2.2em; }
.pxd { position: absolute; left: 0; right: 0; top: -8px; height: 16px; display: block; pointer-events: none; }
.pxd::before { content: ""; position: absolute; left: 26px; right: 0; top: 7px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(var(--paper-rgb), .38) 0 4px, transparent 4px 8px); }
.pxd-s { top: 0; right: auto; width: 150px; }
.pxd-s::before { right: 0; background: repeating-linear-gradient(90deg, rgba(var(--accent-rgb), .55) 0 4px, transparent 4px 8px); }
.pxd i { position: absolute; left: 0; top: 0; width: 16px; height: 16px; background: rgb(var(--accent-rgb));
  -webkit-mask: var(--m) center / 16px 16px no-repeat; mask: var(--m) center / 16px 16px no-repeat; }
@media print { .pxd { display: none !important; } }

/* ---------- 26. The cypherpunk line at the bottom ---------- */
.cp-quote { margin: 10px 0 0; font: 13px/1.5 var(--mono); color: var(--muted); }
.cp-quote q { color: var(--paper); }
.cp-quote q::before, .cp-quote q::after { color: rgb(var(--accent-rgb)); }
}
