@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap");

:root {
  --page: #ffffff;
  --paper: #ffffff;
  --ink: #171717;
  --body: #242424;
  --muted: #454545;
  --line: #dad7d0;
  --accent: #8f1f2a;
  --accent-dark: #65141d;
  --accent-cool: #0b5b68;
  --link: #7e1e2a;
  --soft: #efebe5;
  --max: 900px;
  --shadow: 0 18px 45px rgba(25, 25, 25, 0.08);
  --font-main: "Open Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  font-family: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

strong {
  color: var(--ink);
  font-weight: 700;
}

h1,
h2,
h3,
p,
li,
button {
  font-family: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1240px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 28px;
}

.brand {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  font-size: 16px;
  font-weight: 400;
}

.nav-links a {
  color: var(--ink);
  line-height: 1.2;
  padding: 22px 0 18px;
  border-bottom: 4px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav-links a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 0;
  background: #ffffff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 32px 52px;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.42;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 32px;
}

.global-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 44px;
  max-width: 1230px;
  margin: 0 auto;
  padding: 38px 32px 52px;
  align-items: start;
}

.global-content {
  min-width: 0;
}

.global-content .container {
  max-width: none;
  margin: 0;
  padding-left: 28px;
  padding-right: 28px;
}

.global-profile {
  position: sticky;
  top: 88px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px 12px 18px;
}

.global-profile .profile-links {
  margin-top: 14px;
}

.profile-summary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.4;
}

.profile-mini-links {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.profile-mini-links a {
  color: var(--link);
  text-decoration: none;
}

.profile-mini-links a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.global-profile .profile-link {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 12.5px;
}

.global-profile .profile-link svg {
  width: 13px;
  height: 13px;
}

.intro-grid aside {
  position: relative;
  z-index: 2;
}

.intro-grid article,
.home-intro article {
  max-width: 760px;
  padding-top: 8px;
}

.intro-grid article p:first-child,
.home-intro article p:first-child {
  margin-top: 0;
}

.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 0;
}

.contact {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
}

.profile-name {
  margin: 16px 0 4px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}

.links-row,
.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.profile-links {
  gap: 8px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid var(--accent);
  background: var(--paper);
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.button-link:hover {
  background: var(--accent);
  color: #fff;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.profile-link svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: currentColor;
}

.profile-link:hover {
  border-color: var(--accent);
}

.profile-link.orcid {
  color: #6f9f18;
}

.profile-link.scholar {
  color: #1f6feb;
}

.profile-link.linkedin {
  color: #0a66c2;
}

.profile-link.github {
  color: #24292f;
}

.section {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.section:nth-of-type(even) {
  background: #ffffff;
}

.section-block {
  margin-bottom: 30px;
}

main h2:not(.profile-name) {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.12;
}

main h3 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.lead {
  max-width: 820px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

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

.interest-list li {
  margin: 6px 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.topic-card {
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent-cool);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(25, 25, 25, 0.05);
  padding: 20px;
}

.topic-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.publication-list {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.publication {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
  transition: background 160ms ease;
}

.publication:hover {
  background: rgba(255, 255, 255, 0.6);
}

.publication-title {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.32;
}

.publication-meta,
.publication-note {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.45;
}

.publication-meta .authors {
  color: var(--ink);
  font-weight: 400;
}

.publication-meta .author-self {
  color: var(--ink);
  font-weight: 700;
}

.publication-meta strong {
  color: #2f5964;
  font-weight: 600;
}

.publication-meta .pdf-link {
  font-weight: 700;
}

.media-list {
  gap: 0;
}

.media-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.media-item-text {
  display: block;
}

.media-thumb {
  display: block;
  width: 132px;
  height: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.media-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-copy {
  min-width: 0;
}

.pub-year {
  margin-top: 34px;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 18px;
}

.cv-note {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.cv-frame {
  width: 100%;
  min-height: 820px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 16px 22px 12px;
  }

  .brand {
    font-size: 21px;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 15px;
  }

  .nav-links a {
    padding: 6px 0;
    border-bottom-width: 3px;
  }

  .hero {
    min-height: 270px;
  }

  .hero-inner,
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

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

  .hero p {
    font-size: 19px;
  }

  .global-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .global-profile {
    max-width: 340px;
    position: static;
  }

  .global-content .container {
    padding-left: 0;
    padding-right: 0;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro-grid aside {
    max-width: 340px;
    margin-top: -80px;
  }

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

@media (max-width: 520px) {
  body {
    font-size: 17px;
  }

  .hero {
    min-height: 230px;
  }

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

  .hero p {
    font-size: 18px;
  }

  main h2:not(.profile-name) {
    font-size: 31px;
  }

  .publication {
    padding: 15px 0;
  }

  .media-item {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .media-thumb {
    width: 96px;
    height: 72px;
  }

  .cv-frame {
    min-height: 620px;
  }
}
