/* =====================================================
   Elodie Etienne — academic website
   Classic academic style · shared stylesheet
   ===================================================== */

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

:root {
  --paper:      #fbfaf7;
  --panel:      #f3f1e9;
  --panel-soft: #f7f5ee;
  --ink:        #221f18;
  --ink-soft:   #565249;
  --ink-faint:  #8d887b;
  --accent:     #1f3b54;
  --accent-deep:#142838;
  --rule:       #e4e0d4;
  --rule-soft:  #efece2;
  --maxw:       880px;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

/* ===== Header / navigation ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 66px; gap: 18px; flex-wrap: wrap;
}
.brand { line-height: 1.15; }
.brand .brand-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.2rem; letter-spacing: .01em; color: var(--ink);
  display: block;
}
.brand:hover { text-decoration: none; }
.brand:hover .brand-name { color: var(--accent); }
.brand .brand-sub {
  display: block; font-family: var(--sans); font-weight: 400;
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 2px;
}
nav.main-nav { display: flex; gap: 21px; flex-wrap: wrap; }
nav.main-nav a {
  font-family: var(--sans); font-size: .9rem; font-weight: 500;
  color: var(--ink-soft); padding: 8px 0; position: relative;
}
nav.main-nav a:hover { color: var(--accent); text-decoration: none; }
nav.main-nav a.active { color: var(--accent); }
nav.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent);
}

/* ===== Layout ===== */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 28px 30px; }

.section { padding: 42px 0; border-top: 1px solid var(--rule-soft); }
.section:first-child { border-top: none; }
.section-head { margin-bottom: 26px; }
.eyebrow {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.section h2 {
  font-size: 1.62rem; font-weight: 600; margin-top: 7px;
  letter-spacing: -.005em;
}
.section p + p { margin-top: 14px; }
.lead-text p { font-size: 1.06rem; }

/* ===== Hero (About) ===== */
.hero {
  display: grid; grid-template-columns: 252px 1fr; gap: 44px;
  align-items: start; padding: 56px 0 8px;
}
.hero-photo {
  border: 1px solid var(--rule); padding: 8px; background: #fff;
  box-shadow: 0 3px 18px rgba(34, 31, 24, 0.07);
}
.hero-photo img { width: 100%; }
.hero h1 {
  font-size: 2.55rem; line-height: 1.1; font-weight: 600;
  letter-spacing: -.015em;
}
.hero .role {
  font-family: var(--sans); font-size: 1rem; color: var(--accent);
  font-weight: 600; margin-top: 12px;
}
.hero .affil { font-size: 1.05rem; color: var(--ink-soft); margin-top: 3px; }
.hero .lede { margin-top: 18px; font-size: 1.1rem; }
.hero .actions { margin-top: 22px; display: flex; gap: 11px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  font-family: var(--sans); font-size: .85rem; font-weight: 500;
  padding: 9px 17px; border: 1px solid var(--accent);
  color: var(--accent); background: transparent; border-radius: 2px;
  display: inline-block; transition: background .15s, color .15s;
  cursor: pointer;
}
.btn:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ===== Page heading (inner pages) ===== */
.page-head { padding: 54px 0 6px; }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head h1 {
  font-size: 2.5rem; font-weight: 600; line-height: 1.12;
  letter-spacing: -.015em;
}
.page-head .intro {
  margin-top: 16px; font-size: 1.1rem; color: var(--ink-soft);
  max-width: 64ch;
}

/* ===== Research-area cards ===== */
.areas { display: grid; gap: 16px; }
.area {
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  background: #fff; padding: 20px 24px;
}
.area h3 { font-size: 1.16rem; font-weight: 600; }
.area p { color: var(--ink-soft); font-size: 1rem; margin-top: 6px; }

/* ===== Entry list (education, experience, awards…) ===== */
.entry {
  display: grid; grid-template-columns: 152px 1fr; gap: 26px;
  padding: 19px 0; border-top: 1px solid var(--rule-soft);
}
.entry:first-of-type { border-top: none; }
.entry .when {
  font-family: var(--sans); font-size: .82rem; color: var(--ink-faint);
  font-weight: 500; padding-top: 4px;
}
.entry .what { display: flow-root; }
.entry .what h3 { font-size: 1.1rem; font-weight: 600; }
.entry .what .meta {
  font-family: var(--sans); font-size: .85rem; color: var(--accent);
  font-weight: 500; margin-top: 3px;
}
.entry .what p { font-size: .99rem; color: var(--ink-soft); margin-top: 7px; }
.entry .what ul { margin-top: 9px; padding-left: 18px; }
.entry .what li { font-size: .96rem; color: var(--ink-soft); margin-top: 4px; }

/* ===== Callout (highlighted project) ===== */
.callout {
  background: var(--accent); color: #fff;
  padding: 30px 32px; border-radius: 3px;
}
.callout .eyebrow { color: rgba(255, 255, 255, 0.66); }
.callout h3 { font-size: 1.34rem; font-weight: 600; margin-top: 8px; }
.callout p { color: rgba(255, 255, 255, 0.92); margin-top: 10px; }
.callout a { color: #fff; text-decoration: underline; }

/* ===== Quick facts grid ===== */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 34px; }
.fact .k {
  font-family: var(--sans); font-size: .71rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; color: var(--ink-faint);
}
.fact .v { font-size: 1rem; margin-top: 2px; }

/* ===== Tag chips ===== */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.chip {
  font-family: var(--sans); font-size: .82rem;
  padding: 5px 13px; background: var(--panel);
  border: 1px solid var(--rule); border-radius: 20px; color: var(--ink-soft);
}

/* ===== Publications ===== */
.pub-group { margin-bottom: 30px; }
.pub-group:last-child { margin-bottom: 0; }
.pub-group h3 {
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  padding-bottom: 9px; border-bottom: 1px solid var(--rule); margin-bottom: 4px;
}
.pub-count {
  font-family: var(--sans); font-size: .76rem; color: var(--ink-faint);
  font-weight: 400; letter-spacing: .04em;
}
.pub {
  padding: 14px 0 14px 28px; text-indent: -28px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 1rem; line-height: 1.6;
}
.pub:last-child { border-bottom: none; }
.pub .yr {
  font-family: var(--sans); font-weight: 600; font-size: .85rem;
  color: var(--accent); margin-right: 9px; text-indent: 0;
}
.pub .ptitle { font-weight: 500; }
.pub .venue { font-style: italic; color: var(--ink-soft); }
.pub .doi { font-family: var(--sans); font-size: .82rem; }
.you { border-bottom: 1.5px solid var(--accent); }

/* ===== Year sub-label inside groups ===== */
.year-band {
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  color: var(--ink-faint); letter-spacing: .06em;
  margin: 20px 0 2px; padding-top: 6px;
}

/* ===== Review list ===== */
.review-list { margin: 8px 0 0; padding-left: 20px; }
.review-list li { padding: 5px 0; font-size: 1rem; line-height: 1.5; }

/* ===== Simple two-column list (memberships / reviewing) ===== */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 34px; }
.cols .row {
  padding: 11px 0; border-top: 1px solid var(--rule-soft);
  font-size: .98rem;
}
.cols .row:first-child, .cols .row:nth-child(2) { border-top: none; }
.cols .row .label { font-weight: 600; }
.cols .row .sub {
  font-family: var(--sans); font-size: .82rem; color: var(--ink-faint);
}

/* ===== Contact block ===== */
.contact-line { font-size: 1.08rem; margin-top: 8px; }
.contact-line .k {
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint);
  display: inline-block; min-width: 92px;
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--rule); background: var(--panel); margin-top: 20px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--sans); font-size: .84rem; color: var(--ink-soft);
}
.footer-inner a { color: var(--ink-soft); }
.footer-inner a:hover { color: var(--accent); }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ===== Media embeds (Public outreach) ===== */
.media-block { padding: 24px 0; border-top: 1px solid var(--rule-soft); }
.media-block:first-of-type { border-top: none; padding-top: 4px; }
.media-block h3 { font-size: 1.16rem; font-weight: 600; }
.media-block .media-meta {
  font-family: var(--sans); font-size: .82rem; color: var(--accent);
  font-weight: 500; margin: 3px 0 10px;
}
.media-block p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 15px; }
.video-embed {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border: 1px solid var(--rule); background: #000;
}
.video-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.audio-embed iframe {
  width: 100%; border: 0; border-radius: 12px; display: block;
}

/* ===== Institution logos ===== */
.inst-logo {
  float: right;
  height: 38px; width: auto; max-width: 168px;
  object-fit: contain;
  margin: 4px 0 12px 24px;
}
.inst-logo.portrait { height: 56px; }
.hero-logo { height: 30px; width: auto; }
.hero-logos { display: flex; align-items: center; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.collab-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.collab-logo { height: 34px; width: auto; flex-shrink: 0; }

/* ===== Membership logos ===== */
.members { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 34px; }
.member {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--rule-soft);
}
.member:first-child, .member:nth-child(2) { border-top: none; }
.m-logo {
  width: 62px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.m-logo img { max-height: 40px; max-width: 62px; width: auto; object-fit: contain; }
.m-name { font-size: .96rem; font-weight: 600; }
.m-sub { font-family: var(--sans); font-size: .8rem; color: var(--ink-faint); }

/* ===== Social / profile icons ===== */
.social-row { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.social-btn:hover { background: var(--accent); color: #fff; text-decoration: none; }
.social-btn svg { width: 19px; height: 19px; display: block; }

/* ===== Event photos & figures ===== */
.event-photo {
  float: right;
  width: 224px; height: 150px;
  object-fit: cover; object-position: center;
  border: 1px solid var(--rule); background: var(--panel);
  margin: 3px 0 12px 26px;
}
.event-photo.tall { object-position: center 24%; }
.figures {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  margin-top: 24px;
}
.figure { margin: 0; }
.figure img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule);
}
.figure figcaption {
  font-family: var(--sans); font-size: .8rem; color: var(--ink-faint);
  margin-top: 8px; line-height: 1.4;
}

/* ===== Co-authors ===== */
.coauthors {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.coauthor {
  border: 1px solid var(--rule); background: #fff;
  padding: 20px 12px; text-align: center;
}
.ca-avatar {
  width: 78px; height: 78px; border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--rule);
  color: var(--accent); font-family: var(--serif);
  font-size: 1.5rem; font-weight: 600;
  object-fit: cover; object-position: center;
}
.ca-name { font-size: 1.02rem; font-weight: 600; line-height: 1.25; }
.ca-affil {
  font-family: var(--sans); font-size: .8rem; color: var(--ink-soft);
  margin-top: 5px; line-height: 1.4;
}
.ca-role {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .03em;
  color: var(--accent); margin-top: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 38px; }
  .hero-photo { max-width: 220px; }
  .hero h1 { font-size: 2.05rem; }
  .entry { grid-template-columns: 1fr; gap: 5px; }
  .entry .when { padding-top: 0; }
  .facts { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .cols .row:nth-child(2) { border-top: 1px solid var(--rule-soft); }
  .page-head h1 { font-size: 2rem; }
  .nav-inner { min-height: 58px; padding: 10px 22px; }
  main { padding: 0 22px 30px; }
  .callout { padding: 24px 22px; }
  .inst-logo { height: 31px; margin-left: 14px; }
  .members { grid-template-columns: 1fr; }
  .member:nth-child(2) { border-top: 1px solid var(--rule-soft); }
  .event-photo { width: 150px; height: 104px; margin-left: 16px; }
  .figures { grid-template-columns: 1fr; }
}
