/* ==================================================
   1. Design variables
================================================== */

:root {
  --background: #f7f5ef;
  --background-light: #fbfaf7;
  --surface: #ffffff;

  --navy: #10213d;
  --navy-soft: #253753;
  --text: #17233a;
  --muted: #5c6678;
  --line: #dedbd3;

  --max-width: 1180px;
  --side-padding: 5vw;
}


/* ==================================================
   2. Base
================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;

  background: var(--background);
  color: var(--text);

  font-family:
    Arial,
    "Helvetica Neue",
    Helvetica,
    sans-serif;

  font-size: 16px;
  line-height: 1.65;

  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

section {
  scroll-margin-top: 90px;
}

.site-shell {
  width: min(
    var(--max-width),
    calc(100% - (var(--side-padding) * 2))
  );
  margin: 0 auto;
}


/* ==================================================
   3. Header
================================================== */

.site-header {
  position: relative;
  z-index: 100;

  width: 100%;

  background: var(--background);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 40px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-link {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.brand-name {
  padding-left: 18px;

  border-left: 1px solid var(--line);
  color: var(--muted);

  font-family:
    Georgia,
    "Times New Roman",
    Times,
    serif;

  font-size: 16px;
  font-weight: 400;
}

.home-link:hover,
.brand-name:hover {
  color: var(--navy);
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 30px;
}

.main-navigation a {
  position: relative;

  color: var(--navy-soft);
  font-size: 15px;
  font-weight: 500;
}

.main-navigation a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -7px;

  width: 100%;
  height: 1px;

  background: var(--navy);

  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-navigation a[aria-current="page"] {
  color: var(--navy);
}

.main-navigation a[aria-current="page"]::after {
  transform: scaleX(1);
}


/* ==================================================
   4. Profile / Hero
================================================== */

.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns:
    minmax(250px, 310px)
    minmax(0, 680px);

  align-items: start;
  justify-content: center;

  gap: clamp(48px, 5vw, 72px);
}

.portrait-column {
  align-self: start;

  display: flex;
  justify-content: center;

  /* Aligns the top of the photo approximately with the name. */
  padding-top: 38px;
}

.portrait-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3518 / 4185;

  overflow: hidden;

  border: 1px solid var(--line);
  background: transparent;

  box-shadow: 0 16px 36px rgba(34, 55, 84, 0.12);
}

.portrait-frame img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.hero-copy {
  align-self: start;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;

  color: var(--navy);

  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .profile-title {
  margin: 0;

  color: var(--navy);

  font-family:
    Georgia,
    "Times New Roman",
    Times,
    serif;

  font-size: clamp(36px, 2.8vw, 44px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

/* Optional: use this class under the name for title and affiliation. */
.profile-role {
  margin: 10px 0 0;

  color: var(--navy-soft);

  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
}

.profile-bio {
  max-width: 650px;
  margin: 24px 0 0;

  color: var(--muted);

  /* One step larger than the previous 17px setting. */
  font-size: 18px;
  line-height: 1.72;
}

.profile-bio + .profile-bio {
  margin-top: 20px;
}

.profile-details {
  max-width: 650px;

  margin: 30px 0 0;
  padding: 20px 0;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-details div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);

  gap: 22px;
  padding: 6px 0;
}

.profile-details dt {
  color: var(--navy);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-details dd {
  margin: 0;

  color: var(--muted);

  font-size: 15px;
  line-height: 1.6;
}

.profile-details a {
  color: var(--navy);
}

.profile-details a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;

  gap: 28px;
  margin-top: 25px;
}

.profile-links a {
  padding-bottom: 3px;

  border-bottom: 1px solid var(--navy);
  color: var(--navy);

  font-size: 14px;
  font-weight: 700;
}

.profile-links a:hover {
  opacity: 0.65;
}


/* ==================================================
   5. Research: simple publication-style list
================================================== */

.research-section {
  padding: 64px 0 72px;

  border-top: 1px solid var(--line);
  background: var(--background-light);
}

.research-list-heading {
  margin: 0 0 26px;

  color: #292929;

  font-family:
    Georgia,
    "Times New Roman",
    Times,
    serif;

  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;

  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.publication-list {
  max-width: 1100px;
}

.publication-entry {
  margin: 0 0 12px;

  color: #303030;

  font-family:
    Georgia,
    "Times New Roman",
    Times,
    serif;

  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.publication-entry:last-child {
  margin-bottom: 0;
}

.publication-title-link {
  color: inherit;
}

.publication-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.publication-links {
  margin-left: 8px;

  font-size: 0.84em;
  color: #666;
}

.publication-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.paper-status,
.publication-venue {
  font-style: italic;
  font-weight: 600;
}


/* ==================================================
   6. Research detail page
================================================== */

.research-page {
  min-height: calc(100vh - 146px);
  padding: 72px 0 96px;
}

.research-page-content {
  max-width: 1120px;
}

.research-page-title {
  margin: 0 0 56px;

  color: var(--navy);

  font-family:
    Georgia,
    "Times New Roman",
    Times,
    serif;

  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.research-paper {
  margin-bottom: 62px;
}

.research-paper-title {
  margin: 0 0 22px;

  color: #292929;

  font-family:
    Georgia,
    "Times New Roman",
    Times,
    serif;

  font-size: clamp(21px, 2.2vw, 27px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}

.research-paper-links {
  margin-left: 8px;

  color: var(--muted);
  font-family:
    Arial,
    "Helvetica Neue",
    Helvetica,
    sans-serif;
  font-size: 0.62em;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

.research-paper-links a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.research-paper-links a:hover {
  color: var(--navy);
}

.research-abstract {
  max-width: 1080px;
  margin: 0;

  color: #303030;
  font-size: 17px;
  line-height: 1.8;
}

.research-paper-title-only {
  margin-bottom: 0;
}



/* ==================================================
   7. Footer
================================================== */

.site-footer {
  padding: 22px 0;

  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);

  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.footer-inner p {
  margin: 0;
  font-size: 13px;
}


/* ==================================================
   8. Tablet
================================================== */

@media (max-width: 850px) {
  :root {
    --side-padding: 24px;
  }

  .header-inner {
    min-height: auto;
    padding: 18px 0;
  }

  .main-navigation {
    gap: 18px;
  }

  .hero {
    padding: 52px 0 70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

.portrait-column {
  align-self: start;
  padding-top: 8px;
}

  .portrait-frame {
    width: min(65vw, 280px);
  }

  .hero-copy {
    max-width: 680px;
  }

}


/* ==================================================
   9. Mobile
================================================== */

@media (max-width: 600px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;

    gap: 13px;
  }

  .header-brand {
    gap: 13px;
  }

  .brand-name {
    padding-left: 13px;
    font-size: 16px;
  }

  .main-navigation {
    gap: 20px;
  }

  .main-navigation a {
    font-size: 14px;
  }

  .hero {
    padding: 38px 0 58px;
  }

  .portrait-frame {
    width: min(78vw, 260px);
  }

  .hero .profile-title {
    font-size: 31px;
  }

  .profile-role {
    font-size: 16px;
  }

  .profile-bio {
    font-size: 16px;
    line-height: 1.7;
  }

  .profile-details div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 0;
  }

  .research-section {
    padding: 50px 0 56px;
  }

  .research-list-heading {
    margin-bottom: 20px;
    font-size: 19px;
  }

  .publication-entry {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .research-page {
    padding: 52px 0 70px;
  }

  .research-page-title {
    margin-bottom: 40px;
  }

  .research-paper {
    margin-bottom: 46px;
  }

  .research-paper-title {
    margin-bottom: 16px;
  }

  .research-abstract {
    font-size: 16px;
    line-height: 1.75;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
