/*
 * Shared base for every page: webfonts plus the handful of rules that must
 * apply before the Tailwind bundle evaluates, so first paint is already dark
 * instead of flashing white.
 *
 * Both families are variable (one file covers every weight) and subset to
 * latin, which includes the German umlauts.
 *
 * Inter          - SIL Open Font License 1.1 - fonts/LICENSE-Inter.txt
 * JetBrains Mono - SIL Open Font License 1.1 - fonts/LICENSE-JetBrainsMono.txt
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-var.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: 100 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-var.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;
}

html {
  background-color: #09090b;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: #09090b;
  color: #e4e4e7;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Terminal cursor. Only animates for visitors who have not asked for reduced
   motion; everyone else gets a steady accent underscore. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes cursor-blink { 0%, 45% { opacity: 1 } 55%, 100% { opacity: 0 } }
  .cursor { animation: cursor-blink 1.2s step-end infinite; }
}
