@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
}

:root {
  --ink: #000;
  --paper: #fff;
  --line: 1px solid var(--ink);
  --font: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #fff;
    --paper: #000;
  }
}
:root[data-theme='dark'] {
  --ink: #fff;
  --paper: #000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}
a:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

h1,
h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

.bar {
  border-bottom: var(--line);
}
.bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.bar a {
  font-weight: 700;
  text-decoration: none;
}

main {
  flex: 1;
  padding: 2rem 0 3rem;
}

.block {
  border: var(--line);
  margin-top: 1.25rem;
}
.block > * {
  margin: 0;
  padding: 0.75rem 1rem;
}
.block > * + * {
  border-top: var(--line);
}
.block h2 {
  margin-bottom: 0.35rem;
}
.block > div > p {
  margin: 0;
}
h2.section {
  margin-top: 2rem;
  scroll-margin-top: 1rem;
}
.label {
  display: block;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

/* Fallback ohne JavaScript: Text steht rückwärts im Quelltext und wird
   per CSS wieder richtig herum angezeigt. */
.rev {
  unicode-bidi: bidi-override;
  direction: rtl;
  text-align: left;
}

.note {
  margin-top: 1.25rem;
  font-size: 0.85em;
  opacity: 0.6;
}

.foot {
  border-top: var(--line);
  font-size: 0.85em;
}
.foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
