/*
Theme Name: EDEN Lab 1.1
Theme URI: https://upennedenlab.com/
Author: EDEN Lab
Description: A warm, editorial redesign for the EDEN Lab at the University of Pennsylvania.
Version: 1.1.0
Text Domain: eden-lab
*/

:root {
  --eden-navy: #011f5b;
  --eden-red: #990000;
  --eden-ink: #14233a;
  --eden-muted: #687386;
  --eden-cream: #f6f0e8;
  --eden-warm: #eadccf;
  --eden-blush: #f2dfdc;
  --eden-sage: #dfe7df;
  --eden-white: #fffdfa;
  --eden-line: rgba(1, 31, 91, .18);
  --eden-max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--eden-white);
  color: var(--eden-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--eden-red); }
img { max-width: 100%; height: auto; display: block; }

.eden-wrap { width: min(calc(100% - 48px), var(--eden-max)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 10;
  background: var(--eden-white);
  border-bottom: 1px solid var(--eden-line);
}
.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-branding { text-decoration: none; line-height: 1; }
.site-branding strong { display: block; color: var(--eden-navy); font-size: 25px; letter-spacing: -.03em; }
.site-branding span { display: block; margin-top: 7px; color: var(--eden-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.main-nav ul { display: flex; align-items: center; gap: 32px; list-style: none; padding: 0; margin: 0; }
.main-nav a { text-decoration: none; color: var(--eden-navy); font-size: 15px; font-weight: 650; }
.main-nav .current-menu-item a, .main-nav a:hover { color: var(--eden-red); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--eden-navy); font: inherit; font-weight: 700; }


/* =========================================
   HOMEPAGE
   ========================================= */

.home-main {
  position: relative;
  isolation: isolate;
  background: var(--eden-white);
}

.home-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--eden-home-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Warm veil over the photo so the type remains highly legible. */
.home-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 253, 249, .84);
}

.hero,
.home-research {
  background: transparent;
}

.hero {
  padding: clamp(105px, 9vw, 160px) 0 clamp(120px, 11vw, 185px);
}

.hero-copy {
  max-width: 1660px;
}

.hero h1 {
  max-width: 1660px;
  margin: 0;
  color: var(--eden-navy);
  font-size: clamp(82px, 6.35vw, 122px);
  line-height: 1.075;
  letter-spacing: -.035em;
  font-weight: 550;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-intro {
  max-width: 980px;
  margin: 58px 0 0;
  color: #243853;
  font-size: clamp(22px, 1.7vw, 30px);
  line-height: 1.56;
}

.hero-intro strong {
  color: var(--eden-navy);
  font-weight: 700;
}

.hero-link {
  display: inline-block;
  margin-top: 48px;
  color: var(--eden-navy);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .13em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
}

.home-research {
  padding: clamp(105px, 10vw, 165px) 0 clamp(120px, 11vw, 185px);
}

.section-title, .page-title {
  margin: 0;
  max-width: 1100px;
  color: var(--eden-navy);
  font-size: clamp(60px, 6vw, 100px);
  line-height: 1.03;
  letter-spacing: -.04em;
  font-weight: 550;
}

.section-copy, .page-intro {
  max-width: 880px;
  margin: 34px 0 0;
  color: #40506a;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.5;
}

.research-list {
  margin-top: 80px;
  border-bottom: 1px solid rgba(1, 31, 91, .28);
}

.research-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 190px;
  padding: 30px 0;
  border-top: 1px solid rgba(1, 31, 91, .28);
  text-decoration: none;
}

.research-number {
  color: var(--eden-red);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
}

.research-row h3 {
  margin: 0;
  color: var(--eden-navy);
  font-size: clamp(39px, 4vw, 64px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 520;
}

.research-row p {
  margin: 16px 0 0;
  max-width: 820px;
  color: #4e5d73;
  font-size: 17px;
}

.research-arrow {
  color: var(--eden-red);
  font-size: 28px;
  transition: transform .2s ease;
}

.research-row:hover .research-arrow {
  transform: translateX(7px);
}

.home-enter {
  margin-top: 52px;
}

.page-hero { padding: clamp(74px, 8vw, 126px) 0 clamp(68px, 7vw, 112px); background: var(--eden-cream); }
.page-content { padding: 82px 0 120px; }
.prose { max-width: 850px; font-size: 20px; }
.prose h2, .prose h3 { color: var(--eden-navy); line-height: 1.08; }
.prose h2 { font-size: 42px; margin-top: 70px; }
.prose h3 { font-size: 29px; margin-top: 46px; }

.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 64px 42px; margin-top: 72px; }
.person-card { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.person-photo { aspect-ratio: 4 / 5; background: var(--eden-warm); overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card h2 { margin: 0; color: var(--eden-navy); font-size: 34px; line-height: 1.05; letter-spacing: -.025em; }
.person-role { margin: 9px 0 18px; color: var(--eden-red); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.person-bio { color: #47546a; font-size: 16px; }

.publication-tools { margin: 58px 0 46px; padding: 28px 0; border-top: 1px solid var(--eden-line); border-bottom: 1px solid var(--eden-line); display: grid; gap: 22px; }
.publication-search { width: 100%; max-width: 780px; padding: 17px 18px; border: 1px solid var(--eden-line); background: #fff; color: var(--eden-ink); font: inherit; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-button { border: 1px solid var(--eden-line); background: transparent; color: var(--eden-navy); padding: 9px 13px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.filter-button.is-active { background: var(--eden-navy); color: #fff; border-color: var(--eden-navy); }
.publications { list-style: none; margin: 0; padding: 0; }
.publication { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 42px 0; border-top: 1px solid var(--eden-line); }
.publication:last-child { border-bottom: 1px solid var(--eden-line); }
.pub-year { color: var(--eden-red); font-weight: 800; }
.publication h2 { margin: 0 0 12px; color: var(--eden-navy); font-size: clamp(25px, 2.6vw, 38px); line-height: 1.12; letter-spacing: -.022em; font-weight: 560; }
.pub-authors, .pub-journal { margin: 4px 0; color: #526078; }
.pub-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; font-weight: 750; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 64px; }
.news-card { border-top: 1px solid var(--eden-line); padding-top: 20px; }
.news-card .date { color: var(--eden-red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.news-card h2 { color: var(--eden-navy); font-size: 28px; line-height: 1.1; letter-spacing: -.025em; }
.news-card a { text-decoration: none; }

.site-footer { margin-top: 0; background: var(--eden-navy); color: #fff; padding: 72px 0 42px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.site-footer h2 { margin: 0; font-size: 34px; letter-spacing: -.03em; }
.site-footer h3 { margin: 0 0 18px; font-size: 13px; text-transform: uppercase; letter-spacing: .13em; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.78); }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin: 7px 0; }
.footer-bottom { margin-top: 55px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.18); font-size: 13px; color: rgba(255,255,255,.62); }

@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(68px, 8.5vw, 104px); }
  .hero h1 span { white-space: normal; }
  .home-main::before { background-attachment: scroll; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 82px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 82px; background: var(--eden-white); border-bottom: 1px solid var(--eden-line); padding: 20px 24px 28px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: flex-start; flex-direction: column; gap: 18px; }
  .people-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .eden-wrap { width: min(calc(100% - 32px), var(--eden-max)); }
  .hero { padding-top: 72px; padding-bottom: 92px; }
  .hero h1 { font-size: clamp(52px, 14vw, 76px); line-height: 1.07; letter-spacing: -.03em; }
  .hero h1 span { white-space: normal; }
  .hero-intro { margin-top: 36px; font-size: 20px; }
  .home-research { padding-top: 84px; padding-bottom: 96px; }
  .research-row { grid-template-columns: 48px 1fr 28px; min-height: 132px; }
  .research-row p { display: none; }
  .person-card { grid-template-columns: 105px 1fr; gap: 20px; }
  .person-card h2 { font-size: 28px; }
  .person-bio { display: none; }
  .publication { grid-template-columns: 1fr; gap: 8px; }
  .news-grid { grid-template-columns: 1fr; }
}

/* =========================================
   FOOTER – LOGO + SPACING FIX
   ========================================= */

.site-footer {
  padding: 56px 0 24px !important;
}

.site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: 1.15fr .75fr 1fr !important;
  gap: 70px !important;
  align-items: start !important;
}


/* LEFT COLUMN */

.footer-brand {
  display: block !important;
  align-self: start !important;
}

.footer-logo-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 18px !important;
}


/* Child logo — make blue artwork white */

.footer-child-logo {
  display: block !important;
  width: 78px !important;
  height: auto !important;
  max-width: none !important;

  filter: brightness(0) invert(1) !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* Penn logo — much smaller */

.footer-penn-logo {
  display: block !important;
  width: 210px !important;
  height: auto !important;
  max-width: 210px !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* Keep all three columns at the top */

.footer-nav-wrap,
.footer-contact {
  align-self: start !important;
}


/* Reduce excess empty footer height */

.footer-bottom {
  margin-top: 42px !important;
  padding-top: 18px !important;
}


/* MOBILE */

@media (max-width: 800px) {

  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 38px !important;
  }

  .footer-child-logo {
    width: 68px !important;
  }

  .footer-penn-logo {
    width: 185px !important;
    max-width: 185px !important;
  }
}