/* JetBrains Mono (SIL OFL 1.1), self-hosted variable font, Latin subset. */
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
/* The block and box characters of the title's ANSI art (and the space between them),
   cut from JetBrains Mono Regular so they line up the same on every device. */
@font-face {
  font-family: "JetBrains Mono Blocks";
  src: url("/fonts/jetbrains-mono-blocks.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
:root {
  /* Night only: a pale line and one warm light on blue-black. */
  color-scheme: dark;
  --bg: #0b0f15;
  --fg: #dde4e8;
  --muted: #7f8b95;
  /* Drawn by scene.js: the valley line, the clouds and the homelab's light. */
  --line: #b9c4cc;
  --cloud: #66737e;
  --light: #ffb866;
  /* The title's ANSI art, retinted from its DOS palette to the site's: the letters'
     body (was teal) and their bright lower parts (cyan). Its highlights (yellow, green, magenta) take --light, its white --fg. */
  --art-body: #4f5e6b;
  --art-bright: var(--line);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15.5px/1.7 "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-feature-settings: "calt" 0;
}
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
/* The text sits in the sky; the footer sits in the ground under the valley line. */
main {
  max-width: 34rem;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(2.5rem, 11vh, 6rem) 1rem 1rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}
a { color: var(--light); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
h1 {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 2.5rem;
}
/* The title as ANSI art, pasted from patorjk.com's TAAG: a DOS-style drawing of
   VUOMA.DEV, with colored characters on colored backgrounds, retinted to the site's
   palette. It may be wider than the
   text column. The characters are 0.6em wide and 1.32em tall; the line height is a
   touch less, so rows overlap by a hair instead of showing seams between them. --cols
   is the art's width in characters. */
.banner {
  --cols: 73;
  margin-left: calc(50% - 50vw + 1rem);
  margin-right: calc(50% - 50vw + 1rem);
  font-size: min(15px, calc((100vw - 2rem) / (var(--cols) * 0.6 + 1)));
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
}
.art {
  display: inline-block;
  font-family: "JetBrains Mono Blocks", ui-monospace, Menlo, Consolas, monospace;
  white-space: pre;
  vertical-align: top;
}
/* The classes are named for the art's original colors: teal (t), cyan (c), yellow (y),
   green (g), white (w), magenta (m), and teal as a background (on-t). */
.art .t { color: var(--art-body); }
.art .c { color: var(--art-bright); }
.art .y,
.art .g,
.art .m { color: var(--light); }
.art .w { color: var(--fg); }
.art .on-t { background: var(--art-body); }
/* For screen readers and search engines: the title as text. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
header p {
  margin: 0 0 2rem;
  line-height: 2.2;
}
/* A dictionary entry: headword, part of speech, sense. */
dfn { font-style: normal; font-weight: 600; }
.pos {
  margin-left: 0.5em;
  font-size: 0.85rem;
  color: var(--muted);
}
footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
}
footer p { margin: 0; }
