﻿:root {
  --navy: #1e56a0;
  --navy-dark: #163172;
  --link: #1e56a0;
  --text: #24272b;
  --muted: #636b74;
  --line: #d6e4f0;
  --soft: #f6f6f6;
  --tint: #d6e4f0;
  --white: #ffffff;
  --max-width: 1040px;
  --font-sans: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--soft);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
}

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

strong {
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy-dark);
  box-shadow: 0 2px 12px rgba(22, 49, 114, 0.16);
}

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

.brand,
.nav-links a {
  color: var(--white);
  text-decoration: none;
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
}

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

.nav-links a {
  font-size: 0.94rem;
  opacity: 0.92;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
  padding: 7px 12px;
  border-radius: 6px;
  font: inherit;
}

main {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  background: var(--white);
  padding: 0 28px;
}

.section {
  padding: 44px 0;
  border-bottom: 2px solid var(--tint);
  scroll-margin-top: 72px;
}

.profile-section {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-top: 54px;
}

.profile-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-photo {
  width: 210px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--tint);
}

.contact-list {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  font-size: 0.94rem;
  width: 210px;
  max-width: 100%;
}

.contact-list a {
  display: grid;
  grid-template-columns: 30px minmax(0, auto);
  align-items: center;
  justify-content: start;
  gap: 8px;
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--link);
}

.contact-list .icon {
  justify-self: center;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 1.36rem;
  line-height: 1;
}

.contact-list .icon-envelope {
  transform: scaleX(0.9);
  transform-origin: center;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.96rem;
}

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

h1 {
  margin-bottom: 18px;
  color: var(--navy-dark);
  font-size: 2.25rem;
  line-height: 1.15;
}

h1 strong {
  font-weight: 600;
}

.name-pronunciation {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
  white-space: nowrap;
}

.bio p {
  max-width: 72ch;
}

.simba-note {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.simba-note div {
  flex: 0 1 auto;
  text-align: right;
  order: 1;
}

.simba-avatar {
  order: 2;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
}

.simba-quote {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.96rem;
  font-style: italic;
}

.simba-name {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 500;
}

.section-heading h2 {
  margin-bottom: 22px;
  color: var(--navy-dark);
  font-size: 1.45rem;
  line-height: 1.25;
}

.section-heading h2,
.term,
.venue span {
  font-weight: 500;
}

.publication {
  display: block;
  margin-top: 22px;
  padding-left: 16px;
  border-left: 3px solid var(--tint);
}

.publication:first-of-type {
  margin-top: 0;
}

.pub-main h3 {
  margin-bottom: 1px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 500;
}

.authors {
  margin-bottom: 1px;
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
}

.authors .author-self {
  color: var(--text);
  font-weight: 500;
}

.authors span:not(.author-self) {
  color: var(--muted);
}

.venue {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.94rem;
}

.pub-links a::before,
.pub-links .disabled::before {
  content: '[';
  color: var(--muted);
}

.pub-links a::after,
.pub-links .disabled::after {
  content: ']';
  color: var(--muted);
}

.disabled {
  color: #9aa3ad;
}

.teaching-list,
.honor-list {
  display: grid;
  gap: 14px;
}

.teaching-item,
.honor-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--tint);
}

.term {
  color: var(--navy-dark);
  font-weight: 700;
}

.course {
  color: var(--text);
}

.teaching-role {
  font-style: italic;
}

.footer {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
    gap: 0;
    padding: 10px 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding: 10px 0 4px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .profile-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
  }

  .profile-photo {
    width: min(100%, 260px);
  }

  h1 {
    font-size: 2rem;
  }

  .name-pronunciation {
    display: block;
    margin: 6px 0 0;
    white-space: normal;
  }

  .teaching-item,
  .honor-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 520px) {
  main,
  .footer {
    width: min(100% - 24px, var(--max-width));
  }

  main {
    padding: 0 16px;
  }
}
