:root {
  --bg: #ffffff;
  --text: #1f2933;
  --muted: #5f6c7b;
  --line: #d8dee4;
  --accent: #0f6b5f;
  --accent-dark: #084c43;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 70px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.site-title,
.nav a {
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
}

.site-title {
  font-weight: 600;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.nav a {
  color: #334155;
}

main {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.profile {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(34px, 6vw, 72px);
  padding: clamp(48px, 8vw, 82px) 0 42px;
}

.portrait-wrap {
  width: 100%;
}

.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e4e7eb;
  border: 1px solid var(--line);
}

.intro-text {
  max-width: 680px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}

.lede {
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
}

.job-market {
  font-weight: 700;
}

.section {
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
}

h2 {
  margin-bottom: 24px;
  color: var(--accent-dark);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.paper-title {
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}

.abstract {
  max-width: 820px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.abstract summary {
  cursor: pointer;
  padding: 12px 0;
  color: var(--accent-dark);
  font-weight: 600;
}

.abstract p {
  margin-bottom: 18px;
}

.footer {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer p {
  margin-bottom: 0;
}

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

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
  }

  .nav {
    gap: 16px;
  }

  .profile {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 36px 0 56px;
  }

  .portrait {
    max-width: 320px;
  }
}
