/* =====================================================================
   mono.css: black and white, one bit.
   There is no colour on this site. What colour used to do, type does now:
   size, weight, how pixelated a letter is, and inversion (white on black
   becomes black on white). Sections are told apart by dither patterns.
   Pictures are 1-bit: rendered in code, then ordered-dithered.
   This file is the last style layer.
   ===================================================================== */

/* ---------- fonts. Redaction (MCKL, SIL OFL) comes in steps of pixelation: the bigger the text, the coarser the pixels.
   Departure Mono (Helena Zhang & Tobias Fried, MIT) for labels, menus and code. ---------- */
@font-face { font-family: "Redaction 10"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/redaction-10-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Redaction 10"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/redaction-10-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Redaction 10"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/redaction-10-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Redaction 20"; font-weight: 400; font-display: swap; src: url("fonts/redaction-20-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Redaction 35"; font-weight: 400; font-display: swap; src: url("fonts/redaction-35-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Redaction 50"; font-weight: 400; font-display: swap; src: url("fonts/redaction-50-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Departure Mono"; font-weight: 400; font-display: swap; src: url("fonts/departure-mono-400.woff2") format("woff2"); }

:root {
  --ink: #000; --ink-2: #000; --black: #000;
  --paper: #fff; --paper-rgb: 255, 255, 255; --white: #fff;
  --text-c: #f2f2f2;
  --dim: rgba(255, 255, 255, .66); --faint: rgba(255, 255, 255, .32); --hair: rgba(255, 255, 255, .16); --line: rgba(255, 255, 255, .2);
  --muted: #a6a6a6;
  --me: #fff; --me-rgb: 255, 255, 255;
  --accent: #fff; --accent-rgb: 255, 255, 255; --accent-dim: #fff;
  --tint-rgb: 255, 255, 255; --sec: #fff; --sec-rgb: 255, 255, 255;
  --c-da: #fff; --c-web: #fff; --c-res: #fff; --c-con: #fff;
  --serif: "Redaction 10", Georgia, "Times New Roman", serif;
  --serif-20: "Redaction 20", var(--serif);
  --serif-35: "Redaction 35", var(--serif);
  --serif-50: "Redaction 50", var(--serif);
  --dm: "Departure Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --mono: var(--dm); --font: var(--dm); --pixel: var(--dm); --dots: var(--dm); --text: var(--serif);
  --serif-px: var(--serif-35);
  --wide: 1120px; --col: 720px;
  /* the patterns that stand in for colours */
  --p-solid: linear-gradient(#fff, #fff);
  --p-check: conic-gradient(#fff 25%, #000 0 50%, #fff 0 75%, #000 0) 0 0 / 4px 4px;
  --p-hline: repeating-linear-gradient(0deg, #fff 0 1px, #000 1px 3px);
  --p-vline: repeating-linear-gradient(90deg, #fff 0 1px, #000 1px 3px);
  --p-diag: repeating-linear-gradient(45deg, #fff 0 1.5px, #000 1.5px 5px);
  --p-dots: radial-gradient(circle, #fff 0 1px, #000 1.2px) 0 0 / 4px 4px;
  --p-cross: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, #fff 0 1px, #000 1px 4px);
  --pat: var(--p-solid);
}
body[data-sec="da"],   .sec-da   { --pat: var(--p-check); }
body[data-sec="web"],  .sec-web  { --pat: var(--p-hline); }
body[data-sec="res"],  .sec-res  { --pat: var(--p-diag); }
body[data-sec="lab"],  .sec-lab  { --pat: var(--p-dots); }
body[data-sec="con"],  .sec-con  { --pat: var(--p-vline); }
body[data-sec="site"], .sec-site { --pat: var(--p-cross); }
/* every colour variable the older layers use, set to white */
:root, body[data-sec], .qt-li, [class*="sec-"], .site-header nav li, .gt-start, .gt-keys, .gt-phone, .gt-system, .gt-files, .gt-books, .gt-audio, .g-grp, .co-tier, [data-topic] {
  --accent: #fff; --accent-rgb: 255, 255, 255; --accent-dim: #fff; --sec: #fff; --sec-rgb: 255, 255, 255; --tint-rgb: 255, 255, 255;
  --tc: 255, 255, 255; --gc: 255, 255, 255; --bg-rgb: 255, 255, 255; --page-bg: #000;
}

@media screen {

/* ---------- ground ---------- */
html, html:has(body[data-sec]) { background: #000 !important; }
body { background: #000 !important; color: var(--text-c); font: 19px/1.6 var(--serif); font-family: var(--serif) !important; image-rendering: auto; }
body::before, body::after, body[data-sec]::before, body:not([data-sec])::before, main::before { display: none !important; }
::selection { background: #fff; color: #000; }
.hero-bg, .pxd, .page-art, .room, .room-here, .room-cap { display: none !important; }
:focus-visible { outline: 2px solid #fff !important; outline-offset: 3px; }

/* ---------- type ---------- */
h1, .hero h1, .content h1 {
  font-family: var(--serif-50) !important; font-weight: 400 !important; color: #fff !important;
  font-size: clamp(2.7rem, 7vw, 5.2rem) !important; line-height: .98 !important; letter-spacing: -.01em !important; text-shadow: none !important; margin: 0 0 .35em !important;
}
h1 .dot { color: #fff !important; }
h2, .content h2, .hero h2 { font-family: var(--serif-35) !important; font-weight: 400 !important; color: #fff !important; letter-spacing: 0 !important; }
h3, .content h3 { font-family: var(--serif-20) !important; font-weight: 400 !important; color: #fff !important; letter-spacing: 0 !important; }
h4, h5 { font-family: var(--dm) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
p, li, dd, dt, td, th, summary, label, blockquote, figcaption { font-family: inherit; }
.content p, .content li, .hero p { font-family: var(--serif); font-size: 1em; line-height: 1.6; color: var(--text-c); max-width: 68ch; }
strong, b { font-weight: 700; color: #fff; }
em, i { font-style: italic; }
.lead, .content > .lead { font-family: var(--serif) !important; font-size: 1.32rem !important; line-height: 1.5 !important; color: #fff !important; max-width: 40ch; }
.muted { color: var(--muted) !important; }
code, kbd, pre, samp { font-family: var(--dm) !important; }
code { font-size: .82em; background: #000 !important; color: #fff !important; border: 1px solid var(--faint) !important; border-radius: 0 !important; padding: 0 .3em !important; }
kbd { background: #fff !important; color: #000 !important; border: 0 !important; border-radius: 0 !important; padding: 0 .35em; font-size: .8em; box-shadow: none !important; }
/* emphasis without colour: inverted text */
html body :is(.hl-g, .hl, mark), html body .content :is(.hl-g, .hl, mark) { background: #fff !important; background-image: none !important; color: #000 !important; font-weight: 400 !important; padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; text-decoration: none !important; }
/* links: underlined; on hover the link turns into a white block */
a { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.content a:not([class]):hover, .hero a:not([class]):hover, .content p a:hover, .content li a:hover, .site-footer a:hover, .content dd a:hover { background: #fff !important; color: #000 !important; text-decoration: none !important; }

/* ---------- the header: name, sections, language, index ---------- */
:root { --hdr: 60px; }
html body .site-header {
  position: sticky; top: 0; z-index: 50; background: #000 !important; border: 0 !important; border-bottom: 1px solid #fff !important; box-shadow: none !important; backdrop-filter: none !important;
}
.site-header::after, .site-header::before { display: none !important; }
html body .site-header .wrap { max-width: var(--wide) !important; margin: 0 auto; padding: 0 20px !important; min-height: var(--hdr); height: var(--hdr); display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
html body .site-header .brand {
  display: inline-flex; align-items: center; gap: 10px; height: auto; padding: 0; margin: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
  font: 1.7rem/1 var(--serif-35) !important; color: #fff !important; text-decoration: none; letter-spacing: 0; flex: none;
}
html body .site-header .brand::before {
  width: 26px !important; height: 26px !important; margin: 0 !important; background: #fff !important;
  -webkit-mask: var(--logo) center / 26px 26px no-repeat; mask: var(--logo) center / 26px 26px no-repeat; transform: none !important; animation: none !important;
}
html body .site-header .brand:hover { background: transparent !important; text-decoration: underline; text-underline-offset: 5px; }
html body .site-header .hp-form, html body .hdr-blk { display: none !important; }
html body.has-map .site-header nav { display: block !important; margin-left: auto; }
html body .site-header nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: navn; }
html body .site-header nav li::before { content: none !important; }
html body .site-header nav a {
  display: block; padding: 6px 9px; font: 13px/1 var(--dm) !important; letter-spacing: .04em; text-transform: uppercase; color: #fff !important; text-decoration: none !important; border: 0 !important; background: transparent;
}
html body .site-header nav a::after { content: none !important; }
html body .site-header nav a:hover { background: #fff !important; color: #000 !important; }
html body .site-header nav a[aria-current] { background: #fff !important; color: #000 !important; }
html body .site-header nav li:first-child { display: none; }
html body .hdr-tools { margin-left: 4px; }
html body .ht-b { height: 28px; border: 1px solid #fff !important; border-radius: 0 !important; background: #000 !important; color: var(--muted) !important; font: 12px var(--dm) !important; letter-spacing: .06em; padding: 0 6px; }
html body .ht-lang[data-on="en"] [data-l="en"], html body .ht-lang[data-on="cs"] [data-l="cs"] { color: #000 !important; background: #fff !important; padding: 0 4px; }
html body .map-btn {
  display: inline-flex !important; height: 28px; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #fff !important; border-radius: 0 !important; background: #fff !important; color: #000 !important;
  box-shadow: none !important; font: 12px var(--dm) !important; letter-spacing: .06em; text-transform: uppercase; margin: 0;
}
html body .map-btn .map-ic { color: #000 !important; }
html body .map-btn:hover { background: #000 !important; color: #fff !important; }
html body .map-btn:hover .map-ic { color: #fff !important; }
html body .progress { background: #fff !important; height: 2px; }
@media (max-width: 1180px) { html body.has-map .site-header nav { display: none !important; } html body .hdr-tools { margin-left: auto; } }
@media (max-width: 480px) { html body .site-header .brand { font-size: 1.4rem !important; } html body .site-header .wrap { gap: 10px; padding: 0 14px !important; } }

/* ---------- the index (the old tree): a drawer on every screen ---------- */
html body.has-map main, html body.has-map .site-footer { margin-left: 0 !important; }
html body .qt {
  position: fixed !important; top: 0 !important; left: 0 !important; bottom: 0 !important; z-index: 60 !important; width: min(380px, 90vw) !important;
  transform: translateX(-102%); transition: transform .2s steps(4) !important; background: #000 !important; border: 0 !important; border-right: 1px solid #fff !important; box-shadow: none !important; padding: 0 0 12px !important;
  font: 14px/1.4 var(--dm) !important;
}
html body.map-open .qt { transform: none !important; }
html body .qt-close { display: inline-grid !important; place-items: center; }
html body .qt-shade { display: block !important; position: fixed; inset: 0; z-index: 59; background: var(--p-check); opacity: 0; pointer-events: none; transition: opacity .15s; }
html body.map-open .qt-shade { opacity: .55; pointer-events: auto; }
html body.map-open { overflow: hidden; }
html body .qt-top { height: var(--hdr) !important; border-bottom: 1px solid #fff !important; background: #000 !important; padding: 0 12px 0 16px !important; }
html body .qt-cmd { color: #fff !important; font: 13px var(--dm) !important; letter-spacing: .06em; }
html body .qt-ps { color: #fff !important; }
html body .qt-close { width: 30px !important; height: 30px !important; border: 1px solid #fff !important; background: #000 !important; color: #fff !important; font: 14px var(--dm) !important; border-radius: 0 !important; }
html body .qt-close:hover { background: #fff !important; color: #000 !important; }
html body .qt-find { padding: 12px 14px 0 !important; }
html body .qt-find input { background: #000 !important; border: 1px solid #fff !important; color: #fff !important; font: 14px var(--dm) !important; border-radius: 0 !important; box-shadow: none !important; }
html body .qt-nav { background: none !important; font: 14px/1.25 var(--dm) !important; }
html body .qt .qt-l { text-shadow: none !important; }
html body .qt-a { color: var(--dim) !important; }
html body .qt-a:hover { background: #fff !important; color: #000 !important; }
html body .qt-a:hover .qt-l { color: #000 !important; }
html body .qt-has > .qt-row .qt-l, html body .qt-root > .qt-li > .qt-row .qt-l { color: #fff !important; font-weight: 400 !important; }
html body .qt-cur > .qt-a { background: #fff !important; }
html body .qt-cur > .qt-a .qt-l, html body .qt-cur > .qt-a .qt-here { color: #000 !important; }
html body .qt-ar, html body .qt-tw { color: #fff !important; }
html body .g-V::before, html body .g-T::before, html body .g-L::before { border-left: 1px dotted rgba(255, 255, 255, .5) !important; }
html body .g-T::after, html body .g-L::after { border-top: 1px dotted rgba(255, 255, 255, .5) !important; }
html body .qt-sum { color: var(--muted) !important; font: 12px var(--dm) !important; }
html body .qt::after { display: none !important; }
html body .page > .toc, html body .chap-tabs { display: none !important; }

/* ---------- the page: one centred column, pictures may run wider ---------- */
html body main { padding: 0 0 70px !important; }
html body main > .wrap, html body .page { max-width: var(--wide) !important; margin: 0 auto !important; padding-left: 20px !important; padding-right: 20px !important; }
html body .page { display: block !important; }
html body .page > .content, html body main > .hero {
  background: transparent !important; border: 0 !important; box-shadow: none !important; margin: 0 auto !important; padding: 0 !important; max-width: var(--col) !important;
}
html body .page > .content { padding-top: 46px !important; }
html body main > .hero, html body main > .wrap.hero { max-width: var(--wide) !important; width: 100%; }
.crumbs { font: 12px var(--dm) !important; letter-spacing: .04em; color: var(--muted) !important; text-transform: uppercase; margin-bottom: 18px !important; }
.crumbs a { color: var(--muted) !important; }

html body main > .wrap.hero { padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box; }
html body .qt .qt-li.qt-cur > .qt-row > .qt-a .qt-l, html body .qt .qt-cur > .qt-a .qt-l, html body .qt .qt-cur > .qt-a .qt-here { color: #000 !important; }
html body .qt-find, html body .qt label.qt-find { border: 0 !important; box-shadow: none !important; background: none !important; }
/* ---------- a section picture at the top of each section ---------- */
.sec-art { --w: min(var(--wide) - 40px, 100vw - 40px); position: relative; margin: 0 0 34px calc((100% - var(--w)) / 2); width: var(--w); transform: none !important; }
html body .content :is(p, li, dd) code { overflow-wrap: anywhere; word-break: break-word; }
.sec-art img { display: block; width: 100%; height: clamp(170px, 30vw, 360px); object-fit: cover; image-rendering: pixelated; border: 1px solid #fff; }
.sec-art figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font: 12px var(--dm); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sec-art figcaption b { color: #000; background: #fff; padding: 0 6px; font-weight: 400; }
/* the section's pattern as a bar under the title */
html body .page > .content > h1:first-of-type::after { content: ""; display: block; width: 120px; height: 12px; margin-top: 22px; background: var(--pat); border: 1px solid #fff; }

/* ---------- chapters ---------- */
html body .content h2, html body .hero h2 {
  display: block !important; font-size: clamp(1.9rem, 3.6vw, 2.6rem) !important; line-height: 1.05 !important; margin: 2.4em 0 .6em !important; padding: 18px 0 0 !important;
  border-top: 1px solid #fff !important; background: none !important;
}
html body .content h2::before, html body .content h2::after, html body .hero h2::before, html body .hero h2::after { content: none !important; }
html body h2.has-pxd, html body h3.has-pxd { padding-top: 18px !important; }
html body h3.has-pxd { padding-top: 0 !important; }
html body .content h3 { font-size: 1.55rem !important; line-height: 1.15; margin: 1.8em 0 .5em !important; }
html body .chap { scroll-margin-top: 80px; }

/* ---------- boxes: a white line; on hover the whole thing turns white ---------- */
html body :is(.tcard, .proj, .lg, .bn, .lvl-card, .howto-card, .card, .book-card, .start, .co-card, .ac, .key-card, .badge-box, .pw-opts, .pw, .seen-id, .bcmp, .co-live, .mu-screen, .st-scroll, .ep-empty, .quiz-cta, .mk, form.tool, .np, .mu, .ep-step, .case, .pw-out, .as-out) {
  background: #000 !important; border: 1px solid #fff !important; border-radius: 0 !important; box-shadow: none !important; color: var(--text-c);
}
html body :is(.tcard, .proj, .lg, .bn, .card, .start) { transition: none !important; }
html body :is(.tcard, .lg, .bn, .card, .start):is(:hover, :focus-visible) { background: #fff !important; color: #000 !important; box-shadow: 6px 6px 0 0 #000, 6px 6px 0 1px #fff !important; transform: translate(-3px, -3px) !important; }
html body :is(.tcard, .lg, .bn, .card, .start):is(:hover, :focus-visible) * { color: #000 !important; border-color: #000 !important; }
html body :is(.tcard, .lg, .bn, .card, .start):is(:hover, :focus-visible) :is(code, kbd) { background: #000 !important; color: #fff !important; }
html body .start::before, html body .tcard::after, html body .proj::after, html body .card::before { display: none !important; }
html body .start-k { font: 12px var(--dm) !important; letter-spacing: .04em; text-transform: uppercase; color: var(--muted) !important; }
html body .start-t, html body .tc-t, html body .proj-info h3 { font-family: var(--serif-35) !important; font-size: 1.6rem !important; color: #fff !important; line-height: 1.1; letter-spacing: 0 !important; }
html body .start-d, html body .tc-d { font-family: var(--serif) !important; color: var(--text-c); }
html body .tc-tag, html body .tcard small, html body .tc-k { font: 12px var(--dm) !important; letter-spacing: .04em; text-transform: uppercase; color: var(--muted) !important; }

/* fold-outs */
html body main details:not(.intro-more):not(.about-box):not(.tools > details) { background: #000 !important; border: 1px solid #fff !important; border-radius: 0 !important; box-shadow: none !important; }
html body main details[open]:not(.intro-more):not(.about-box):not(.tools > details) { box-shadow: 6px 6px 0 0 #000, 6px 6px 0 1px #fff !important; }
html body main details[open]:not(.intro-more):not(.about-box):not(.tools > details) > summary { border-bottom: 1px solid #fff !important; }
html body main details:not(.intro-more):not(.about-box) > summary::after {
  content: "+" !important; width: 22px !important; height: 22px !important; border: 1px solid #fff !important; background: #000 !important; color: #fff !important; box-shadow: none !important; font: 15px/1 var(--dm) !important; border-radius: 0 !important;
}
html body main details[open]:not(.intro-more):not(.about-box) > summary::after { content: "−" !important; background: #fff !important; color: #000 !important; }
html body .sg-t { font-family: var(--serif-35) !important; font-size: 1.55rem !important; color: #fff !important; letter-spacing: 0 !important; }
html body .sg-d { font-family: var(--serif) !important; color: var(--muted) !important; }
html body .sg-n { border: 1px solid #fff !important; background: #000 !important; color: #fff !important; box-shadow: none !important; font: 13px/1 var(--dm) !important; }
html body .sg[open] .sg-n { background: #fff !important; color: #000 !important; }
html body .stack { gap: 16px !important; }
html body .ico:not(.mono) { filter: brightness(0) invert(1) !important; }
html body .ico.mono { border: 1px solid #fff !important; color: #fff !important; background: #000 !important; font-family: var(--dm) !important; }
html body .tools > details { border: 0 !important; border-top: 1px dashed var(--faint) !important; background: #000 !important; box-shadow: none !important; }
html body .tools > details:first-child { border-top: 0 !important; }
html body .tools > details > summary:hover { background: #111 !important; }
html body .tools > details[open] > summary { background: #fff !important; }
html body .tools > details[open] > summary :is(.cat, .name, .plat) { color: #000 !important; }
html body .tools > details[open] > summary .ico:not(.mono) { filter: brightness(0) !important; }
html body .tools > details[open] > .body { border-left: 1px solid #fff !important; }
html body .tools summary .cat, html body .tools summary .plat { font-family: var(--dm) !important; color: var(--muted) !important; letter-spacing: .03em !important; }
html body .tools summary .name { font-family: var(--serif) !important; font-weight: 700 !important; color: #fff !important; }
html body .tools > details.tip > summary .name { color: var(--dim) !important; font-weight: 400 !important; font-style: italic; }
html body .oss { background: #fff !important; color: #000 !important; border: 1px solid #fff !important; font: 11px/1 var(--dm) !important; }
html body .oss.part { background: #000 !important; color: #fff !important; border: 1px dashed #fff !important; }
html body .tip-tag { border: 1px dashed #fff !important; color: #fff !important; background: #000 !important; box-shadow: none !important; font: 11px/1 var(--dm) !important; }
html body .legend-n, html body .stack-count, html body .halving { font-family: var(--dm) !important; color: #fff !important; }
html body .halving { border: 1px dashed var(--faint) !important; background: #000 !important; box-shadow: none !important; }
html body .halving b { color: #000 !important; background: #fff; padding: 0 3px; }
html body .gtag, html body .chip { border: 1px solid var(--faint) !important; box-shadow: none !important; background: #000 !important; color: #fff !important; font: 11px/1 var(--dm) !important; }
html body .grp-note { border-left: 3px solid #fff !important; }
html body .tip-why { border-left: 3px dotted #fff !important; font-style: italic; }
/* guide topics: a pattern swatch in front of each group */
html body .g-grp { font: 13px var(--dm) !important; text-transform: uppercase; letter-spacing: .05em; color: #fff !important; display: flex; align-items: center; gap: 10px; }
html body .g-grp::before { content: ""; flex: none; width: 22px; height: 14px; border: 1px solid #fff; background: var(--p-solid); }
html body .g-grp[data-grp="keys"]::before { background: var(--p-check); }
html body .g-grp[data-grp="phone"]::before { background: var(--p-hline); }
html body .g-grp[data-grp="system"]::before { background: var(--p-diag); }
html body .g-grp[data-grp="files"]::before { background: var(--p-dots); }
html body .g-grp[data-grp="books"]::before { background: var(--p-vline); }
html body .g-grp[data-grp="audio"]::before { background: var(--p-cross); }
html body .g-grp .g-n { background: #fff; color: #000; padding: 0 4px; }

/* buttons: white blocks; the quieter ones are outlined */
html body 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),
html body dialog :is(.btn, button), html body .term-x {
  border: 1px solid #fff !important; border-radius: 0 !important; background: #000 !important; color: #fff !important; box-shadow: none !important; margin: 0;
  font: 13px/1 var(--dm) !important; letter-spacing: .04em !important; text-transform: uppercase !important; transform: none !important;
}
html body 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,
html body dialog :is(.btn, button):hover, html body .term-x:hover { background: #fff !important; color: #000 !important; }
html body main :is(.seg button, .stack-plat button, .gfilter button, .mk-b)[aria-pressed="true"], html body main .qz-level.on,
html body main [role="tab"][aria-selected="true"], html body main .pw-mode button[aria-selected="true"],
html body main :is(.btn:not(.small):not(.ghost), .mk-b.mk-main) { background: #fff !important; color: #000 !important; border-color: #fff !important; box-shadow: 4px 4px 0 0 #000, 4px 4px 0 1px #fff !important; }
html body main :is(.btn:not(.small):not(.ghost), .mk-b.mk-main):hover { background: #000 !important; color: #fff !important; }
html body main :is(.btn, button):active { transform: translate(2px, 2px) !important; box-shadow: none !important; }
html body .btn { padding: 11px 16px !important; }
html body .btn.small { padding: 7px 10px !important; }

/* fields */
html body :is(main, dialog) :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: #000 !important; color: #fff !important; border: 1px solid #fff !important; border-radius: 0 !important; box-shadow: none !important; font-family: var(--dm) !important; margin: 0;
}
html body :is(main, dialog) :is(input, select, textarea):focus { outline: 2px solid #fff !important; outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, .42) !important; }
html body label, html body legend { font-family: var(--dm) !important; font-size: 13px; letter-spacing: .03em; }
input[type="checkbox"], input[type="radio"] { accent-color: #fff; filter: grayscale(1); }
input[type="range"]::-webkit-slider-thumb { background: #fff !important; }

/* code and the terminal */
html body pre { background: #000 !important; border: 1px solid #fff !important; box-shadow: none !important; font-size: 14px; }
html body pre::before { border-bottom: 1px dashed var(--faint) !important; color: var(--muted) !important; font: 11px/22px var(--dm) !important; }
html body .term { background: #000 !important; border: 1px solid #fff !important; box-shadow: 8px 8px 0 0 #000, 8px 8px 0 1px #fff !important; }
html body .term-bar { border-bottom: 1px solid #fff !important; background: #fff !important; color: #000 !important; font: 12px var(--dm) !important; }
html body .term-bar span { color: #000 !important; }
html body .term .t-g, html body .term a.t-dir, html body .term-ps .t-g:first-child { color: #fff !important; }
html body .pw-bar, html body .ep-bar, html body .co-bar, html body .ck-bar { border: 1px solid #fff !important; background: #000 !important; box-shadow: none !important; }
html body :is(.pw-bar, .ep-bar, .co-bar, .ck-bar) i { background: #fff !important; }
html body .drop, html body .ph-drop { border: 1px dashed #fff !important; background: #000 !important; }
html body .drop:hover, html body .drop.over { background: var(--p-check) !important; }

/* pictures: screenshots and logos go grey; the cats go one-bit */
html body main img:not([src*="assets/px/"]):not([src*="assets/cat/"]):not(.avatar-out):not([src^="data:"]), html body .shot img { filter: grayscale(1) contrast(1.05); }
html body .kitty img, html body .yarn, html body .walker img, html body .paw { filter: grayscale(1) contrast(1.8) brightness(1.25); }
html body .shot-btn, html body .proj-shot { border: 1px solid #fff !important; border-radius: 0 !important; box-shadow: none !important; }
html body .shot-btn:hover, html body .proj-shot:hover { box-shadow: 6px 6px 0 0 #000, 6px 6px 0 1px #fff !important; }
html body .shot { border: 1px dashed var(--faint) !important; font-family: var(--dm) !important; }
/* emoji and other coloured glyphs */
html body :is(.egg-toast, .ac-i, .co-card, .gl-tip, .ach, .ac) { filter: grayscale(1); }

/* pop-ups */
html body .gl-tip, html body .egg-toast { background: #fff !important; color: #000 !important; border: 1px solid #000 !important; border-radius: 0 !important; box-shadow: 6px 6px 0 0 #000, 6px 6px 0 1px #fff !important; font-family: var(--dm) !important; }
html body .egg-toast a, html body .egg-toast b { color: #000 !important; }
html body dialog { background: #000 !important; color: #fff !important; border: 1px solid #fff !important; border-radius: 0 !important; box-shadow: 10px 10px 0 0 #000, 10px 10px 0 1px #fff !important; }
html body dialog::backdrop { background: var(--p-check); opacity: .6; }

/* About me */
html body .about-box { background: #000 !important; border: 1px solid #fff !important; box-shadow: none !important; }
html body .ab-k { background: #fff !important; color: #000 !important; font-family: var(--dm) !important; }
html body .ab-t { font-family: var(--serif-35) !important; font-size: 1.5rem !important; color: #fff !important; }
html body .ab-s { font-family: var(--dm) !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: .04em; color: var(--muted) !important; }
html body .ab-tw { font-family: var(--dm) !important; color: #fff !important; }

/* quotes */
html body .pull { font-family: var(--serif-20) !important; font-size: 1.6rem !important; line-height: 1.3 !important; color: #fff !important; padding: 0 0 0 30px !important; border-left: 6px solid #fff !important; }
html body .pull::before { display: none !important; }
html body blockquote { border-left: 3px solid #fff !important; }

/* tables, lists */
html body table { border-collapse: collapse; }
html body th { font: 12px var(--dm); text-transform: uppercase; letter-spacing: .04em; color: #fff; border-bottom: 1px solid #fff; }
html body td { border-bottom: 1px dashed var(--faint); }
html body .reach div { border: 0 !important; border-bottom: 1px dashed var(--faint) !important; background: transparent !important; box-shadow: none !important; }
html body .reach dt { font: 12px var(--dm) !important; text-transform: uppercase; letter-spacing: .04em; color: var(--muted) !important; }
html body .lg-k { font-family: var(--dm) !important; border-radius: 0 !important; background: #fff !important; color: #000 !important; box-shadow: none !important; }
html body .lg-k.fix { background: #000 !important; color: #fff !important; box-shadow: inset 0 0 0 1px #fff !important; }
html body ul.log li { display: block !important; position: relative; padding-left: 64px !important; border-top: 0 !important; border-bottom: 1px dashed var(--faint) !important; }
html body ul.log li > .lg-k:first-child { position: absolute; left: 0; top: 11px; }

/* ---------- the footer: a dither fade, then the manifesto ---------- */
html body .site-footer {
  position: relative; margin-top: 60px; padding: 120px 0 40px !important; background: #000 !important; border: 0 !important; color: var(--muted); font-family: var(--dm) !important; font-size: 13px;
}
html body .site-footer::before {
  display: block !important; content: ""; position: absolute; left: 0; right: 0; top: 0; height: 96px; transform: none;
  background: url("assets/px/fade.png") 0 0 / 256px 96px repeat-x !important; image-rendering: pixelated; -webkit-mask: none !important; mask: none !important;
}
html body .site-footer .wrap { max-width: var(--wide) !important; margin: 0 auto; padding: 0 20px !important; }
html body .site-footer :is(p, span, a, small) { font-family: var(--dm) !important; }
html body .site-footer a { color: #fff !important; }
html body .foot-me { font: 13px var(--dm) !important; letter-spacing: .03em; }
html body .site-footer [data-nick] { color: #fff !important; }
html body .cp-quote { font-family: var(--serif-20) !important; font-size: clamp(1.5rem, 3.4vw, 2.4rem) !important; line-height: 1.2 !important; color: #fff !important; max-width: 26ch; margin: 30px 0 !important; letter-spacing: 0 !important; }
html body .cp-quote q { font-family: inherit !important; }
html body .cp-quote cite, html body .cp-quote { font-style: normal; }
html body .site-footer .colophon { border-top: 1px dashed var(--faint) !important; }

/* ---------- the home page ---------- */
.hx { padding: 48px 0 0; }
html body .hx .hx-k { font: 12px var(--dm) !important; max-width: none !important; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
html body .hx .hx-k span { background: #fff; color: #000; padding: 1px 6px; }
.hx h1 { font-size: clamp(3rem, 10vw, 7.4rem) !important; line-height: .92 !important; margin: 0 0 .25em !important; }
.hx h1 .accent { white-space: nowrap; }
.hx .rotator { font: clamp(1.15rem, 2.2vw, 1.5rem)/1.4 var(--serif) !important; color: #fff !important; max-width: none !important; min-height: 2.8em; margin: 0 0 30px !important; }
.hx .caret { background: #fff !important; }
.hx-art { margin: 0; position: relative; }
.hx-art img { display: block; width: 100%; height: auto; image-rendering: pixelated; border: 1px solid #fff; }
.hx-art figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font: 12px var(--dm); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hx-art figcaption b { font-weight: 400; color: #fff; }

html body main > .wrap.hero > * { max-width: none !important; }
html body main > .wrap.hero > p { max-width: 70ch !important; }
/* the six doors */
.doors-h { margin-top: 80px !important; }
html body .doors-sub { font: 13px var(--dm) !important; letter-spacing: .04em; text-transform: uppercase; color: var(--muted) !important; margin: -6px 0 26px !important; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; counter-reset: door; }
.door { counter-increment: door; }
.door a { display: grid; grid-template-rows: auto 1fr; height: 100%; color: #fff; text-decoration: none !important; border: 1px solid #fff; background: #000; }
.door-art { position: relative; overflow: hidden; border-bottom: 1px solid #fff; aspect-ratio: 16 / 9; }
.door-art img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.door-art::after { content: counter(door, decimal-leading-zero); position: absolute; left: 0; top: 0; padding: 4px 8px; font: 13px/1 var(--dm); background: #fff; color: #000; }
.door-txt { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.door-t { font: 2rem/1 var(--serif-35); }
.door-d { font: 1.02rem/1.45 var(--serif); color: var(--text-c); }
.door-go { font: 12px var(--dm); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.door-pat { display: block; height: 10px; border-top: 1px solid #fff; background: var(--pat); }
.door a:hover, .door a:focus-visible { background: #fff; color: #000; box-shadow: 8px 8px 0 0 #000, 8px 8px 0 1px #fff; transform: translate(-4px, -4px); }
.door a:hover .door-art img, .door a:focus-visible .door-art img { filter: invert(1); }
.door a:hover :is(.door-d, .door-go), .door a:focus-visible :is(.door-d, .door-go) { color: #000; }
.door a:hover .door-art, .door a:focus-visible .door-art { border-color: #000; }
.door a:hover .door-pat { border-color: #000; filter: invert(1); }
@media (max-width: 720px) { .doors { grid-template-columns: 1fr; gap: 20px; } .door-t { font-size: 1.7rem; } }

/* the way in: a corridor with a light at the end */
.way { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: stretch; margin-top: 8px; }
.way-art { margin: 0; border: 1px solid #fff; position: relative; min-height: 260px; }
.way-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.way-art figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: #000; border-top: 1px solid #fff; font: 15px/1.5 var(--dm); text-transform: uppercase; letter-spacing: .03em; }
.way-art figcaption span { display: block; color: var(--muted); }
.way .starts { grid-template-columns: 1fr 1fr !important; margin: 0 !important; }
@media (max-width: 860px) { .way { grid-template-columns: 1fr; } .way .starts { grid-template-columns: 1fr !important; } }
html body .map-note { font: 13px var(--dm) !important; letter-spacing: .03em; color: var(--muted) !important; margin: 18px 0 0 !important; }
.map-note .mn-wide, .map-note .mn-line { display: none !important; }
.map-note .mn-narrow { display: inline !important; }
.intro-free { border-top: 1px solid #fff !important; padding-top: 22px !important; margin-top: 60px !important; font-family: var(--serif) !important; font-size: 1.15rem !important; color: #fff !important; }
body[data-sec="home"] .about-box { margin-top: 40px !important; }

/* phones */
@media (max-width: 760px) {
  body { font-size: 18px; }
  html body .page > .content { padding-top: 26px !important; }
  .hx { padding-top: 28px; }
  html body .site-footer { padding-top: 100px !important; }
}

}
@media print {
  .hx-art, .doors-h, .doors-sub, .doors, .way-art, .sec-art { display: none !important; }
}

/* =====================================================================
   Softer. Fewer hard white lines: edges are dark grey, corners are rounded,
   hover states lift a little instead of flipping to white.
   ===================================================================== */
@font-face { font-family: "Redaction"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/redaction-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Redaction"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/redaction-latin-400-italic.woff2") format("woff2"); }
:root { --edge: #262626; --edge-2: #3d3d3d; --panel: #0a0a0a; --panel-2: #121212; --r: 12px; --r-s: 7px; --text-c: #e6e6e6; --muted: #9c9c9c; --ease: cubic-bezier(.2, .7, .2, 1); }

@media screen {
/* header: no white rule, just a hairline and a little blur */
html body .site-header { background: rgba(0, 0, 0, .86) !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; border-bottom: 1px solid #161616 !important; }
html body .site-header nav a { font: 16px/1 var(--serif) !important; text-transform: none !important; letter-spacing: 0 !important; padding: 8px 11px !important; border-radius: 0; color: var(--muted) !important; transition: color .2s, background .2s; }
html body .site-header nav a:hover { background: #151515 !important; color: #fff !important; }
html body .site-header nav a[aria-current] { background: #fff !important; color: #000 !important; }
html body .ht-b { border-color: var(--edge-2) !important; border-radius: 0 !important; height: 30px; padding: 0 10px; }
html body .ht-lang[data-on="en"] [data-l="en"], html body .ht-lang[data-on="cs"] [data-l="cs"] { border-radius: 0; }
html body .map-btn { border-radius: 0 !important; height: 30px; }
html body .progress { height: 1px; background: rgba(255, 255, 255, .7) !important; }

/* text */
html body .content h2, html body .hero h2 { border-top: 0 !important; padding-top: 0 !important; margin-top: 2.6em !important; }
html body .content h2::before { content: "" !important; display: block; width: 36px; height: 8px; margin-bottom: 18px; border-radius: 0; background: var(--pat); opacity: .85; }
html body h2.doors-h::before, html body h2.start-h::before { background: var(--p-check); }
html body :is(.hl-g, .hl, mark), html body .content :is(.hl-g, .hl, mark) { background: #ececec !important; border-radius: 0; }
.content a:not([class]):hover, .hero a:not([class]):hover, .content p a:hover, .content li a:hover, .site-footer a:hover, .content dd a:hover { border-radius: 0; }
a { text-decoration-color: rgba(255, 255, 255, .45); }
a:hover { text-decoration-color: #fff; }
html body .page > .content > h1:first-of-type::after { width: 64px; height: 8px; border: 0; border-radius: 0; margin-top: 20px; }
html body .crumbs { text-transform: none !important; letter-spacing: 0 !important; }

/* boxes */
html body :is(.tcard, .proj, .lg, .bn, .lvl-card, .howto-card, .card, .book-card, .start, .co-card, .ac, .key-card, .badge-box, .pw-opts, .pw, .seen-id, .bcmp, .co-live, .mu-screen, .st-scroll, .ep-empty, .quiz-cta, .mk, form.tool, .np, .mu, .ep-step, .case, .pw-out, .as-out),
html body main details:not(.intro-more):not(.about-box):not(.tools > details), html body .about-box {
  background: var(--panel) !important; border: 1px solid var(--edge) !important; border-radius: var(--r) !important; box-shadow: none !important;
}
html body :is(.tcard, .proj, .lg, .bn, .card, .start) { transition: transform .25s var(--ease), border-color .25s, background .25s !important; }
html body :is(.tcard, .lg, .bn, .card, .start):is(:hover, :focus-visible) { background: var(--panel-2) !important; color: var(--text-c) !important; border-color: #8a8a8a !important; box-shadow: 0 14px 30px -18px rgba(255, 255, 255, .18) !important; transform: translateY(-3px) !important; }
html body :is(.tcard, .lg, .bn, .card, .start):is(:hover, :focus-visible) * { color: inherit !important; border-color: inherit; }
html body :is(.tcard, .lg, .bn, .card, .start):is(:hover, :focus-visible) :is(.start-t, .tc-t, h3) { color: #fff !important; }
html body :is(.tcard, .lg, .bn, .card, .start):is(:hover, :focus-visible) :is(.start-k, .tc-tag, small, .tc-k) { color: var(--muted) !important; }
html body :is(.tcard, .lg, .bn, .card, .start):is(:hover, :focus-visible) :is(code, kbd) { background: #000 !important; color: #fff !important; }
html body main details[open]:not(.intro-more):not(.about-box):not(.tools > details) { box-shadow: none !important; border-color: var(--edge-2) !important; }
html body main details[open]:not(.intro-more):not(.about-box):not(.tools > details) > summary { border-bottom: 1px solid var(--edge) !important; }
html body main details:not(.intro-more):not(.about-box) > summary::after { border-color: var(--edge-2) !important; border-radius: 0 !important; }
html body main details:not(.intro-more) > summary { border-radius: var(--r); }
html body .sg-n { border-color: var(--edge-2) !important; border-radius: 0 !important; }
html body .tools > details { border-top: 1px solid #191919 !important; }
html body .tools > details > summary:hover { background: #101010 !important; }
html body .tools > details[open] > summary { background: #e9e9e9 !important; border-radius: 0; }
html body .tools > details[open] > .body { border-left: 1px solid var(--edge-2) !important; }
html body .oss, html body .tip-tag, html body .gtag, html body .chip, html body .lg-k, html body .g-grp .g-n, html body kbd, html body code { border-radius: 0 !important; }
html body code { border-color: var(--edge-2) !important; }
html body .g-grp::before { border-radius: 0; border-color: var(--edge-2); }
html body .halving { border: 1px solid var(--edge) !important; border-radius: var(--r-s) !important; }
html body .grp-note, html body .tip-why { border-left-width: 2px !important; border-left-color: var(--edge-2) !important; }
html body .pull { border-left: 3px solid #fff !important; }

/* buttons and fields */
html body 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),
html body dialog :is(.btn, button), html body .term-x {
  border-color: var(--edge-2) !important; border-radius: 0 !important; text-transform: none !important; letter-spacing: .01em !important; transition: background .2s, color .2s, border-color .2s !important;
}
html body 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,
html body dialog :is(.btn, button):hover, html body .term-x:hover { background: #1a1a1a !important; color: #fff !important; border-color: #8a8a8a !important; }
html body main :is(.seg button, .stack-plat button, .gfilter button, .mk-b)[aria-pressed="true"], html body main .qz-level.on,
html body main [role="tab"][aria-selected="true"], html body main .pw-mode button[aria-selected="true"],
html body main :is(.btn:not(.small):not(.ghost), .mk-b.mk-main) { background: #f0f0f0 !important; color: #000 !important; border-color: #f0f0f0 !important; box-shadow: none !important; }
html body main :is(.btn:not(.small):not(.ghost), .mk-b.mk-main):hover { background: #fff !important; color: #000 !important; }
html body main :is(.btn, button):active { transform: translateY(1px) !important; }
html body :is(main, dialog) :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: #0c0c0c !important; border-color: var(--edge-2) !important; border-radius: var(--r-s) !important;
}
html body :is(main, dialog) :is(input, select, textarea):focus { outline: 2px solid rgba(255, 255, 255, .7) !important; }
html body pre, html body .term { border: 1px solid var(--edge) !important; border-radius: var(--r) !important; box-shadow: none !important; background: #070707 !important; }
html body .term-bar { background: #141414 !important; color: var(--muted) !important; border-bottom: 1px solid var(--edge) !important; border-radius: var(--r) var(--r) 0 0; }
html body .term-bar span { color: var(--muted) !important; }
html body :is(.pw-bar, .ep-bar, .co-bar, .ck-bar) { border-color: var(--edge-2) !important; border-radius: 0 !important; overflow: hidden; }
html body .drop, html body .ph-drop { border-color: var(--edge-2) !important; border-radius: var(--r) !important; }
html body .shot-btn, html body .proj-shot { border: 1px solid var(--edge) !important; border-radius: var(--r-s) !important; overflow: hidden; }
html body .shot-btn:hover, html body .proj-shot:hover { box-shadow: none !important; border-color: #8a8a8a !important; }
html body .gl-tip, html body .egg-toast { border-radius: var(--r) !important; box-shadow: 0 12px 40px rgba(0, 0, 0, .6) !important; background: #f0f0f0 !important; border: 0 !important; }
html body dialog { border-color: var(--edge-2) !important; border-radius: 0 !important; box-shadow: 0 30px 80px rgba(0, 0, 0, .8) !important; }
html body dialog::backdrop { background: rgba(0, 0, 0, .75); opacity: 1; }
html body .reach div { border-bottom: 1px solid #181818 !important; }
html body ul.log li { border-bottom: 1px solid #181818 !important; }
html body td { border-bottom: 1px solid #181818; }
html body th { border-bottom: 1px solid var(--edge-2); }
html body .site-footer .colophon { border-top: 1px solid #181818 !important; }

/* pictures */
.sec-art img, .hx-art img, .way-art { border: 0 !important; border-radius: var(--r); }
.sec-art img, .hx-art img, .door-art img, .way-art img { image-rendering: auto; }
.hx-art figcaption, .sec-art figcaption { text-transform: none; letter-spacing: 0; }

/* the doors on the home page */
.door a { border: 1px solid var(--edge) !important; border-radius: 0; overflow: hidden; background: var(--panel); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.door-art { border-bottom: 1px solid var(--edge); }
.door-art::after { border-radius: 0 0 8px 0; background: rgba(255, 255, 255, .92); }
.door-pat { border-top: 1px solid var(--edge); opacity: .55; height: 8px; }
.door-go { text-transform: none; letter-spacing: 0; }
.door a:hover, .door a:focus-visible { background: var(--panel-2); color: #fff; border-color: #8a8a8a !important; box-shadow: 0 22px 50px -26px rgba(255, 255, 255, .25); transform: translateY(-4px); }
.door a:hover .door-art img, .door a:focus-visible .door-art img { filter: none; transform: scale(1.03); }
.door-art img { transition: transform .5s var(--ease); }
.door a:hover :is(.door-d, .door-go), .door a:focus-visible :is(.door-d, .door-go) { color: var(--text-c); }
.door a:hover .door-art, .door a:focus-visible .door-art { border-color: var(--edge); }
.door a:hover .door-pat { border-color: var(--edge); filter: none; opacity: .9; }
.way-art { border: 1px solid var(--edge) !important; overflow: hidden; }
.way-art figcaption { border-top: 1px solid var(--edge); text-transform: none; background: rgba(0, 0, 0, .82); }
html body .hx .hx-k { text-transform: none !important; letter-spacing: 0 !important; }
html body .hx .hx-k span { border-radius: 0; }
html body .doors-sub, html body .map-note { text-transform: none !important; letter-spacing: 0 !important; }
.intro-free { border-top: 1px solid var(--edge) !important; }


/* the drawer on small screens: softer too */
html body .qt { border-right: 1px solid var(--edge) !important; font: 16px/1.35 var(--serif) !important; }
html body .qt-nav { font: 16px/1.3 var(--serif) !important; }
html body .qt-top { border-bottom: 1px solid var(--edge) !important; }
html body .qt-cmd { font: 1.2rem var(--serif-35) !important; letter-spacing: 0 !important; text-transform: none !important; }
html body .qt-close { border-color: var(--edge-2) !important; border-radius: 0 !important; }
html body .qt-find input { border-color: var(--edge-2) !important; border-radius: var(--r-s) !important; font: 15px var(--serif) !important; }
html body .qt-a { border-radius: 0; }
html body .qt-cur > .qt-a { background: #ececec !important; }
html body .qt-shade { background: rgba(0, 0, 0, .72) !important; }
html body .g-V::before, html body .g-T::before, html body .g-L::before { border-left: 1px solid #2e2e2e !important; }
html body .g-T::after, html body .g-L::after { border-top: 1px solid #2e2e2e !important; }
html body .qt-sum { font: 13px var(--serif) !important; }

/* ---------- the side index: on a wide screen, inside a section ---------- */
@media (min-width: 1100px) {
  html body .map-btn, html body .qt-shade { display: none !important; }
  html body:not(.has-side) .qt { display: none !important; }
  html body.has-side .qt {
    --L: max(20px, calc((100vw - var(--wide)) / 2 + 20px));
    position: fixed !important; z-index: 20 !important; top: calc(var(--hdr) + 34px) !important; bottom: 24px !important; left: var(--L) !important; right: auto !important;
    width: 244px !important; transform: none !important; transition: none !important; background: transparent !important; border: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column;
  }
  html body.has-side .qt-top, html body.has-side .qt-find, html body.has-side .qt-sum, html body.has-side .qt-none, html body.has-side .qt-close { display: none !important; }
  html body.has-side .qt-solo .qt-root > .qt-li:not(.qt-this) { display: none !important; }
  html body.has-side .qt-nav { flex: 1; overflow: auto; padding: 0 6px 20px 0 !important; scrollbar-width: thin; scrollbar-color: #333 transparent; font: 15px/1.3 var(--serif) !important; }
  html body.has-side .qt-solo .qt-this > .qt-row { margin-bottom: 6px; }
  html body.has-side .qt-solo .qt-this > .qt-row .qt-a { padding-left: 0 !important; }
  html body.has-side .qt-solo .qt-this > .qt-row .qt-l { font: 1.35rem/1.1 var(--serif-35) !important; color: #fff !important; white-space: normal; }
  html body.has-side .qt-solo .qt-this > .qt-row .qt-here, html body.has-side .qt-solo .qt-this > .qt-row .qt-g, html body.has-side .qt-solo .qt-this > .qt-row .qt-tw { display: none !important; }
  html body.has-side .qt .qt-a { border-radius: 0; color: var(--muted) !important; transition: color .15s, background .15s; }
  html body.has-side .qt .qt-a:hover { background: #141414 !important; color: #fff !important; }
  html body.has-side .qt .qt-a:hover .qt-l { color: #fff !important; }
  html body.has-side .qt .qt-l { color: var(--muted) !important; }
  html body.has-side .qt-has > .qt-row .qt-l { color: #d0d0d0 !important; }
  html body.has-side .qt .qt-cur > .qt-a { background: transparent !important; }
  html body.has-side .qt .qt-cur > .qt-a .qt-l, html body.has-side .qt .qt-li.qt-cur > .qt-row > .qt-a .qt-l { color: #fff !important; text-decoration: underline; text-underline-offset: 4px; }
  html body.has-side .qt .qt-here { display: none !important; }
  html body.has-side .qt .qt-row.qt-here-now > .qt-a { background: #ececec !important; }
  html body.has-side .qt .qt-row.qt-here-now > .qt-a .qt-l { color: #000 !important; text-decoration: none; }
  html body.has-side .g-V::before, html body.has-side .g-T::before, html body.has-side .g-L::before { border-left-color: #2e2e2e !important; border-left-style: solid !important; }
  html body.has-side .g-T::after, html body.has-side .g-L::after { border-top-color: #2e2e2e !important; border-top-style: solid !important; }
  html body.has-side .qt-ar { color: #666 !important; }
  /* the page moves right to make room */
  html body.has-side .page { padding-left: 20px !important; }
  html body.has-side .page > .content { margin: 0 0 0 284px !important; max-width: 836px !important; }
  html body.has-side .sec-art { --w: 100%; margin-left: 0 !important; width: 100% !important; }
  html body.has-side .sec-art img { height: auto !important; aspect-ratio: 840 / 360; }
  html body.has-side .site-footer .wrap { padding-left: 304px !important; }
}
@media (max-width: 1099px) {
  html body .sec-art { --w: 100%; margin-left: 0 !important; width: 100% !important; }
  html body .sec-art img { height: auto !important; aspect-ratio: 840 / 360; }
}

/* ---------- reading mode: a plain, smooth serif, bigger, and nothing else on the page ---------- */
html body.reading main .content { --read-font: "Redaction", Georgia, serif; }
html body.reading main .content :is(p, li, dd, blockquote) { font-family: "Redaction", Georgia, serif !important; font-size: 1.2rem !important; line-height: 1.85 !important; max-width: 34em !important; color: #ededed !important; }
html body.reading main .content :is(h2, h3) { font-family: "Redaction", Georgia, serif !important; }
html body.reading main .content h1 { font-family: var(--serif-35) !important; }
html body.reading .sec-art, html body.reading .kitty, html body.reading .qt { display: none !important; }
html body.reading .page > .content { margin-left: auto !important; margin-right: auto !important; max-width: 760px !important; }
html body.reading .site-footer .wrap { padding-left: 20px !important; }
html body.reading main .content .pull { font-family: "Redaction", Georgia, serif !important; font-style: italic; }
}

/* =====================================================================
   Sharp again, wider, a little colour.
   Corners are square. Lines stay dark grey, except where a white square
   frames something you can press. Each section has a colour, used only
   faintly: in its pictures and in its index.
   ===================================================================== */
:root { --wide: 1440px; --r: 0px; --r-s: 0px; }
body[data-sec="home"] { --grp: 240, 200, 72; }
body[data-sec="da"],   .sec-da   { --grp: 127, 224, 168; }
body[data-sec="web"],  .sec-web  { --grp: 124, 196, 232; }
body[data-sec="res"],  .sec-res  { --grp: 236, 104, 90; }
body[data-sec="lab"],  .sec-lab  { --grp: 236, 106, 72; }
body[data-sec="con"],  .sec-con  { --grp: 180, 156, 240; }
body[data-sec="site"], .sec-site { --grp: 169, 187, 160; }
@media screen {
html body *, html body *::before, html body *::after { border-radius: 0 !important; }
html body .site-header .wrap, html body main > .wrap, html body .page, html body .site-footer .wrap { max-width: var(--wide) !important; padding-left: 40px !important; padding-right: 40px !important; }
html body .ht-b, html body .map-btn { border-color: #fff !important; }
html body .site-header nav a { border: 1px solid transparent !important; }
html body .site-header nav a:hover { border-color: #fff !important; background: transparent !important; }
html body .site-header nav a[aria-current] { border-color: #fff !important; background: #fff !important; color: #000 !important; }
/* the footer: no band, no quote */
html body .site-footer { padding-top: 34px !important; margin-top: 80px; border-top: 1px solid #1c1c1c !important; }
html body .site-footer::before { display: none !important; }
html body .foot-me { display: inline-flex; align-items: center; gap: 12px; }
html body .foot-av { width: 40px; height: 40px; image-rendering: pixelated; border: 1px solid #fff; filter: none !important; }
/* colour stays in the payment logos and the 88x31 button */
html body .coin, html body .badge-box img, html body dialog svg { filter: none !important; }
/* the pattern under each title takes the section's colour, faintly */
html body .content h2::before { opacity: 1; }
}
@media screen and (min-width: 1100px) {
  html body.has-side .qt { width: 290px !important; --L: max(40px, calc((100vw - var(--wide)) / 2 + 40px)); top: calc(var(--hdr) + 40px) !important; }
  html body.has-side .qt-nav { font: 17px/1.35 var(--serif) !important; }
  html body.has-side .qt-solo .qt-this > .qt-row .qt-l { font: 1.7rem/1.1 var(--serif-35) !important; color: rgb(var(--grp)) !important; text-decoration: none !important; }
  html body.has-side .g-V::before, html body.has-side .g-T::before, html body.has-side .g-L::before { border-left-color: rgba(var(--grp), .35) !important; }
  html body.has-side .g-T::after, html body.has-side .g-L::after { border-top-color: rgba(var(--grp), .35) !important; }
  html body.has-side .qt .qt-row.qt-here-now > .qt-a { background: rgb(var(--grp)) !important; }
  html body.has-side .qt .qt-a:hover { background: rgba(var(--grp), .14) !important; }
  html body.has-side .qt .qt-cur > .qt-a .qt-l, html body.has-side .qt .qt-li.qt-cur > .qt-row > .qt-a .qt-l { text-decoration-color: rgb(var(--grp)); }
  html body.has-side .page > .content { margin-left: 340px !important; max-width: 980px !important; }
  html body.has-side .sec-art img { aspect-ratio: 840 / 360; }
  html body.has-side .site-footer .wrap { padding-left: 380px !important; }
}
/* a section opens on its overview; the first chapter waits below */
html body .intro-pad { display: block; }
.scroll-cue { display: block; width: 1px; height: 46px; margin: 28px 0 0; background: linear-gradient(#fff, transparent); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(10px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* wild letters: on hover, headings scramble, jump and settle */
.fx-ch { display: inline-block; white-space: pre; }
.fx-on .fx-ch { animation: fxj .42s steps(3) both; animation-delay: calc(var(--i) * 12ms); }
@keyframes fxj {
  0% { transform: translate(0, 0) skewX(0); }
  25% { transform: translate(var(--dx), var(--dy)) skewX(-14deg) scaleY(1.25); }
  50% { transform: translate(calc(var(--dx) * -1), calc(var(--dy) * .6)) skewX(10deg) scaleX(1.2); }
  75% { transform: translate(calc(var(--dx) * .4), calc(var(--dy) * -1)) scaleY(.8); }
  100% { transform: none; }
}
/* the home picture: the window moves */
.hx-art { position: relative; }
.hx-art .hx-win { position: absolute; image-rendering: pixelated; pointer-events: none; }

/* =====================================================================
   Edge to edge, a bigger index, an overview at the top of each section,
   the cipher effect, and the line on the home page.
   ===================================================================== */
:root { --wide: 100vw; }
@media screen {
html body .site-header .wrap, html body main > .wrap, html body .page, html body .site-footer .wrap { max-width: none !important; width: 100% !important; padding-left: clamp(20px, 3vw, 56px) !important; padding-right: clamp(20px, 3vw, 56px) !important; box-sizing: border-box; }
html body .foot-av { width: 48px; height: 48px; border: 0 !important; background: none !important; }
/* the cipher wave on headings */
.fx-ch { display: inline; white-space: pre; }
.fx-enc { color: rgba(var(--grp, 255, 255, 255), .95); font-family: var(--dm); font-size: .82em; }
/* the overview at the top of a section */
.ov { list-style: none; margin: 42px 0 0; padding: 0; border-top: 1px solid #222; counter-reset: none; max-width: none !important; }
.ov li { margin: 0; padding: 0; max-width: none !important; border-bottom: 1px solid #222; }
.ov a { display: grid; grid-template-columns: 64px minmax(180px, 300px) 1fr; gap: 6px 24px; align-items: baseline; padding: 18px 4px; text-decoration: none; color: var(--text-c); }
.ov-n { font: 14px var(--dm); color: rgb(var(--grp, 255, 255, 255)); }
.ov-t { font: 1.6rem/1.15 var(--serif-35); color: #fff; }
.ov-d { font: 1.05rem/1.5 var(--serif); color: var(--muted); }
.ov a:hover { background: #fff; color: #000; }
.ov a:hover :is(.ov-t, .ov-d, .ov-n) { color: #000; }
@media (max-width: 760px) { .ov a { grid-template-columns: 44px 1fr; } .ov-d { grid-column: 2; } }
/* the line on the home page: bigger, decrypted into place, with a timer line under it */
html body .hx .rotator { position: relative; font: clamp(1.4rem, 2.6vw, 2.3rem)/1.3 var(--serif-20) !important; color: #fff !important; min-height: 2.7em; max-width: 34ch !important; margin: 6px 0 36px !important; padding-bottom: 16px; cursor: pointer; }
html body .hx .rotator .caret { display: none !important; }
html body .hx .rotator::before { content: "“"; position: absolute; left: -.55em; top: -.05em; color: var(--muted); }
.rot-bar { position: absolute; left: 0; bottom: 0; width: 180px; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; }
html body .hx .rotator:has(#rot[data-tier]:not([data-tier="common"])) .rot-bar { background: rgb(var(--grp, 255, 255, 255)); }
html body .hx .rotator.copied { color: var(--muted) !important; }
.rot-trio { display: none !important; }
}
@media screen and (min-width: 1100px) {
  html body.has-side .qt { width: 340px !important; --L: clamp(20px, 3vw, 56px); left: var(--L) !important; }
  html body.has-side .qt-nav { font: 19px/1.4 var(--serif) !important; }
  html body.has-side .qt-solo .qt-this > .qt-row .qt-l { font: 2rem/1.1 var(--serif-35) !important; }
  html body.has-side .qt .qt-row { min-height: 30px; }
  html body.has-side .page > .content { margin-left: calc(340px + clamp(30px, 3vw, 60px)) !important; max-width: none !important; }
  html body.has-side .content > :is(p, ul, ol:not(.ov), dl, blockquote, .lead) { max-width: 72ch; }
  html body.has-side .site-footer .wrap { padding-left: calc(340px + clamp(50px, 6vw, 116px)) !important; }
}
html body .sec-art img { aspect-ratio: 1500 / 380 !important; height: auto !important; object-fit: cover; }
html body .hx-art img:not(.hx-win) { aspect-ratio: 1200 / 308; }
@media screen {
html body .ov a, html body .ov a * { text-decoration: none !important; }
html body .hx .rotator { padding-left: .55em; }
html body .hx .rotator::before { left: 0; }
}

/* Lab is pink again */
body[data-sec="lab"], .sec-lab { --grp: 230, 122, 169; }
@media screen {
/* the line under my name: a quieter voice than the name, with its timer right under the words */
html body .hx .rotator { display: inline-block; font: italic clamp(1.25rem, 2.2vw, 1.9rem)/1.3 var(--serif) !important; color: #d8d8d8 !important; padding: 2px 0 10px 22px !important; margin: 4px 0 40px !important; min-height: 0; border-left: 2px solid rgba(255, 255, 255, .35); }
html body .hx .rotator::before { content: none !important; }
.rot-bar { left: 22px; bottom: 2px; width: 0; height: 1px; }
html body .hx h1 { margin-bottom: .3em !important; }
}

/* the mark next to my name: a new colour on every load */
@media screen { html body .site-header .brand::before { background: var(--logo-c, #fff) !important; } html body .foot-av { filter: none !important; } }

/* =====================================================================
   Clearer pages: more kinds of type, and the section colour, softly,
   wherever it helps you find your way.
   ===================================================================== */
:root { --grp: 240, 200, 72; }
@media screen {
:root { --tone: color-mix(in srgb, rgb(var(--grp)) 55%, #fff); --tone-2: color-mix(in srgb, rgb(var(--grp)) 30%, #fff); }
body { --tone: color-mix(in srgb, rgb(var(--grp)) 55%, #fff); --tone-2: color-mix(in srgb, rgb(var(--grp)) 30%, #fff); }
/* the app icons keep their own colours */
html body .ico:not(.mono), html body .tools > details[open] > summary .ico:not(.mono) { filter: none !important; }
/* the intro under a section title */
html body .content .lead { font-size: clamp(1.35rem, 1.9vw, 1.6rem) !important; line-height: 1.5 !important; max-width: 40ch !important; }
html body .content .intro-txt { font-size: 1.12rem; line-height: 1.7; color: #cfcfcf; max-width: 62ch; margin: 1em 0 0; }
html body .content .intro-txt + .intro-txt { color: #a9a9a9; }
/* headings: h2 white and large, h3 in the section tone, h4 a small label */
html body .content h2 { font-size: clamp(2.2rem, 3.6vw, 3rem) !important; }
html body .content h2::before { background: rgb(var(--grp)) !important; width: 48px !important; height: 6px !important; opacity: .9 !important; }
html body .content h3 { color: var(--tone) !important; font-size: 1.7rem !important; }
html body .content h4 { color: var(--tone-2) !important; font-size: 13px !important; margin: 1.6em 0 .4em; }
/* text */
html body .content :is(p, li, dd) strong, html body .content :is(p, li, dd) b:not(.hl) { color: var(--tone-2); font-weight: 700; }
html body :is(.hl-g, .hl, mark), html body .content :is(.hl-g, .hl, mark) { background: var(--tone-2) !important; color: #000 !important; }
html body .content a:not([class]) { text-decoration-color: rgba(var(--grp), .7); text-decoration-thickness: 1.5px; }
html body .content a:not([class]):hover { background: var(--tone-2) !important; color: #000 !important; }
html body .content em { color: #e9e9e9; }
html body .content ul:not([class]) > li::marker { color: rgb(var(--grp)); content: "■  "; font-size: .7em; }
html body .content ol:not([class]) { counter-reset: o; list-style: none; padding-left: 0; }
html body .content ol:not([class]) > li { counter-increment: o; position: relative; padding-left: 2.6em; margin: .55em 0; }
html body .content ol:not([class]) > li::before { content: counter(o, decimal-leading-zero); position: absolute; left: 0; top: .3em; font: 13px/1 var(--dm); color: #000; background: var(--tone-2); padding: 3px 5px; }
html body .content .muted, html body .content p.muted { font-style: italic; color: #9a9a9a !important; font-size: .95em; }
html body .content code { color: var(--tone-2) !important; border-color: rgba(var(--grp), .35) !important; }
html body .pull, html body blockquote { border-left-color: rgb(var(--grp)) !important; }
html body .reach dt, html body th, html body .start-k, html body .tc-tag, html body .tcard small, html body .tc-k, html body .tools summary .cat { color: var(--tone-2) !important; }
html body :is(.gtag, .chip, .tip-tag) { border-color: rgba(var(--grp), .5) !important; color: var(--tone-2) !important; }
html body .g-grp { color: var(--tone-2) !important; }
html body .grp-note, html body .tip-why { border-left-color: rgba(var(--grp), .6) !important; }
html body .sg-n, html body main details:not(.intro-more):not(.about-box) > summary::after { border-color: rgba(var(--grp), .6) !important; }
html body .sg[open] .sg-n, html body main details[open]:not(.intro-more):not(.about-box) > summary::after { background: rgb(var(--grp)) !important; border-color: rgb(var(--grp)) !important; }
html body .tools > details[open] > summary { background: var(--tone-2) !important; }
html body :is(.tcard, .lg, .bn, .card, .start):is(:hover, :focus-visible) { border-color: rgb(var(--grp)) !important; }
html body .content table { width: 100%; }
html body .content th { font: 12px var(--dm); letter-spacing: .04em; }
html body .content hr { border: 0; height: 1px; background: rgba(var(--grp), .35); margin: 2.5em 0; }
/* cards carry their own section colour */
.start, .tcard, .door { --tone-2: color-mix(in srgb, rgb(var(--grp)) 30%, #fff); }
html body .start .start-k { color: rgb(var(--grp)) !important; }
}
@media screen and (min-width: 1100px) {
  html body.has-side .qt { width: 380px !important; }
  html body.has-side .qt-nav { font: 21px/1.4 var(--serif) !important; }
  html body.has-side .qt-solo .qt-this > .qt-row .qt-l { font: 2.4rem/1.1 var(--serif-35) !important; }
  html body.has-side .qt .qt-row { min-height: 34px; }
  html body.has-side .page > .content { margin-left: calc(380px + clamp(30px, 3vw, 60px)) !important; }
  html body.has-side .site-footer .wrap { padding-left: calc(380px + clamp(50px, 6vw, 116px)) !important; }
}

/* stronger colour everywhere */
@media screen {
body, :root { --tone: color-mix(in srgb, rgb(var(--grp)) 85%, #fff); --tone-2: color-mix(in srgb, rgb(var(--grp)) 65%, #fff); }
.start, .tcard, .door { --tone-2: color-mix(in srgb, rgb(var(--grp)) 65%, #fff); }
html body .content .intro-txt { color: #d6d6d6; }
}

/* ---------- Account cleanup ---------- */
@media screen {
.ac-terms code { cursor: copy; margin: 0 4px 6px 0; display: inline-block; }
.ac-terms code.copied { background: rgb(var(--grp)) !important; color: #000 !important; }
.ac-sum { font: 1.15rem/1.5 var(--serif); padding: 14px 18px; border-left: 4px solid rgb(var(--grp)); background: #0b0b0b; }
.ac-sum b { color: var(--tone); font-size: 1.25em; }
#ac-q { width: 100%; max-width: 520px; padding: 10px 12px; margin: 10px 0 6px; }
.ac-cat { margin-top: 1.6em !important; }
.ac-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: start; padding: 14px 0; border-bottom: 1px solid #1c1c1c; }
.ac-row[data-m="gone"] .ac-name { text-decoration: line-through; color: var(--muted); }
.ac-row[data-m="alias"] .ac-name::after { content: " ✉"; color: rgb(var(--grp)); }
.ac-name { font: 1.35rem/1.2 var(--serif-35); color: #fff; margin-right: 10px; }
.ac-diff { font: 12px var(--dm); padding: 2px 6px; border: 1px solid; vertical-align: middle; }
.ac-diff.d1 { color: #7fe0a8; } .ac-diff.d2 { color: #f0c060; } .ac-diff.d3 { color: #ec6a48; }
.ac-how { margin: 6px 0 4px !important; color: #c8c8c8; font-size: 1rem; }
.ac-go { font: 13px var(--dm); }
.ac-seg { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.ac-seg button { font-size: 12px !important; padding: 6px 8px !important; }
.ac-add { display: grid; grid-template-columns: 1fr 1.3fr 1fr auto; gap: 8px; }
.ac-add input { padding: 9px 10px; }
@media (max-width: 760px) { .ac-row { grid-template-columns: 1fr; } .ac-seg { justify-content: flex-start; } .ac-add { grid-template-columns: 1fr; } }
/* ---------- Takeout ---------- */
#to-app label input[type="checkbox"] { margin-right: 6px; }
.to-log { max-height: 200px; overflow: auto; font-size: 12px; white-space: pre-wrap; }
.to-log:empty { display: none; }
#to-out .btn { margin: 4px 8px 4px 0; }
/* ---------- Inheritance letter ---------- */
.ih-stop { border: 2px solid #ec6a48; background: rgba(236, 106, 72, .1); padding: 14px 18px; margin: 18px 0; max-width: 72ch; }
.ih-stop strong { color: #ff8f73; }
.ih-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; max-width: 980px; }
.ih-form label, .ih-form fieldset { display: grid; gap: 6px; font: 13px var(--dm); color: var(--tone-2); }
.ih-form fieldset { border: 1px solid #262626; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.ih-form fieldset label { display: inline-flex; gap: 6px; align-items: center; color: #e6e6e6; }
.ih-form input[type="text"], .ih-form textarea { padding: 9px 10px; font: 15px var(--serif) !important; }
.ih-form .ih-bad { outline: 2px solid #ec6a48 !important; }
.ih-warn { color: #ff8f73; font-weight: 700; }
@media (max-width: 760px) { .ih-form { grid-template-columns: 1fr; } }
.ih-paper { background: #f4efe4; color: #1a1a1a; padding: clamp(20px, 4vw, 48px); max-width: 760px; font: 17px/1.6 var(--serif); box-shadow: 10px 10px 0 rgba(var(--grp), .35); }
.ih-paper h3 { color: #1a1a1a !important; font-family: var(--serif-20) !important; font-size: 1.35rem !important; margin: 1.3em 0 .4em !important; }
.ih-paper p, .ih-paper li { color: #1a1a1a !important; max-width: none !important; }
.ih-paper b { color: #000 !important; }
.ih-paper ol > li::before { background: #1a1a1a !important; color: #f4efe4 !important; }
.ih-date { text-align: right; font-family: var(--dm) !important; font-size: 13px; }
}
@media print {
  body.print-letter * { visibility: hidden !important; }
  body.print-letter #ih-letter, body.print-letter #ih-letter * { visibility: visible !important; }
  body.print-letter #ih-letter { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; background: #fff; color: #000; }
}
/* even more saturated */
@media screen { body, :root { --tone: color-mix(in srgb, rgb(var(--grp)) 100%, #fff); --tone-2: color-mix(in srgb, rgb(var(--grp)) 82%, #fff); } .start, .tcard, .door { --tone-2: color-mix(in srgb, rgb(var(--grp)) 82%, #fff); } }
@media screen { html body .content .ih-paper h3 { color: #1a1a1a !important; } html body .content .ih-paper :is(p, li) { color: #1a1a1a !important; } }

/* ---------- About me: a card under the picture ---------- */
@media screen {
.me-card { position: relative; margin: 56px 0 30px; border: 1px solid #2a2a2a; background: linear-gradient(135deg, #0d0d10, #0a0a0a 60%); }
.me-band { display: grid; grid-template-columns: repeat(6, 1fr); height: 8px; }
.me-band span:nth-child(1) { background: #7fe0a8; } .me-band span:nth-child(2) { background: #7cc4e8; } .me-band span:nth-child(3) { background: #ec685a; }
.me-band span:nth-child(4) { background: #e67aa9; } .me-band span:nth-child(5) { background: #b49cf0; } .me-band span:nth-child(6) { background: #f0c848; }
.me-head { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; padding: 34px clamp(20px, 3vw, 44px) 28px; border-bottom: 1px dashed #2a2a2a; }
.me-av { width: clamp(120px, 14vw, 190px); height: auto; image-rendering: pixelated; border: 1px solid #fff; background: #111; box-shadow: 8px 8px 0 rgba(180, 156, 240, .55); }
.me-k { font: 12px var(--dm) !important; letter-spacing: .08em; text-transform: uppercase; color: #f0c848 !important; margin: 0 0 8px !important; }
html body .me-card .me-name { font: clamp(2.6rem, 5vw, 4.2rem)/1 var(--serif-50) !important; margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; background: none !important; }
html body .me-card .me-name::before { content: none !important; }
.me-role { font: clamp(1.25rem, 1.8vw, 1.55rem)/1.4 var(--serif) !important; color: #fff !important; margin: 0 0 10px !important; max-width: 46ch !important; }
.me-who { color: #bdbdbd !important; max-width: 64ch !important; margin: 0 !important; }
.me-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; }
.me-grid > section { padding: 26px clamp(20px, 3vw, 40px) 30px; border-right: 1px dashed #2a2a2a; }
.me-grid > section:last-child { border-right: 0; }
.me-work { background: rgba(127, 196, 232, .07); }
html body .me-work h3 { font: 2rem/1.1 var(--serif-35) !important; color: #7cc4e8 !important; margin: 0 0 10px !important; }
.me-work p { color: #dedede; }
.me-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.me-links a { display: grid; gap: 2px; padding: 8px 10px 8px 14px; border-left: 3px solid rgb(var(--grp)); text-decoration: none !important; color: #fff; }
.me-links b { font: 1.2rem/1.2 var(--serif-35); font-weight: 400; color: rgb(var(--grp)); }
.me-links span { font: .95rem/1.4 var(--serif); color: #b8b8b8; }
.me-links a:hover { background: rgba(var(--grp), .14); }
.me-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.me-tags a { display: inline-block; padding: 7px 11px; border: 1px solid #ec685a; color: #ffd2a0; font: 14px var(--dm); text-decoration: none !important; }
.me-tags li:nth-child(2n) a { border-color: #7fe0a8; color: #b8f5d0; } .me-tags li:nth-child(3n) a { border-color: #e67aa9; color: #ffc0dc; }
.me-tags a:hover { background: #fff; color: #000; }
@media (max-width: 1100px) { .me-grid { grid-template-columns: 1fr 1fr; } .me-useful { grid-column: 1 / -1; border-top: 1px dashed #2a2a2a; } }
@media (max-width: 700px) { .me-head { grid-template-columns: 1fr; } .me-grid { grid-template-columns: 1fr; } .me-grid > section { border-right: 0; border-top: 1px dashed #2a2a2a; } }
/* the footer: links to how the site is made */
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 6px; }
.foot-nav a { font: 14px var(--dm); color: #fff !important; text-decoration: none !important; border-bottom: 1px solid rgba(var(--grp), .8); padding-bottom: 2px; }
.foot-nav a:hover { background: rgb(var(--grp)); color: #000 !important; }
/* stronger colour: headings carry it too */
html body .content h2 { color: color-mix(in srgb, rgb(var(--grp)) 35%, #fff) !important; }
html body .content h2::before { height: 8px !important; width: 64px !important; }
html body .content .lead .hl, html body .content .lead b.hl { background: rgb(var(--grp)) !important; }
}

/* =====================================================================
   A little lighter: the pixel landscape at the end of every page,
   a sparkle instead of the grey line on the home page, and a tab on
   the About me card instead of the colour strip.
   ===================================================================== */
.px-end { position: relative; width: 100%; line-height: 0; margin-top: clamp(16px, 3vw, 40px); pointer-events: none; }
.px-end canvas { display: block; width: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.px-end + .site-footer { margin-top: 0 !important; border-top: 0 !important; }
@media print { .px-end { display: none !important; } }
/* pages with the map on the left: at the end of the page the map steps aside, so the landscape is whole */
@media screen and (min-width: 1100px) { html body.has-side .qt { transition: opacity .5s, transform .5s; } html body.has-side.at-end .qt { opacity: 0 !important; transform: translateX(-12px); pointer-events: none; } }
@media screen {
/* the line under my name: a pixel sparkle that turns and changes colour with every new line */
html body .hx .rotator { border-left: 0 !important; padding-left: 40px !important; }
/* a 7×7 pixel sparkle: long arms, a fat middle and four little dots on the diagonals */
.rot-mark { position: absolute; left: 14px; top: calc(2px + .65em); width: 3px; height: 3px; margin: -1px 0 0 -1px; color: var(--mk, #7fe0a8); background: currentColor;
  box-shadow: 0 -3px, 0 -6px, 0 -9px, 0 3px, 0 6px, 0 9px, -3px 0, -6px 0, -9px 0, 3px 0, 6px 0, 9px 0, -3px -3px, 3px -3px, -3px 3px, 3px 3px, -6px -6px, 6px -6px, -6px 6px, 6px 6px; }
.rot-mark.pop { animation: rot-pop .6s steps(6) both; }
@keyframes rot-pop { 0% { transform: scale(0); } 50% { transform: scale(1.35); } 75% { transform: scale(.85); } 100% { transform: scale(1); } }
html body .hx .rotator .rot-bar { left: 40px !important; bottom: 0 !important; height: 4px !important; background: repeating-linear-gradient(90deg, var(--mk, #7fe0a8) 0 4px, transparent 4px 8px) !important; }
/* the About me card: a soft colour glow in two corners */
.me-band { display: none !important; }
.me-card { margin-top: 56px; background: radial-gradient(70% 90% at 0% 0%, rgba(127, 224, 168, .09), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(180, 156, 240, .08), transparent 60%), #0a0a0c; }
.me-av { box-shadow: 8px 8px 0 rgba(127, 224, 168, .6) !important; border-color: #2a2a2a !important; transition: transform .2s steps(3); }
.me-av:hover { transform: rotate(-3deg) translateY(-3px); }
/* small things that move when you touch them */
.me-tags a { transition: transform .15s steps(2); }
.me-tags li:nth-child(odd) a:hover { transform: rotate(-2deg); } .me-tags li:nth-child(even) a:hover { transform: rotate(2deg); }
.me-links a { transition: transform .15s steps(2), background .15s; }
.me-links a:hover { transform: translateX(4px); }
.hx h1 .dot { display: inline-block; color: var(--mk, #7fe0a8); transition: color .4s; }
@media (prefers-reduced-motion: reduce) { .rot-mark.pop { animation: none; } .me-av, .me-tags a, .me-links a { transition: none; } .me-av:hover, .me-tags a:hover, .me-links a:hover { transform: none; } }
}

/* ---------- colour and a little life on the other pages ---------- */
/* pictures in their own colours: avatars, banners, logos, app screenshots, the before/after of a project */
html body main img, html body .shot img { filter: none !important; }
html body main .kitty img { filter: grayscale(1) contrast(1.8) brightness(1.25) !important; }
/* the logos in the Lab open big, like the banners */
button.lg-img { position: relative; inset: auto; z-index: auto; width: 100%; border: 0; border-radius: 0; color: inherit; font: inherit; cursor: zoom-in; }
button.lg-img:hover, button.lg-img:focus-visible { background: #141414; outline: 1px solid rgb(var(--grp)); outline-offset: -1px; }
.lightbox img[src*="/logos/"] { image-rendering: pixelated; min-width: min(80vw, 600px); background: #0b0b0b; }
@media screen {
/* the mark under the title: pixel dashes in the section colour instead of a grey bar */
html body .page > .content > h1:first-of-type::after { width: 96px !important; height: 6px !important; border: 0 !important; background: repeating-linear-gradient(90deg, rgb(var(--grp)) 0 6px, transparent 6px 10px) !important; }
/* a faint glow of the section colour at the top of the page */
body[data-sec] main { background: radial-gradient(1000px 460px at 82% -120px, rgba(var(--grp), .11), transparent 70%) no-repeat; }
/* section headings get a tiny lift on hover of their links */
html body .content p a:hover { text-decoration-color: rgb(var(--grp)) !important; }
}

/* ---------- the address line in the header (go.js): where you are, and where you can type to go ---------- */
.site-header .wrap { position: relative; }
.go { position: relative; display: flex; align-items: center; min-width: 0; margin: 0 auto 0 6px; font: 15px var(--dm); }
.go-sl { color: #6a6a6a; padding: 0 2px 0 4px; }
.go input { box-sizing: border-box; min-width: 9ch; max-width: calc(46ch + 20px); height: 32px; padding: 0 8px; border: 1px solid transparent; background: transparent; color: #bdbdbd; font: inherit; letter-spacing: .01em; text-overflow: ellipsis; caret-color: rgb(var(--grp)); }
.go input::placeholder { color: #5e5e5e; }
.go input:hover { border-color: #2a2a2a; color: #fff; }
.go input:focus, .go input:focus-visible { outline: none !important; box-shadow: none !important; border-color: rgb(var(--grp)); background: #0b0b0b; color: #fff; }
.go-list { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; width: min(460px, calc(100vw - 32px)); margin: 0; padding: 4px; list-style: none; background: #0b0b0b; border: 1px solid rgb(var(--grp)); box-shadow: 6px 6px 0 rgba(var(--grp), .25); }
.go-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 7px 10px; cursor: pointer; }
.go-list li b { font: 1rem/1.3 var(--serif); font-weight: 400; color: #fff; }
.go-list li span { font: 12px/1.6 var(--dm); color: rgb(var(--grp)); text-align: right; white-space: nowrap; }
.go-list li small { grid-column: 1 / -1; font: .85rem/1.35 var(--serif); color: #9a9a9a; }
.go-list li[aria-selected="true"] { background: rgba(var(--grp), .16); }
.go-list li[aria-selected="true"] b { color: rgb(var(--grp)); }
.go-list .go-none { display: block; cursor: default; color: #9a9a9a; font: .95rem/1.4 var(--serif); }
/* phones: the line gets its own row under my name, the full width of the screen */
@media (max-width: 760px) {
  html body .site-header .wrap { flex-wrap: wrap !important; row-gap: 0; height: auto !important; min-height: 60px; }
  html body .site-header { height: auto !important; }
  html { scroll-padding-top: 120px !important; }
  html body:has(.go) .hdr-path.crumbs { display: none !important; }
  .go { order: 10; flex: 1 0 100%; margin: 2px 0 10px; font-size: 14px; }
  .go-sl { padding-left: 0; }
  .go input { flex: 1; min-width: 0; width: auto !important; max-width: none; height: 34px; border-color: #222; }
  .go-list { width: calc(100vw - 32px); }
}
@media print { .go { display: none !important; } }

/* the section pages open with the same little world at dusk, instead of the old dithered pictures */
.sec-art.has-scene > img { display: none !important; }
.px-top { line-height: 0; }
.px-top canvas { display: block; width: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
html body .sec-art.has-scene { border: 0 !important; background: none !important; aspect-ratio: auto !important; height: auto !important; }

/* =====================================================================
   Calmer: one type family in two voices, one colour per page.
   Text is set in plain Redaction, so it reads easily; headings keep the pixel cuts,
   and only two of them: 50 for page titles, 35 for everything else.
   Departure Mono stays for the small labels and buttons.
   ===================================================================== */
:root { --serif: "Redaction", Georgia, "Times New Roman", serif; --serif-20: "Redaction 35", Georgia, serif; }
/* the mark next to my name takes the colour of the part of the site you're in */
@media screen { html body .site-header .brand::before { background: rgb(var(--grp)) !important; } }
@media screen {
/* the home page: one colour, the warm one from the drawing; the parts of the site are told apart by their names */
.me-card { background: radial-gradient(70% 90% at 0% 0%, rgba(240, 200, 72, .07), transparent 60%), #0a0a0c !important; }
.me-card .me-links li { --grp: 240, 200, 72; }
.me-links a { border-left: 2px solid #2e2e2e !important; }
.me-links a:hover { border-left-color: rgb(var(--grp)) !important; background: rgba(240, 200, 72, .07) !important; }
.me-links b { color: #fff !important; }
.me-links a:hover b { color: rgb(var(--grp)) !important; }
.me-tags a, .me-tags li:nth-child(n) a { border-color: #3a3a3a !important; color: #e6e6e6 !important; }
.me-tags a:hover { border-color: rgb(var(--grp)) !important; background: rgb(var(--grp)) !important; color: #000 !important; }
.me-av { box-shadow: 8px 8px 0 rgba(240, 200, 72, .55) !important; }
.me-grid { grid-template-columns: 1.6fr 1fr !important; }
.me-role { color: rgb(240, 200, 72) !important; }
.me-hire { margin: 0 !important; padding: 18px clamp(20px, 3vw, 44px) 22px; border-top: 1px dashed #2a2a2a; color: #bdbdbd !important; font-size: 1rem; }
.me-hire a { color: #fff; text-decoration-color: rgba(240, 200, 72, .7); }
.me-hire a:hover { color: rgb(240, 200, 72); }
@media (max-width: 1100px) { .me-grid { grid-template-columns: 1fr !important; } .me-useful { border-top: 1px dashed #2a2a2a; } }
}
/* one way to type where you want to go: the line in the header. The map keeps its tree, without a second search. */
html body .qt-find, html body .hp-form, html body .hdr-path { display: none !important; }

/* =====================================================================
   Less like a template: no small tracked capitals anywhere. The little labels
   above things are set the way a person would set them in a magazine:
   a small italic line in the page's colour.
   ===================================================================== */
html body * { text-transform: none !important; }
html body :is(main, .site-footer, .qt, .go) * { letter-spacing: normal !important; }
html body :is(.me-k, .key-k, .hv-k, .lvl-tag, .qz-lv-q, .drop-sub, .tc-k, .start-k, .g-grp, .hx-k, .eyebrow, h4) {
  font-family: var(--serif) !important; font-style: italic !important; font-size: 1.05rem !important; font-weight: 400 !important; color: rgb(var(--grp)) !important; }
html body h4.btc-sub, html body .content h4 { font-size: 1.15rem !important; }
@media screen {
/* the About me card, quieter: hairlines instead of dashes, the useful links as a plain list */
.me-head, .me-grid > section, .me-useful, .me-hire { border-color: #1d1d1f !important; border-style: solid !important; }
html body .me-tags { display: grid !important; gap: 2px !important; }
html body .me-tags a, html body .me-tags li:nth-child(n) a { display: inline !important; padding: 0 !important; border: 0 !important; background: none !important; font: 1.08rem/1.7 var(--serif) !important; color: #e6e6e6 !important; text-decoration: underline !important; text-decoration-color: #444 !important; text-underline-offset: 4px; transform: none !important; }
html body .me-tags a:hover { color: rgb(var(--grp)) !important; text-decoration-color: rgb(var(--grp)) !important; background: none !important; }
html body .me-k { margin-bottom: 10px !important; }
}

/* the quiet map behind every page (ends.js) */
.px-back { position: absolute; top: 0; left: 0; width: 100%; z-index: -1; pointer-events: none; overflow: hidden; }
.px-back canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
html { background: #000 !important; }
html body { background: transparent !important; }
@media print { .px-back { display: none !important; } }

/* =====================================================================
   One family for everything. Menus, buttons and labels are set in the pixel
   Redaction too; the mono face is kept only for what really is code:
   code, keys, addresses, the address line and file paths.
   ===================================================================== */
:root { --dm: "Redaction 35", Georgia, serif; --code: "Departure Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
html body :is(code, kbd, pre, samp, tt, textarea, .go, .go input, .go-list li span, .addr code, .hp-in, .term, .term *, .as-out, .mono, .fp, .hash) { font-family: var(--code) !important; }
/* Redaction's letters are smaller than the mono's at the same size: a touch larger, so labels stay readable */
html body .site-footer :is(.foot-me, .kbd-hint) { font-size: 15px !important; }
html body .site-footer a[href="contact.html#verify"] { font-family: var(--code) !important; }
@media screen {
/* the home card, without the little headings: the places speak for themselves */
html body .me-links a { grid-template-columns: 44px 1fr !important; column-gap: 12px !important; align-items: start; border-left: 0 !important; padding-left: 4px !important; }
html body .me-links a > :is(b, span) { grid-column: 2; }
.me-ico { grid-row: 1 / span 2; width: 33px; height: auto; margin-top: 6px; image-rendering: pixelated; opacity: .85; }
html body .me-links a:hover .me-ico { opacity: 1; }
.me-five { margin: 0 0 8px !important; color: #bdbdbd !important; font: 1.05rem/1.5 var(--serif) !important; }
html body .me-role { font: clamp(1.5rem, 2.2vw, 2rem)/1.25 var(--serif-35) !important; color: rgb(240, 200, 72) !important; }
}
@media screen {
/* the title of a section sits in its landscape, like the card at the start of a chapter */
html body .page > .content > .sec-art.has-scene { margin-bottom: 0 !important; }
html body .page > .content > .sec-art.has-scene ~ h1:first-of-type { position: relative; z-index: 1; margin-top: -6.2% !important; padding-left: clamp(18px, 4%, 48px) !important; text-shadow: 4px 4px 0 #000, -1px -1px 0 #000; }
html body .page > .content > .sec-art.has-scene ~ h1:first-of-type::after { margin-left: 0; }
}
/* the lap time in the footer */
html body .site-footer .lap { margin: 14px 0 4px !important; font: 15px/1.5 var(--serif-35) !important; color: #9a9a9a !important; }
html body .site-footer .lap span { color: #6a6a6a; }
html body .site-footer .lap b { font-weight: 400; color: rgb(var(--grp)); }
/* the dusk scenes are drawn by ends.js; until then the place keeps its height, so nothing jumps */
html body .sec-art:not(.has-scene) { min-height: clamp(130px, 18vw, 240px); }
/* no marker-pen phrases in the text; one stays, on the home page, at the end */
html body main :is(.hl, .hl-g):not(.intro-free .hl-g) { background: none !important; background-image: none !important; color: inherit !important; padding: 0 !important; font-weight: inherit !important; box-shadow: none !important; }
@media screen {
/* the chapter card, a little bigger */
html body .page > .content > .sec-art.has-scene ~ h1:first-of-type { font-size: clamp(2.6rem, 6.4vw, 6.2rem) !important; margin-top: -7.4% !important; }
}

/* =====================================================================
   The map: one colour per branch, in shades. The parts of the site are plain;
   open one and its pages come in its colour, paler the deeper they go;
   the lines are the darkest shade; where you are is filled in.
   ===================================================================== */
html body .qt .qt-cmd { font: 1.5rem/1.2 var(--serif-35) !important; color: #fff !important; }
html body .qt .qt-root > li > .qt-row .qt-l { color: #ececec !important; }
html body .qt .qt-root > li > ul > li > .qt-row .qt-l { color: rgb(var(--grp)) !important; }
html body .qt .qt-root > li > ul > li > ul > li > .qt-row .qt-l { color: color-mix(in srgb, rgb(var(--grp)) 72%, #9a9a9a) !important; }
html body .qt .qt-root > li > ul > li > ul > li > ul .qt-row .qt-l { color: color-mix(in srgb, rgb(var(--grp)) 45%, #8a8a8a) !important; }
html body .qt :is(.g-V, .g-T, .g-L)::before { border-left: 1px solid color-mix(in srgb, rgb(var(--grp)) 32%, #111) !important; }
html body .qt :is(.g-T, .g-L)::after { border-top: 1px solid color-mix(in srgb, rgb(var(--grp)) 32%, #111) !important; }
html body .qt .qt-ar { color: color-mix(in srgb, rgb(var(--grp)) 60%, #777) !important; }
html body .qt .qt-root ul .qt-row.qt-cur.qt-row { background: rgb(var(--grp)) !important; }
html body .qt .qt-root ul .qt-row.qt-cur.qt-row :is(.qt-l, .qt-ar, .qt-a, span).qt-l, html body .qt .qt-root ul .qt-row.qt-cur.qt-row * { color: #000 !important; }
html body .qt .qt-root > li > .qt-row.qt-cur.qt-row { background: none !important; }
html body .qt .qt-root > li > .qt-row.qt-cur.qt-row .qt-l.qt-l { color: rgb(var(--grp)) !important; }
html body .qt .qt-a:hover .qt-l { color: #fff !important; text-decoration: underline; text-decoration-color: rgb(var(--grp)); }
html body .qt .qt-sum { color: #6a6a6a !important; }
html body .qt .qt-root ul .qt-row.qt-cur.qt-row :is(.qt-a, .qt-a *, .qt-tw) { background: none !important; }

/* ---------- account cleanup: three steps, tiles to tap, a progress bar; the GDPR letter ---------- */
.acw-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 !important; margin: 0 0 18px !important; }
.acw-steps button { padding: 9px 14px; border: 1px solid #333; background: #0b0b0b; color: #cfcfcf; font: 16px var(--serif-35); cursor: pointer; }
.acw-steps button.on { background: rgb(var(--grp)); border-color: rgb(var(--grp)); color: #000; }
.acw-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.acw-tile { padding: 10px 14px; border: 1px solid #333; background: #0b0b0b; color: #e8e8e8; font: 1.05rem/1.2 var(--serif); cursor: pointer; transition: transform .12s steps(2); }
.acw-tile:hover { border-color: rgb(var(--grp)); }
.acw-tile[aria-pressed="true"] { background: rgb(var(--grp)); border-color: rgb(var(--grp)); color: #000; }
.acw-tile[aria-pressed="true"]::before { content: "✓ "; }
.acw-tile:active { transform: translateY(1px); }
.acw-more { margin: 18px 0 6px; } .acw-more summary { cursor: pointer; color: #cfcfcf; }
.acw-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding: 12px 0; border-bottom: 1px solid #1d1d1f; }
.acw-row .seg button[aria-pressed="true"] { background: rgb(var(--grp)) !important; color: #000 !important; }
.acw-bar { height: 10px; background: #141414; margin: 0 0 14px; }
.acw-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, rgb(var(--grp)) 0 8px, transparent 8px 10px); transition: width .4s steps(6); }
.acw-close { padding: 14px 0; border-bottom: 1px solid #1d1d1f; }
.acw-close .ac-diff { margin-left: 10px; }
.acw-close.gone .ac-name { text-decoration: line-through; color: #777; }
.acw-done { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.acw-done input { width: 20px; height: 20px; accent-color: rgb(var(--grp)); filter: none !important; }
.gd { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 14px 0; }
.gd label:not(.mk-chk) { display: grid; gap: 4px; color: #cfcfcf; }
.gd input[type="text"], .gd input[type="email"] { padding: 9px 10px; }
.gd fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.gd legend { color: #cfcfcf; margin-bottom: 4px; }
.gd-text { white-space: pre-wrap; background: #0b0b0b; border: 1px solid #262626; padding: 16px 18px; font: 1.05rem/1.65 var(--serif) !important; color: #e6e6e6; max-height: 480px; overflow: auto; }
@media (max-width: 700px) { .gd { grid-template-columns: 1fr; } }
/* lap times for projects */
.lapb { margin: 18px 0 0; padding: 14px 16px; border: 1px solid #262626; background: #0b0b0b; }
.lapb-h { margin: 0 0 8px !important; font: 1.1rem var(--serif-35) !important; color: rgb(var(--grp)) !important; }
.lapb-r { display: grid; grid-template-columns: 7em 1fr 1fr; gap: 10px; align-items: center; padding: 4px 0; }
.lapb-k { color: #9a9a9a; }
.lapb-v { position: relative; display: flex; align-items: center; gap: 8px; }
.lapb-v i { display: block; height: 8px; background: #555; }
.lapb-v.new i { background: repeating-linear-gradient(90deg, rgb(var(--grp)) 0 6px, transparent 6px 8px); }
.lapb-v b { font-weight: 400; white-space: nowrap; }
.lapb-v.new b { color: rgb(var(--grp)); }
.lapb-l { margin: 8px 0 0 !important; display: flex; gap: 18px; color: #777; font-size: .9rem; }
.lapb-l .old::before { content: ""; display: inline-block; width: 10px; height: 8px; background: #555; margin-right: 6px; }
.lapb-l .new::before { content: ""; display: inline-block; width: 10px; height: 8px; background: rgb(var(--grp)); margin-right: 6px; }
/* "Things I changed my mind about" (Research), for when it's filled in */
.mind { list-style: none; padding: 0 !important; counter-reset: m; }
.mind li { counter-increment: m; position: relative; padding: 16px 0 16px 3.2em; border-bottom: 1px solid #1d1d1f; }
.mind li::before { content: counter(m); position: absolute; left: 0; top: 12px; font: 2rem/1 var(--serif-50); color: rgb(var(--grp)); }
.mind-was { color: #8a8a8a !important; text-decoration: line-through; text-decoration-color: rgba(var(--grp), .6); margin: 0 0 4px !important; }
.mind-now { color: #fff !important; font-size: 1.15rem; margin: 0 0 6px !important; }
.mind-why { color: #bdbdbd !important; margin: 0 !important; }
/* secret note: a message or a file */
.sn-kind { margin: 0 0 14px; }
.sn-kind button[aria-pressed="true"] { background: rgb(var(--grp)) !important; color: #000 !important; }
.sn-drop { display: grid; gap: 4px; padding: 22px; margin: 6px 0 4px; border: 1px dashed #3a3a3a; background: #0b0b0b; cursor: pointer; }
.sn-drop.over, .sn-drop:hover { border-color: rgb(var(--grp)); }
.sn-drop b { font: 1.15rem var(--serif-35); font-weight: 400; color: #fff; }
#sn-drop2 { margin-top: 10px; padding: 14px 18px; }
#sn-result.file code { white-space: normal; font-family: var(--serif) !important; }
/* bookshelf topics */
.shelf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.shelf-tags button[aria-pressed="true"] { background: rgb(var(--grp)) !important; color: #000 !important; border-color: rgb(var(--grp)) !important; }
.spine { transition: opacity .25s steps(3), transform .2s steps(2); }
.spine.dim { opacity: .18; }
/* hard cases */
.hc { padding: 22px 0 26px; border-bottom: 1px solid #1d1d1f; }
.hc-n { margin: 0 0 4px !important; color: #6a6a6a !important; font: 15px var(--serif-35) !important; }
html body .hc h3 { margin: 0 0 8px !important; font: 1.9rem/1.15 var(--serif-35) !important; color: rgb(var(--grp)) !important; }
.hc-q { font-size: 1.15rem; color: #f0f0f0; max-width: 62ch; }
.hc-c { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.hc-c button { padding: 10px 14px !important; font: 1rem var(--serif) !important; }
html body .hc-c button[aria-pressed="true"] { background: rgb(var(--grp)) !important; color: #000 !important; border-color: rgb(var(--grp)) !important; }
.hc-against { margin: 16px 0 0; padding: 14px 18px; border-left: 3px solid rgb(var(--grp)); background: rgba(var(--grp), .06); max-width: 66ch; }
.hc-k { margin: 0 0 6px !important; color: rgb(var(--grp)) !important; font: 1rem var(--serif-35) !important; }
.hc-change { margin: 10px 0 0 !important; color: #8a8a8a !important; font-size: .95rem; }
/* the few cheat codes */
html.god body::after { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; box-shadow: inset 0 0 160px 40px rgba(220, 20, 20, .55); animation: god 2.6s steps(6) both; }
@keyframes god { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
html.alert .site-header .brand { position: relative; }
html.alert .site-header .brand::after { content: "!"; position: absolute; left: 26px; top: -13px; font: 2rem/1 var(--serif-50); color: #ff4a4a; text-shadow: 3px 3px 0 #000; animation: alertpop .3s steps(3) both; }
@keyframes alertpop { from { transform: translateY(8px) scale(.4); } to { transform: none; } }
html body .site-footer .lap.purple b { color: #b04cff !important; }
@media (prefers-reduced-motion: reduce) { html.god body::after, html.alert .site-header .brand::after { animation: none; } }
/* QR code maker */
.qr-kind { margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.qr-kind button[aria-pressed="true"] { background: rgb(var(--grp)) !important; color: #000 !important; }
.qr-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.qr-form label:not(.mk-chk) { display: grid; gap: 4px; margin: 0 0 12px; color: #cfcfcf; }
.qr-form :is(input[type="text"], input[type="tel"], input[type="email"], input[type="url"], textarea, select) { padding: 9px 10px; width: 100%; }
.qr-out canvas { display: block; width: 300px; height: 300px; image-rendering: pixelated; background: #0b0b0b; }
.qr-k { margin: 18px 0 4px !important; color: rgb(var(--grp)) !important; font: 1rem var(--serif-35) !important; }
#qr-raw { white-space: pre-wrap; word-break: break-all; }
@media (max-width: 760px) { .qr-grid { grid-template-columns: 1fr; } .qr-out canvas { width: min(300px, 100%); height: auto; aspect-ratio: 1; } }

/* Bitcoin & Monero: a section of its own, dressed like Digital Autonomy */
body[data-sec="btc"], .sec-btc { --grp: 247, 147, 26; }
/* parts written for one language only (the Czech tax rules) */
html:not([lang="cs"]) .cs-only { display: none !important; }
html[lang="cs"] .en-only { display: none !important; }
/* the time test, on a line */
.tt { margin: 18px 0 10px; max-width: 640px; }
.tt-bar { display: grid; grid-template-columns: 3fr 8px 1.2fr; height: 14px; }
.tt-tax { background: repeating-linear-gradient(90deg, #555 0 6px, transparent 6px 9px); }
.tt-day { background: #ff6a3d; }
.tt-free { background: repeating-linear-gradient(90deg, rgb(var(--grp)) 0 6px, transparent 6px 9px); }
.tt-labels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 8px; font-size: .95rem; color: #bdbdbd; }
.tt-labels b { display: block; font-weight: 400; color: #fff; font-family: var(--serif-35); }
.tt-b { text-align: center; } .tt-c { text-align: right; } .tt-c b { color: rgb(var(--grp)); }
.tt figcaption { margin-top: 8px; }
/* six sections in the menu: the menu never wraps, the address next to the name gives way (and ends in …) */
html body.has-map .site-header nav { flex-shrink: 0; }
html body .site-header nav ul { flex-wrap: nowrap; }
html body .site-header nav a { white-space: nowrap; }
html body .go { flex: 0 1 auto; min-width: 0; }
html body .go input { min-width: 0; max-width: 100%; }

/* the desk on the home page: a canvas drawn in the same pixels as the landscapes (desk.js); the picture stays as the fallback */
.hx-art.has-cv > img { display: none !important; }
.hx-cv { display: block; image-rendering: pixelated; }

/* the terminal comes down from the top on ~, half the screen, its bar at the bottom edge */
html body .term { top: 0; bottom: auto; height: min(50vh, 460px); transform: translateY(-110%); border-radius: 0 0 var(--r) var(--r) !important; border-top: 0 !important; }
html body .term.on { transform: none; }
html body .term .term-bar { order: 2; border-bottom: 0 !important; border-top: 1px solid var(--edge) !important; border-radius: 0 0 var(--r) var(--r); }
@media (max-width: 640px) { html body .term { height: 62vh; } }

/* the very end of the changelog: a line in code, like the end of the credits */
.credits-cipher { margin: 72px 0 0 !important; text-align: center; font: 12px/1.6 var(--code) !important; letter-spacing: .18em; color: #5c5c5c !important; user-select: all; }

/* how easy you are to follow: five stars, filled ones white with a black edge, the rest just an outline */
.wanted b { display: flex; gap: 3px; font: 22px/1 var(--serif) !important; }
.wanted i { font-style: normal; color: transparent; -webkit-text-stroke: 1px #6a6a6a; }
.wanted i.on { color: #fff; -webkit-text-stroke: 1.5px #000; text-shadow: 0 0 0 #000, 1px 1px 0 #000; }

/* v: detective mode. Cold blue, the structure outlined, everything you can click or type into in orange */
html.detective body { background: #04080f !important; }
html.detective body::after { content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(90, 170, 220, .05) 0 1px, transparent 1px 3px); }
html.detective :is(main, .site-header, .site-footer, .side) :is(p, li, dd, dt, span, h1, h2, h3, h4, b, i, em, strong, small, figcaption, label, code, td, th, blockquote) { color: #6fb2d8 !important; text-shadow: none !important; }
html.detective :is(main, .site-footer) :is(section, article, div, ul, ol, dl, figure, form, table, h1, h2, h3, p) { outline: 1px dashed rgba(111, 178, 216, .26) !important; outline-offset: -1px; }
html.detective :is(main, .site-header, .site-footer, .side) :is(a, button, input, select, textarea, summary, [role="tab"]),
html.detective :is(main, .site-header, .site-footer, .side) :is(a, button) * { color: #ffa94a !important; }
html.detective :is(main, .site-header, .site-footer, .side) :is(a, button, input, select, textarea, summary, [role="tab"]) { outline: 1px solid #ffa94a !important; outline-offset: 1px; box-shadow: 0 0 10px rgba(255, 150, 50, .45) !important; }
html.detective :is(img, canvas, video, .px-top, .px-end, .backdrop) { filter: grayscale(1) sepia(1) hue-rotate(165deg) saturate(2.2) brightness(.65) !important; }

/* near a secret: the sign next to my name hums */
@keyframes qr-hum { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-1px, 0) rotate(-4deg); } 50% { transform: translate(1px, -1px) rotate(3deg); } 75% { transform: translate(0, 1px) rotate(-2deg); } }
html.hum body .site-header .brand::before { animation: qr-hum .14s steps(2) 6 !important; }

/* ---------- the home page, built like the sections: the desk on top, plain text, no boxes ---------- */
html body .content .rotator { position: relative; display: block; font: italic clamp(1.15rem, 1.8vw, 1.45rem)/1.4 var(--serif) !important; color: #d8d8d8 !important; padding: 0 0 12px 34px !important; margin: 18px 0 0 !important; min-height: 2.2em; max-width: 52ch; cursor: pointer; }
html body .content .rotator .caret { display: none !important; }
html body .content .rotator .rot-mark { left: 10px; }
html body .content .rotator .rot-bar { left: 34px !important; bottom: 0 !important; height: 4px !important; background: repeating-linear-gradient(90deg, var(--mk, #f0c848) 0 4px, transparent 4px 8px) !important; }
html body .content .rotator.copied { color: var(--muted) !important; }

.me-row { display: flex; gap: clamp(20px, 3vw, 36px); align-items: flex-start; }
.me-row > div > p:first-child { margin-top: 0; }
html body .me-row .me-av { flex: 0 0 auto; width: clamp(88px, 12vw, 132px); height: auto; image-rendering: pixelated; border: 0 !important; border-radius: 0 !important; box-shadow: 6px 6px 0 rgba(var(--grp), .55) !important; background: #0b0b0b; }

html body .content ul.places { list-style: none; margin: 18px 0 0; padding: 0; }
.places li { border-top: 1px solid #1e1e1e; }
.places li:last-child { border-bottom: 1px solid #1e1e1e; }
.places a { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; align-items: center; padding: 16px 0; text-decoration: none !important; color: inherit; border: 0 !important; background: none !important; }
.places .me-ico { grid-row: span 2; width: 33px; height: auto; image-rendering: pixelated; justify-self: center; transition: transform .2s steps(3); }
.places b { font: 400 clamp(1.4rem, 2.2vw, 1.8rem)/1.15 var(--serif-35) !important; color: rgb(var(--grp)) !important; }
.places span { color: #a9a9a9; font-size: 1rem; line-height: 1.5; }
.places a:hover b, .places a:focus-visible b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.places a:hover .me-ico { transform: translateY(-3px); }

html body .content ul.quick { list-style: none; margin: 12px 0 28px; padding: 0; }
.quick li { padding: 7px 0; }
.quick li::before { content: "■"; display: inline-block; width: 1.4em; font-size: .7em; color: rgb(var(--grp)); vertical-align: .15em; }
.quick a { font-size: 1.12rem; }
.quick span { color: #8c8c8c; font-size: .95rem; margin-left: .35em; }
.quick span::before { content: "· "; }
@media (max-width: 600px) { .me-row { flex-direction: column; } .quick span { display: block; margin: 2px 0 0 1.95em; } .quick span::before { content: none; } }
@media (prefers-reduced-motion: reduce) { .places .me-ico { transition: none; } .places a:hover .me-ico { transform: none; } }

/* put on the ring: the world goes grey and blurry for a moment, and the edges darken */
html.wraith main, html.wraith .site-header, html.wraith .site-footer, html.wraith .side { filter: grayscale(1) contrast(1.15) blur(.6px); transition: filter .6s; }
html.wraith body::after { content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none; background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, .75) 100%); animation: qr-wraith 5.2s ease both; }
@keyframes qr-wraith { 0% { opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* the logo next to the name: a 16 × 16 pixel mark, shown at 32 px so every pixel is a clean 2 × 2 */
html body .site-header .brand::before { width: 32px !important; height: 32px !important; -webkit-mask: var(--logo) center / 32px 32px no-repeat !important; mask: var(--logo) center / 32px 32px no-repeat !important; image-rendering: pixelated; }

/* the texts page: one list, filtered by topic */
html body .content ul.texts { list-style: none; margin: 8px 0 0; padding: 0; }
.texts li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; border-top: 1px solid #1e1e1e; }
.texts li:last-child { border-bottom: 1px solid #1e1e1e; }
.texts a { display: block; padding: 14px 0; text-decoration: none !important; border: 0 !important; background: none !important; }
.texts b { display: block; font: 400 clamp(1.2rem, 1.9vw, 1.5rem)/1.2 var(--serif-35) !important; color: #fff !important; }
.texts span { display: block; margin-top: 4px; color: #a9a9a9; font-size: 1rem; line-height: 1.5; }
.texts a:hover b, .texts a:focus-visible b { color: rgb(var(--grp)) !important; }
.tx-k { font: 12px var(--dm); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--grp)); }
.texts li[hidden] { display: none !important; }

/* comments under texts (Nostr) */
.nc { margin-top: 64px; }
.nc-status.bad { color: #ff8a7a !important; }
.nc-list { margin: 18px 0 8px; }
.nc-c { border-top: 1px solid #1e1e1e; padding: 14px 0; }
.nc-c:last-child { border-bottom: 1px solid #1e1e1e; }
.nc-c header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.nc-c header b { font-weight: 400; color: rgb(var(--grp)); }
.nc-me { font: 11px var(--dm); letter-spacing: .06em; text-transform: uppercase; background: rgb(var(--grp)); color: #000; padding: 0 5px; }
.nc-t { font: 12px var(--dm); color: #7a7a7a; }
.nc-re { margin: 4px 0 0 !important; font-size: .9rem; color: #8c8c8c; }
.nc-body { margin-top: 6px; line-height: 1.6; overflow-wrap: anywhere; }
.nc-c footer { display: flex; gap: 16px; margin-top: 6px; font-size: .85rem; }
.nc-c footer a { color: #8c8c8c; }
.nc-reply, .nc-mini { background: none; border: 0; padding: 0; color: #8c8c8c; font: inherit; text-decoration: underline; cursor: pointer; }
.nc-reply:hover, .nc-mini:hover, .nc-c footer a:hover { color: #fff; }
.nc-form textarea { width: 100%; box-sizing: border-box; margin-top: 8px; }
.nc-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nc-name { flex: 1 1 200px; }
.tx-meta { font: 13px var(--dm) !important; letter-spacing: .02em; }
.nc [hidden] { display: none !important; }
/* the big section title in the side index: room above capitals, so accents (Ú, Č) aren't cut off */
html body.has-side .qt-solo .qt-this > .qt-row, html body.has-side .qt-solo .qt-this > .qt-row .qt-a { overflow: visible !important; }
html body.has-side .qt-solo .qt-this > .qt-row .qt-l { padding-top: .18em; line-height: 1.2 !important; overflow: visible !important; }
html body.has-side .qt-solo .qt-nav { padding-top: 12px !important; margin-top: -12px !important; }
#ih-form [hidden] { display: none !important; }

/* the landscapes answer clicks */
.px-end canvas, .px-top canvas { pointer-events: auto; }
/* time-test planner */
.pl-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; max-width: 980px; margin: 14px 0; }
.pl-form label { display: grid; gap: 6px; margin: 0; }
.pl-form [hidden] { display: none !important; }
.pl-form input[type="date"] { width: 100%; font: inherit; font-size: .95rem; color: var(--white); background: rgba(11, 11, 11, .8); border: 1px solid var(--line); padding: 9px 10px; color-scheme: dark; }
.pl-act { grid-column: 1 / -1; margin: 0 !important; }
@media (max-width: 860px) { .pl-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pl-form { grid-template-columns: 1fr; } }
.pl-err { color: #ff8f73; font-weight: 700; }
.pl-scroll { overflow-x: auto; max-width: 100%; margin: 10px 0; }
html body .content table.pl-t { min-width: 560px; font: 14px/1.45 var(--dm); }
.pl-t th, .pl-t td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid #262626; vertical-align: top; }
.pl-t .pl-n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-t small { color: var(--tone-2); }
.pl-gone td { opacity: .45; }
.pl-tag { display: inline-block; padding: 1px 7px; border: 1px solid currentColor; font: 12px var(--dm); white-space: nowrap; }
.pl-ok { color: #7fe0a8; } .pl-wait { color: rgb(var(--grp)); } .pl-no { color: #ff8f73; }
.pl-x { background: none; border: 1px solid #333; color: var(--tone-2); width: 26px; height: 26px; cursor: pointer; font: 16px/1 var(--dm); }
.pl-x:hover, .pl-x:focus-visible { border-color: #ff8f73; color: #ff8f73; }
.pl-file { cursor: pointer; display: inline-block; }
.pl-data .btn { margin: 4px 8px 4px 0; }
.pl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 12px 0 18px; }
.pl-card { border: 1px solid #2a2a2a; padding: 14px 16px; }
.pl-card p { margin: 4px 0 !important; font-size: .95rem; }
.pl-coin { font: 20px var(--dm); color: rgb(var(--grp)); }
.pl-bar { height: 8px; background: #222; margin: 10px 0 8px; }
.pl-bar span { display: block; height: 100%; background: #7fe0a8; }
.pl-up { padding-left: 1.2em; } .pl-up li { margin: 4px 0; }
.pl-res { display: grid; gap: 4px; border-left: 4px solid currentColor; padding: 10px 16px; margin: 16px 0 10px; background: rgba(255, 255, 255, .03); max-width: 760px; }
.pl-res b { font: 22px var(--dm); }
.pl-res span { color: #e6e6e6; }
.pl-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; margin: 12px 0; max-width: 980px; }
.pl-dl dt { font: 12px var(--dm); color: var(--tone-2); letter-spacing: .03em; }
.pl-dl dd { margin: 2px 0 0; font: 18px var(--dm); font-variant-numeric: tabular-nums; }
.pl-tip { border: 1px dashed rgba(var(--grp), .6); padding: 8px 12px; max-width: 760px; }
.pl-which { margin: 10px 0; }
/* a tool mentioned in the text: a clear button under the paragraph */
.tool-go { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 4px 0 26px !important; }
html body .content a.tool-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; background: rgb(var(--grp)); color: #0b0b0b !important; border: 2px solid rgb(var(--grp)); box-shadow: 4px 4px 0 rgba(var(--grp), .3); font: 600 15px var(--dm); text-decoration: none !important; background-image: none !important; transition: transform .15s, box-shadow .15s; }
html body .content a.tool-btn::before { content: "Open the tool"; font: 11px var(--dm); letter-spacing: .08em; text-transform: uppercase; opacity: .7; padding-right: 12px; border-right: 1px solid rgba(0, 0, 0, .35); }
html[lang="cs"] body .content a.tool-btn::before { content: "Otevřít nástroj"; }
html body .content a.tool-btn::after { content: "→"; font-size: 18px; line-height: 1; transition: transform .15s; }
html body .content a.tool-btn:is(:hover, :focus-visible) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(var(--grp), .45); }
html body .content a.tool-btn:is(:hover, :focus-visible)::after { transform: translateX(4px); }
@media (max-width: 520px) { html body .content a.tool-btn { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; } html body .content a.tool-btn::before { flex-basis: 100%; border-right: 0; padding-right: 0; } }
@media print { .tool-go { display: none !important; } }
/* Print · Download · [format] */
.xbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.xbar .xbar-dl { display: inline-flex; align-items: stretch; }
.xbar .xbar-dl .btn { border-right: 0 !important; }
.xbar select { width: auto !important; min-width: 0; padding: 0 30px 0 10px !important; font: 13px var(--dm) !important; border: 1px solid rgba(var(--grp), .7) !important; background-color: #0b0b0b !important; color: #e6e6e6 !important; border-radius: 0 !important; cursor: pointer; }
.xbar select:focus-visible { outline: 2px solid rgb(var(--grp)); outline-offset: 1px; }
.xbar .btn i { font-style: normal; }
.gp-dl { display: inline-flex; margin-left: 10px; vertical-align: middle; }
.gp-x { margin-top: 18px; }
#as-x { display: inline-flex; }
@media (max-width: 520px) { .xbar .xbar-dl { flex: 1 1 100%; } .xbar .xbar-dl select { flex: 1; } .gp-dl { margin: 10px 0 0; display: flex; } }
@media print { .xbar, .gp-dl, .gp-x { display: none !important; } }
/* planner: the lock and the charts */
#pl.pl-locked [data-app] { display: none !important; }
.pl-lockscreen { border: 1px solid rgba(var(--grp), .6); padding: 4px 20px 10px; margin: 18px 0 30px; max-width: 760px; }
.pl-pw { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.pl-pw input[type="password"] { width: 100%; font: inherit; font-size: .95rem; color: var(--white); background: rgba(11, 11, 11, .8); border: 1px solid var(--line); padding: 9px 10px; }
.pl-lockbox { border-left: 3px solid rgba(var(--grp), .6); padding: 2px 0 2px 14px; margin: 10px 0 18px; max-width: 760px; }
.pl-lockbox .btn { margin: 4px 8px 4px 0; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.pl-charts { display: grid; gap: 22px; margin: 10px 0 8px; max-width: 980px; }
.pl-chart { margin: 0; }
.pl-chart figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font: 13px var(--dm); color: #d8d8d8; margin-bottom: 6px; }
.pl-chart figcaption b { font-size: 16px; color: #f0f0f0; }
.pl-key, .pl-ch-tip span { display: inline-flex; align-items: center; gap: 6px; }
.pl-key i, .pl-ch-tip i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.k-free { background: #2fa06a; } .k-wait { background: #d06f0c; }
.pl-ch-wrap { position: relative; }
.pl-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.pl-chart svg text { font: 11px var(--dm); fill: #9a9a9a; }
.pl-ch-free { fill: #2fa06a; } .pl-ch-wait { fill: #d06f0c; stroke: #0b0b0b; stroke-width: 1.5; }
.pl-ch-grid { stroke: #262626; stroke-width: 1; } .pl-ch-axis { stroke: #555; stroke-width: 1; }
.pl-ch-today { stroke: #e6e6e6; stroke-width: 1; stroke-dasharray: 3 3; } .pl-chart svg .pl-ch-tl { fill: #e6e6e6; }
.pl-ch-cross { stroke: #e6e6e6; stroke-width: 1; pointer-events: none; }
.pl-ch-tip { position: absolute; top: 0; display: grid; gap: 3px; padding: 7px 10px; background: #111; border: 1px solid #333; font: 12px var(--dm); color: #e6e6e6; pointer-events: none; white-space: nowrap; z-index: 2; }
@media print { .pl-ch-tip, .pl-ch-cross { display: none; } }
.pl-ch-tip[hidden] { display: none !important; }
.pl-lockscreen h3 { margin-top: 14px !important; }
/* the "where to go" list: a quiet highlight on hover, so the coloured titles stay readable */
html body .content .places a:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .05) !important; color: inherit !important; box-shadow: inset 3px 0 0 rgb(var(--grp)); }
html body .content .places a:is(:hover, :focus-visible) span { color: #d6d6d6 !important; }
.oss-why { border-left: 2px solid rgba(var(--grp), .5); padding-left: 12px; }
html body .content .places a { padding-left: 16px !important; }
/* under construction: a box with a pixel warning tape on top */
.uc { max-width: 720px; margin: 26px 0 40px; border: 2px solid rgb(var(--grp)); padding: 0 22px 14px; background: rgba(0, 0, 0, .55); }
.uc::before { content: ""; display: block; height: 12px; margin: 0 -22px 16px; background: repeating-linear-gradient(-45deg, rgb(var(--grp)) 0 12px, #111 12px 24px); image-rendering: pixelated; }
html body .content .uc .uc-k { font: 700 13px var(--dm); letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--grp)) !important; margin: 0 0 8px; }
/* a section's chapters, under its intro; the side index waits until you go into one */
@media (min-width: 1100px) {
  #site-map { transition: opacity .35s ease, transform .35s ease; }
  body.side-away #site-map { opacity: 0; transform: translateX(-28px); pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { #site-map { transition: none; } }
html body .content nav.ch-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 34px 0 0; max-width: 980px; border-top: 1px solid #1e1e1e; }
html body .content .ch-menu a { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: baseline; padding: 16px 12px 16px 14px; border-bottom: 1px solid #1e1e1e; text-decoration: none !important; color: inherit !important; background: none !important; }
.ch-menu i { grid-row: span 2; font: 13px var(--dm); font-style: normal; color: #777; }
.ch-menu b { font: 400 clamp(1.3rem, 2vw, 1.65rem)/1.15 var(--serif-35) !important; color: rgb(var(--grp)) !important; }
.ch-menu span { color: #a9a9a9; font-size: .98rem; line-height: 1.45; margin-top: 4px; }
html body .content .ch-menu a:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .05) !important; box-shadow: inset 3px 0 0 rgb(var(--grp)); }
html body .content .ch-menu a:is(:hover, :focus-visible) b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
html body .content .ch-menu a:is(:hover, :focus-visible) span { color: #d6d6d6; }
@media (max-width: 700px) { html body .content nav.ch-menu { grid-template-columns: 1fr; } }
@media print { .ch-menu { display: none !important; } }
.legend-n { white-space: nowrap; }
/* achievements wear their rarity */
html body .ac { filter: none !important; }
html body .ac .ac-i { filter: grayscale(1); }
.ac .ac-t { display: inline-block; font: 11px var(--dm); font-style: normal; letter-spacing: .08em; text-transform: uppercase; margin: 2px 0 4px; }
.ac.got.t-epic, .ac.got.t-legendary, .ac.got.t-mythic { box-shadow: 0 0 18px rgba(242, 204, 92, .12); }
.ac.got.t-mythic { border-color: var(--t-mythic) !important; }
/* a section's first screen: picture, title, intro and its chapters, across the whole width */
@media (min-width: 1100px) {
  body.intro-wide .sec-intro { margin-left: calc(-1 * var(--shift, 0px)); width: var(--iw, 100%); max-width: none !important; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: start; }
  body.intro-wide .sec-intro > :is(.sec-art, h1, nav.ch-menu, .places) { grid-column: 1 / -1; }
  body.intro-wide .sec-intro > .sec-art { margin-bottom: 20px !important; }
  body.intro-wide .sec-intro > h1 { margin-bottom: 14px !important; }
  body.intro-wide .sec-intro > p { max-width: none !important; margin-top: 0 !important; }
  body.intro-wide[data-sec="home"] .sec-intro > .lead { grid-column: 1 / -1; }
  body.intro-wide .sec-intro > nav.ch-menu { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 22px; max-width: none; }
  body.intro-wide[data-sec="home"] .sec-intro { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
  body.intro-wide[data-sec="home"] .sec-intro > .intro-txt { font-size: .93em; }
  body.intro-wide .sec-intro > .places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; margin-top: 22px !important; border-top: 1px solid #1e1e1e; }
  body.intro-wide .sec-intro > .places li:last-child { border-bottom: 0; }
  body.intro-wide .sec-intro > .places li { border-top: 0; border-bottom: 1px solid #1e1e1e; }
  body.intro-wide .sec-intro > .places a { padding-top: 12px; padding-bottom: 12px; }
}
@media (min-width: 1100px) {
  body.intro-wide[data-sec="home"] .sec-intro > h1 { position: relative; z-index: 2; margin-top: -78px !important; margin-left: 28px !important; text-shadow: 0 2px 0 #000, 0 0 18px rgba(0, 0, 0, .8); }
  body.intro-wide[data-sec="home"] .sec-intro > .lead { margin-bottom: 16px !important; }
  body.intro-wide[data-sec="home"] .sec-intro > .intro-txt { color: #d8d8d8 !important; }
}
@media (min-width: 1100px) {
  body.intro-wide[data-sec="home"] .sec-intro > .intro-txt { font-size: .88em; line-height: 1.55; margin-bottom: 0 !important; }
  body.intro-wide[data-sec="home"] .sec-intro > .places { margin-top: 14px !important; }
  body.intro-wide[data-sec="home"] .sec-intro > .places a { padding-top: 9px; padding-bottom: 9px; }
  body.intro-wide[data-sec="home"] .sec-intro > .places span { font-size: .9rem; }
}
@media (min-width: 1100px) { body.intro-wide .sec-intro > .lead { font-size: 1.22rem !important; } }
html body .ac .ac-t.tier-common { color: var(--t-common) !important; } html body .ac .ac-t.tier-uncommon { color: var(--t-uncommon) !important; }
html body .ac .ac-t.tier-rare { color: var(--t-rare) !important; } html body .ac .ac-t.tier-epic { color: var(--t-epic) !important; }
html body .ac .ac-t.tier-legendary { color: var(--t-legendary) !important; } html body .ac .ac-t.tier-mythic { color: var(--t-mythic) !important; }
html body .egg-toast .tier-common { color: var(--t-common); } html body .egg-toast :is(.tier-uncommon, .tier-rare, .tier-epic, .tier-legendary, .tier-mythic) { font-weight: 600; }
/* a short screen: the six sections on the home page show just their names, so everything still fits */
@media (min-width: 1100px) and (max-height: 920px) {
  body.intro-wide[data-sec="home"] .sec-intro > .places span { display: none; }
  body.intro-wide[data-sec="home"] .sec-intro > .places a { padding-top: 8px; padding-bottom: 8px; }
  body.intro-wide[data-sec="home"] .sec-intro > .places b { font-size: clamp(1.2rem, 1.8vw, 1.5rem) !important; }
  body.intro-wide[data-sec="home"] .sec-intro > .lead { margin-bottom: 10px !important; }
}
@media (min-width: 1100px) and (max-height: 780px) {
  body.intro-wide .sec-intro > .intro-txt { font-size: .84em !important; line-height: 1.5 !important; }
  body.intro-wide .sec-intro > .lead { font-size: 1.12rem !important; }
}
/* home: more air under the big title */
@media (min-width: 1100px) {
  body.intro-wide .sec-intro > h1 { margin-bottom: 28px !important; }
  body.intro-wide .sec-intro > .lead { margin-bottom: 22px !important; }
}
/* home: the most useful tools as cards, each in its section's colour */
html body .content ul.useful { list-style: none; margin: 18px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; max-width: none; }
html body .content .useful li { margin: 0; padding: 0; }
html body .content .useful li::before { content: none !important; display: none !important; }
html body .content .useful a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px 34px; border: 1px solid #262626; border-top: 3px solid rgb(var(--grp)); background: rgba(255, 255, 255, .02) !important; text-decoration: none !important; color: inherit !important; transition: transform .15s, border-color .15s, background .15s; }
.useful b { font: 400 1.3rem/1.15 var(--serif-35) !important; color: rgb(var(--grp)) !important; }
.useful span { color: #a9a9a9; font-size: .95rem; line-height: 1.45; }
.useful i { position: absolute; right: 16px; bottom: 10px; font-style: normal; color: rgb(var(--grp)); transition: transform .15s; }
html body .content .useful a:is(:hover, :focus-visible) { transform: translateY(-3px); border-color: rgb(var(--grp)); background: rgba(255, 255, 255, .05) !important; }
html body .content .useful a:is(:hover, :focus-visible) span { color: #d6d6d6; }
html body .content .useful a:is(:hover, :focus-visible) i { transform: translateX(4px); }
/* home: what's new */
html body .content ul.news { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 10px; max-width: 900px; }
html body .content .news li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: baseline; margin: 0; padding: 12px 16px; border-left: 3px solid rgb(var(--grp)); background: rgba(255, 255, 255, .03); }
html body .content .news li::before { content: none !important; display: none !important; }
.news-k { font: 12px var(--dm); letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--grp)); }
.news-fix .news-k { color: #9a9a9a; }
.news-t { color: #d8d8d8; font-size: .98rem; line-height: 1.5; }
.news-wait { grid-template-columns: 1fr !important; }
@media (min-width: 1100px) and (max-height: 780px) {
  html body .content .sec-intro .ch-menu a { padding-top: 10px; padding-bottom: 10px; }
  body.intro-wide .sec-intro > h1 { margin-bottom: 18px !important; }
  body.intro-wide .sec-intro > nav.ch-menu { margin-top: 14px; }
}

/* taxationistheft: ten seconds of lasers over everything */
.egg-rave { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9000; pointer-events: none; }
.egg-rave.calm { background: radial-gradient(circle, rgba(255, 61, 151, .35), rgba(4, 2, 10, .85)); }
.egg-rave-t { position: fixed; inset: 0; z-index: 9001; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em;
  font: 400 clamp(2.4rem, 10vw, 8.5rem)/.95 "Departure Mono", monospace; text-transform: uppercase; letter-spacing: .04em; text-align: center;
  color: hsl(var(--h, 330), 100%, 72%); text-shadow: 0 0 18px hsl(var(--h, 330), 100%, 55%), 6px 6px 0 #000; }
.egg-rave-t span { display: block; animation: rave-bump .42s steps(3) infinite alternate; }
.egg-rave-t span:nth-child(2) { animation-delay: -.14s; font-size: .55em; }
.egg-rave-t span:nth-child(3) { animation-delay: -.28s; }
@keyframes rave-bump { from { transform: scale(1) rotate(-2deg); } to { transform: scale(1.12) rotate(2deg); } }
html.raving body > :not(canvas):not(.egg-rave-t) { animation: rave-shake .12s steps(2) infinite; }
@keyframes rave-shake { 0% { transform: translate(0, 0); } 50% { transform: translate(3px, -2px); } 100% { transform: translate(-3px, 2px); } }
@media (prefers-reduced-motion: reduce) { .egg-rave-t span, html.raving body > * { animation: none !important; } }

/* the avatar on the home page: a thin frame and a soft glow in its own pink, instead of the offset block */
html body .me-row .me-av { cursor: zoom-in; border: 1px solid rgba(255, 61, 151, .5) !important; box-shadow: 0 0 0 4px #0a0608, 0 0 0 5px rgba(255, 61, 151, .22), 0 0 34px rgba(255, 61, 151, .22) !important; transition: box-shadow .25s; }
html body .me-row .me-av:hover, html body .me-row .me-av:focus-visible { transform: none; outline: none; box-shadow: 0 0 0 4px #0a0608, 0 0 0 5px rgba(255, 61, 151, .5), 0 0 46px rgba(255, 61, 151, .42) !important; }
dialog.av-pop { max-width: min(92vw, 520px); padding: 26px 26px 24px; background: #0a0608; color: #eee; border: 1px solid rgba(255, 61, 151, .5); box-shadow: 0 0 60px rgba(255, 61, 151, .25); text-align: center; }
dialog.av-pop::backdrop { background: rgba(0, 0, 0, .78); }
dialog.av-pop img { display: block; width: min(80vw, 420px); height: auto; margin: 0 auto 18px; image-rendering: pixelated; }
dialog.av-pop .av-pop-t { margin: 0 0 18px; line-height: 1.5; }
dialog.av-pop .lb-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: #bbb; font-size: 1.2rem; cursor: pointer; }
dialog.av-pop a.tool-btn { display: inline-block; padding: 12px 18px; background: #ff3d97; color: #0b0b0b; border: 2px solid #ff3d97; box-shadow: 4px 4px 0 rgba(255, 61, 151, .3); font: 600 15px var(--dm); text-decoration: none; }
dialog.av-pop a.tool-btn:hover { background: #0a0608; color: #ff3d97; }
/* changelog: when each change went live */
html body ul.log li time, html body .news time { display: block; margin: 0 0 2px; font: 12px/1.4 var(--dm); letter-spacing: .02em; color: rgba(var(--grp), .85); }
/* the footer starts at the left edge, like the header, not after the index column */
@media (min-width: 0px) { html body.has-side .site-footer .wrap, html body .site-footer .wrap { padding-left: clamp(20px, 3vw, 56px) !important; margin-left: 0 !important; } }
/* logos keep inside their frame, however tall the picture is */
html body button.lg-img { height: 150px; overflow: hidden; }
html body button.lg-img img { max-width: 100%; max-height: 122px; width: auto; height: auto; object-fit: contain; }
/* Save video & audio */
.sm { display: grid; gap: 10px; margin: 8px 0 18px; }
.sm-l { margin: 14px 0 2px; font: 600 13px var(--dm); letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--grp)); }
.sm input[type="url"] { width: 100%; box-sizing: border-box; padding: 12px 14px; background: #0b0b0b; color: #eee; border: 1px solid #444; font: 15px var(--dm); }
.sm input[type="url"]:focus { outline: 2px solid rgb(var(--grp)); outline-offset: 1px; }
.sm-site { margin: 0; min-height: 1.3em; }
.sm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-chips label { cursor: pointer; }
.sm-chips input { position: absolute; opacity: 0; pointer-events: none; }
.sm-chips span { display: inline-block; padding: 8px 12px; border: 1px solid #444; background: #0b0b0b; font: 14px var(--dm); }
.sm-chips input:checked + span { background: rgb(var(--grp)); color: #0b0b0b; border-color: rgb(var(--grp)); }
.sm-chips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.sm-opts { display: grid; gap: 8px; }
.sm-opts label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; cursor: pointer; }
.sm-opts label[hidden] { display: none; }
.sm-opts select { background: #0b0b0b; color: #eee; border: 1px solid #444; padding: 3px 6px; font: 13px var(--dm); }
.sm-out pre code { white-space: pre-wrap; word-break: break-all; }
.sm-why { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.sm-why li { color: #bbb; }
.sm-why code { color: rgb(var(--grp)); margin-right: 6px; }
html body .sm-opts select { width: auto !important; min-width: 0 !important; display: inline-block !important; }

/* a quiet link under a chapter heading to the same chapter on a page of its own (for bookmarks) */
html body .own-page { margin: -6px 0 14px; font: 13px var(--dm); }
html body .own-page a { color: rgba(var(--grp), .9); text-decoration: none; border-bottom: 1px dotted rgba(var(--grp), .6); }
html body .own-page a::before { content: "↗ "; }

html body .site-facts { list-style: none; padding: 0; display: grid; gap: 10px; }
html body .site-facts li { padding: 12px 16px; border-left: 2px solid rgb(var(--grp)); background: rgba(255, 255, 255, .02); }

/* ---------- intros: the lead and a row of ways in on the left, one paragraph on the right ---------- */
html body .intro-one { border-left: 2px solid rgb(var(--grp)); padding-left: 18px !important; color: #e4e4e4 !important; }
html body .intro-one .hl, html body .sec-intro .lead .hl { color: rgb(var(--grp)) !important; background: none !important; }
html body .intro-note { display: block; margin-top: 10px; font-size: .82em; color: #8a8a8a; font-style: italic; }
html body .intro-go { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 4px 0 0 !important; }
html body .intro-go a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid rgba(var(--grp), .55); color: rgb(var(--grp)) !important; font: 14px var(--dm); text-decoration: none !important; background: rgba(var(--grp), .06); transition: background .15s, color .15s; }
html body .intro-go a::after { content: "→"; }
html body .intro-go a:hover, html body .intro-go a:focus-visible { background: rgb(var(--grp)); color: #0b0b0b !important; }
@media (min-width: 1100px) {
  body.intro-wide .sec-intro, body.intro-wide[data-sec="home"] .sec-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: row dense; column-gap: 56px; }
  body.intro-wide .sec-intro > .lead, body.intro-wide[data-sec="home"] .sec-intro > .lead { grid-column: 1; margin-bottom: 14px !important; }
  body.intro-wide .sec-intro > .intro-one, body.intro-wide[data-sec="home"] .sec-intro > .intro-one { grid-column: 2; grid-row: span 2; font-size: .95em !important; line-height: 1.6 !important; margin-bottom: 0 !important; }
  body.intro-wide .sec-intro > .intro-go { grid-column: 1; align-self: start; }
}
@media (min-width: 1100px) and (max-height: 820px) {
  body.intro-wide .sec-intro > .intro-one, body.intro-wide[data-sec="home"] .sec-intro > .intro-one { font-size: .86em !important; line-height: 1.5 !important; }
}
html body main .content .sec-intro :is(.lead, .intro-one) b.hl, html body main .content :is(.lead, .intro-one) b.hl { color: rgb(var(--grp)) !important; background: none !important; font-weight: 600 !important; }
html body[data-sec="home"] .sec-intro > h1 { pointer-events: none; }

/* code with a Copy button: the button sits on the wrapper, not on the scrolling code */
html body .copy-wrap { position: relative; }
html body .copy-wrap > .btn { position: absolute !important; top: 8px !important; right: 8px !important; z-index: 2; }
html body .copy-wrap > pre.has-copy { padding-right: 84px; }

/* the side index in a long section: chapters stand out, what's inside them steps back, one chapter open at a time */
@media (min-width: 1100px) {
  html body.has-side .qt-solo .qt-this > .qt-ul > .qt-li { margin-top: 4px; }
  html body.has-side .qt-solo .qt-this > .qt-ul > .qt-li + .qt-li { border-top: 1px solid rgba(var(--grp), .16); padding-top: 4px; }
  html body.has-side .qt-solo .qt-this > .qt-ul > .qt-li > .qt-row .qt-l { color: rgb(var(--grp)) !important; font-size: 1.06em; letter-spacing: .01em; }
  html body.has-side .qt-solo .qt-this > .qt-ul > .qt-li:has(> .qt-ul:not([hidden])) { background: linear-gradient(90deg, rgba(var(--grp), .07), transparent 80%); box-shadow: inset 2px 0 0 rgb(var(--grp)); }
  html body.has-side .qt-solo .qt-this .qt-ul .qt-ul .qt-l { font-size: .88em; color: #bdbdbd !important; }
  html body.has-side .qt-solo .qt-this .qt-ul .qt-ul .qt-ul .qt-l { font-size: .82em; color: #9a9a9a !important; }
  html body.has-side .qt-solo .qt-this .qt-ul .qt-ul .qt-row.qt-here-now .qt-l { color: #0b0b0b !important; }
}
/* Contact in the header: the one place I want you to go, so it stands out a little */
/* the Contact button in the header always takes the colour of the section you're in (--pg is the page's colour,
   taken on body before anything inside can change --grp) */
html body { --pg: var(--grp); }
html body .site-header nav a[href="contact.html"] { border: 1px solid rgb(var(--pg)) !important; color: color-mix(in srgb, rgb(var(--pg)) 70%, #fff) !important; background: rgba(var(--pg), .12) !important; box-shadow: 3px 3px 0 rgba(var(--pg), .35); }
html body .site-header nav a[href="contact.html"]:hover, html body .site-header nav a[href="contact.html"]:focus-visible { background: rgb(var(--pg)) !important; color: #0b0b0b !important; }
html body .site-header nav a[href="contact.html"][aria-current="page"] { background: rgb(var(--pg)) !important; color: #0b0b0b !important; }
/* the row you're on in the side index: dark text on the section colour, at every level */
html body.has-side .qt .qt-row.qt-here-now > .qt-a .qt-l, html body.has-side .qt-solo .qt-this > .qt-ul > .qt-li > .qt-row.qt-here-now .qt-l, html body.has-side .qt-solo .qt-this .qt-row.qt-here-now .qt-l, html body.has-side .qt .qt-row.qt-here-now .qt-ar, html body.has-side .qt .qt-row.qt-here-now .qt-n { color: #0b0b0b !important; }

/* the full-size view of a download, with its buttons underneath */
html body dialog.lightbox .lb-dl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 0; }
html body dialog.lightbox .lb-dl[hidden] { display: none; }
html body dialog.lightbox .lb-dl .btn { text-decoration: none; }
html body a.av { cursor: zoom-in; }

/* ---------- the police-stop manual: calm, readable, for everyone ---------- */
/* what kind of text it is and when: as big as the italic lines that open the other parts of the site */
html body .mk-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 6px; font-family: var(--serif) !important; font-style: italic; font-size: 1.25rem; line-height: 1.3; letter-spacing: .01em; color: rgb(var(--grp)); }
html body .mk-kicker .lang-badge { font-style: normal; margin-left: 0; }
html body .mk-warn { margin: 18px 0 22px; padding: 14px 18px 12px; border: 1px solid rgba(240, 190, 80, .55); border-left: 4px solid #f0be50; background: rgba(240, 190, 80, .07); }
html body .mk-warn-k { margin: 0 0 6px; font: 600 13px var(--dm); letter-spacing: .06em; text-transform: uppercase; color: #f0be50; }
html body .mk-warn ul { margin: 0; padding-left: 20px; }
html body .mk-warn li { margin: 4px 0; }
html body .mk-x { margin: 0 0 8px; }
html body .q-tag, html body .fix-tag { display: inline-block; padding: 0 6px; margin: 0 2px; font: 600 11px/1.6 var(--dm); letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; white-space: nowrap; }
html body .q-tag { color: #0b0b0b; background: #f0be50; }
html body .fix-tag { color: #0b0b0b; background: #7fe0a8; }
html body .mk-legend { font-size: .92em; color: #bbb; }
html body .mk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 14px 0 18px; }
html body .mk-card { padding: 12px 14px; border: 1px solid #262626; background: rgba(255, 255, 255, .025); }
html body .mk-card p { margin: 0 0 6px; font-size: .95em; line-height: 1.5; }
html body .mk-card .mk-t { margin-bottom: 6px; font-weight: 600; color: rgb(var(--grp)); font-size: 1em; }
html body .mk-k { display: block; font: 12px var(--dm); letter-spacing: .04em; text-transform: uppercase; color: #8a8a8a; }
html body .rules-card { margin: 14px 0 24px; padding: 18px 20px 14px; border: 2px solid rgb(var(--grp)); background: rgba(var(--grp), .06); box-shadow: 6px 6px 0 rgba(var(--grp), .25); }
html body .rules-k { display: inline-block; margin: 0 0 10px; padding: 2px 10px; font: 600 12px var(--dm); letter-spacing: .08em; text-transform: uppercase; color: #0b0b0b; background: rgb(var(--grp)); }
html body .rules-card ol > li { margin: 6px 0; }
html body .rules-card ol > li::marker { color: rgb(var(--grp)); font-weight: 700; }
html body details.mk-fold { margin: 8px 0; border: 1px solid #262626; background: rgba(255, 255, 255, .02); }
html body details.mk-fold > summary { padding: 11px 14px; cursor: pointer; font-weight: 600; color: #eee; list-style: none; }
html body details.mk-fold > summary::-webkit-details-marker { display: none; }
html body details.mk-fold > summary::before { content: "+"; display: inline-block; width: 1.2em; color: rgb(var(--grp)); font-family: var(--dm); }
html body details.mk-fold[open] > summary::before { content: "−"; }
html body details.mk-fold[open] > summary { border-bottom: 1px solid #262626; }
html body details.mk-fold .mk-body { padding: 6px 16px 10px; }
html body .content.manual input[type="checkbox"] { accent-color: rgb(var(--grp)); margin-right: 8px; }
@media print { html body .mk-warn, html body .rules-card { box-shadow: none; } }
html body .tz-q { margin: 10px 0 14px; padding: 10px 16px; border-left: 2px solid rgba(var(--grp), .6); background: rgba(255, 255, 255, .02); }

/* the thesis, coming soon */
html body .thesis-card { padding: 18px 20px 6px; border: 1px solid rgba(var(--grp), .5); background: linear-gradient(135deg, rgba(var(--grp), .08), transparent 60%); }
html body .th-soon { display: inline-block; margin: 0 0 10px; padding: 2px 10px; font: 600 12px var(--dm); letter-spacing: .06em; text-transform: uppercase; color: #0b0b0b; background: rgb(var(--grp)); }
html body .th-t { margin: 0; font: 1.6rem/1.2 var(--serif); color: #fff; }
html body .th-s { margin: 2px 0 12px; color: rgb(var(--grp)); font-style: italic; }
html body .content > .mk-kicker { margin: -6px 0 14px; }
html body details.mk-fold > summary::before { content: none !important; }
html body details.mk-fold > summary { text-align: left !important; justify-content: flex-start !important; }

/* ---------- language badge: the same everywhere (a speech bubble and the code) ---------- */
html body .lang-badge { display: inline-flex !important; align-items: center; gap: 5px; padding: 1px 7px 1px 4px; margin: 0 4px; border: 1px solid rgba(255, 255, 255, .55); background: #0b0b0b; color: #fff !important; font: 700 11px/1.5 var(--dm) !important; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; text-decoration: none !important; }
html body .lang-badge::before { content: ""; width: 15px; height: 10px; background-size: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
html body .lang-badge::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 1h10v6H5L2 9.5V7H1z' fill='none' stroke='%23fff' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M3 3.2h6M3 5h4' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: center; box-shadow: none; width: 13px; height: 11px; }
html body .tcard .lang-badge { align-self: flex-start; margin: 0 0 8px; }
html body .intro-go a .lang-badge { margin: 0 0 0 2px; border-color: currentColor; }
html body .intro-go a:hover .lang-badge { background: #0b0b0b; }
/* topic tags as links to the filtered list */
html body .tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
html body .tag-chip { display: inline-block; padding: 3px 10px; border: 1px solid rgba(var(--grp), .55); color: rgb(var(--grp)) !important; font: 13px var(--dm); text-decoration: none !important; }
html body .tag-chip::before { content: "#"; opacity: .6; margin-right: 2px; }
html body .tag-chip:hover { background: rgb(var(--grp)); color: #0b0b0b !important; }
html body details[data-topic] .gtag[role="button"] { cursor: pointer; }
html body details[data-topic] .gtag[role="button"]:hover { outline: 1px solid currentColor; }
html body .tcards > .tcard[hidden] { display: none !important; }

/* the side index: a mark in front of a line only where it tells lines apart (stack groups, guide topics) */
html body .qt .qt-k { display: inline-block; width: 1.3em; margin-right: 5px; font-style: normal; font-family: var(--dm); font-size: .85em; text-align: center; color: rgba(var(--grp), .85); }
html body .qt .qt-k[data-topic] { color: rgb(var(--tp)) !important; font-size: .95em; }
html body .qt .qt-li.qt-newtp > .qt-row > .qt-a { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13); }
html body .qt .qt-row.qt-here-now .qt-k:not([data-topic]), html body .qt .qt-a:hover .qt-k:not([data-topic]) { color: inherit; }
html body .qt .qt-row.qt-here-now .qt-k[data-topic] { color: #000 !important; }

/* guide topics: one colour and one mark each, the same in the filter, the group headings, the guides and the side index */
html body :is([data-topic="start"], [data-grp="start"], .gt-start) { --tp: 242, 204, 92; --ti: "★"; }
html body :is([data-topic="keys"], [data-grp="keys"], .gt-keys) { --tp: 255, 122, 156; --ti: "◆"; }
html body :is([data-topic="phone"], [data-grp="phone"], .gt-phone) { --tp: 122, 168, 255; --ti: "☎"; }
html body :is([data-topic="system"], [data-grp="system"], .gt-system) { --tp: 95, 224, 138; --ti: "⚙"; }
html body :is([data-topic="files"], [data-grp="files"], .gt-files) { --tp: 92, 208, 230; --ti: "⇄"; }
html body :is([data-topic="books"], [data-grp="books"], .gt-books) { --tp: 195, 166, 255; --ti: "▤"; }
html body :is([data-topic="audio"], [data-grp="audio"], .gt-audio) { --tp: 255, 164, 92; --ti: "♪"; }
html body main .content > details.reveal[data-topic][id][class] { box-shadow: inset 4px 0 0 rgb(var(--tp)) !important; }
html body main details[data-topic] > summary .gt-name::before { content: var(--ti); display: inline-block; width: 1.4em; margin-right: 8px; font-family: var(--dm); font-size: .8em; color: rgb(var(--tp)); text-align: center; }
html body main details[data-topic] > summary:hover .gt-name::before { color: inherit; }
html body main .gtag[class*="gt-"] { border-color: rgba(var(--tp), .7) !important; color: rgb(var(--tp)) !important; }
html body main .g-grp[data-grp], html body main .g-grp[data-grp] > span:not(.g-n) { color: rgb(var(--tp)) !important; }
html body main .g-grp[data-grp] > span:not(.g-n) { font-size: 15px; }
html body main .g-grp[data-grp]::before { border-color: rgb(var(--tp)) !important; background-color: rgba(var(--tp), .25); }
html body main .g-grp[data-grp] .g-n { background: rgb(var(--tp)); }
html body .gfilter button[class*="gt-"] i { color: rgb(var(--tp)); }
html body .gfilter button[class*="gt-"][aria-pressed="true"] { border-color: rgb(var(--tp)) !important; }
html body .qt .lang-badge { margin-left: 6px; padding: 0 5px 0 3px; font-size: 10px !important; vertical-align: 1px; }

/* a long word in a heading wraps instead of pushing the page sideways on a narrow phone */
html body .content :is(h1, h2, h3) { overflow-wrap: break-word; hyphens: auto; }

/* the card button in the tip window: in Liberapay yellow, so it stands out next to the addresses */
html body a.btn[data-liberapay] { white-space: nowrap; background: #f6c915 !important; border: 2px solid #f6c915 !important; color: #111 !important; font-weight: 700 !important; font-size: 1rem !important; padding: 9px 18px !important; box-shadow: 4px 4px 0 0 rgba(246, 201, 21, .35) !important; text-decoration: none !important; }
html body a.btn[data-liberapay]:is(:hover, :focus-visible) { background: #111 !important; color: #f6c915 !important; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 rgba(246, 201, 21, .5) !important; }

/* a long address in the news wraps on a narrow phone instead of pushing the page sideways */
html body .news-t, html body .log li { overflow-wrap: anywhere; min-width: 0; }

/* the three small tiles under an intro: labelled as suggestions, so they don't read like the main menu */
html body .intro-go::before { content: "Suggestions"; align-self: center; margin-right: 2px; font: 12px var(--dm); letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #9a9a9a); }

/* without the side index (no JavaScript), the home picture centres like the other section pictures instead of running off to the right */
html body:not(.has-side) .page > .content > .sec-art.hx-art { margin-left: calc((100% - var(--w)) / 2); }

/* the format picker next to Download may shrink on a very narrow phone instead of pushing the page sideways */
html body .xbar .xbar-dl { min-width: 0; max-width: 100%; }
html body .xbar .xbar-dl select { min-width: 0; max-width: 100%; }

/* the book card: the title right under the author line */
html body .book-card h3 { margin: .35rem 0 .2rem !important; }
html body .book-card h3::before { display: none !important; }

/* What Google knows: the score box */
html body .gk-score { margin: 22px 0 10px; padding: 16px 18px; border: 1px solid var(--edge-2, #444); background: rgba(var(--grp), .06); }
html body .gk-score .gk-k { margin: 0; font: 12px var(--dm); letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--grp)); }
html body .gk-score .gk-v { margin: 4px 0 10px; font-size: 1.5rem; }
html body .gk-bar { display: block; width: 100%; max-width: 420px; height: 10px; }
html body .gk-bar i { display: block; height: 100%; width: 0; transition: width .3s; }
html body .ep-todo li { list-style: none; }

/* ---------- retro mode (key r): the site on an old green phosphor monitor ---------- */
html.crt { filter: grayscale(1) sepia(1) hue-rotate(68deg) saturate(2.6) brightness(.98) contrast(1.08); }
html.crt:root body :is(p, li, dd, dt, h1, h2, h3, h4, a, span, b, strong, em, label, button, summary, figcaption, small, td, th, kbd, input, select, textarea, code, pre) { font-family: var(--dm) !important; }
html.crt:root body { text-shadow: 0 0 3px rgba(255, 255, 255, .35); }
html.crt::before { content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .32) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, .6) 100%); }
@media (prefers-reduced-motion: no-preference) {
  html.crt::before { animation: crt-flicker 6s steps(1) infinite; }
  @keyframes crt-flicker { 0%, 97%, 100% { opacity: 1; } 98% { opacity: .8; } 99% { opacity: .94; } }
}
@media print { html.crt { filter: none; } html.crt::before { display: none; } }

/* treasure hunt spots: they look like everything around them, only the cursor gives them away */
html body .hunt-dot, html body .hunt-404 { cursor: pointer; }
html body .spine.spine-x { width: 14px !important; }

/* myth and fact: a small box next to the text it belongs to */
html body .myth { margin: 14px 0 16px; padding: 10px 14px; border-left: 3px dashed rgba(var(--grp), .7); background: rgba(var(--grp), .05); font-size: .95em; }
html body .myth p { margin: 0 0 4px !important; }
html body .myth p:last-child { margin: 0 !important; }
html body .myth .myth-k { display: inline-block; min-width: 3.4em; margin-right: 6px; font: 11px var(--dm); letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #9a9a9a); }
html body .myth .myth-k.myth-f { color: rgb(var(--grp)); }
html body .myth p:first-child { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
html body .myth p:first-child .myth-k { text-decoration: none; }

/* the glossary page */
html body .gl-find input { width: 100%; max-width: 420px; margin: 6px 0 18px; padding: 9px 12px; font: 15px var(--dm); background: #000; color: #fff; border: 1px solid var(--edge-2, #444); }
html body .gl-list > div { display: grid; grid-template-columns: minmax(90px, 160px) 1fr; gap: 4px 18px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
html body .gl-list dt { font: 14px var(--dm); color: rgb(var(--grp)); }
html body .gl-list dd { margin: 0; }
@media (max-width: 520px) { html body .gl-list > div { grid-template-columns: 1fr; } }
html body .gl-list > div[hidden] { display: none; }

/* seed from dice */
html body .sd-tool { margin: 10px 0 20px; }
html body .sd-in { display: block; margin: 14px 0 4px; }
html body .sd-in span { display: block; margin-bottom: 6px; font: 12px var(--dm); letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #9a9a9a); }
html body .sd-in textarea { width: 100%; padding: 10px 12px; font: 15px/1.5 var(--code, var(--dm)); background: #000; color: #fff; border: 1px solid var(--edge-2, #444); resize: vertical; }
html body .sd-k { margin: 18px 0 8px !important; font: 12px var(--dm); letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--grp)); }
html body .sd-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; padding-left: 2.2em; margin: 0 0 10px; }
html body .sd-words li { padding: 2px 0; }
html body .sd-w { display: block; font-size: 1.1rem; }
html body .sd-b { display: block; font: 11px var(--dm); color: var(--muted, #9a9a9a); word-break: break-all; }
html body .sd-b b { color: rgb(var(--grp)); font-weight: 400; }

/* a button that opens a text, not a tool, says so */
html body .content a.tool-btn[data-k]::before { content: attr(data-k); }

/* Kvadro: the redesign is a concept, not a live site yet */
html body .chip.concept { border-color: #ffd23f !important; color: #ffd23f !important; font-weight: 700 !important; }
html body .proj-concept { margin: 6px 0 14px; padding: 8px 12px; border: 1px dashed #ffd23f; border-left: 4px solid #ffd23f; color: #fff; font-size: .92rem; }
html body .proj-concept strong { color: #ffd23f !important; }
html body .proj-shot { position: relative; }
html body .ps-stamp { position: absolute; top: 18px; right: -34px; transform: rotate(35deg); width: 150px; padding: 4px 0; text-align: center; background: #ffd23f; color: #000; font: 700 .72rem/1 var(--dm, monospace); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 2px 0 rgba(0,0,0,.5); pointer-events: none; }
