:root {
  --bg: #fefefc;
  --ink: #26241f;
  --muted: #78736a;
  --faint: #a39d92;
  --accent: #16130f;
  --accent-soft: #cbc6ba;
  --hairline: #e6e1d5;
}

body {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hairline);
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 1.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

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

h2 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.25rem 0 0.6rem;
}

/* tighten the gap between the header rule and the first section */
main section:first-child h2 {
  margin-top: 1.5rem;
}

a {
  color: var(--accent);
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 2px;
}

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

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

li {
  margin-bottom: 0.7rem;
}

strong {
  font-weight: 700;
}

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

::selection {
  background: var(--accent-soft);
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
}

footer nav {
  margin-top: 0;
  margin-bottom: 1rem;
}

footer .muted {
  font-size: 0.8rem;
}