* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #20252b;
  background: #fafbfc;
  font-size: 16px;
  line-height: 1.65;
}

.container {
  width: min(1060px, calc(100% - 40px));
  margin: auto;
}

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


/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #4b667c;
  border-bottom: 1px solid #40596d;
  box-shadow: 0 2px 10px rgba(30, 45, 60, 0.09);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.name {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.005em;
}

.name a {
  color: #ffffff;
}

.name a:hover {
  color: #ffffff;
}

nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav a {
  position: relative;
  padding: 8px 10px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
}


/* =========================================================
   GENERAL LINKS
   ========================================================= */

a {
  color: #126aa5;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #084f80;
}


/* =========================================================
   HOME / HERO
   ========================================================= */

.hero {
  padding: 78px 0 72px;
  background:
    linear-gradient(
      180deg,
      #f0f4f7 0%,
      #fafbfc 82%
    );
}

.hero-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 55px;
  align-items: start;
}

.hero-text {
  max-width: 720px;
}

h1 {
  margin: 0 0 22px;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #18212a;
}

.intro {
  max-width: 720px;
  margin: 0 0 29px;
  font-size: 17.5px;
  line-height: 1.72;
  color: #303941;
}

.intro a {
  color: #126aa5;
  font-weight: 600;
}

.intro a:hover {
  color: #084f80;
}


/* =========================================================
   RESEARCH INTERESTS
   ========================================================= */

.research-interests {
  margin-top: 4px;
}

.research-interests h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #202830;
}

.research-interests ul {
  margin: 0;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 1.75;
  color: #3c454e;
}

.research-interests li {
  padding-left: 2px;
}


/* =========================================================
   PORTRAIT / EMAIL
   ========================================================= */

.profile-column {
  width: 290px;
  justify-self: start;
}

.photo-box {
  width: 235px;
  padding: 7px;
  background: #ffffff;
  border: 1px solid #d3dde5;
  border-radius: 7px;
  box-shadow:
    0 12px 28px rgba(35, 52, 67, 0.11);
}

.photo-box img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.email-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #4a535c;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
}

.email-icon {
  flex: 0 0 auto;
  color: #526b7e;
  font-size: 22px;
  line-height: 1;
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
  padding: 62px 0;
  border-top: 1px solid #e1e6ea;
}

h2 {
  margin: 0 0 27px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #18212a;
}


/* =========================================================
   PAPERS
   ========================================================= */

.papers-section {
  background: #ffffff;
}

.papers-section h2 {
  margin-bottom: 32px;
}

.bibliography-group {
  max-width: 960px;
  margin-top: 34px;
}

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

.bibliography-heading {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #cbd7e0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  color: #304d63;
}

.bibliography {
  margin: 0;
  padding: 0;
}

.bibliography-entry {
  margin-bottom: 17px;
  padding-left: 16px;
  border-left: 2px solid #d8e2e9;
  font-size: 14.5px;
  line-height: 1.62;
  color: #303840;
}

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

.paper-authors {
  color: #20252b;
}

.paper-title {
  font-style: italic;
  color: #20252b;
}

.paper-details {
  color: #525c65;
}

.paper-links {
  display: inline-flex;
  gap: 6px;
  margin-left: 6px;
  white-space: nowrap;
}

.paper-links a {
  color: #126aa5;
  font-size: 12.5px;
  font-weight: 600;
}

.paper-links a::before {
  content: "[";
}

.paper-links a::after {
  content: "]";
}

.paper-links a:hover {
  color: #084f80;
}


/* =========================================================
   TALKS
   ========================================================= */

.talks-section {
  background: #fafbfc;
}

.talks-section h2 {
  margin-bottom: 32px;
}

.talk-group {
  max-width: 900px;
  margin-top: 36px;
}

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

.talk-heading {
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid #cbd7e0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  color: #304d63;
}

.talk-list {
  margin: 0;
}

.talk-entry {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 17px;
  margin-bottom: 18px;
  padding-left: 16px;
  border-left: 2px solid #d8e2e9;
}

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

.talk-year {
  padding-top: 1px;
  font-size: 14px;
  font-weight: 600;
  color: #69747d;
}

.talk-content {
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.55;
}

.talk-event {
  color: #303840;
}

.talk-title {
  margin-top: 2px;
  font-style: italic;
  color: #20252b;
}


/* Invited / Contributed */

.talk-type {
  margin-left: 4px;
  color: #7a838b;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}


/* =========================================================
   TEACHING
   ========================================================= */

.teaching-section {
  background: #ffffff;
}

.teaching-section h2 {
  margin-bottom: 32px;
}

.teaching-group {
  max-width: 900px;
}

.teaching-heading {
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid #cbd7e0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  color: #304d63;
}

.teaching-list {
  margin: 0;
}

.teaching-entry {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  padding-left: 16px;
  border-left: 2px solid #d8e2e9;
}

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

.teaching-date {
  padding-top: 1px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #69747d;
}

.teaching-content {
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.55;
}

.teaching-course {
  font-style: italic;
  color: #20252b;
}

.teaching-details {
  margin-top: 2px;
  color: #525c65;
}


/* =========================================================
   LEGAL PAGES
   ========================================================= */

.legal-main {
  min-height: calc(100vh - 130px);
  padding: 68px 0 90px;
  background: #ffffff;
}

.legal-container {
  max-width: 700px;
}

.legal-title {
  margin-bottom: 30px;
  font-size: 36px;
}

.legal-container p {
  margin: 0 0 19px;
  font-size: 15px;
  line-height: 1.7;
  color: #414b54;
}

.legal-note {
  margin-top: 30px !important;
}

.legal-back {
  margin-top: 42px !important;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 22px 0 25px;
  border-top: 1px solid #e1e6ea;
  background: #fafbfc;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #6e7880;
  font-size: 13px;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-footer a {
  color: #5c6e7a;
  font-weight: 600;
}

.site-footer a:hover {
  color: #294d64;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

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

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

  .profile-column {
    width: 290px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 31px;
  }

  .section {
    padding: 52px 0;
  }

  .legal-main {
    padding: 55px 0 70px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .container {
    width: calc(100% - 28px);
  }

  .nav-wrap {
    min-height: 68px;
  }

  .name {
    font-size: 17px;
  }

  nav {
    gap: 3px;
  }

  nav a {
    padding: 7px 6px;
    font-size: 13.5px;
  }

  nav a.active::after {
    left: 6px;
    right: 6px;
  }

  h1 {
    margin-bottom: 20px;
    font-size: 35px;
  }

  .intro {
    font-size: 16.5px;
  }

  .profile-column {
    width: 100%;
  }

  .photo-box {
    width: 225px;
  }

  .email-line {
    font-size: 12px;
  }

  .email-icon {
    font-size: 21px;
  }

  .bibliography-entry {
    padding-left: 12px;
    font-size: 14px;
  }

  .paper-links {
    margin-left: 3px;
  }

  .talk-entry {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
    padding-left: 12px;
  }

  .talk-content {
    font-size: 14px;
  }

  .talk-type {
    margin-left: 3px;
    font-size: 11.5px;
  }

  .teaching-entry {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 11px;
    padding-left: 12px;
  }

  .teaching-date {
    font-size: 12.5px;
  }

  .teaching-content {
    font-size: 14px;
  }

  .legal-title {
    font-size: 32px;
  }

  .footer-content {
    gap: 15px;
    font-size: 12.5px;
  }

  .footer-links {
    gap: 15px;
  }

}