:root {
  --fg: #111;
  --muted: #666;
  --bg: #fafaf7;
  --accent: #f08c2e;
  --max: 36rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #ededed;
    --muted: #888;
    --bg: #0e0e10;
  }
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  font-feature-settings: "ss01", "kern";
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4rem 2rem;
}

main {
  width: 100%;
  max-width: var(--max);
}

header h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 4rem;
  color: var(--fg);
}

header h1 span {
  color: var(--accent);
  font-weight: 400;
}

section {
  margin-bottom: 3rem;
}

.lede p {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--fg);
}

.lede em {
  font-style: italic;
  color: var(--muted);
}

.lede p + p {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--muted);
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--accent);
}

footer {
  margin-top: 6rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  font-size: 0.85rem;
  color: var(--muted);
}

footer .sep {
  margin: 0 0.5em;
  opacity: 0.6;
}

/* Legal pages (impressum, datenschutz) */

nav.back {
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

nav.back a {
  color: var(--muted);
  text-decoration: none;
}

nav.back a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

main h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--fg);
}

main h3 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

main p, main address {
  margin: 0 0 0.5rem;
  font-style: normal;
  font-size: 0.95rem;
}

main p.muted {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

main code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.3em;
  background: color-mix(in srgb, var(--muted) 15%, transparent);
  border-radius: 3px;
}

main strong {
  font-weight: 600;
}
