:root {
  --ink: #0f0f0f;
  --muted: #2e2e2e;
  --accent: #1a3f80;
  --accent-soft: rgba(26, 63, 128, 0.14);
  --bg: #f7f7f7;
  --border: #bbb;
  --max-w: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e4e2dc;
    --muted: #9a9890;
    --accent: #7fa8e8;
    --accent-soft: rgba(127, 168, 232, 0.16);
    --bg: #1a1a18;
    --border: #3a3a36;
  }
}

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

html {
  background: var(--bg);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
  }
}

body {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--max-w);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* ── Name as page title ── */
h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem 0;
  color: var(--ink);
}

.tagline {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--muted);
  margin: 0 0 2.5rem 0;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ── Section headers ── */
h2 {
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 2.25rem 0 0.875rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Body text ── */
p {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  line-height: 1.75;
  margin: 0 0 1rem 0;
  color: var(--ink);
}

b {
  font-weight: 600;
}

/* ── Links block ── */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.link {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: var(--muted);
}

/* ── Inline links ── */
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

a:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 0.25rem;
  border-radius: 0.2rem;
}
  
/* ── Language switch ── */
.navigation {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 400;
}

.navigation a {
  color: var(--muted);
  font-style: italic;
}

.navigation a:hover {
  color: var(--ink);
  border-bottom-color: var(--muted);
}

::selection {
  color: var(--ink);
  background: var(--accent-soft);
}

/* ── Responsive ── */
@media screen and (max-width: 600px) {
  main {
    margin: 2rem auto;
    padding: 0 1.25rem;
  }
}