:root {
  --bg: #0a0a0a;
  --fg: #f5f5f0;
  --muted: #a8a8a2;
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 2rem 6vw 2.5rem 6vw;
}

/* Navigation */

.nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--fg);
}

.nav .sep {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0.4em;
}

/* Home hero */

main {
  flex: 1;
  display: flex;
  align-items: center;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 18ch;
  transition: transform 0.45s ease, opacity 0.45s ease;
  transform: translateX(0);
  opacity: 1;
}

h1.exit {
  transform: translateX(-24px);
  opacity: 0;
}

h1.enter {
  transition: none;
  transform: translateX(24px);
  opacity: 0;
}

.tagline {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.75;
  margin-top: 1.6rem;
}

.tagline-item {
  color: var(--muted);
  transition: color 0.4s ease;
}

.tagline-item.active {
  color: var(--fg);
}

/* Impressum page */

main.page {
  align-items: flex-start;
  padding-top: 4vh;
}

.legal h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  max-width: none;
  margin-bottom: 1.8rem;
}

.legal p {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 58ch;
  margin-bottom: 1.4rem;
}

.legal p .label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.3em;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  margin-top: 2.6rem;
  margin-bottom: 1rem;
}

.legal h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.legal .todo {
  color: #d9a441;
}

.fake-link {
  text-decoration: underline;
  text-decoration-color: var(--muted);
  cursor: default;
}

/* Footer */

footer {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

@media (max-width: 480px) {
  body { padding: 1.5rem 6vw 1.75rem 6vw; }
  h1 { max-width: 16ch; }
}
