:root {
  --ink: #1a1a1a;
  --muted: #4a4a4a;
  --accent: #2F4E88;
  --tint: #A5BBE0;
  --paper: #ffffff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header / nav */
.site-header { padding: 2rem 0 0; }
.site-header nav { display: flex; gap: 1.75rem; }
.site-header a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}
.site-header a:hover { border-bottom-color: var(--tint); }
.site-header a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

main { padding: 4rem 0 5rem; }

h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--ink); line-height: 1.15; }
h1 { font-size: 2.75rem; margin: 0 0 0.35rem; }
h2 {
  font-size: 1.35rem;
  margin: 3rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tint);
}

p { margin: 0 0 1.1rem; max-width: 38rem; }

.role { font-size: 1.2rem; color: var(--accent); margin-bottom: 1.75rem; }
.lead { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; }

/* Home layout */
.intro {
  display: grid;
  grid-template-columns: 1fr 17rem;
  gap: 3.5rem;
  align-items: start;
}
.headshot {
  width: 100%;
  height: auto;
  display: block;
}

.links { list-style: none; padding: 0; margin: 0; max-width: 38rem; }
.links li { padding: 0.6rem 0; border-bottom: 1px solid #e6e6e6; }
.links li:last-child { border-bottom: 0; }

/* Background page */
.page-title { margin-bottom: 1.5rem; }
.experience { list-style: none; padding: 0; margin: 0; }
.experience li { padding: 0.45rem 0; }
.experience strong { font-weight: 600; }

.contact-links { max-width: none; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--tint); }
.contact-links .sep { color: var(--muted); margin: 0 0.5rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--tint); padding: 1.75rem 0 2.5rem; }
.site-footer .wrap { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-footer img { height: 2rem; width: auto; display: block; }
.site-footer p { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* Phone */
@media (max-width: 44rem) {
  body { font-size: 1rem; }
  main { padding: 2.5rem 0 3.5rem; }
  h1 { font-size: 2.2rem; }
  .lead { font-size: 1.15rem; }
  .intro { grid-template-columns: 1fr; gap: 2rem; }
  .intro figure { order: -1; }
  .headshot { max-width: 14rem; }
}

figure { margin: 0; }
