@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* Modern academic — no borders, spacing + type only */

:root {
  --bg:        #f3f1ec;
  --surface:   #faf9f6;
  --nav-bg:    rgba(250, 249, 246, 0.9);
  --tint:      #e8eef3;
  --text:      #1f2937;
  --soft:      #4a5568;
  --light:     #6b7280;
  --accent:    #4a6678;
  --accent-2:  #6b8a9a;
  --link:      #3d6b85;
  --link-h:    #2f5569;
  --section-border: #e5e7eb;

  --font-heading: 'Lora', Georgia, serif;
  --font-body:    'Inter', sans-serif;

  --max:   44rem;
  --nav-h: 3.25rem;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body,
p,
li,
span {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
.nav a {
  font-family: var(--font-heading);
}

body {
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--tint);
  color: var(--text);
}

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

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

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

/* ── top navigation ───────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: calc(var(--max) + 4rem);
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── page shell ───────────────────────────────────────── */

.page {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  background: var(--surface);
  border-radius: 8px;
}

/* ── profile header ───────────────────────────────────── */

.profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.profile h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.aka {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--light);
  margin-top: 0.2rem;
}

.role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 0.6rem;
}

.org {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--soft);
  margin-top: 0.25rem;
}

.jm {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.65rem;
}

.contact {
  margin-top: 1.25rem;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--soft);
}

.contact p + p {
  margin-top: 0.4rem;
}

.contact a {
  font-weight: 500;
}

.sep {
  color: var(--light);
  margin: 0 0.35rem;
}

.photo {
  width: 200px;
  flex-shrink: 0;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(74, 102, 120, 0.12);
}

/* ── research / methods line ──────────────────────────── */

.tags {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--soft);
  margin-bottom: 3rem;
  padding: 1rem 1.1rem;
  background: var(--tint);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tags h3 {
  font-size: 0.84rem;
  color: var(--accent);
}

.tags .section-content {
  margin-bottom: 0;
}

/* ── sections ─────────────────────────────────────────── */

main section {
  margin-bottom: 3.5rem;
}

main section:last-of-type {
  margin-bottom: 0;
}

main h2,
main h3,
.tags h3 {
  font-weight: 700;
  letter-spacing: 0.025em;
  margin-bottom: 1rem;
}

main h2 {
  font-size: 1.35rem;
  color: var(--accent);
}

main h3 {
  font-size: 0.92rem;
  color: var(--accent-2);
}

main h2 + h3 {
  margin-top: 0.5rem;
}

main section > h3 ~ h3 {
  margin-top: 2rem;
}

.section-content {
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--section-border);
  margin-bottom: 1.5rem;
}

main section > .section-content:last-child {
  margin-bottom: 0;
}

.section-content p {
  font-size: 1rem;
  color: var(--soft);
}

/* list entries (education, talks, teaching) */

.entries {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.entries li {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 1.25rem;
  align-items: start;
}

#teaching .entries li {
  grid-template-columns: 1fr;
}

.year {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent-2);
  padding-top: 0.1rem;
}

.entry-title {
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.entry-title em {
  font-weight: 400;
  font-style: italic;
  color: var(--soft);
}

.entry-sub {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--soft);
  margin-top: 0.15rem;
  line-height: 1.5;
}

.entry-sub em {
  font-style: italic;
  color: var(--light);
}

/* publications */

.pub {
  margin-bottom: 2rem;
}

.pub:last-child {
  margin-bottom: 0;
}

.pub h4 {
  font-size: 1.02rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.pub-meta {
  font-size: 0.84rem;
  color: var(--light);
  margin-bottom: 0.6rem;
}

.pub-meta strong {
  font-weight: 600;
  color: var(--accent);
}

.pub-text {
  font-size: 0.95rem;
  color: var(--soft);
  line-height: 1.65;
}

/* footer */

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  font-size: 0.78rem;
  color: var(--light);
  text-align: center;
}

/* ── responsive ───────────────────────────────────────── */

@media (max-width: 600px) {
  .nav-inner {
    padding: 0 1.15rem;
    gap: 1.25rem;
    overflow-x: auto;
  }

  .page {
    padding: 2rem 1.15rem 3rem;
    border-radius: 0;
  }

  .profile {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .photo {
    width: 160px;
  }

  .entries li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media print {
  .nav { display: none; }
  .page { max-width: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
