:root {
  --ink: #36364e;
  --link: #0000ff;
  --maxw: 880px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "system-ui", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 120px;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

strong, b { font-weight: 600; }

/* ---- header ---- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.wordmark {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  font-size: 46px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
a.wordmark:hover { text-decoration: underline; }
.social {
  text-align: left;
  white-space: nowrap;
  line-height: 1.5;
  padding-top: 9px;
}
.social a { display: block; }

/* ---- intro + portrait ---- */
.intro { margin: 0 0 8px; }
sup a { font-weight: 400; }

.portrait { text-align: center; margin: 40px 0 8px; }
.face-tracker {
  display: inline-block;
  width: 280px;
  height: 280px;
}
.face-image {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 11px;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
}
.scrolldown {
  display: block;
  text-align: center;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  margin: 6px 0 12px;
}
.scrolldown:hover { text-decoration: none; opacity: 0.6; }

/* ---- sections ---- */
.section-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.49px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  margin: 48px 0 18px;
  scroll-margin-top: 24px;
}

/* ---- publications ---- */
.pubs { display: flex; flex-direction: column; gap: 14px; }
.pub-title { margin: 0; }
.pub-meta {
  margin: 0;
  font-style: italic;
}

/* ---- CV ---- */
.cv { padding-left: 22px; margin: 0; }
.cv li { margin: 6px 0; }

/* ---- responsive ---- */
@media (max-width: 600px) {
  .wrap { padding: 32px 18px 80px; }
  .masthead { flex-direction: column; gap: 10px; }
  .wordmark { font-size: 38px; }
  .social { text-align: left; padding-top: 0; }
  .social a { display: inline; margin-right: 16px; }
}
