:root {
  --bg: #f2f3f5;
  --bg-alt: #ffffff;
  --text: #1f2530;
  --muted: #5b6470;
  --accent: #4f73ff;
  --accent-soft: rgba(79, 115, 255, 0.12);
  --border: rgba(31, 37, 48, 0.08);
  --shadow: 0 15px 35px rgba(31, 37, 48, 0.12);
  --container-width: min(1100px, 92vw);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Proxima Nova", "Montserrat", "Avenir", "Helvetica Neue", sans-serif;
  background: linear-gradient(160deg, #f7f8fa, #eceff3 60%, #e7e9ee);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  width: 100%;
  margin: 0 auto;
  padding: 32px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(242, 243, 245, 0.7);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  width: var(--container-width);
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-link--pill {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--bg-alt);
  box-shadow: 0 6px 18px rgba(31, 37, 48, 0.08);
  border: 1px solid rgba(31, 37, 48, 0.04);
}

.nav-link--pill:hover,
.nav-link--pill:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(31, 37, 48, 0.12);
  background: var(--accent);
  color: #fff;
}

.site-main {
  flex: 1;
  width: var(--container-width);
  margin: 0 auto;
  padding: 80px 0 120px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: center;
  padding: 64px clamp(32px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 32px;
  border: 1px solid rgba(31, 37, 48, 0.05);
  box-shadow: var(--shadow);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 20px 0 24px;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: clamp(220px, 40vw, 320px);
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #4f73ff, #7a8aff);
  padding: 8px;
  box-shadow: 0 18px 40px rgba(79, 115, 255, 0.25);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.portrait-frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.section-header {
  margin: 120px 0 40px;
  max-width: 720px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 700;
}

.section-kicker {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
}

.timeline-date {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent);
}

.timeline-body {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 26px rgba(31, 37, 48, 0.08);
}

.timeline-body h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
}

.timeline-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.paper-card {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(31, 37, 48, 0.06);
  box-shadow: 0 18px 38px rgba(31, 37, 48, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 290px;
}

.paper-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.paper-card h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.paper-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  flex: 1;
}

.paper-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.paper-link {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.paper-link:hover,
.paper-link:focus {
  color: var(--accent);
  border-color: var(--accent);
}

.site-footer {
  margin-top: 140px;
  padding: 80px 0 60px;
  width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--border);
}

.footer-title {
  margin: 0 0 18px;
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent);
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .site-main {
    padding-top: 60px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px clamp(24px, 6vw, 60px);
  }

  .hero-portrait {
    order: -1;
    margin-bottom: 24px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-date {
    order: -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 20px 0;
  }

  .site-header__inner {
    padding: 0 clamp(16px, 5vw, 28px);
  }

  .hero {
    padding: 40px clamp(18px, 5vw, 36px);
  }

  .section-header {
    margin-top: 80px;
  }

  .site-footer {
    padding: 60px clamp(18px, 6vw, 36px);
    width: 100%;
  }
}
