:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --paper: #fbfaf7;
  --ink: #171717;
  --muted: #55524d;
  --line: #d7d1c8;
  --accent: #244d67;
  --accent-soft: #7a6542;
  --max-width: 980px;
  --measure: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--accent-soft);
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.55rem 0.75rem;
  clip: auto;
  color: #fff;
  background: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem max(1rem, calc((100vw - var(--max-width)) / 2));
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
}

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

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

.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}

.nav-toggle-line {
  display: block;
  width: 1.05rem;
  height: 1px;
  margin: 0.26rem auto;
  background: var(--ink);
}

.hero,
.section,
.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  padding: clamp(3.2rem, 8vw, 6rem) 0 clamp(2.4rem, 5vw, 4rem);
  scroll-margin-top: 5rem;
}

.hero-content {
  max-width: var(--measure);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0.85rem;
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
}

h3 {
  margin-bottom: 0.18rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.profile-title {
  margin-bottom: 1.1rem;
  color: var(--accent);
  font-size: 1.03rem;
  line-height: 1.48;
}

.hero-lede {
  max-width: 46rem;
  margin-bottom: 1.2rem;
  color: #2f302e;
  font-size: 1.06rem;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  background: transparent;
  border: 0;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.button:hover {
  color: var(--accent-soft);
}

.section {
  display: grid;
  grid-template-columns: minmax(9rem, 0.28fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  padding: clamp(2.25rem, 5vw, 3.8rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}

.section-heading {
  align-self: start;
}

.section-body {
  max-width: var(--measure);
}

.section-body > p {
  max-width: 42rem;
  color: #30312f;
}

.focus-grid,
.publication-list,
.education-list,
.timeline,
.experience-list,
.compact-list,
.service-list {
  display: grid;
  gap: 0;
}

.focus-grid {
  margin-top: 1.35rem;
}

.focus-item,
.publication,
.education-list article,
.timeline article,
.experience-list article,
.compact-list article {
  padding: 0.85rem 0;
  background: transparent;
  border-top: 1px solid var(--line);
}

.focus-item:first-child,
.publication:first-of-type,
.education-list article:first-child,
.timeline article:first-child,
.experience-list article:first-child,
.compact-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.focus-item p,
.publication p,
.timeline p,
.education-list p,
.experience-list p,
.compact-list p,
.service-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.publication-list h3 {
  margin: 1.55rem 0 0.75rem;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.publication-list h3:first-child {
  margin-top: 0;
}

.pub-title {
  margin-bottom: 0.18rem;
  color: var(--ink) !important;
  font-weight: 700;
  line-height: 1.35;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-top: 0.22rem;
}

.pub-links a {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
}

.more-note,
.plain-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.subheading {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.timeline article,
.education-list article,
.experience-list article {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.1rem;
}

.timeline time,
.education-list time,
.date {
  margin: 0;
  color: var(--accent-soft);
  font-weight: 650;
}

.experience-list h3,
.education-list h3 {
  margin-bottom: 0.12rem;
}

.compact-list article {
  padding-block: 0.65rem;
}

.service-list {
  padding-top: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1.5rem 0 2.4rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-nav {
    gap: 0.75rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15.5px;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 3.9rem 1rem auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.2rem 0;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .timeline article,
  .education-list article,
  .experience-list article {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .site-footer {
    display: block;
  }

  .site-footer nav {
    margin-bottom: 0.7rem;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero,
  .section {
    width: 100%;
    padding: 1rem 0;
  }

  .section {
    display: block;
  }

  a {
    color: black;
  }
}
