/* ==========================================================
   Chloé Lavest – personal site
   Palette:  blue #899BC3 · mauve #A184B2 · red #C2534A · cream #ECDBA7
   Fonts:    EB Garamond (headings, nav) · IBM Plex Serif (body)
   Change a colour or font once, in :root below, and it updates everywhere.
   ========================================================== */
:root {
  --blue:  #899BC3;
  --mauve: #A184B2;
  --red:   #C2534A;
  --cream: #ECDBA7;

  --bg:        #FBF7EA;   /* very light tint of the cream */
  --card:      #FFFFFF;
  --text:      #2B2F3A;
  --muted:     #5E6272;
  --line:      #E3D9B8;

  --font-head: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem; 
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8d3a33; text-decoration-color: var(--mauve); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--text); font-weight: 600; }
h1 { font-size: 1.8rem; margin: 0 0 .4rem; }
h2 { font-size: 1.3rem; margin: 2.6rem 0 1rem; padding-bottom: .35rem; border-bottom: 3px solid var(--cream); position: relative; }
h2::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 64px; height: 3px; background: var(--red); }
h3 { font-size: 1rem; margin: 1.8rem 0 .5rem; }
p { margin: 0 0 1rem; }

/* ---------- top navigation ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 4px solid var(--blue);
  position: sticky; top: 0; z-index: 10;
}
.site-header .inner {
  max-width: 1080px; margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 2rem;
}
.brand { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--red); }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.6rem; }
.site-nav a {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 500;
  color: var(--text); text-decoration: none; padding: .1rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--red); border-bottom-color: var(--mauve); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red); }

/* ---------- page frame ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 2.2rem 1.25rem 3rem; }
.narrow { max-width: 780px; }
.lede { font-size: 0.9rem; color: var(--muted); }

/* ---------- home: sidebar + content ---------- */
.home { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
.profile { text-align: center; position: sticky; top: 5.5rem; }
.profile img {
  width: 200px; height: 200px; object-fit: cover; border-radius: 50%;
  border: 5px solid var(--cream); box-shadow: 0 0 0 3px var(--blue);
}
.profile h1 { font-size: 1.6rem; margin-top: 1.2rem; }
.profile .role { font-family: var(--font-head); font-size: 0.9rem; margin: 0; color: var(--muted); }
.profile .affil { margin: 0 0 1.2rem; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.links a {
  display: inline-block; font-size: .78rem; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--blue); border-radius: 999px; padding: .15rem .8rem;
}
.links a:hover { background: var(--blue); color: #fff; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { background: var(--card); border-left: 4px solid var(--mauve); padding: .15rem .8rem; font-size: .75rem; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: .8rem; }
.plain .when { color: var(--muted); font-size: .7rem; display: block; }

/* ---------- publications & papers ---------- */
.pub { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 4px; padding: .9rem 1.2rem; margin: 0 0 1rem; }
.pub.wip { border-left-color: var(--mauve); }
.pub .title { font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; line-height: 1.3; margin: 0 0 .15rem; }
.pub .meta { margin: 0 0 .4rem; font-size: .75rem; }
.pub .status { font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 .3rem; }
.btns { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 0; }
.btn {
  display: inline-block; font-size: .64rem; padding: .1rem .7rem; border-radius: 3px; text-decoration: none;
  border: 1px solid var(--red); color: var(--red); background: transparent;
}
.btn:hover { background: var(--red); color: #fff; }
.btn.solid { background: var(--red); color: #fff; }
.btn.solid:hover { background: #8d3a33; border-color: #8d3a33; }
details { margin-top: .5rem; }
summary { cursor: pointer; font-size: .72rem; color: var(--red); }
summary:hover { text-decoration: underline; }
details p { margin-top: .6rem; font-size: .75rem; }

.theme { border-left: 5px solid var(--cream); padding-left: 1.2rem; margin: 1.2rem 0; }
.theme h3 { margin-top: 0; }

/* ---------- cv page ---------- */
.cv-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.5rem; }
.pdf-frame { width: 100%; height: 780px; border: 1px solid var(--line); background: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--cream); border-top: 4px solid var(--mauve); text-align: center; padding: 1.2rem; font-size: .65rem; color: var(--muted); }
.site-footer a { color: var(--text); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .home { grid-template-columns: 1fr; gap: 1.5rem; }
  .profile { position: static; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  h1 { font-size: 1.6rem; }
  .pdf-frame { display: none; }
  .site-header { position: static; }
}
@media print { .site-header, .site-footer { display: none; } body { background: #fff; } }

/* ---------- recommendations (misc page) ---------- */
.reco { list-style: none; padding: 0; margin: 0; }
.reco li { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--mauve); border-radius: 4px; padding: .6rem 1rem; margin-bottom: .7rem; }
.reco .what { font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; }
.reco .by { color: var(--muted); font-size: .75rem; }
.reco p { margin: .25rem 0 0; font-size: .75rem; }
.soon { color: var(--muted); font-style: italic; }
