@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* colours follow color-scheme: the OS setting by default, or the
   theme chosen with the toggle (html[data-theme], set by theme.js) */
:root {
  color-scheme: light dark;
  --bg: light-dark(#fafaf9, #0c0c0d);
  --fg: light-dark(#18181b, #ededef);
  --muted: light-dark(#6b6b73, #9b9ba4);
  --line: light-dark(#e7e5e4, #232326);
  --card: light-dark(#ffffff, #141416);
  --accent: light-dark(#2f54eb, #8ea6ff);
  --accent-fg: light-dark(#ffffff, #0c0c0d);
  --glow: light-dark(rgba(47, 84, 235, 0.10), rgba(142, 166, 255, 0.08));
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 30rem at 50% -10rem, var(--glow), transparent 70%),
    var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* language: both versions are in the markup */
[data-l="en"] { display: none; }
html[data-lang="en"] [data-l="en"] { display: revert; }
html[data-lang="en"] [data-l="de"] { display: none; }

.page {
  flex: 1;
  width: min(640px, 100% - 48px);
  margin: 0 auto;
  padding: clamp(64px, 12vh, 128px) 0 48px;
}

/* intro */
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  margin-bottom: 28px;
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px -12px rgba(0, 0, 0, 0.35);
}

h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.role {
  margin: 12px 0 0;
  font-size: 18px;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.sep { padding: 0 4px; opacity: 0.6; }

/* sections */
.block {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.block p { margin: 0; max-width: 58ch; }

.focus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.focus li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.focus strong { font-weight: 550; letter-spacing: -0.01em; }
.focus span { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* contact */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  font-weight: 500;
  transition: border-color .15s, transform .15s, background .15s;
}
.button svg { width: 18px; height: 18px; flex: none; }
.button:hover { border-color: var(--muted); transform: translateY(-1px); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.button.primary:hover { filter: brightness(1.08); }
.button:focus-visible, .lang:focus-visible, .footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* footer */
.footer {
  width: min(640px, 100% - 48px);
  margin: 0 auto;
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer nav { display: flex; gap: 20px; align-items: center; }
.footer a { text-decoration: none; }
.footer a:hover, .lang:hover { color: var(--fg); }
.lang {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* legal pages */
.legal h1 { font-size: clamp(30px, 6vw, 40px); }
.legal h2 { margin-top: 40px; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 550; color: var(--fg); }
.legal address { font-style: normal; }
.back { display: inline-block; margin-bottom: 40px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--fg); }
.legal a:not(.back) { color: var(--accent); }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal:nth-child(2) { animation-delay: .08s; }
  .reveal:nth-child(3) { animation-delay: .16s; }
  .reveal:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}

@media (max-width: 560px) {
  .focus { grid-template-columns: 1fr; }
  .actions .button { flex: 1 1 100%; justify-content: center; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* theme toggle */
.theme {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, border-color .15s, transform .15s;
}
.theme:hover { color: var(--fg); border-color: var(--muted); }
.theme:active { transform: scale(0.94); }
.theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.theme svg { width: 18px; height: 18px; }
/* show the target: moon in light mode, sun in dark mode */
.theme .sun, :root[data-theme="dark"] .theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
