/* Unix text terminal look (UI-1): 80 columns, monospace, CGA/EGA 16-colour palette. */
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 700; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 700; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 700; font-display: swap; src: url(/fonts/ibm-plex-mono-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root { --bg: #000; --line: #555; --grey: #aaa; --white: #fff; --green: #55ff55; --cyan: #55ffff; --yellow: #ffff55; --blue: #7b7bff; color-scheme: dark; }
/* light: same terminal palette darkened for paper background, all text >= 4.5:1 (UI-6) */
html[data-theme='light'] { --bg: #fbfbf6; --line: #a8a8a8; --grey: #555; --white: #111; --green: #0a7a0a; --cyan: #00668a; --yellow: #7a5200; --blue: #3a3ad0; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--white); }
body { font: 15px/1.6 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace; }
a { color: var(--cyan); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible { outline: 1px dashed var(--white); outline-offset: 2px; }
.screen { max-width: 1120px; margin: 0 auto; padding: 8px 16px 56px; display: flex; flex-direction: column; gap: 28px; }
main { display: flex; flex-direction: column; gap: 32px; }
.top { display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding: 12px 0 10px; color: var(--grey); white-space: nowrap; position: sticky; top: 0; z-index: 20; background: var(--bg); }
/* anchors land below the sticky header */
.h2[id] { scroll-margin-top: 72px; }
.brand { color: var(--white); }
.nav { display: flex; gap: 20px; flex: 1; }
.langs { display: flex; gap: 8px; margin-left: auto; }
.langs a { display: inline-block; width: 4ch; text-align: center; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; color: var(--white); font-size: 20px; line-height: 1; padding: 4px 8px; border: 1px solid var(--line); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--grey); color: var(--bg); }
.menu nav { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; background: var(--bg); border: 1px solid var(--line); min-width: 22ch; }
.theme { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font: inherit; color: var(--grey); cursor: pointer; }
.theme:focus-visible { outline: 1px dashed var(--white); outline-offset: 3px; }
.track { position: relative; display: inline-flex; align-items: center; justify-content: space-between; width: 46px; height: 22px; padding: 0 4px; border: 1px solid var(--line); box-sizing: border-box; }
.knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--grey); transition: left 0.15s; }
html[data-theme='light'] .knob { left: 26px; }
.ico { position: relative; z-index: 1; width: 12px; height: 12px; fill: none; stroke: var(--grey); stroke-width: 1.6; stroke-linecap: round; }
html:not([data-theme='light']) .moon, html[data-theme='light'] .sun { stroke: var(--bg); }
.lbl-light { display: none; }
html[data-theme='light'] .lbl-night { display: none; }
html[data-theme='light'] .lbl-light { display: inline; }
html:not(.js) .theme { display: none; }
@media (prefers-reduced-motion: reduce) { .knob { transition: none; } }
@media (max-width: 760px) { .top > .nav { display: none; } .menu { display: block; } .top { gap: 10px; } .lbl { display: none !important; } .langs { gap: 2px; } .langs a { width: 3ch; } }
.langs a { color: var(--grey); }
.langs a.on { color: var(--bg); background: var(--grey); font-weight: 700; }
.sec { display: flex; flex-direction: column; gap: 10px; }
.m0 { margin: 0; }
.h1 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 700; }
.h2 { margin: 0; font-size: 15px; font-weight: 400; }
.h3 { margin: 0; font-size: 15px; }
.cmd, .bold { font-weight: 700; }
.role { color: var(--yellow); font-weight: 700; }
.now { color: var(--cyan); }
/* one column, top to bottom: no tiles, no left-right columns (UI-1) */
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.ls { display: grid; grid-template-columns: 1fr; gap: 2px; }
.items { display: grid; grid-template-columns: 1fr; gap: 20px; }
.item { display: flex; flex-direction: column; gap: 2px; padding-left: 2ch; border-left: 1px solid var(--line); }
.item .list { margin-top: 4px; }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.list li { padding-left: 2ch; text-indent: -2ch; }
.g { color: var(--green); } .c { color: var(--cyan); } .y { color: var(--yellow); } .b { color: var(--blue); } .d { color: var(--grey); } .w { color: var(--white); font-weight: 700; }
.cursor { display: inline-block; width: 0.6em; height: 1.1em; background: var(--grey); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
@media (max-width: 480px) { .h1 { font-size: 26px; } }
