/* ==========================================================================
   lucilefavero.github.io. Carried over from the old Google Site look:
   white ground, #434343 text, purple #4C093E accent,
   Roboto for text, Merriweather for headings.
   ========================================================================== */

/* ---- Self-hosted fonts (latin subset, woff2) ---- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-v51-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-v51-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-v51-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-v51-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/merriweather-v33-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/merriweather-v33-latin-700.woff2") format("woff2");
}

/* ---- Tokens ---- */
:root {
  --paper: #FFFFFF;
  --ink: #434343;
  --ink-strong: #2B2B2B;
  --muted: #6B6B6B;
  --accent: #4C093E;
  --accent-dark: #2E0525;
  --accent-wash: #F6EDF3;
  --rule: #E4E4E4;
  --band-gray: #F3F3F3;
  --sans: "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink-strong);
  line-height: 1.3;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; margin-top: 2.2rem; }
h3 { font-size: 1.1rem; margin-top: 1.6rem; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
main.wrap { padding-top: 1.5rem; padding-bottom: 3rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Header & nav ---- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.site-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink-strong);
  text-decoration: none;
}
.site-name:hover { color: var(--accent); }
.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.4rem;
}
.site-header nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.2rem 0;
}
.site-header nav a:hover { color: var(--accent); }
.site-header nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}

/* ---- Accent page banner (the Google Sites echo) ---- */
.banner {
  background: var(--accent);
  color: #fff;
}
.banner h1 { color: #fff; margin: 0; }
.banner-text { padding: 2rem 0 2.2rem; }
.banner-sub {
  margin: 0.5rem 0 0;
  color: #E9D2E2;
  max-width: 44rem;
}
.banner-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
}
/* The photo bleeds the full height of the banner */
.banner-photo {
  width: 9rem;
  flex-shrink: 0;
  align-self: stretch;
  object-fit: cover;
  object-position: 50% 30%;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost {
  display: inline-block;
  color: var(--accent);
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1.05rem;
  border-radius: 4px;
}
.btn-ghost:hover { background: var(--accent-wash); }

/* ---- Home: intro ---- */
.intro {
  margin-top: 1rem;
}
.intro-lede {
  font-size: 1.15rem;
}
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* ---- Home: highlights ---- */
.highlights {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.highlight {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1rem 1.1rem;
}
.highlight h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.highlight p { margin: 0; font-size: 0.95rem; }

/* ---- News list ---- */
.news-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.news-item {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.news-date {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  padding-top: 0.15rem;
}
.news-link { white-space: nowrap; }

/* ---- Publications ---- */
.pub-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.pub {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.pub p { margin: 0; }
.pub-authors { font-size: 0.95rem; color: var(--muted); }
.pub-authors strong { color: var(--ink-strong); }
.pub-title {
  font-weight: 500;
  font-size: 1.05rem;
  margin-top: 0.15rem !important;
}
.pub-venue {
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.15rem !important;
}
.pub-award {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.3rem !important;
}
.pub-links {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pub-links a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
}
.pub-links a:hover { background: var(--accent-wash); }

/* ---- Collapsed older posters ---- */
details.pub-archive { margin-top: 1.5rem; }
details.pub-archive summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--accent);
  padding: 0.5rem 0;
}
details.pub-archive summary:hover { color: var(--accent-dark); }

/* ---- Research page ---- */
.study-facts {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.study-facts li {
  background: var(--accent-wash);
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
}
.study-facts strong { color: var(--accent-dark); }

blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 4px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-strong);
}
blockquote p { margin: 0.4rem 0; }

/* ---- Simple item lists (talks, outreach, service) ---- */
.item-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.item-list > li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.item-date {
  color: var(--muted);
  font-size: 0.9rem;
  display: block;
}
.item-title { font-weight: 500; }
.item-note { font-size: 0.95rem; }

/* ---- Footer ---- */
.site-footer {
  background: var(--band-gray);
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding: 2.2rem 0 1.6rem;
  font-size: 0.95rem;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
}
.footer-heading {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 0.25rem; }
.site-footer p { margin: 0 0 0.4rem; }
.footer-fineprint {
  margin-top: 1.8rem !important;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- Responsive ---- */
@media (max-width: 44rem) {
  body { font-size: 1rem; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }
  .banner-text { padding: 1.4rem 0 1.6rem; }
  .banner-photo { width: 6.5rem; }
  .highlights { grid-template-columns: 1fr; }
  .study-facts { grid-template-columns: 1fr; }
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .news-date { padding-top: 0; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Print ---- */
@media print {
  .site-header nav, .site-footer, .skip-link { display: none; }
  .banner { background: none; color: #000; padding: 0; }
  .banner h1 { color: #000; }
  a { color: inherit; text-decoration: none; }
}
