/* Self-hosted Computer Modern (no CDN requests — see privacy policy). */
@font-face {
  font-family: "Computer Modern Serif";
  src: url("fonts/cmunrm.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Computer Modern Serif";
  src: url("fonts/cmunti.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Computer Modern Sans";
  src: url("fonts/cmunss.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* Bold non-extended (cmunrb): bold at regular CM letter widths, unlike
   the bold-extended cut usually mapped to font-weight: bold. */
@font-face {
  font-family: "Computer Modern Serif Bold NE";
  src: url("fonts/cmunrb.woff2") format("woff2"),
       url("fonts/cmunrb.otf") format("opentype");
  font-weight: bold;
  font-display: swap;
}

:root { --bg: #fff; --fg: #000; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --bg: #000; --fg: #fff; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #000; --fg: #fff; color-scheme: dark; }
:root[data-theme="light"] { --bg: #fff; --fg: #000; color-scheme: light; }

/* Legal pages carry both languages; only the active one is shown. */
:root[data-lang="de"] .lang-en { display: none; }
:root:not([data-lang="de"]) .lang-de { display: none; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Computer Modern Serif", serif;
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

h1 {
  font-family: "Computer Modern Serif Bold NE", "Computer Modern Serif", serif;
  font-weight: bold;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.tagline {
  font-style: italic;
  margin-bottom: 2.5rem;
}

p + p { margin-top: 1rem; }

h2 {
  font-family: "Computer Modern Sans", sans-serif;
  font-size: 1.125rem;
  margin: 2.5rem 0 1rem;
}

ul { list-style: none; }

li + li { margin-top: 0.75rem; }

a {
  color: var(--fg);
  font-family: "Computer Modern Sans", sans-serif;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-thickness: 2px; }

.soon { font-style: italic; }

.controls {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 1.25rem;
}

.controls button {
  background: none;
  border: none;
  color: var(--fg);
  font-family: "Computer Modern Sans", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

footer {
  margin-top: 4rem;
  font-size: 0.875rem;
}

/* Legal pages (privacy, imprint) */
.home-link {
  font-style: italic;
  margin-bottom: 2.5rem;
}

.legal h1 { margin-bottom: 0.25rem; }

.legal .updated {
  font-style: italic;
  margin-bottom: 2.5rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 1rem;
}

.legal ul li + li { margin-top: 0.5rem; }

.legal p a { font-family: inherit; }
