:root {
  --bg: #fbf7ef;
  --surface: #ffffff;
  --surface-muted: #f1eee7;
  --ink: #172426;
  --ink-soft: #405052;
  --teal: #0f4b4e;
  --teal-dark: #0b3336;
  --oxblood: #8d2d31;
  --gold: #c59a3c;
  --line: #d8d1c3;
  --shadow: 0 24px 60px rgba(28, 38, 35, 0.12);
  --max-width: 1120px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--oxblood);
}

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

code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.1rem 0.3rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95em;
}

.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: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 209, 195, 0.88);
  background: rgba(251, 247, 239, 0.95);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.brand-text {
  display: grid;
  line-height: 1.18;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text span {
  color: var(--ink-soft);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section-band {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(15, 75, 78, 0.07), rgba(197, 154, 60, 0.06)),
    var(--bg);
}

.hero-grid {
  width: min(100% - 32px, var(--max-width));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 68px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.78fr);
  align-items: center;
  gap: 54px;
}

.eyebrow,
.section-kicker,
.paper-label,
.status,
.timeline-date {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
}

.eyebrow,
.section-kicker,
.paper-label {
  color: var(--oxblood);
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(3.25rem, 8vw, 6.4rem);
  line-height: 0.92;
  font-weight: 500;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  font-weight: 500;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.26rem;
  line-height: 1.25;
  font-weight: 600;
}

.hero-role {
  margin-bottom: 22px;
  color: var(--teal-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
}

.hero-summary {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
}

.hero-actions,
.paper-links,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

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

.button-primary:hover {
  background: var(--teal-dark);
  color: #ffffff;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--teal-dark);
}

.button-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.button-ghost {
  border-color: transparent;
  color: var(--teal-dark);
}

.profile-panel {
  border: 1px solid rgba(216, 209, 195, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.headshot {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  background: var(--surface-muted);
}

.quick-facts {
  margin: 0;
  padding: 24px;
}

.quick-facts div + div {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.quick-facts dt {
  margin-bottom: 4px;
  color: var(--oxblood);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-facts dd {
  margin: 0;
  color: var(--ink-soft);
}

.section {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 80px 0;
}

.section-muted {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px max(16px, calc((100vw - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.64fr) minmax(0, 1fr);
  gap: 48px;
}

.section-body {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-heading {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 28px;
}

.job-market-paper {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px;
}

.paper-content p,
.research-card p,
.contact-card p,
.cv-panel p {
  color: var(--ink-soft);
}

.paper-meta {
  margin-bottom: 18px;
  color: var(--teal);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.paper-links a,
.paper-links span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.paper-links span {
  color: #81796d;
}

.button-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.research-list {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.research-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}

.research-card p {
  margin-bottom: 22px;
}

.status {
  width: fit-content;
  margin-top: auto;
  border-top: 2px solid var(--gold);
  padding-top: 8px;
  color: var(--teal-dark);
}

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

.timeline {
  display: grid;
  gap: 22px;
}

.timeline article {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}

.timeline-date {
  color: var(--teal);
}

.timeline p {
  color: var(--ink-soft);
}

.awards-panel {
  border-top: 1px solid var(--line);
  margin-top: 52px;
  padding-top: 34px;
}

.teaching-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.award-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
}

.award-list li {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

.award-list strong,
.award-list span {
  display: block;
}

.award-list span {
  color: var(--ink-soft);
}

.teaching-list li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.teaching-list strong,
.teaching-list span {
  display: block;
}

.teaching-list span {
  color: var(--ink-soft);
}

.cv-panel {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px;
}

.cv-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.contact-section {
  padding-bottom: 64px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
}

.contact-name {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
}

.small-note {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--teal);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.site-footer {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--ink-soft);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .section-grid,
  .two-column,
  .job-market-paper {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 54px;
  }

  .research-list,
  .award-list {
    grid-template-columns: 1fr;
  }

  .research-card {
    min-height: auto;
  }

  .cv-panel {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    padding: 10px 16px 18px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    font-size: 1rem;
  }

  .brand-text span {
    display: none;
  }

  .hero-actions,
  .contact-actions,
  .cv-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section,
  .section-muted {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .section-heading,
  .job-market-paper,
  .research-list,
  .cv-panel {
    width: min(100% - 32px, var(--max-width));
  }

  .job-market-paper,
  .cv-panel,
  .contact-card {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
