:root {
  --ink: #1e1b17;
  --muted: #5e584f;
  --paper: #f6f3ee;
  --rule: #ddd6cb;
  --line: #b7afa3;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5.5rem;
}

h1,
h3 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 2.85rem);
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
  line-height: 1.15;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: #e4dcd0;
}

.masthead {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.15rem;
  row-gap: 1.35rem;
  align-items: center;
}

.masthead img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 1px solid var(--rule);
}

.role {
  margin-top: 0.35rem;
  font-size: 1.05rem;
}

.place {
  margin-top: 0.1rem;
  color: var(--muted);
  font-style: italic;
}

.bio,
.contact {
  grid-column: 1 / -1;
}

.bio {
  max-width: 62ch;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin: -0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.shelf {
  margin-top: 2.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}

.shelf-lead article + article {
  margin-top: 2.15rem;
}

.shelf-lead article {
  margin-top: 1.35rem;
}

.shelf > p + p {
  margin-top: 0.95rem;
}

.shelf strong {
  font-weight: 600;
}

.shelf > p .links {
  display: inline-flex;
  gap: 0.85rem;
  margin-left: 0.25rem;
}

.shelf-lead .links {
  display: flex;
  gap: 1.15rem;
  margin-top: 0.7rem;
}

@media (max-width: 420px) {
  .page {
    padding-top: 2.5rem;
  }

  .masthead img {
    width: 4.25rem;
    height: 4.25rem;
  }
}

@media print {
  body {
    background: white;
  }

  .page {
    max-width: none;
    padding: 0;
  }
}
