:root {
  --bg: #faf7f2;
  --text: #2b2622;
  --muted: #6b6157;
  --accent: #8a3324;
  --rule: #ddd4c8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1815;
    --text: #ece6dc;
    --muted: #a89e91;
    --accent: #d98b73;
    --rule: #3a352e;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.portrait {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

header h1 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 2.5rem;
}

.bio p {
  font-size: 1.125rem;
  color: var(--text);
  margin: 0;
}

.stories {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.stories h2 {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.stories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stories li {
  margin-bottom: 1.5rem;
}

.stories a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.stories .note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

.contact {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.contact h2 {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.contact p {
  margin: 0;
}

.contact a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

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