*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1a18;
  --ink-soft: #5a5a55;
  --ink-muted: #9a9a94;
  --rule: #ddddd8;
  --bg: #fafaf8;
  --bg-warm: #f4f3ef;
  --accent: #3b5a8a;
  --accent-light: #e8edf5;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.nav-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* FOOTER */
footer {
  border-top: 1px solid var(--rule);
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* SECTIONS */
section {
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
}

.footer-link {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--ink); }


.hero-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

.hero-figure {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.hero-figure:hover .hero-img-placeholder { border-color: var(--accent); }
.hero-figure:hover figcaption { color: var(--accent); }

.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-warm);
  border: 1px dashed var(--rule);
  transition: border-color 0.2s;
}

.hero-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.hero-figure:hover .hero-img { opacity: 0.85; }

.hero-figure figcaption {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  transition: color 0.2s;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-sidebar { padding-top: 0.25rem; }

.about-img {
  width: 100%;
  display: block;
}

.about-photo-credit {
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-top: 0.6rem;
}


  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-warm);
  border: 1px dashed var(--rule);
  margin-bottom: 1rem;
}

.cv-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  margin-bottom: 1.25rem;
  transition: opacity 0.2s;
}

.cv-link:hover { opacity: 0.65; }

/* RESEARCH */
.research-intro {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* WORKS */
.works-section { display: flex; flex-direction: column; }

.works-heading {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
}

.works-heading--second { margin-top: 3rem; }

.works-list { display: flex; flex-direction: column; }

.work-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.work-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.work-meta {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.work-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.7;
}

/* BOOKS */
.books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 1.5rem 0 0;
}

.book-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.book-cover-link {
  display: block;
  text-decoration: none;
}

.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--bg-warm);
  border: 1px dashed var(--rule);
  transition: border-color 0.2s;
}

.book-cover-img {
  width: 100%;
  display: block;
  transition: opacity 0.2s;
}

.book-cover-link:hover .book-cover-img { opacity: 0.85; }

.book-cover-link:hover .book-cover-placeholder {
  border-color: var(--accent);
}

.book-citation {
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 300;
  line-height: 1.65;
}

.book-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .books-grid { grid-template-columns: 1fr; }
}


.courses-list { display: flex; flex-direction: column; }

.course {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.course:first-child { border-top: 1px solid var(--rule); }

.course-name {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
}

.course-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 300;
  margin-top: 0.2rem;
}

.course-level {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

.teaching-philosophy {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-warm);
  border-left: 2px solid var(--accent);
}

.teaching-philosophy-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.teaching-philosophy p {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.75;
}

/* PUBLIC SCHOLARSHIP */
.ps-statement {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 3rem;
}

.talks-section { display: flex; flex-direction: column; }

/* MEDIA */
.scholarship-grid { display: flex; flex-direction: column; }

.scholarship-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}

.scholarship-item:first-child { border-top: 1px solid var(--rule); }
.scholarship-item:hover .scholarship-title { color: var(--accent); }

.scholarship-venue {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.4;
  padding-top: 0.2rem;
}

.scholarship-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}

.scholarship-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.65;
}

/* CONTACT FORM */
.contact-text {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.contact-text p {
  font-size: 1rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.85;
}

.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.form-input {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  appearance: none;
  border-radius: 0;
}

.form-input::placeholder { color: var(--ink-muted); }
.form-input:focus { border-color: var(--accent); }

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

.form-submit {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.form-submit:hover { background: var(--accent); color: #fff; }

/* SPAM PROTECTION */
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.form-footer-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.form-status {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--accent);
}

/* IMAGE CREDITS */
.credits-list { display: flex; flex-direction: column; }

.credit-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.credit-item:first-child { border-top: 1px solid var(--rule); }

.credit-location {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.credit-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.7;
}


/* HERO EMBED */
.hero-figure--embed { cursor: default; }

.hero-figure-link {
  display: block;
  text-decoration: none;
  pointer-events: none; /* let iframe receive interactions */
}

.hero-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 133%; /* matches 3:4 portrait ratio of other hero images */
  overflow: hidden;
}

.hero-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* RESPONSIVE */
@media (max-width: 700px) {
  nav {
    padding: 0 1.25rem;
    height: 64px;
    position: relative;
  }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    z-index: 150;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

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

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  section { padding: 3rem 1.25rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-sidebar { order: -1; max-width: 220px; }

  .hero-images {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
    gap: 2rem;
  }

  .books-grid { grid-template-columns: 1fr; }

  .scholarship-item { grid-template-columns: 60px 1fr; }

  .form-row--half { grid-template-columns: 1fr; }

  .form-input { font-size: 1rem; } /* prevents iOS zoom on focus */

  .course { grid-template-columns: 1fr; }

  .section-title { font-size: 1.55rem; }

  .teaching-philosophy { padding: 1.5rem; }

  footer { padding: 1.5rem; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
