/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --ink: #f5f2ea;
  --ink-soft: #b3ada0;
  --border: rgba(245, 242, 234, 0.14);
  --border-soft: rgba(245, 242, 234, 0.08);
  --accent: #c9a24a;
  --accent-soft: rgba(201, 162, 74, 0.1);
  --link: #d8b563;

  --font-display: 'Libre Caslon Text', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 880px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--ink); }

a { color: var(--link); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Badge row (profile links) ---------- */
.badge-row {
  display: flex;
  gap: 10px;
  list-style: none;
}
.badge-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.badge-row a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero (full-bleed photo, vignette) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 65% at 50% 36%, transparent 30%, rgba(10,10,10,0.5) 62%, var(--bg) 96%),
    linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.25) 55%, var(--bg) 97%);
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 0 28px 64px;
}
.hero-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.7);
  margin-bottom: 18px;
}
.hero-name {
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
}
.hero-role {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: rgba(245, 242, 234, 0.85);
  margin-bottom: 26px;
}
.hero-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.hero-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.hero-links a:hover { border-color: var(--accent); }

/* ---------- Record rows (CV-style sections) ---------- */
.record {
  border-top: 1px solid var(--border-soft);
  padding: 52px 0;
}
.record.alt { background: var(--surface); }
.record-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}
.record-label { padding-top: 4px; }
.record-body p { color: var(--ink-soft); max-width: 620px; margin-bottom: 14px; }
.record-body p:last-child { margin-bottom: 0; }

.plain-list { list-style: none; display: grid; gap: 12px; max-width: 620px; }
.list-note { margin-top: 18px; }
.plain-list li { color: var(--ink-soft); }
.plain-list li strong { color: var(--ink); font-weight: 600; }
.plain-list li a { font-weight: 600; }

/* ---------- Affiliations ---------- */
.affil-list { list-style: none; display: grid; gap: 0; max-width: 620px; }
.affil-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}
.affil-item:first-child { padding-top: 0; }
.affil-item:last-child { border-bottom: none; }
.affil-text h3 { font-size: 1.05rem; margin-bottom: 4px; }
.affil-text p { color: var(--ink-soft); font-size: 0.92rem; }
.affil-link {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.affil-link:hover { text-decoration: underline; }

/* ---------- Scholar card ---------- */
.scholar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 620px;
  margin-top: 18px;
  padding: 18px 22px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.scholar-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.scholar-card-title { font-weight: 600; color: var(--ink); }
.scholar-card-arrow { color: var(--accent); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .hero { min-height: 88vh; background-position: center 18%; }
  .record-row { grid-template-columns: 1fr; gap: 12px; }
  .affil-item { flex-direction: column; align-items: flex-start; gap: 6px; }

  .nav, .badge-row { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    padding: 20px 28px;
    gap: 16px;
  }
  .site-header.menu-open .badge-row {
    display: flex;
    position: absolute;
    top: 244px; left: 28px;
    z-index: 1;
  }
  .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
