@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --rule: #dddddd;
  --logo-filter: none;
  --logo-tint: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --fg: #00ff41;
    --muted: #00b82f;
    --rule: #0b3314;
    --logo-filter: invert(1);
    --logo-tint: #00ff41;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --fg: #00ff41;
  --muted: #00b82f;
  --rule: #0b3314;
  --logo-filter: invert(1);
  --logo-tint: #00ff41;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: auto;
}
main {
  max-width: 68ch;
  margin: 0 auto;
  padding: 48px 16px 64px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}
nav a, button.theme {
  color: var(--muted);
  text-decoration: none;
  font: inherit;
}
nav a:hover, button.theme:hover { color: var(--fg); }
nav a + a { margin-left: 2ch; }
button.theme {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
/* The logo is multiplied onto a tint layer: white areas take the tint, black stays black. */
.logo {
  max-width: 320px;
  margin: 0 auto 72px;
  background: var(--logo-tint);
  isolation: isolate;
}
.logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--logo-filter);
  mix-blend-mode: multiply;
}
section { margin-bottom: 48px; }
h1, h2 {
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
h1::before, h2::before { content: "$ "; color: var(--muted); }
p { margin: 0 0 1.2em; }
ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
li { padding-left: 2ch; text-indent: -2ch; }
li::before { content: "- "; color: var(--muted); }
a { color: var(--fg); text-underline-offset: 3px; }
.muted { color: var(--muted); }
footer {
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 2ch;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }
::selection { background: var(--fg); color: var(--bg); }
.fpr { overflow-wrap: anywhere; }
h3 {
  color: var(--fg);
  font-size: inherit;
  font-weight: inherit;
  margin: 0 0 1.2em;
}
/* Monochrome flag: drawn in the current text colour so it follows the theme. */
.flag {
  width: 1.6em;
  height: 0.8em;
  margin-left: 0.5ch;
  vertical-align: -0.05em;
  fill: currentColor;
}
