
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #142033;
  --muted: #5b6b81;
  --line: #dbe3ee;
  --accent: #163a63;
  --accent-soft: #eef4fb;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 28%, #f8fafc 100%);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(219,227,238,0.9);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; }
.brand-block { display: flex; flex-direction: column; gap: 4px; }
.brand { font-size: 1.55rem; font-weight: 700; color: var(--text); text-decoration: none; }
.brand-sub { color: var(--muted); font-size: 0.93rem; }
.nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.nav a { color: #304156; font-weight: 600; font-size: 0.96rem; }
.nav a.active { color: var(--accent); }
.hero { padding: 54px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: stretch; }
.hero-copy, .hero-photo, .section-card, .info-card, .page-hero-card, .publication-card, .filters, .footer-card {
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-copy { border-radius: 34px; padding: 38px; }
.eyebrow { display: inline-block; color: #66758b; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.77rem; font-weight: 700; }
.hero-copy h1, .page-hero-card h1 { margin: 14px 0 14px; font-size: clamp(2.5rem, 4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.04em; }
.lead { font-size: 1.12rem; line-height: 1.8; color: #44536a; max-width: 52rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 18px; font-weight: 700; border: 1px solid var(--line); }
.button.primary { background: var(--accent); color: white; border-color: var(--accent); }
.button.secondary { background: white; color: var(--text); }
.hero-photo { border-radius: 34px; padding: 18px; display: grid; grid-template-rows: 1fr auto; gap: 16px; }
.headshot-frame {
  min-height: 410px; border-radius: 24px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #d7e3f2 0%, #eef3f9 55%, #ffffff 100%);
}
.headshot-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-note { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,0.88); color: #475569; border: 1px solid rgba(255,255,255,0.6); border-radius: 999px; padding: 10px 14px; font-size: 0.9rem; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.info-card { border-radius: 20px; padding: 16px; }
.info-card .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: #66758b; font-weight: 700; }
.info-card .value { margin-top: 8px; color: #243449; line-height: 1.5; font-weight: 600; }
.section { padding: 24px 0 54px; }
.section-card { border-radius: 34px; padding: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head h2 { margin: 8px 0 0; font-size: 2rem; letter-spacing: -0.03em; }
.section-note { color: var(--muted); max-width: 34rem; line-height: 1.7; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.small-card { background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.small-card h3 { margin: 6px 0 10px; font-size: 1.2rem; }
.small-card p { color: var(--muted); line-height: 1.75; margin: 0; }
.page-hero { padding: 44px 0 20px; }
.page-hero-card { border-radius: 34px; padding: 34px; }
.page-hero-card h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.filters { border-radius: 24px; padding: 18px; display: grid; grid-template-columns: 1fr 220px; gap: 14px; margin-bottom: 20px; }
.filters input, .filters select {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: inherit; color: var(--text); background: #fff;
}
.results-count { color: var(--muted); font-weight: 600; margin: 8px 0 18px; }
.publication-list { display: grid; gap: 18px; }
.publication-list.compact .publication-card { grid-template-columns: 280px 1fr; }
.publication-card {
  display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: stretch;
  border-radius: 30px; padding: 22px;
}
.publication-visual { min-height: 200px; display: flex; align-items: stretch; }
.paper-graph { width: 100%; height: 100%; border-radius: 24px; }
.publication-main { display: flex; flex-direction: column; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.year-chip, .status-chip, .topic-chip {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 8px 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
}
.year-chip { background: #e8f0fb; color: #14365d; }
.status-chip { background: #eef6ec; color: #296339; }
.topic-chip { background: #f5f7fb; color: #49586f; border: 1px solid #e4eaf2; }
.publication-main h3 { margin: 0 0 8px; font-size: clamp(1.45rem, 2vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.15; }
.citation { margin: 0; color: #475569; line-height: 1.65; }
.award { margin: 12px 0 0; color: #9a3412; font-weight: 700; }
.summary { margin: 16px 0 0; color: #243449; line-height: 1.82; font-size: 1.02rem; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.toggle-abstract, .pill-link {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 11px 16px;
  border: 1px solid #cad6e3; background: white; color: #203249; font: inherit; font-weight: 700; cursor: pointer;
}
.toggle-abstract[aria-expanded='true'] { background: #eff5fb; border-color: #b9c9dc; }
.pill-link { text-decoration: none; }
.pill-link:hover { text-decoration: none; background: #f8fbff; }
.abstract-panel {
  margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; color: #36465c; line-height: 1.8;
}
.abstract-label { font-size: 0.77rem; text-transform: uppercase; letter-spacing: 0.18em; color: #66758b; font-weight: 800; margin-bottom: 10px; }
.footer { padding: 8px 0 40px; }
.footer-card { border-radius: 26px; padding: 24px; display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 18px; }
.small { color: var(--muted); line-height: 1.7; }
.muted { color: var(--muted); }
.cv-shell, .text-page { background: var(--surface); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); padding: 28px; }
.list-clean { margin: 0; padding-left: 18px; color: #44536a; line-height: 1.9; }
@media (max-width: 980px) {
  .hero-grid, .publication-card, .publication-list.compact .publication-card, .cards-3, .footer-card, .filters { grid-template-columns: 1fr; }
  .hero-copy, .hero-photo, .section-card, .page-hero-card { padding: 24px; }
  .headshot-frame { min-height: 320px; }
}
@media (max-width: 700px) {
  .nav-wrap { align-items: start; flex-direction: column; }
  .nav { gap: 12px; }
  .hero { padding-top: 28px; }
  .publication-card { padding: 16px; border-radius: 22px; }
  .publication-main h3 { font-size: 1.35rem; }
}


/* ===== OPTION 3 / EDITORIAL VARIANT ===== */
body.theme-editorial {
  background: linear-gradient(180deg, #f5f1eb 0%, #fcfaf7 24%, #f3f5f8 100%);
}
.theme-editorial .site-header {
  background: rgba(252,250,247,0.9);
  border-bottom-color: rgba(205, 194, 178, 0.55);
}
.theme-editorial .brand,
.theme-editorial .nav a.active,
.theme-editorial a { color: #3f2b1f; }
.theme-editorial .nav a { color: #5a4737; }
.editorial-hero-wrap { padding: 42px 0 18px; }
.editorial-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 24px; align-items: stretch; }
.editorial-copy, .editorial-photo-card, .editorial-page-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(250,245,239,0.95) 100%);
  border: 1px solid #dfd4c7;
  box-shadow: 0 20px 50px rgba(48, 35, 25, 0.08);
  border-radius: 34px;
}
.editorial-copy { padding: 42px; }
.editorial-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(2.7rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.editorial-copy .lead { color: #5d4a3f; max-width: 46rem; }
.editorial-photo-card { padding: 16px; }
.editorial-photo { min-height: 520px; background: linear-gradient(135deg, #ddd1c5 0%, #f2ebe4 55%, #fff 100%); }
.theme-editorial .button.primary { background: #3f2b1f; border-color: #3f2b1f; }
.theme-editorial .button.secondary { color: #3f2b1f; border-color: #d8cab9; background: rgba(255,255,255,0.92); }
.editorial-featured-section .section-head h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.editorial-head .section-note { color: #67574a; }
.editorial-threeup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.accent-card {
  background: linear-gradient(180deg, #fffdf9 0%, #f7f2eb 100%);
  border-color: #e0d6c8;
}
.theme-editorial .page-hero-card { border: 1px solid #dfd4c7; }
.theme-editorial .filters {
  background: rgba(255,255,255,0.88);
  border: 1px solid #dfd4c7;
  box-shadow: 0 14px 34px rgba(48,35,25,0.06);
}
.theme-editorial .filters input,
.theme-editorial .filters select {
  border-color: #dccfbe;
  background: #fffdfb;
}
.theme-editorial .results-count { color: #6a5a4f; }
.theme-editorial .publication-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.theme-editorial .publication-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.theme-editorial .publication-list.compact .publication-card,
.theme-editorial .publication-card {
  grid-template-columns: 1fr;
  gap: 16px;
  border-radius: 30px;
  padding: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbf7f2 100%);
  border: 1px solid #dfd4c7;
  box-shadow: 0 18px 44px rgba(48,35,25,0.07);
}
.theme-editorial .publication-visual { min-height: 248px; }
.theme-editorial .paper-graph {
  border-radius: 24px;
  overflow: hidden;
}
.theme-editorial .meta-row { margin-bottom: 8px; }
.theme-editorial .year-chip { background: #f1e2d1; color: #5c3f22; }
.theme-editorial .status-chip { background: #e8f1e3; color: #335c2d; }
.theme-editorial .topic-chip { background: #faf6f1; color: #655346; border-color: #e4dacc; }
.theme-editorial .publication-main h3 {
  font-size: clamp(1.45rem, 1.5vw, 1.9rem);
  line-height: 1.12;
}
.theme-editorial .citation { color: #66584f; }
.theme-editorial .summary { color: #2e241f; }
.theme-editorial .toggle-abstract,
.theme-editorial .pill-link {
  border-color: #d9ccbb;
  background: rgba(255,255,255,0.86);
  color: #3f2b1f;
}
.theme-editorial .toggle-abstract[aria-expanded='true'] {
  background: #f5ece1;
  border-color: #ccb9a5;
}
.theme-editorial .abstract-panel { border-top-color: #e2d6c9; color: #453a32; }
.theme-editorial .footer-card {
  border-color: #dfd4c7;
  background: linear-gradient(180deg, #fff 0%, #fbf7f2 100%);
  box-shadow: 0 18px 42px rgba(48,35,25,0.06);
}
@media (max-width: 1080px) {
  .theme-editorial .publication-list,
  .theme-editorial .publication-list.compact,
  .editorial-grid,
  .editorial-threeup { grid-template-columns: 1fr; }
}
