:root, [data-theme="light"] {
  --bg: #f7f5f1;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e4e0d8;
  --toggle-bg: #eceae4;
  --toggle-ink: #1a1a1a;
  --max: 38rem;
}

[data-theme="dark"] {
  --bg: #0f0f10;
  --ink: #f2f0ea;
  --muted: #a3a09a;
  --line: #2a2a2c;
  --toggle-bg: #1c1c1e;
  --toggle-ink: #f2f0ea;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.55;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.55rem;
  background: var(--toggle-bg);
  color: var(--toggle-ink);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.theme-toggle svg { display: block; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

.who h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.who p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.block {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.block h2 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list li + li { margin-top: 0.85rem; }
.list a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.list a:hover {
  border-bottom-color: var(--ink);
}
.works a { font-weight: 400; }

.foot {
  margin-top: 3.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

.reveal {
  opacity: 0;
  transform: translateY(0.6rem);
  animation: rise 0.55s ease forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .theme-toggle { transition: none; }
  body { transition: none; }
}
