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

:root {
  --navy:        #1a3366;
  --navy-light:  #254e8a;
  --gold:        #8b6914;
  --gold-light:  #b08a28;
  --cream:       #faf9f6;
  --white:       #ffffff;
  --text:        #1e1e1e;
  --muted:       #636363;
  --border:      #dedad3;
  --card-bg:     #ffffff;
  --section-alt: #f4f2ee;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 52px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem; font-weight: 500;
  color: rgba(255,255,255,0.92); letter-spacing: 0.02em;
  text-decoration: none;
}
nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul a {
  color: rgba(255,255,255,0.72); text-decoration: none;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  transition: color 0.18s;
}
nav ul a:hover { color: #d4a843; }
@media (max-width: 600px) { nav ul { display: none; } }

/* ─── HERO ─── */
.hero {
  background: #0f1e38;
  border-bottom: 1px solid #1e3560;
  padding: 4rem 2.5rem 3.5rem;
}
.hero .hero-info h1 { color: #ffffff; }
.hero .hero-title   { color: rgba(255,255,255,0.58); }
.hero .hero-affil   { color: rgba(255,255,255,0.82); }
.hero .hero-email   { color: var(--gold-light); }
.hero .hero-bio     { color: rgba(255,255,255,0.70); }
.hero .transition-note {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
}
.hero .hero-photo {
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}
.hero .hero-link-primary {
  background: var(--gold-light); color: #ffffff;
}
.hero .hero-link-primary:hover { background: var(--gold); }
.hero .hero-link-secondary {
  border-color: rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.82);
  background: transparent;
}
.hero .hero-link-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}
.hero-inner {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: 200px 1fr;
  gap: 3rem; align-items: start;
}
@media (max-width: 680px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { margin: 0 auto; }
}
.hero-photo {
  width: 180px; height: 220px;
  border-radius: 3px;
  object-fit: cover; object-position: top center;
  box-shadow: 0 4px 20px rgba(26,51,102,0.15);
}
.hero-info h1 {
  font-family: 'EB Garamond', serif;
  font-size: 2.4rem; font-weight: 600;
  color: var(--navy); line-height: 1.15;
  letter-spacing: -0.01em; margin-bottom: 0.35rem;
}
.hero-title {
  font-size: 0.92rem; color: var(--muted);
  margin-bottom: 0.15rem;
}
.hero-affil {
  font-size: 0.92rem; font-weight: 500;
  color: var(--navy); margin-bottom: 0.4rem;
}
.hero-email {
  font-size: 0.95rem; font-weight: 600;
  color: var(--gold-light); margin-bottom: 1.5rem;
}
.hero-email a { color: inherit; text-decoration: none; }
.hero-email a:hover { text-decoration: underline; }
.transition-note {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #f0f4ff;
  border: 1px solid #c5d0f0;
  border-radius: 3px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem; color: var(--navy);
  margin-bottom: 1.5rem;
}
.transition-note .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-light); flex-shrink: 0;
}
.hero-bio {
  font-size: 0.93rem; color: #3a3a3a;
  line-height: 1.75; margin-bottom: 1.5rem;
  max-width: 620px;
}
.hero-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-link {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 3px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.04em; text-decoration: none;
  transition: all 0.18s;
}
.hero-link-primary {
  background: var(--navy); color: var(--white);
}
.hero-link-primary:hover { background: var(--navy-light); }
.hero-link-secondary {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--navy);
}
.hero-link-secondary:hover { background: var(--navy); color: var(--white); }

/* ─── SECTION SHELL ─── */
section { padding: 4.5rem 2.5rem; }
section.alt { background: var(--section-alt); }
.container { max-width: 960px; margin: 0 auto; }

.section-label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.4rem;
}
h2 {
  font-family: 'EB Garamond', serif;
  font-size: 1.9rem; font-weight: 600;
  color: var(--navy); line-height: 1.2;
  margin-bottom: 0.3rem;
}
.rule {
  width: 40px; height: 3px;
  background: var(--gold); border-radius: 2px;
  margin: 0.75rem 0 2rem;
}

/* ─── RESEARCH TABS ─── */
.tab-bar {
  display: flex; gap: 0; margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}
.tab {
  padding: 0.6rem 1.5rem;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.18s;
  text-decoration: none;
}
.tab.active, .tab:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ─── PAPER LIST ─── */
.paper-list { display: flex; flex-direction: column; gap: 0; }
.paper {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.paper:first-child { border-top: 1px solid var(--border); }
.paper-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.08rem; font-weight: 600;
  color: var(--navy); text-decoration: none;
  line-height: 1.35; display: block;
  margin-bottom: 0.3rem;
  transition: color 0.15s;
}
.paper-title:hover { color: var(--gold); }
.paper-authors {
  font-size: 0.83rem; color: var(--muted);
  margin-bottom: 0.35rem;
}
.paper-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.badge {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.18rem 0.55rem; border-radius: 2px;
}
.badge-review   { background: #fff8e6; color: #7a5800; border: 1px solid #e8d080; }
.badge-accepted { background: #e8f5e9; color: #2e6e34; border: 1px solid #a8d8ac; }
.badge-journal  { background: #eef2f8; color: var(--navy); border: 1px solid #c0ccdf; }
.badge-submitted { background: #f5f0ff; color: #4a2080; border: 1px solid #c8b0e8; }
.badge-honor     { background: #fff8e6; color: #7a5800; border: 1px solid #d4a843; }
.paper-awards {
  font-size: 0.78rem; color: var(--gold);
  margin-top: 0.45rem; line-height: 1.5;
}
.paper-venue {
  font-size: 0.82rem; color: var(--muted);
  font-style: italic;
}
.ssrn-link {
  font-size: 0.75rem; font-weight: 600;
  color: var(--gold); text-decoration: none;
  letter-spacing: 0.04em;
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 0.12rem 0.45rem;
  transition: all 0.15s;
}
.ssrn-link:hover { background: var(--gold); color: var(--white); }

/* ─── EDITORIAL ─── */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
@media (max-width: 600px) { .editorial-grid { grid-template-columns: 1fr; } }
.ed-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  padding: 0.85rem 1.1rem;
}
.ed-card .role {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.2rem;
}
.ed-card .journal {
  font-size: 0.92rem; font-weight: 500;
  color: var(--navy);
}

/* ─── IN THE NEWS ─── */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-paper-row {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.news-paper-row:first-child { border-top: 1px solid var(--border); }
.news-paper-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--navy); text-decoration: none;
  display: block; margin-bottom: 0.65rem;
  line-height: 1.35; transition: color 0.15s;
}
.news-paper-title:hover { color: var(--gold); }
.news-outlets { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.outlet-link {
  font-size: 0.74rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 2px; background: var(--white);
  padding: 0.18rem 0.55rem;
  transition: all 0.15s;
}
.outlet-link:hover { color: var(--navy); border-color: var(--navy); }

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 2.5rem;
  text-align: center;
  font-size: 0.8rem;
}
footer a { color: #d4a843; text-decoration: none; }
footer .footer-top {
  display: flex; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
footer .footer-top a {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.04em;
}

/* ─── CV PAGE ─── */
.cv-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.cv-updated {
  font-size: 0.82rem; color: var(--muted);
  margin-top: 0.4rem;
}
.cv-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cv-viewer {
  width: 100%; height: 82vh; min-height: 480px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
}
.cv-fallback {
  padding: 2.5rem 1.5rem; text-align: center;
  font-size: 0.9rem; color: var(--muted);
}
/* Inline PDF viewing is unreliable on small screens — offer the download instead. */
@media (max-width: 820px) {
  .cv-viewer { display: none; }
  .cv-note-mobile { display: block; }
}
.cv-note-mobile {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  padding: 1.1rem 1.25rem;
  font-size: 0.88rem; color: var(--muted);
}
