:root {
  --navy: #0B2347;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #111827;
  --muted: #6B7280;
  --line: #E5E7EB;
  --accent: #2563EB;
  --accent-dark: #1D4ED8;
  --accent-soft: #EFF6FF;
  --gold: #C9A227;
  --shadow: 0 18px 42px rgba(11, 35, 71, 0.08);
  --max-width: 1060px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration-color: var(--gold);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 8px 20px rgba(11, 35, 71, 0.16);
}

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

.site-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
  font-size: 0.93rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
}

.nav-links a.active {
  color: #ffffff;
  font-weight: 700;
}

.site-title:hover,
.site-title:focus,
.nav-links a:hover,
.nav-links a:focus {
  color: #ffffff;
  text-decoration-color: var(--gold);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 56px;
  min-height: 560px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.profile-hero {
  align-items: center;
}

.hero-content {
  max-width: 790px;
}

.profile-hero .hero-content {
  max-width: 660px;
}

.hero-photo {
  flex: 0 0 280px;
}

.hero-photo img,
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(201, 162, 39, 0.14)),
    var(--surface);
  border: 1px solid var(--line);
  border-bottom: 5px solid var(--gold);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.hero-photo img {
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-header {
  padding-top: 96px;
  padding-bottom: 36px;
}

.compact {
  padding-top: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.profile-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  white-space: nowrap;
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.05rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.25rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 700;
}

.button:hover,
.button:focus {
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover,
.button.primary:focus {
  background: var(--accent-dark);
}

.button.secondary {
  background: var(--surface);
  color: var(--accent);
}

.button.secondary:hover,
.button.secondary:focus {
  border-color: var(--gold);
  color: var(--accent-dark);
}

.button.disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
  opacity: 0.72;
}

.button.disabled:hover,
.button.disabled:focus {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -2px 0 rgba(201, 162, 39, 0.22);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.about-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
  color: var(--text);
}

.about-list li::marker {
  color: var(--gold);
}

.about-list strong {
  color: var(--navy);
}

.cards {
  display: grid;
  gap: 18px;
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.publication,
.timeline article,
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card {
  border-top: 3px solid rgba(37, 99, 235, 0.22);
}

.card p,
.publication p,
.timeline p {
  color: var(--muted);
}

.publication-list,
.timeline {
  display: grid;
  gap: 16px;
}

.publication-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.year-index {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.year-index h2 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.year-index a {
  padding: 6px 0;
  color: var(--accent);
  font-weight: 700;
}

.year-index .index-parent {
  margin-top: 4px;
  color: var(--navy);
}

.year-index .index-child {
  margin-left: 14px;
  padding: 3px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.year-index .index-child:hover,
.year-index .index-child:focus {
  color: var(--accent-dark);
}

.publication-year {
  scroll-margin-top: 96px;
}

.publication-year h2 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.publication-actions {
  margin-top: 14px;
}

.year-heading {
  margin: 10px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
  color: var(--navy);
  font-size: 1.45rem;
}

.callout {
  margin-top: 18px;
  color: var(--muted);
}

.meta {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.94rem;
  font-weight: 700;
}

.inline-code {
  display: inline-block;
  padding: 1px 6px;
  background: var(--accent-soft);
  border-radius: 4px;
  color: var(--navy);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.94em;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent);
  font-weight: 700;
}

.contact-links a:hover,
.contact-links a:focus {
  border-color: var(--accent);
  color: var(--accent-dark);
  text-decoration: none;
}

.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--gold);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

.footer-contact p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  font-weight: 700;
}

.footer-contact a:hover,
.footer-contact a:focus {
  color: #ffffff;
  text-decoration-color: var(--gold);
}

@media (max-width: 780px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .section {
    padding: 56px 20px;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 32px;
    min-height: auto;
    padding-top: 72px;
  }

  .hero-photo,
  .photo-placeholder {
    width: min(100%, 280px);
    flex-basis: auto;
  }

  .page-header {
    padding-top: 64px;
  }

  .content-grid,
  .publication-layout,
  .three-column,
  .two-column {
    grid-template-columns: 1fr;
  }

  .year-index {
    position: static;
  }

  .lead {
    font-size: 1.12rem;
  }
}
