﻿:root {
  --blue: #486581;
  --blue-dark: #243B53;
  --green: #7B8E7A;
  --ink: #1F2933;
  --muted: #52606D;
  --bg: #FAF9F7;
  --card: #FFFFFF;
  --border: #E8E2D8;
  --shadow: 0 12px 28px rgba(31, 41, 51, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
}

a {
  color: var(--blue-dark);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(72, 101, 129, 0.25);
}

a:hover { border-bottom-color: var(--blue-dark); }

.hero {
  background: linear-gradient(180deg, #F3EFE7 0%, #FAF9F7 100%);
  color: var(--ink);
  padding: 26px clamp(18px, 4vw, 48px) 78px;
  border-bottom: 1px solid var(--border);
}

.topbar {
  max-width: 1040px;
  margin: 0 auto 58px;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--blue-dark);
  border-bottom: none;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.93rem;
  font-weight: 700;
}

.lang-link img {
  vertical-align: middle;
  margin-right: 3px;
}

.hero-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: 'Inter', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green);
  margin: 0 0 16px;
}

h1 {
  margin: 0 0 20px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(2.35rem, 5.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--blue-dark);
}

.lead {
  max-width: 760px;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  margin: 0 0 28px;
  color: var(--ink);
}

.hero-actions,
.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: 'Inter', Arial, sans-serif;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--blue-dark);
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 750;
}

.btn.primary {
  background: var(--blue-dark);
  color: #fff;
  border-color: var(--blue-dark);
}

.profile-card {
  justify-self: center;
  background: #FFFFFF;
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 12px;
  max-width: 300px;
  text-align: center;
  box-shadow: var(--shadow);
}

.profile-img {
  width: 178px;
  height: 178px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.profile-title {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

main {
  max-width: 1040px;
  margin: -32px auto 0;
  padding: 0 clamp(18px, 4vw, 48px) 38px;
}

.section { margin-bottom: 34px; }

.intro,
.highlight,
.contact,
.card,
.project {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.intro,
.highlight,
.contact {
  padding: clamp(24px, 4vw, 40px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 12px 0 18px;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
  max-width: 520px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.96rem;
}

h2 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.04rem;
}

p { margin-top: 0; }

.grid {
  display: grid;
  gap: 18px;
}

.cards-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { padding: 22px; }

.card p:last-child,
.project p:last-child,
.highlight p:last-child,
.contact p:last-child {
  margin-bottom: 0;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.5fr);
  gap: 20px;
  align-items: start;
}

.meta {
  color: var(--green);
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 750;
  margin: 0;
  font-size: 0.91rem;
}

.link-line {
  margin: 18px 0 0;
  color: var(--muted);
}

.highlight { background: #F3EFE7; }

.contact-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #F3EFE7;
  border-bottom: none;
  font-family: 'Inter', Arial, sans-serif;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 28px 18px 36px;
  font-size: 0.95rem;
}

@media (max-width: 920px) {
  .hero-grid,
  .project {
    grid-template-columns: 1fr;
  }
  .profile-card { justify-self: start; }
  .cards-four,
  .cards-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar { justify-content: flex-start; }
  .cards-four,
  .cards-three {
    grid-template-columns: 1fr;
  }
  main { margin-top: -26px; }
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.project-links a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3efe7;
  color: var(--blue-dark);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  border-bottom: none;
}

.project-links a:hover {
  background: #e8e2d8;
  text-decoration: none;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 12px clamp(18px, 4vw, 48px);
  justify-content: center;
  background: rgba(250, 249, 247, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.topbar a {
  color: var(--blue-dark);
}

.hero {
  padding-top: 96px;
}

.cards-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .cards-two {
    grid-template-columns: 1fr;
  }

  .topbar {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }
}

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

.publication-group {
  padding: 24px;
}

.publication-item {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.publication-item:first-of-type {
  border-top: none;
  padding-top: 6px;
}

.publication-meta {
  margin: 0 0 6px;
  color: var(--green);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 750;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}

.publication-links a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3efe7;
  color: var(--blue-dark);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  border-bottom: none;
}

.publication-links a:hover {
  background: #e8e2d8;
  text-decoration: none;
}