/* ---------- Base ---------- */
:root {
  --bg: #eef2f6;
  --surface: #ffffff;
  --text: #1b2533;
  --muted: #5b6778;
  --accent: #22365a;
  --accent-soft: #dde6f0;
  --border: #dde3ea;
  --radius: 16px;
  --max-width: 960px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-name: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.site-name {
  font-family: var(--font-name);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav a[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

/* ---------- Main ---------- */
main {
  flex: 1;
  padding: 4rem 0;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

/* Name uses a font where capital I and lowercase l look distinct */
.name {
  font-family: var(--font-name);
  font-weight: 400;
}

h1.name {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-text h1 {
  margin-bottom: 1.25rem;
}

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

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* ---------- Hero (home) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  grid-template-areas:
    "photo text"
    "pubs  text";
  grid-template-rows: auto 1fr;
  gap: 2.5rem 3.5rem;
  align-items: start;
}

.hero .photo { grid-area: photo; }
.hero-text { grid-area: text; }
.publications { grid-area: pubs; }

/* ---------- Publications ---------- */
.publications h2 {
  font-family: var(--font-name);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pub-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.pub-list a {
  display: block;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.pub-list a:hover,
.pub-list a:focus-visible {
  text-decoration: underline;
}

.pub-meta {
  display: block;
  color: var(--muted);
}

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

.pub-more {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.pub-more:hover,
.pub-more:focus-visible {
  text-decoration: underline;
}

.photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--accent-soft);
  border: 5px solid var(--accent);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder shown until a real photo is added */
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.photo-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: 0.6;
}

.bio p {
  margin: 0 0 1rem;
}

.bio .list-label {
  margin-bottom: 0.35rem;
}

.bio-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.bio-list li {
  margin-bottom: 0.3rem;
}

.bio-list li::marker {
  color: var(--accent);
}

.button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.15s;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34, 54, 90, 0.3);
}

/* ---------- Contact ---------- */
.contact-intro {
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.contact-panel {
  max-width: 600px;
  background: var(--surface);
  border: 5px solid var(--accent);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.6rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s;
}

.contact-row + .contact-row {
  border-top: 1px solid var(--border);
}

.contact-row:hover,
.contact-row:focus-visible {
  background: var(--accent-soft);
}

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

.contact-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.contact-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent);
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  main {
    padding: 2.5rem 0;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "text"
      "pubs";
    grid-template-rows: auto;
    gap: 2rem;
  }

  .photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-text {
    text-align: center;
  }

  .bio {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .site-header .container {
    justify-content: center;
  }
}
