:root {
  --bg: #faf8f5;
  --text: #131314;
  --muted: #8a8078;
  --link: #d97757;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'DM Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--serif);
  color: var(--text);
  background: var(--bg);
  max-width: clamp(560px, 65ch, 660px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.7;
}

h1, h2, nav a {
  font-family: var(--sans);
}

header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.portrait {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

.hero {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 3.5rem;
}

.photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

h1 {
  font-size: clamp(1.6rem, 1.4rem + 1vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}

nav a {
  margin-right: 1.2rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

main > p {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

section {
  margin-bottom: 3.5rem;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 0.65rem;
}

.books li {
  margin-bottom: 1.25rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.2s;
}

footer {
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .photos {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  body {
    animation: fadeIn 0.6s ease-out;
  }
}
