:root {
  --bg: #f6f2e8;
  --surface: #fffdf8;
  --surface-strong: #f0e8da;
  --text: #1c2428;
  --muted: #5f6b70;
  --line: #d8d0bf;
  --accent: #1f5e5a;
  --accent-dark: #174947;
  --shadow: 0 18px 50px rgba(27, 36, 41, 0.08);
  --max-width: 1080px;
  --narrow-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.7;
}

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

a:hover,
a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

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

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.narrow {
  width: min(100%, var(--narrow-width));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 208, 191, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.site-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.site-name:hover,
.site-name:focus-visible {
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-nav a {
  position: relative;
  padding: 0.2rem 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--accent);
}

.hero,
.page-hero {
  padding: 5.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.9fr);
  align-items: center;
  gap: 2.5rem;
}

.hero-text {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0 0 1rem;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

p {
  margin: 0 0 1rem;
}

.hero-intro,
.page-hero p {
  max-width: 52rem;
  font-size: 1.06rem;
}

.hero-intro-secondary {
  margin-top: 0.25rem;
}

.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1.6rem;
  position: relative;
  z-index: 3;
}

.external-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.hero-photo {
  justify-self: end;
  position: relative;
  z-index: 1;
}

.hero-photo img {
  width: min(100%, 250px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(216, 208, 191, 0.95);
  box-shadow: var(--shadow);
}

.page-section {
  padding: 1.5rem 0 2.5rem;
}

.page-section + .page-section {
  padding-top: 0.5rem;
}

.pub-list,
.course-list {
  margin: 0;
  padding-left: 1.4rem;
}

.pub-list li,
.course-list li {
  margin-bottom: 1.4rem;
  padding-left: 0.3rem;
}

.pub-title,
.course-title {
  margin-bottom: 0.2rem;
  font-weight: 700;
  color: var(--text);
}

.pub-meta,
.course-meta {
  color: var(--muted);
}

.pub-citation {
  margin-bottom: 0.35rem;
}

.contact-card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.95) 0%, rgba(240, 232, 218, 0.75) 100%);
  box-shadow: var(--shadow);
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 0;
  }

  .site-nav {
    gap: 0.9rem 1.1rem;
  }

  .hero,
  .page-hero {
    padding-top: 4.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-photo {
    justify-self: start;
  }

  .hero-photo img {
    width: min(68vw, 220px);
  }

  .external-links {
    gap: 0.7rem;
  }
}
