:root {
  --bg: #f2f0ed;
  --text: #1a1a1a;
  --muted: #888680;
  --accent: #7a6040;
  --accent-hover: #5c4730;
  --border: #e0ddd7;
  --font: "Geist Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem 1.5rem 0;
}

@media (min-width: 900px) {
  .site-header {
    padding: 2rem 3.5rem 0;
  }
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

.mark {
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.mark:hover {
  color: var(--text);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

nav a {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav a:hover,
nav a.is-active {
  color: var(--text);
}

main h1 {
  margin: 0 0 1.75rem;
  font-size: 1.875rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

main h2 {
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

main h3,
main h4 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

main p {
  margin: 0 0 1rem;
}

main hr {
  display: none;
}

main ul {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
}

main li {
  margin-bottom: 0.55rem;
}

main li ul {
  margin: 0.35rem 0 0;
}

main {
  overflow: auto;
}

.role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 1.5rem 0 0.2rem;
  font-weight: 500;
}

.role-dates {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.92em;
  font-weight: 400;
  white-space: nowrap;
}

.role + p:not(.role) {
  color: #6f6d69;
  margin: 0 0 0.15rem;
}

.portrait {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 2rem;
  border-radius: 10px;
}

@media (min-width: 700px) {
  .wrap {
    padding: 3.5rem 2rem 5rem;
  }

  .home .portrait {
    float: right;
    width: 210px;
    max-width: none;
    margin: 0.15rem 0 1.25rem 1.75rem;
  }
}

.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0 2rem;
}

.photo-row--single {
  grid-template-columns: minmax(160px, 240px);
  justify-content: center;
}

.photo-row figure {
  margin: 0;
}

.photo-row img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.photo-row--single img {
  height: 250px;
}

.photo-row figcaption {
  text-align: center;
  font-style: italic;
  font-size: 0.78em;
  color: var(--muted);
  margin-top: 0.4em;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin: 2.75rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.social a {
  color: var(--muted);
}

.social a:hover {
  color: var(--text);
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.not-found {
  text-align: center;
  padding: 2rem 0 3rem;
}

.not-found h1 {
  margin-bottom: 0.5rem;
  font-size: 3.5rem;
}

@media (max-width: 600px) {
  .photo-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .photo-row img {
    height: 140px;
  }
}
