:root {
  --bg: #fbfaf7;
  --text: #1f1d1a;
  --muted: #5f5a52;
  --rule: #d9d4ca;
  --accent: #7a2e2a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Charter, "Bitstream Charter", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --text: #e8e4dc;
    --muted: #a39d92;
    --rule: #3a3731;
    --accent: #d9918b;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Site navigation */
.site-nav {
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.9rem;
}
.site-nav .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-nav .home { color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.05rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

main { padding: 3rem 0 4rem; }

h1, h2, h3 { font-weight: normal; line-height: 1.25; }
h1 { font-size: 2.25rem; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
h2 {
  font-size: 0.8rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
  margin: 2.75rem 0 1.25rem;
}
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }

/* Landing page */
.intro {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.intro img {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.tagline { color: var(--muted); font-style: italic; margin: 0; }
.bio p { margin: 0 0 1.1rem; }
.contact {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

@media (max-width: 34rem) {
  .intro { grid-template-columns: 1fr; gap: 1.25rem; }
  .intro img { width: 7.5rem; height: 7.5rem; }
  h1 { font-size: 1.9rem; }
}

/* Resume page */
.resume-header { margin-bottom: 1rem; }
.resume-header .meta { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); margin: 0.25rem 0 1rem; }
.resume-header .meta span + span::before { content: "·"; margin: 0 0.5rem; }

.entry { margin-bottom: 1.5rem; }
.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.entry-title { font-weight: 600; }
.entry-date {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}
.entry-org { color: var(--muted); font-style: italic; }
.entry ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.entry li { margin-bottom: 0.3rem; }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { margin-bottom: 0.9rem; padding-left: 1.5rem; text-indent: -1.5rem; }
.plain-list .when { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

footer {
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  padding: 1.5rem 0 2.5rem;
}

@media print {
  .site-nav, footer { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main { padding: 0; }
  a { color: #000; text-decoration: none; }
  h2 { margin-top: 1.5rem; }
  .entry { break-inside: avoid; }
}
