/* variables */ :root { --font-size: 12pt; --line-height: 1.25; --font-family: monospace; /* font-derived column width */ --col-w: clamp(33.333vw, 80ch, 80vw); /* colors */ --black: #000000; --red: #fa3500; --green: #009843; --orange: #d06600; --blue: #856cff; --magenta: #ff1170; --cyan: #008cca; --white: #e2e2e2; --bright-black: #848484; --bright-red: #ff888e; --bright-green: #00c55b; --bright-orange: #ff8d48; --bright-blue: #ac9fff; --bright-magenta: #ffb1c0; --bright-cyan: #92ccff; --bright-white: #ffffff; } @media (max-aspect-ratio: 1/1) { :root { --font-size: 10pt; } } /* reset */ * { box-sizing: border-box; margin: unset; hyphens: auto; scrollbar-width: thin; scrollbar-color: var(--blue) rgba(0,0,0,0); } /* root */ :root { color: var(--white); background-color: var(--black); font: var(--font-size)/var(--line-height) var(--font-family); } ::selection { color: var(--black); background-color: var(--white); } body { margin: 0; } /* content sectioning */ address { font-style: unset; } h1, h2, h3, h4, h5, h6 { hyphens: none; font-size: unset; } :is(h1, h2, h3, h4, h5, h6) * { hyphens: none; } h1, h2 { font-weight: bold; } h3, h4, h5, h6 { font-weight: unset; font-style: italic; } /* text content */ :is(h1, h2, h3, h4, h5, h6) { margin-block-start: 2rlh; margin-block-end: 1rlh; } :is(blockquote, div, dl, figure, hr, menu, ol, p, pre, table, ul) + :is(blockquote, div, dl, figure, hr, menu, ol, p, pre, table, ul) { margin-block-start: 1rlh; } blockquote { margin-inline: 2ch; } dt { font-style: italic; } dd { padding-inline-start: 2ch; } figure { margin-inline: 2ch; } ol, ul, menu { padding-inline-start: 5ch; } :is(ol, ul, menu) :is(ol, ul, menu) { margin-block: unset; } li :is(blockquote, div, dl, figure, hr, menu, ol, p, pre, ul) { margin-block: unset; } ul>li::marker { content: "- "; } hr { color: unset; border: unset; text-align: center; } hr::after { content: "---"; } pre { margin-inline: 2ch; overflow-y: scroll; } /* inline text semantics */ a { cursor: pointer; text-decoration: underline; } a:link { color: var(--blue); } a:link:active { color: var(--red); } a:visited { color: var(--magenta); } a:visited:active { color: var(--red); } code { color: var(--orange); } sup { line-height: 0; } /* image and multimedia */ img { max-width: 100%; } /* table content */ table { table-layout: fixed; border-collapse: collapse; } th, td { padding-inline: 1ch; } th { border-bottom: thin solid; vertical-align: bottom; hyphens: none; } td { vertical-align: top; } /* layout */ main { height: 100vh; display: grid; grid-auto-flow: column; grid-auto-columns: var(--col-w); overflow-x: scroll; } main>* { padding: 1rlh 1ch; overflow-y: scroll; } /* article.post */ article.post>header, article.post>nav { margin-block: 1rlh; } /* article#sitemap */ article#sitemap pre { margin-inline: unset; } /* div.fauxnote */ div.fauxnote { color: var(--bright-black); } /* div.horizontal */ div.horizontal { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 1ch; overflow-x: scroll; } div.horizontal>* { margin-block: unset; } /* .display.math */ .display.math { display: block; text-align: center; } /* .footnotes */ .footnotes { color: var(--bright-black); }