*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --page-bg: #ffffff;
  --surface: #f7f8fa;
  --surface-strong: #eef1f5;
  --border: #d8dde6;
  --border-strong: #b8c2d0;
  --text: #1e293b;
  --text-soft: #475569;
  --text-muted: #64748b;
  --heading: #0f172a;
  --link: #1d4ed8;
  --link-hover: #0f2f6f;
  --accent: #8b1e3f;
  --max-width: 1020px;
  --header-height: 64px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1080px;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

strong {
  color: var(--heading);
  font-weight: 600;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

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

.nav {
  width: min(100% - 48px, var(--max-width));
  height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-brand:hover {
  color: var(--heading);
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--heading);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--page-bg);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text-soft);
  display: block;
}

.profile-section {
  padding: 56px 0 42px;
  border-bottom: 1px solid var(--border);
}

.profile-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.profile-aside {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portrait-frame {
  width: 220px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 10px;
}

.portrait-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.08), transparent 45%),
    linear-gradient(315deg, rgba(139, 30, 63, 0.08), transparent 45%),
    #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
}

.portrait-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.profile-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-icon-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--heading);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.profile-icon-link:hover {
  color: var(--link);
  border-color: var(--border-strong);
  background: var(--surface);
  text-decoration: none;
}

.profile-icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-main {
  grid-column: 2;
  grid-row: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--heading);
  margin: 0;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.35rem);
  line-height: 1.08;
  font-weight: 700;
}

.name-note {
  margin: 8px 0 16px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.affiliation {
  margin: 0 0 22px;
  color: var(--text-soft);
  font-weight: 500;
}

.profile-main p {
  margin: 0 0 16px;
}

.research-interests {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-interests span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

.section {
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.2;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.news-list li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
}

.news-list time {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.publications-list {
  display: grid;
  gap: 22px;
}

.publication-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--border);
}

.publication-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.publication-figure {
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: #ffffff;
  overflow: hidden;
  padding: 10px;
  min-height: 112px;
}

.publication-figure:hover {
  border-color: var(--border-strong);
}

.publication-figure img {
  width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
  object-fit: contain;
}

.publication-placeholder-card {
  width: 100%;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--heading);
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.08), transparent 55%),
    linear-gradient(315deg, rgba(139, 30, 63, 0.08), transparent 55%),
    #ffffff;
  border: 1px solid var(--border);
  text-align: center;
}

.publication-placeholder-card span {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.publication-placeholder-card small {
  max-width: 140px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.publication-content {
  min-width: 0;
}

.publication-venue {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.publication-content h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
  line-height: 1.38;
  font-weight: 700;
}

.publication-content h3 a {
  color: var(--heading);
}

.publication-content h3 a:hover {
  color: var(--link);
}

.authors {
  margin: 0 0 9px;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.48;
}

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

.publication-links a {
  font-weight: 600;
}

.contact-section {
  background: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 14px;
}

.contact-copy p {
  margin: 0 0 16px;
  color: var(--text-soft);
}

.contact-direct {
  display: grid;
  gap: 2px;
  padding-top: 8px;
}

.contact-direct span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-direct a {
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-field label {
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  line-height: 1.45;
}

.contact-field input {
  height: 42px;
  padding: 8px 10px;
}

.contact-field textarea {
  min-height: 132px;
  padding: 10px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: 2px solid rgba(29, 78, 216, 0.18);
  outline-offset: 2px;
  border-color: var(--link);
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-actions button {
  min-width: 132px;
  height: 42px;
  border: 1px solid var(--heading);
  border-radius: 4px;
  background: var(--heading);
  color: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.contact-actions button:hover {
  background: var(--link-hover);
  border-color: var(--link-hover);
}

.contact-status {
  min-height: 22px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-status.is-success {
  color: #166534;
  font-weight: 600;
}

.contact-honey {
  display: none;
}

.footer {
  padding: 28px 0 38px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}
