:root {
  --background: #ffffff;
  --surface: #f7f9fa;
  --text: #252a31;
  --muted: #66717d;
  --accent: #287a8d;
  --accent-dark: #1f6170;
  --border: #e4e8eb;
  --shadow: 0 12px 32px rgba(31, 45, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

.nav a {
  padding: 20px 0 18px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 76px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 68px;
}

.profile {
  align-self: start;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(40, 122, 141, 0.17), rgba(40, 122, 141, 0.04)),
    var(--surface);
  color: var(--accent-dark);
  font-size: 3.5rem;
  font-weight: 750;
  letter-spacing: -0.06em;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile h2 {
  margin: 21px 0 4px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.profile-pronunciation {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.5;
}

.profile-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.profile-links {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.profile-links a,
.profile-links span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.91rem;
  text-decoration: none;
}

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

.icon {
  width: 1.1rem;
  color: var(--accent);
  font-weight: 750;
  text-align: center;
}

.content {
  max-width: 760px;
}

.content h1 {
  margin: -7px 0 16px;
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 700px;
  margin: 0;
  color: #3e4650;
  font-size: 1.12rem;
  line-height: 1.72;
}

.lead + .lead {
  margin-top: 18px;
}

.home-content .lead {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.home-content .lead + .lead {
  margin-top: 22px;
}

.section {
  margin-top: 48px;
}

.section h2 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

.outside-interests h2 {
  margin-bottom: 20px;
}

.outside-interests > p {
  margin: 0;
  color: #3e4650;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 6px 11px;
  border: 1px solid #d8e6ea;
  border-radius: 999px;
  background: #f4fafb;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 650;
}

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

.paper {
  padding: 22px 23px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  box-shadow: 0 8px 24px rgba(31, 45, 61, 0.045);
}

.paper.featured {
  border-left: 4px solid var(--accent);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.paper h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.4;
}

.paper p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.paper .paper-authors {
  margin-bottom: 12px;
  font-style: italic;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 13px;
}

.paper-links a,
.paper-links .paper-link-label {
  color: var(--accent);
  font-size: 0.89rem;
  font-weight: 700;
  text-decoration: none;
}

.note-card {
  padding: 24px;
  border-radius: 10px;
  background: var(--surface);
}

.note-card h2,
.note-card h3 {
  margin-top: 0;
}

.note-card p:last-child {
  margin-bottom: 0;
}

.cv-preview {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.cv-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 28px, 1120px);
    min-height: 60px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    padding: 17px 0 15px;
    font-size: 0.88rem;
  }

  .page-shell {
    width: min(100% - 34px, 1120px);
    padding-top: 36px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .profile {
    display: grid;
    grid-template-columns: 112px 1fr;
    column-gap: 20px;
    align-items: start;
  }

  .profile-photo {
    grid-row: 1 / span 4;
    font-size: 2.3rem;
  }

  .profile h2 {
    margin-top: 0;
  }

  .profile-links {
    margin-top: 13px;
  }

  .content h1 {
    font-size: 2.35rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    align-items: flex-start;
    padding: 13px 0 8px;
    flex-direction: column;
    gap: 2px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    padding: 8px 0 9px;
  }

  .profile {
    grid-template-columns: 92px 1fr;
    column-gap: 16px;
  }

  .paper {
    padding: 19px;
  }
}
