/* ── Mike Findley — Academic Site ── */
/* Refined editorial aesthetic: warm, literate, sharp */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, sans-serif;

  --bg: #FAFAF7;
  --bg-alt: #F3F2ED;
  --text: #2C2B28;
  --text-secondary: #6B6A65;
  --text-tertiary: #9B9A95;
  --accent: #B44A1E;
  --accent-hover: #933D18;
  --accent-light: #F5EDE8;
  --border: #E5E4DF;
  --border-light: #EEEDEA;
  --white: #FFFFFF;

  --max-width: 880px;
  --max-width-wide: 1080px;
  --nav-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1A18;
    --bg-alt: #232320;
    --text: #E8E6DE;
    --text-secondary: #B4B2A9;
    --text-tertiary: #888780;
    --accent: #E0734A;
    --accent-hover: #EF8A64;
    --accent-light: #2D2117;
    --border: #3A3A36;
    --border-light: #2E2E2A;
    --white: #232320;
  }
}

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

html { font-size: 17px; scroll-behavior: smooth; }

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

/* ── Navigation ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

nav .nav-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

nav .nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

nav .nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--text);
  background: var(--bg-alt);
}

nav .nav-links a.active {
  color: var(--accent);
}

/* Mobile nav toggle */
nav .menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

@media (max-width: 680px) {
  nav .menu-toggle { display: block; }
  nav .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px;
    gap: 4px;
  }
  nav .nav-links.open { display: flex; }
}

/* ── Main content ── */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 32px 80px;
}

main.wide {
  max-width: var(--max-width-wide);
}

/* ── Typography ── */

h1, h2, h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 16px; }
h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 12px; color: var(--text); }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }

p { margin-bottom: 16px; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

/* ── Home page hero ── */

.hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.hero-photo {
  width: 200px;
  height: 240px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
}

.hero-text h1 {
  margin-bottom: 8px;
}

.hero-text .title-line {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-text p {
  font-size: 0.95rem;
  color: var(--text);
}

.hero-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-links a {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.15s;
}

.hero-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo {
    margin: 0 auto;
    width: 160px;
    height: 192px;
  }
  .hero-links { justify-content: center; }
}

/* ── Section dividers ── */

.section {
  margin-top: 48px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

/* ── Featured work cards ── */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.featured-card {
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.featured-card:hover {
  border-color: var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.featured-card .card-venue {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.featured-card .card-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}

.featured-card .card-authors {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── Publications list ── */

.pub-year {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-top: 40px;
  margin-bottom: 16px;
}

.pub-year:first-of-type { margin-top: 0; }

.pub-entry {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pub-entry:last-child { border-bottom: none; }

.pub-type-badge {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 9px;
  background: var(--accent);
}

.pub-type-badge.book { background: var(--accent); width: 10px; height: 10px; border-radius: 2px; }

.pub-content { flex: 1; }

.pub-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.pub-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pub-meta .venue {
  font-style: italic;
}

.pub-links {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.pub-links a {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.15s;
}

.pub-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Research map page ── */

.map-container {
  width: 100%;
  height: calc(100vh - var(--nav-height) - 120px);
  min-height: 500px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-intro {
  margin-bottom: 24px;
}

.map-intro p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── Footer ── */

footer {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 32px 32px 48px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

footer a { color: var(--text-secondary); }
