:root {
  --bg: #f7f3ed;
  --surface: #fffdfa;
  --surface-soft: #f2ebe1;

  --text: #292621;
  --subtext: #71695f;

  --accent: #9a7b58;
  --accent-dark: #745a3d;
  --accent-light: #e3d3bf;

  --border: #e5dcd0;

  --shadow: 0 12px 32px rgba(78, 60, 40, 0.055);
}


/* ================= BASE ================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

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

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1000px, 91%);
  margin: 0 auto;
}


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

.header {
  background: rgba(247, 243, 237, 0.97);
  border-bottom: 1px solid var(--border);
}

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

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

.logo {
  font-size: 21px;
  font-weight: 750;

  letter-spacing: -0.4px;
}

nav {
  display: flex;
  align-items: center;

  gap: 25px;
}

nav a {
  color: var(--subtext);

  font-size: 14px;
  font-weight: 500;

  transition: color 0.18s ease;
}

nav a:hover {
  color: var(--accent-dark);
}

.nav-cv {
  padding: 7px 14px;

  background: var(--surface);

  border: 1px solid var(--accent-light);
  border-radius: 999px;
}


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

.hero {
  margin-top: 45px;

  padding: 40px 44px;

  display: grid;
  grid-template-columns: 145px 1fr;

  gap: 37px;

  align-items: center;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 20px;

  box-shadow: var(--shadow);
}

.profile-photo {
  width: 145px;
}

.profile-photo img {
  display: block;

  width: 145px;
  height: 175px;

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

  border-radius: 14px;

  border: 1px solid var(--border);

  background: white;
}

.eyebrow {
  margin: 0 0 4px;

  color: var(--accent-dark);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;

  font-size: 44px;
  line-height: 1.1;

  letter-spacing: -1.2px;
}

.position {
  margin: 9px 0 0;

  color: var(--subtext);

  font-size: 15.5px;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin: 17px 0;
}

.research-tags span {
  padding: 5px 11px;

  background: var(--surface-soft);

  border: 1px solid var(--accent-light);
  border-radius: 999px;

  color: var(--accent-dark);

  font-size: 12.5px;
  font-weight: 600;
}

.bio {
  max-width: 720px;

  margin: 0;

  color: #514c46;

  font-size: 15px;
}

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

  gap: 8px;

  margin-top: 21px;
}

.profile-links a {
  padding: 7px 12px;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: 8px;

  color: var(--accent-dark);

  font-size: 13px;
  font-weight: 600;

  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.profile-links a:hover {
  background: var(--surface-soft);

  border-color: var(--accent-light);
}


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

.section {
  padding-top: 65px;
}

.section-header {
  margin-bottom: 23px;
}

.section-header h2 {
  margin: 0;

  font-size: 27px;
  line-height: 1.3;

  letter-spacing: -0.6px;
}


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

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 17px;
}

.research-card {
  padding: 25px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 16px;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.research-card:hover {
  transform: translateY(-2px);

  box-shadow:
    0 9px 22px rgba(78, 60, 40, 0.05);
}

.research-index {
  margin-bottom: 15px;

  color: var(--accent);

  font-size: 11px;
  font-weight: 750;
}

.research-card h3 {
  margin: 0 0 7px;

  font-size: 19px;
}

.research-card p {
  margin: 0;

  color: var(--subtext);

  font-size: 14.5px;
}


/* ================= SELECTED PAPER CARDS ================= */

.selected-research-item {
  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(300px, 0.85fr);

  gap: 42px;

  align-items: center;

  margin-bottom: 22px;

  padding: 30px 32px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 18px;

  box-shadow:
    0 8px 24px rgba(78, 60, 40, 0.045);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.selected-research-item:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 30px rgba(78, 60, 40, 0.07);
}

.selected-research-item:last-of-type {
  margin-bottom: 0;
}

.selected-research-text {
  min-width: 0;
}


/* ================= PAPER META ================= */

.pub-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 15px;

  margin-bottom: 9px;
}

.pub-year {
  color: var(--accent-dark);

  font-size: 13px;
  font-weight: 750;
}

.bk21-badge {
  display: inline-block;

  padding: 4px 9px;

  background: #fdebed;

  border: 1px solid #f5c8cf;
  border-radius: 999px;

  color: #b84a5a;

  font-size: 10.5px;
  font-weight: 700;

  white-space: nowrap;
}


/* ================= PAPER TEXT ================= */

.selected-research-item h3 {
  margin: 0 0 12px;

  font-size: 21px;
  line-height: 1.4;

  letter-spacing: -0.25px;
}

.research-question {
  margin: 0 0 17px;

  color: var(--accent-dark);

  font-size: 15.5px;
  font-weight: 650;

  line-height: 1.55;
}

.research-points {
  display: flex;
  flex-direction: column;

  gap: 10px;

  margin-bottom: 18px;
}

.research-points > div {
  display: grid;

  grid-template-columns: 68px 1fr;

  gap: 12px;

  align-items: start;
}

.point-label {
  padding-top: 1px;

  color: var(--accent-dark);

  font-size: 11px;
  font-weight: 750;

  text-transform: uppercase;

  letter-spacing: 0.04em;
}

.research-points p {
  margin: 0;

  color: var(--subtext);

  font-size: 14px;

  line-height: 1.6;
}

.authors {
  margin: 0 0 3px;

  color: var(--subtext);

  font-size: 13.5px;
}

.authors strong {
  color: var(--text);
}

.venue {
  margin: 0;

  color: var(--subtext);

  font-size: 13px;
}

.equal {
  margin: 4px 0 0;

  color: var(--subtext);

  font-size: 11px;
}


/* ================= PAPER LINKS ================= */

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

  gap: 8px;

  margin-top: 13px;
}

.pub-links a {
  padding: 6px 11px;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: 7px;

  color: var(--accent-dark);

  font-size: 12px;
  font-weight: 650;

  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.pub-links a:hover {
  background: var(--surface-soft);

  border-color: var(--accent-light);
}


/* ================= PAPER FIGURES ================= */

.selected-research-figure {
  width: 100%;

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

  padding: 12px;

  background: #faf7f2;

  border: 1px solid var(--border);
  border-radius: 14px;
}

.selected-research-figure img {
  display: block;

  width: 100%;
  height: auto;

  max-height: 290px;

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


/* ================= UNDER REVIEW ================= */

.under-review-section {
  margin-top: 30px;

  padding: 22px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 16px;
}

.under-review-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 11px;

  margin-bottom: 17px;
}

.under-review-badge {
  display: inline-block;

  padding: 4px 9px;

  background: #fdebed;

  border: 1px solid #f5c8cf;
  border-radius: 999px;

  color: #b84a5a;

  font-size: 10.5px;
  font-weight: 700;

  text-transform: uppercase;

  white-space: nowrap;
}

.under-review-count {
  color: var(--subtext);

  font-size: 13px;
  font-weight: 500;
}

.manuscript-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 12px;
}

.manuscript-card {
  padding: 16px 17px;

  background: #fffdfa;

  border: 1px solid var(--border);
  border-radius: 12px;
}

.manuscript-top {
  min-height: 27px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 9px;
}

.manuscript-name {
  color: var(--accent-dark);

  font-size: 11.5px;
  font-weight: 750;
}

.manuscript-authors {
  margin: 0;

  color: var(--subtext);

  font-size: 12.5px;

  line-height: 1.6;
}

.manuscript-authors strong {
  color: var(--text);
}

.manuscript-note {
  margin: 5px 0 0;

  color: var(--subtext);

  font-size: 10.5px;
  font-style: italic;
}


/* NRF Student Research Grant */

.nrf-badge {
  display: inline-block;

  padding: 3px 8px;

  background: #eaf6ee;

  border: 1px solid #c5e5cf;
  border-radius: 999px;

  color: #43815a;

  font-size: 10px;
  font-weight: 700;

  white-space: nowrap;
}


/* ================= BOOK + PATENT ================= */

.simple-card {
  display: grid;

  grid-template-columns: 85px 1fr;

  gap: 26px;

  padding: 24px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 16px;
}

.simple-year {
  color: var(--accent-dark);

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

.simple-card h3 {
  margin: 0 0 6px;

  font-size: 17px;
}

.simple-card p {
  margin: 2px 0;

  color: var(--subtext);

  font-size: 14px;
}

.simple-card p strong {
  color: var(--text);

  font-weight: 700;
}

.simple-card .secondary {
  font-size: 12.5px;
}


/* ================= PROJECTS ================= */

.project-list {
  padding: 5px 27px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 17px;
}

.project-item {
  display: grid;

  grid-template-columns: 175px 1fr;

  gap: 27px;

  padding: 19px 0;

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

.project-item:last-child {
  border-bottom: none;
}

.project-date {
  color: var(--accent-dark);

  font-size: 12.5px;
  font-weight: 650;
}

.project-item h3 {
  margin: 0 0 3px;

  font-size: 15.5px;
}

.project-item p {
  margin: 0;

  color: var(--subtext);

  font-size: 13px;
}


/* ================= EDUCATION ================= */

.education-list {
  padding: 5px 27px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 17px;
}

.education-item {
  display: grid;

  grid-template-columns: 175px 1fr;

  gap: 27px;

  padding: 22px 0;

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

.education-item:last-child {
  border-bottom: none;
}

.education-date {
  color: var(--accent-dark);

  font-size: 12.5px;
  font-weight: 650;
}

.education-item h3 {
  margin: 0 0 5px;

  font-size: 16.5px;
}

.education-item p {
  margin: 2px 0;

  color: var(--subtext);

  font-size: 13.5px;
}

.education-item .institution {
  color: var(--text);

  font-weight: 600;
}


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

.teaching-card {
  padding: 23px 26px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 17px;
}

.teaching-card h3 {
  margin: 0 0 14px;

  font-size: 16px;
}

.course {
  display: grid;

  grid-template-columns: 90px 1fr 100px;

  gap: 18px;

  padding: 10px 0;

  border-top: 1px solid var(--border);

  align-items: center;

  font-size: 13.5px;
}

.course-code {
  color: var(--accent-dark);

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

.course-term {
  color: var(--subtext);

  text-align: right;

  font-size: 12px;
}


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

footer {
  margin-top: 75px;

  background: #eee6db;

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

.footer-inner {
  min-height: 115px;

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

.footer-inner strong {
  font-size: 14px;
}

.footer-inner p {
  margin: 2px 0;

  color: var(--subtext);

  font-size: 12px;
}


/* ================= TABLET ================= */

@media (max-width: 820px) {

  .header-inner {
    padding: 20px 0;

    flex-direction: column;
    align-items: flex-start;

    gap: 13px;
  }

  nav {
    gap: 13px;

    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 115px 1fr;

    gap: 24px;

    padding: 27px;
  }

  .profile-photo,
  .profile-photo img {
    width: 115px;
  }

  .profile-photo img {
    height: 140px;
  }

  .hero h1 {
    font-size: 36px;
  }

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

  .selected-research-item {
    grid-template-columns: 1fr;

    gap: 24px;
  }

  .selected-research-figure {
    max-width: 650px;
  }

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

  .project-item,
  .education-item {
    grid-template-columns: 1fr;

    gap: 4px;
  }

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

  .course-term {
    grid-column: 2;

    text-align: left;
  }

}


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

@media (max-width: 560px) {

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

  .profile-photo,
  .profile-photo img {
    width: 105px;
  }

  .profile-photo img {
    height: 125px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .selected-research-item {
    padding: 23px 20px;
  }

  .selected-research-item h3 {
    font-size: 18px;
  }

  .research-points > div {
    grid-template-columns: 1fr;

    gap: 2px;
  }

  .simple-card {
    grid-template-columns: 1fr;

    gap: 7px;
  }

  .under-review-heading {
    flex-direction: column;
    align-items: flex-start;
  }

}
