:root {
  color-scheme: light;
  --ink: #171815;
  --muted: #5c625c;
  --paper: #f8f8f3;
  --mist: #eef2ec;
  --forest: #23483a;
  --teal: #176b73;
  --copper: #a75d36;
  --line: rgba(23, 24, 21, 0.16);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(18, 27, 22, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.is-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(248, 248, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 0.86rem;
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  color: var(--white);
  background: var(--forest);
  border-color: var(--forest);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a:focus-visible,
.site-header.is-open .nav-links a:hover,
.site-header.is-open .nav-links a:focus-visible {
  background: var(--mist);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 4px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 78svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 112px 20px 64px;
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 12, 10, 0.86) 0%, rgba(8, 12, 10, 0.62) 44%, rgba(8, 12, 10, 0.14) 100%),
    linear-gradient(0deg, rgba(8, 12, 10, 0.66) 0%, rgba(8, 12, 10, 0.05) 46%);
}

.hero::after {
  z-index: -1;
  background: radial-gradient(circle at 20% 78%, rgba(35, 72, 58, 0.52), transparent 34%);
}

.hero-content {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4b38a;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 6.4rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 3.6rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.28rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--forest);
  border-color: var(--forest);
  box-shadow: var(--shadow);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
}

.button-secondary {
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.46);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.signal-row {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

.signal-row div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.signal-row dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-row dd {
  margin: 0;
  font-weight: 850;
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.profile-section,
.focus-section,
.publications-section,
.appointments-section,
.contact-section {
  padding: 88px 0;
}

.profile-section {
  background: var(--white);
}

.profile-layout,
.publications-layout,
.appointments-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.section-heading {
  display: grid;
  gap: 14px;
}

.section-heading.compact {
  max-width: 780px;
  margin-bottom: 34px;
}

.profile-copy {
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-size: 1.1rem;
}

.profile-copy p,
.focus-card p,
.publication-block p,
.timeline-list p {
  margin: 0;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.resource-links a,
.resource-links span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.92rem;
  font-weight: 800;
}

.resource-links a:hover,
.resource-links a:focus-visible {
  color: var(--white);
  background: var(--forest);
  border-color: var(--forest);
}

.focus-section {
  background: var(--mist);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.focus-card {
  min-height: 270px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.focus-index {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--forest);
  font-size: 0.8rem;
  font-weight: 900;
}

.focus-card:nth-child(2) .focus-index {
  background: var(--teal);
}

.focus-card:nth-child(3) .focus-index {
  background: var(--copper);
}

.focus-card:nth-child(4) .focus-index {
  background: var(--forest);
}

.focus-card p {
  color: var(--muted);
}

.focus-card div {
  display: grid;
  gap: 10px;
}

.publications-section {
  background: var(--paper);
}

.publication-groups,
.timeline-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.publication-block,
.timeline-list article {
  display: grid;
  padding: 24px;
  background: var(--paper);
}

.publication-block {
  gap: 14px;
}

.publication-block ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication-block li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.publication-block li:first-child {
  padding-top: 0;
  border-top: 0;
}

.publication-block span,
.publication-block a {
  display: block;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.publication-block a:hover,
.publication-block a:focus-visible {
  color: var(--teal);
}

.publication-block small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.appointments-section {
  background: var(--mist);
}

.timeline-list article {
  gap: 8px;
}

.timeline-list span {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-list p {
  color: var(--muted);
}

.contact-section {
  color: var(--white);
  background: var(--ink);
}

.contact-layout {
  align-items: center;
}

.contact-section .section-kicker {
  color: #f4b38a;
}

.contact-actions {
  justify-content: flex-end;
}

.contact-section .button-secondary {
  color: var(--white);
}

.site-footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  color: var(--forest);
}

:focus-visible {
  outline: 3px solid rgba(23, 107, 115, 0.5);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .nav {
    min-height: 64px;
  }

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

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 14px 20px 24px;
    color: var(--ink);
    background: rgba(248, 248, 243, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 180ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-links a {
    min-height: 48px;
    border-radius: 6px;
  }

  .hero {
    min-height: 76svh;
    padding-top: 96px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(8, 12, 10, 0.9) 0%, rgba(8, 12, 10, 0.68) 58%, rgba(8, 12, 10, 0.34) 100%),
      linear-gradient(0deg, rgba(8, 12, 10, 0.7) 0%, rgba(8, 12, 10, 0.08) 46%);
  }

  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .signal-row,
  .focus-grid,
  .profile-layout,
  .publications-layout,
  .appointments-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .signal-row {
    max-width: 520px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav,
  .section-inner,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .brand span:last-child {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 74svh;
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 42px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy,
  .profile-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .signal-row div {
    min-height: 76px;
    padding: 15px;
  }

  .hero .signal-row {
    display: none;
  }

  .profile-section,
  .focus-section,
  .publications-section,
  .appointments-section,
  .contact-section {
    padding: 64px 0;
  }

  .focus-card {
    min-height: 230px;
    padding: 22px;
  }

  .site-footer {
    min-height: 108px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-height: 700px) {
  .hero .signal-row {
    display: none;
  }

  .hero {
    min-height: 72svh;
    padding-bottom: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
