:root {
      --bg: #ffffff;
      --text: #17212b;
      --muted: #5b6875;
      --accent: #0f3557;
      --accent-2: #244f73;
      --border: #d7e0e8;
      --soft: #f4f7fa;
      --max-width: 1280px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: "Helvetica Neue", Arial, sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.5;
      font-size: 16px;
    }

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

    a:hover { text-decoration: underline; }

    .nav-wrap {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(255,255,255,0.97);
      border-bottom: 1px solid var(--border);
    }

    nav {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 12px 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 28px;
    }

    .nav-name {
      font-size: 0.93rem;
      font-weight: 650;
      color: var(--accent);
      white-space: nowrap;
      letter-spacing: 0.01em;
    }

    .nav-links {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      font-size: 0.86rem;
    }

    .nav-links a {
      color: #425466;
      font-weight: 500;
    }

    main {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 38px 28px 76px;
    }

    .hero {
      padding: 4px 0 28px;
      border-bottom: 1px solid var(--border);
    }

    h1 {
      margin: 0 0 6px;
      font-family: Georgia, "Times New Roman", serif;
      font-size: clamp(1.65rem, 3vw, 2.3rem);
      line-height: 1.08;
      font-weight: 500;
      color: var(--accent);
      letter-spacing: -0.02em;
    }

    .position {
      font-size: 0.94rem;
      color: var(--muted);
      margin-bottom: 12px;
    }

    .areas {
      color: #2f4354;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 1rem;
      max-width: 1180px;
      margin-bottom: 12px;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      font-size: 0.86rem;
    }

    .actions a {
      font-weight: 600;
      color: var(--accent);
    }

    section.content {
      padding: 24px 0;
      border-bottom: 1px solid var(--border);
    }

    #about,
    #research {
      padding: 34px 0;
    }

    h2 {
      margin: 0 0 12px;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 1.42rem;
      font-weight: 500;
      color: var(--accent);
    }

    p {
      max-width: 1220px;
      margin: 0 0 0.72em;
    }

    .publication-entry {
      display: grid;
      grid-template-columns: 92px 1fr;
      gap: 22px;
      padding: 8px 0 4px;
      align-items: start;
    }

    .publication-year {
      color: var(--accent-2);
      font-weight: 700;
      font-size: 0.95rem;
      padding-top: 2px;
    }

    .publication-title {
      font-family: Georgia, "Times New Roman", serif;
      font-size: 1.08rem;
      line-height: 1.45;
      color: var(--text);
      margin-bottom: 6px;
    }

    .publication-meta {
      color: var(--muted);
      font-size: 0.96rem;
      line-height: 1.55;
    }

    .publication-links {
      margin-top: 7px;
      font-size: 0.9rem;
    }

    .publication-links a {
      margin-right: 16px;
      font-weight: 600;
    }

    .entry-list {
      display: grid;
      gap: 18px;
    }

    .entry {
      display: grid;
      grid-template-columns: 118px minmax(0, 1fr);
      gap: 22px;
      align-items: start;
      padding: 4px 0;
    }

    .entry-date {
      color: var(--accent-2);
      font-weight: 700;
      font-size: 0.91rem;
      padding-top: 2px;
    }

    .entry-title {
      font-family: Georgia, "Times New Roman", serif;
      font-size: 1.03rem;
      line-height: 1.42;
      margin-bottom: 4px;
    }

    .entry-meta {
      color: var(--muted);
      font-size: 0.93rem;
      line-height: 1.5;
    }

    .compact-list {
      margin: 0;
      padding-left: 1.15rem;
    }

    .compact-list li {
      margin-bottom: 0.55rem;
    }

    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 42px;
    }

    .subheading {
      margin: 18px 0 9px;
      font-family: Georgia, "Times New Roman", serif;
      font-size: 1.04rem;
      font-weight: 600;
      color: var(--text);
    }

    .placeholder {
      min-height: 30px;
    }

    footer {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 26px 28px 42px;
      font-size: 0.82rem;
      color: #556876;
    }

    @media (max-width: 760px) {
      body { font-size: 16px; }

      nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
      }

      .nav-links {
        gap: 10px 14px;
      }

      main {
        padding-top: 46px;
      }

      .hero {
        padding-bottom: 48px;
      }

      .publication-entry {
        grid-template-columns: 1fr;
        gap: 4px;
      }

      .publication-year {
        padding-top: 0;
      }

      .entry {
        grid-template-columns: 1fr;
        gap: 3px;
      }

      .entry-date {
        padding-top: 0;
      }

      .two-col {
        grid-template-columns: 1fr;
        gap: 24px;
      }
    }

/* Multi-page academic navigation and accessible mobile menu */
.nav-name a { color: var(--accent); text-decoration: none; }
.nav-links a[aria-current="page"],
.mobile-links a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.mobile-nav { display: none; }
.page-intro {
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--border);
}
.page-intro h1 { margin-bottom: 10px; }
.page-intro p { color: var(--muted); font-size: 0.96rem; }
.home-nav {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  padding: 24px 0 10px; font-size: 0.94rem;
}
.home-nav a { font-weight: 600; }
.section-note { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 960px) and (min-width: 761px) {
  .nav-links { gap: 9px 14px; }
  nav { gap: 16px; }
}
@media (max-width: 760px) {
  nav { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; }
  .nav-links { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary {
    cursor: pointer; color: var(--accent); font-weight: 650;
    list-style: none; border: 1px solid var(--border); border-radius: 5px;
    padding: 6px 12px;
  }
  .mobile-nav summary::-webkit-details-marker { display:none; }
  .mobile-links {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 205px; padding: 9px 0;
    border: 1px solid var(--border); border-radius: 5px; background: var(--bg);
    box-shadow: 0 8px 24px rgba(16,39,60,0.09);
    display: grid; z-index: 30;
  }
  .mobile-links a { display:block; padding: 9px 18px; font-size: 0.94rem; }
  main { padding: 30px 20px 64px; }
  .hero { padding-bottom: 28px; }
  .page-intro { padding: 0 0 15px; }
}

/* Events page section navigation */
.event-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding: 18px 0 2px;
  font-size: 0.93rem;
}
.event-index a {
  font-weight: 650;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}
.event-index a:hover, .event-index a:focus-visible { border-bottom-color: var(--accent); }
#schools .entry, #talks .entry { scroll-margin-top: 130px; }


/* Color palette — more pronounced editorial accents */
:root {
  --bg: #ffffff;
  --text: #17212b;
  --muted: #536675;
  --accent: #143a5c;
  --accent-2: #396779;
  --copper: #a36b49;
  --copper-deep: #875337;
  --border: #cfdae4;
  --soft: #f2f7fa;
}

/* A thin signature line, mirrored by the favicon and social preview. */
.nav-wrap {
  border-top: 3px solid var(--copper);
  border-bottom-color: #cad8e3;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 12px rgba(20, 58, 92, 0.035);
}

.nav-name a { color: var(--accent); }
.nav-links a {
  color: #38566d;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--accent); border-bottom-color: var(--copper); text-decoration: none; }
.nav-links a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--copper);
}

/* Richer headers without heavy panels or card layouts. */
.hero,
.page-intro {
  border-left: 4px solid var(--copper);
  background: linear-gradient(105deg, #f0f6fa 0%, #f8fbfd 50%, #ffffff 100%);
  padding-left: 23px;
  padding-right: 18px;
  border-bottom-color: var(--border);
}
.hero {
  padding-top: 24px;
  padding-bottom: 27px;
}
.page-intro {
  padding-top: 22px;
  padding-bottom: 21px;
}
h1 { color: #123a5d; }
.areas { color: #315e73; }
.page-intro p { color: #506779; }

/* Copper section rules and dates give a clear editorial hierarchy. */
h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}
h2::before {
  content: "";
  display: inline-block;
  flex: 0 0 4px;
  width: 4px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--copper);
}
.entry-date,
.publication-year { color: var(--copper-deep); }
.subheading { color: #24546b; }

/* Links stay typographic, with a more legible visual affordance. */
a:hover { color: #276c82; }
.actions a,
.home-nav a,
.publication-links a,
.event-index a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid #cba88d;
  padding-bottom: 3px;
  transition: color .18s ease, border-color .18s ease;
}
.actions a:hover,
.home-nav a:hover,
.publication-links a:hover,
.event-index a:hover,
.actions a:focus-visible,
.home-nav a:focus-visible,
.publication-links a:focus-visible,
.event-index a:focus-visible {
  color: #236679;
  border-bottom-color: var(--copper-deep);
  text-decoration: none;
}
.home-nav {
  gap: 12px 28px;
  padding-top: 24px;
  padding-bottom: 10px;
}
.event-index a { border-bottom-color: #d6e0e7; }
.event-index a:hover, .event-index a:focus-visible { border-bottom-color: var(--copper); }

/* Preserve readable states and mobile spacing. */
a:focus-visible,
.mobile-nav summary:focus-visible {
  outline: 2px solid var(--copper-deep);
  outline-offset: 3px;
}
.mobile-nav summary {
  background: #f3f7fa;
  border-color: #bfceda;
}
.mobile-links a[aria-current="page"] {
  color: var(--accent);
  background: #edf4f8;
  border-left: 3px solid var(--copper);
  padding-left: 15px;
}
@media (max-width: 760px) {
  .hero,
  .page-intro { padding-left: 16px; padding-right: 12px; }
  .hero { padding-top: 20px; padding-bottom: 23px; }
  .page-intro { padding-top: 17px; padding-bottom: 17px; }
}


/* Keyboard accessibility, narrow screens, and reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
html { scroll-padding-top: 96px; }
section[id], .entry[id] { scroll-margin-top: 96px; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid #875337;
  outline-offset: 3px;
}
a { overflow-wrap: anywhere; }
.nav-name a { overflow-wrap: normal; }
@media (max-width: 420px) {
  main { padding-left: 16px; padding-right: 16px; }
  .nav-name { font-size: .86rem; }
  .mobile-links { min-width: min(205px, calc(100vw - 32px)); }
  .actions { gap: 12px 16px; }
}

/* Accessibility audit: skip link */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 1000;
  background: #143a5c;
  color: white;
  padding: 11px 16px;
  border-radius: 0 0 6px 6px;
  font-weight: 650;
}
.skip-link:focus {
  top: 0;
  color: white;
}
#main-content:focus { outline: none; }

/* Compact, uncropped original hiking photograph on the right. */
.hero-with-portrait { display: grid; grid-template-columns: minmax(0,1fr) 175px; align-items: start; gap: clamp(18px, 3vw, 42px); }
.hero-copy { min-width: 0; }
.hero-portrait { display: block; width: 175px; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 3px; box-shadow: 0 4px 14px rgba(20,58,92,.08); }
@media (max-width: 620px) { .hero-with-portrait { grid-template-columns: minmax(0,1fr) 120px; gap: 12px; } .hero-portrait { width: 120px; } .hero-with-portrait .actions { gap: 8px 12px; } }
@media (max-width: 390px) { .hero-with-portrait { grid-template-columns: 1fr; } .hero-portrait { width: 150px; } }
