:root {
  color-scheme: light dark;
  --background: #faf9f6;
  --foreground: #171717;
  --muted: #606060;
  --accent: #3157c8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #151515;
    --foreground: #f2f2ed;
    --muted: #aaa;
    --accent: #8aa4ff;
  }
}

* { box-sizing: border-box; }

html { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body {
  max-width: 48rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 4rem;
}

.site-header nav { display: flex; gap: 1rem; }
.site-name { color: var(--foreground); font-weight: 700; text-decoration: none; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.15em; }
a:focus-visible { outline: 0.2rem solid var(--accent); outline-offset: 0.2rem; }

h1 { margin: 0; font-size: clamp(2.5rem, 10vw, 5rem); line-height: 1; letter-spacing: -0.04em; }
.intro { color: var(--muted); font-size: 1.35rem; }
