/* Redesign (dev1 branch): typography-driven academic site.
   Hand-built, zero frameworks. Serif display (Fraunces) + Inter body,
   numbered sections, credential badges, themed research groups. */

:root {
  --ink: #16202e;
  --body-text: #333d4d;
  --muted: #6b7686;
  --accent: #1f5673;
  --accent-dark: #16405a;
  --gold: #b07c26;
  --gold-soft: #faf4e7;
  --rule: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --serif: "Fraunces", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--accent-dark);
  border-bottom-color: currentColor;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

#header-wrap {
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

#logo a {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: none;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav.site-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--rule);
}

nav.site-nav li.active a {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

#nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

/* ---------- Page scaffolding ---------- */

main {
  padding: 56px 0 80px;
  min-height: 62vh;
}

.page-title {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.15;
}

.page-subtitle {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 44px;
  max-width: 640px;
}

/* Numbered section headings (§ 01 …) */
.section-head {
  scroll-margin-top: 84px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 60px 0 8px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.section-head:first-of-type {
  margin-top: 0;
}

.section-head .no {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  white-space: nowrap;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.section-lede {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 660px;
  margin-bottom: 26px;
}

/* ---------- Home ---------- */

.hero {
  display: flex;
  gap: 52px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero .photo {
  flex: 0 0 250px;
}

.hero .photo img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(22, 32, 46, 0.16);
}

.hero .intro {
  flex: 1 1 400px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero .tagline {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero .role {
  font-size: 16.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero .lead {
  font-size: 16.5px;
  margin-bottom: 24px;
  max-width: 560px;
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.badges span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid #ecd9b4;
  border-radius: 999px;
  padding: 5px 14px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 11px 24px;
  border-radius: 6px;
  border-bottom: none;
  transition: background 0.15s ease;
}

.button:hover {
  background: var(--accent-dark);
  color: #fff;
  border-bottom: none;
}

.button.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px 23px;
}

.button.ghost:hover {
  background: var(--bg-soft);
  color: var(--accent-dark);
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 42px 0 10px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stats .stat {
  text-align: center;
}

a.stat {
  display: block;
  border-bottom: none;
  border-radius: 8px;
  transition: background 0.15s ease;
}

a.stat:hover {
  background: var(--bg-soft);
  border-bottom: none;
}

a.stat:hover .n {
  color: var(--accent);
}

.stats .n {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.stats .l {
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Home teaser cards */
.teasers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
}

.teaser {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 26px 28px;
  color: var(--body-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.teaser:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 22px rgba(22, 32, 46, 0.08);
  color: var(--body-text);
  border-bottom-color: var(--accent);
}

.teaser .no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.teaser h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin: 6px 0 8px;
}

.teaser p {
  font-size: 14.5px;
  color: var(--muted);
}

.teaser .go {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 24px 28px;
  margin-top: 40px;
}

.contact-card h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.contact-card dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  row-gap: 4px;
}

.contact-card dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 27px;
}

.contact-card dd {
  margin: 0;
}

/* ---------- Research ---------- */

.pub {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

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

.pub .title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.pub .title a {
  color: inherit;
}

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

.pub .meta {
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
}

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

.pub .hook {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--body-text);
  margin-top: 10px;
  max-width: 700px;
}

.pub .hook::before {
  content: "→ ";
  color: var(--gold);
  font-weight: 600;
}

.pub .links {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pub .links a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 3px 10px;
}

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

.pub details {
  margin-top: 10px;
}

.pub summary {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.pub summary:hover {
  color: var(--accent);
}

.pub details p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--body-text);
  margin-top: 10px;
  padding-left: 16px;
  border-left: 3px solid var(--rule);
}

ul.wip-list {
  list-style: none;
}

ul.wip-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

ul.wip-list li:last-child {
  border-bottom: none;
}

ul.wip-list .title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

ul.wip-list .coauthors {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Teaching ---------- */

.philosophy {
  background: var(--bg-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 26px 30px;
  margin-bottom: 10px;
}

.philosophy p {
  font-size: 16px;
  line-height: 1.8;
}

.philosophy p + p {
  margin-top: 14px;
}

.pull-quote {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 14px;
}

.student-quote {
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--rule);
  padding: 4px 0 4px 18px;
  margin: 22px 0;
  max-width: 680px;
}

.student-quote .who {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--gold);
}

/* Course cards */
.courses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.course {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 24px 28px;
}

.course .code {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.course h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 6px;
}

.course .facts {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 10px;
}

.course p.desc {
  font-size: 15px;
  line-height: 1.7;
}

/* Award cards */
.awards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.award {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 22px;
  background: var(--bg);
}

.award .year {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.award h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin: 3px 0 2px;
}

.award p {
  font-size: 13.5px;
  color: var(--muted);
}

/* Past teaching list */
.teaching-block {
  margin-bottom: 8px;
}

.teaching-block h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 26px 0 6px;
}

.teaching-block h3 .subtitle {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--muted);
}

.teaching-block ul {
  list-style: none;
  margin-top: 4px;
}

.teaching-block li {
  padding: 6px 0 6px 18px;
  position: relative;
}

.teaching-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

.award-year {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- CV ---------- */

.cv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cv-head .updated {
  font-size: 13.5px;
  color: var(--muted);
}

.cv-section {
  scroll-margin-top: 84px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px 30px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}

.cv-section > h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.cv-section > div {
  min-width: 0;
}

.cv-item {
  margin-bottom: 14px;
}

.cv-item:last-child {
  margin-bottom: 0;
}

.cv-item .what {
  color: var(--ink);
  font-weight: 500;
}

.cv-item .what em {
  font-weight: 400;
}

.cv-item .where {
  font-size: 14.5px;
  color: var(--muted);
}

.cv-pub {
  margin-bottom: 14px;
  font-size: 15px;
}

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

.cv-pub .t {
  color: var(--ink);
  font-weight: 500;
}

.cv-pub .j {
  font-style: italic;
}

.cv-year-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 16px;
  margin-bottom: 12px;
  font-size: 14.5px;
}

.cv-year-row:last-child {
  margin-bottom: 0;
}

.cv-year-row .y {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--gold);
  padding-top: 2px;
}

.cv-plain {
  font-size: 15px;
}

.small-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 18px;
}

/* ---------- Print (Download PDF renders this page) ---------- */

@media print {
  #header-wrap,
  #footer-wrap,
  .cv-head .cta-row,
  .no-print {
    display: none !important;
  }

  body {
    font-size: 11.5px;
    line-height: 1.5;
    color: #000;
  }

  main {
    padding: 0;
    min-height: 0;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .page-title {
    font-size: 24px;
  }

  .page-subtitle {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .cv-section {
    padding: 12px 0;
    grid-template-columns: 150px 1fr;
    gap: 6px 20px;
    break-inside: avoid-page;
  }

  .cv-section.allow-break {
    break-inside: auto;
  }

  .cv-section > h2 {
    font-size: 13px;
  }

  .cv-item,
  .cv-pub {
    margin-bottom: 8px;
  }

  .cv-pub,
  .cv-plain,
  .cv-year-row {
    font-size: 11.5px;
  }

  .cv-item .where {
    font-size: 11px;
  }

  a {
    color: #000;
    border-bottom: none;
  }
}

/* ---------- Footer ---------- */

#footer-wrap {
  border-top: 1px solid var(--rule);
  padding: 26px 0;
  font-size: 13.5px;
  color: var(--muted);
}

#footer-wrap .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

#footer-wrap a {
  color: var(--muted);
}

#footer-wrap a:hover {
  color: var(--accent);
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 720px) {
  #header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hamburger {
    display: block;
  }

  nav.site-nav {
    display: none;
    width: 100%;
  }

  #nav-toggle:checked ~ nav.site-nav {
    display: block;
  }

  nav.site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0 6px;
  }

  nav.site-nav a {
    display: block;
    padding: 10px 0;
  }

  main {
    padding: 36px 0 56px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero .photo {
    flex-basis: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 22px;
  }

  .teasers {
    grid-template-columns: 1fr;
  }

  .awards {
    grid-template-columns: 1fr;
  }

  .contact-card dl {
    grid-template-columns: 1fr;
  }

  .contact-card dt {
    line-height: 1.4;
    margin-top: 8px;
  }
}
