* {
  box-sizing: border-box;
}

:root {
  --accent-color: #1f4d45;
  --accent-color-soft: #edf4f1;
  --text-primary: #1f1f1f;
  --text-secondary: #3d4744;
  --text-muted: #66706d;
  --border-soft: #e3ebe7;
  --shadow-soft: 0 10px 24px rgba(19, 34, 30, 0.04);
  --shadow-hover: 0 14px 30px rgba(19, 34, 30, 0.08);
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-primary);
  background: #ffffff;
  line-height: 1.65;
}

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

.inline-academic-link {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

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

.container {
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: #ffffff;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a[aria-current="page"] {
  color: var(--accent-color);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, 260px);
  align-items: center;
  gap: 72px;
  padding: 44px 40px;
  margin-top: 20px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: linear-gradient(180deg, #fcfdfc 0%, #f6faf8 100%);
}

.eyebrow {
  margin: 10px 0 0;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--accent-color);
}

.hero h1,
.page-content h1 {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #162220;
}

.affiliation {
  margin: 14px 0 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.intro {
  margin: 24px 0 0;
  max-width: 640px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 286px;
  height: 508px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(19, 34, 30, 0.1);
  border: 1px solid #eef2ef;
}

.content-section,
.page-content {
  padding: 20px 0 44px;
}

.content-section h2 {
  margin: 0 0 22px;
  font-size: 1.42rem;
  font-weight: 700;
  color: #183732;
  letter-spacing: -0.01em;
}

.interest-list {
  margin: 0;
  padding-left: 22px;
}

.interest-list li + li {
  margin-top: 10px;
}

.research-interests-section {
  padding-top: 30px;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 4px 0 0;
  margin: 0;
  list-style: none;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.interest-grid li + li {
  margin-top: 0;
}

.interest-item {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #e3ebe7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: #25423d;
  font-weight: 500;
  line-height: 1.5;
}

.project-list,
.news-list {
  display: grid;
  gap: 18px;
}

.project-card,
.news-item {
  padding: 22px 24px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.project-card h3,
.news-item h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 600;
  color: #182624;
}

.project-card p,
.news-item p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
}

.project-card p + p,
.news-item p + p {
  margin-top: 10px;
}

.projects-page .project-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.projects-page .project-card:hover {
  transform: translateY(-2px);
  border-color: #ccd9d3;
  box-shadow: 0 12px 24px rgba(19, 34, 30, 0.06);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #cddbd5;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-color);
  background: var(--accent-color-soft);
}

.news-date {
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--accent-color);
}

.page-content {
  min-height: calc(100vh - 73px);
  padding-top: 56px;
}

.page-content p {
  color: var(--text-secondary);
}

.publications-page .publication-list {
  display: grid;
  gap: 20px;
}

.publications-page .content-section + .content-section {
  margin-top: 8px;
}

.publications-page .publication-item {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.publications-page .publication-item p {
  width: 100%;
  max-width: none;
  margin: 0;
  line-height: 1.75;
}

.cv-page {
  max-width: 900px;
}

.cv-page h1 {
  margin-bottom: 38px;
}

.cv-page .cv-section + .cv-section {
  margin-top: 14px;
  padding-top: 0;
}

.cv-page .cv-section {
  border-top: 1px solid var(--border-soft);
  padding-top: 36px;
  padding-bottom: 14px;
}

.cv-page .cv-section:first-of-type {
  border-top: none;
  padding-top: 10px;
}

.cv-page .cv-entry,
.cv-page .cv-list,
.cv-page .cv-subsection {
  width: 100%;
}

.cv-page .cv-list {
  display: grid;
  gap: 18px;
}

.cv-page #education-heading + .cv-entry {
  margin-top: 0;
}

.cv-page #education-heading ~ .cv-entry {
  margin-top: 22px;
}

.cv-page .cv-entry + .cv-entry,
.cv-page .cv-list .cv-entry + .cv-entry,
.cv-page .cv-subsection + .cv-subsection {
  margin-top: 0;
}

.cv-page .cv-entry h3,
.cv-page .cv-subsection h3,
.cv-page .cv-entry-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #16332e;
}

.cv-page .cv-subsection h3 {
  margin-bottom: 14px;
  color: var(--accent-color);
}

.cv-page p,
.cv-page address {
  max-width: none;
  margin: 0;
  line-height: 1.75;
}

.cv-page .cv-entry p + p {
  margin-top: 5px;
}

.cv-page .cv-date {
  font-weight: 400;
  color: var(--text-muted);
}

.cv-page .cv-entry-card {
  padding: 18px 20px;
  border: 1px solid #e6eeea;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(19, 34, 30, 0.035);
}

.cv-page .cv-subsection + .cv-subsection {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #eef3f0;
}

.cv-page .cv-subsection {
  padding-left: 2px;
}

.cv-page .presentation-list {
  gap: 14px;
}

.cv-page .presentation-entry {
  padding: 16px 18px;
}

.cv-page .presentation-entry + .presentation-entry {
  margin-top: 0;
}

.cv-page .cv-reference {
  font-style: normal;
  color: #4a4a4a;
}

.cv-page .cv-section > p {
  padding: 4px 2px 0;
}

.cv-page .cv-section > address {
  display: block;
}

.projects-page .content-section {
  padding-top: 24px;
}

.projects-page h1,
.project-detail-page h1 {
  margin-bottom: 28px;
}

.projects-page .project-list {
  gap: 22px;
}

.projects-page .project-card p {
  max-width: none;
  line-height: 1.75;
}

.project-detail-page {
  max-width: 900px;
}

.project-detail-page .project-detail-back {
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: #666666;
}

.project-detail-page .project-detail-section {
  border-top: 1px solid #ececec;
  padding-top: 28px;
  padding-bottom: 8px;
}

.project-detail-page .project-detail-section:first-of-type {
  border-top: none;
  padding-top: 8px;
}

.project-detail-page p {
  max-width: none;
  margin: 0;
  line-height: 1.75;
}

.project-feature-list {
  margin: 0;
  padding-left: 22px;
  color: #4a4a4a;
}

.project-feature-list li + li {
  margin-top: 10px;
}

.contact-page {
  max-width: 900px;
}

.contact-page h1 {
  margin-bottom: 18px;
}

.contact-page .contact-intro {
  max-width: none;
  margin: 0 0 28px;
  line-height: 1.75;
  color: #4a4a4a;
}

.contact-page .contact-section {
  padding-top: 26px;
}

.contact-page .contact-section + .contact-section {
  margin-top: 6px;
}

.contact-page .contact-card {
  padding: 20px 22px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.contact-page .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin: 0;
  line-height: 1.75;
  color: var(--text-secondary);
}

.contact-page .contact-item-block {
  align-items: flex-start;
  width: 100%;
}

.contact-page .contact-text p {
  max-width: none;
  margin: 0;
  line-height: 1.75;
}

.contact-page .contact-icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 0;
  color: #71807b;
}

.contact-page .contact-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.contact-page .contact-item-block .contact-icon {
  margin-top: 6px;
}

.contact-page .contact-profile-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-page .contact-profile-list .contact-item,
.contact-page .contact-card a,
.academic-profile-link {
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, text-decoration-color 0.18s ease;
}

.contact-page .contact-profile-list .contact-item {
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #ffffff;
}

.contact-page .contact-profile-list .contact-item:hover,
.contact-page .contact-card a:hover {
  color: var(--accent-color);
}

.contact-page .contact-profile-list .contact-item:hover {
  border-color: #ccd9d3;
  background: #fafcfb;
}

.academic-profile-link {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.academic-profile-link:hover {
  color: #143b35;
  text-decoration-color: currentColor;
}

.contact-page .contact-label {
  font-weight: 500;
}

@media (max-width: 760px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }

  .nav-links {
    gap: 14px;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }

  .interest-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .research-interests-section {
    padding-right: 0;
    padding-left: 0;
  }

  .hero-image {
    justify-content: flex-start;
  }

  .hero h1,
  .page-content h1 {
    font-size: 2rem;
  }

  .hero-image img {
    width: 234px;
    height: 416px;
  }

  .container {
    padding: 0 20px;
  }
}
