/* =========================================================
   EcoMoMo Lab — stylesheet (LSU colors)
   Official LSU palette:
     Purple  #461D7C  (Pantone 268 C)
     Gold    #FDD023  (Pantone 123 C)
   Edit the values in :root below to re-theme the whole site.
   ========================================================= */

:root {
  --paper:       #f5f3f8;   /* page background (faint purple-tinted white) */
  --paper-alt:   #ece7f2;   /* alternating section background */
  --white:       #ffffff;
  --ink:         #241435;   /* main text, deep purple-charcoal */
  --ink-soft:    #5a4a6b;   /* secondary text */
  --purple:      #461D7C;   /* LSU Purple — primary accent */
  --purple-deep: #2e1152;   /* darker purple for gradients/bands */
  --purple-mid:  #6a3fa0;   /* lighter purple for variety */
  --gold:        #FDD023;   /* LSU Gold — masthead text & highlights */
  --line:        #d9d0e6;   /* hairlines */

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Source Serif 4", Georgia, serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --header-h: 68px;
  --maxw: 1120px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--purple); }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: 92px; scroll-margin-top: var(--header-h); }
.section--alt { background: var(--paper-alt); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 22ch;
}
.lead { font-size: 1.18rem; max-width: 62ch; color: var(--ink); }

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--purple); color: var(--white);
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* =========================================================
   HEADER / NAV  (CSS-only mobile menu via checkbox hack)
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(245,243,248,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.24rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--purple); }

.site-nav { display: flex; gap: 26px; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem; letter-spacing: 0.03em;
  color: var(--ink-soft); text-decoration: none;
  padding: 4px 0; position: relative;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--purple); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold); transition: width .25s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 100%; }

.nav-toggle-label { display: none; }

/* =========================================================
   PHOTO STRIP  (banner photo above the masthead band)
   Add your own image at images/hero.jpg and it appears here.
   Until then, a purple fallback band shows.
   ========================================================= */
.photo-strip {
  height: 280px;
  background-image:
    linear-gradient(rgba(46,17,82,0.18), rgba(46,17,82,0.18)),
    url("images/hero.jpg"),
    linear-gradient(115deg, var(--purple-deep) 0%, var(--purple) 55%, var(--purple-mid) 100%);
  background-size: cover, cover, cover;
  background-position: center 40%, center 40%, center;
  background-repeat: no-repeat;
}

/* =========================================================
   HERO  (slim purple masthead band, gold text)
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #ece4f7;
}
.hero .container { position: relative; z-index: 2; padding-block: 46px 48px; }
.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #c9b3ec; margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 16px; max-width: 20ch; color: var(--gold);
}
.hero p.lead { color: #e4d8f4; max-width: 60ch; font-size: 1.08rem; margin: 0; }
/* contour lines signature (subtle gold on purple) */
.hero-contours {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; opacity: 0.22;
}
.hero-contours path { fill: none; stroke: var(--gold); stroke-width: 1.3; }

/* =========================================================
   ABOUT / focus cards
   ========================================================= */
.grid-cards {
  display: grid; gap: 22px; margin-top: 44px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 28px 26px;
  border-top: 3px solid var(--purple);
}
.card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  margin: 0 0 10px; color: var(--ink);
}
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.card .num {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--purple);
  letter-spacing: 0.1em; display: block; margin-bottom: 14px;
}

/* =========================================================
   TEAM
   ========================================================= */
.team-grid {
  display: grid; gap: 24px; margin-top: 44px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.member { text-align: left; }
.member .avatar {
  aspect-ratio: 1 / 1; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(150deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: var(--gold);
  font-family: var(--font-display); font-weight: 600; font-size: 2rem;
}
.member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem;
  margin: 0 0 4px;
}
.member .role {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--purple);
  letter-spacing: 0.04em; margin: 0 0 8px;
}
.member p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* =========================================================
   PROJECTS
   ========================================================= */
.project {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.project:last-child { border-bottom: 1px solid var(--line); }
.project .pnum {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--purple);
  letter-spacing: 0.06em;
}
.project h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.24rem;
  margin: 0 0 10px;
}
.project p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

/* =========================================================
   PUBLICATIONS
   ========================================================= */
.pub-list { list-style: none; margin: 40px 0 0; padding: 0; }
.pub-list li {
  padding: 20px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 74px 1fr; gap: 20px;
}
.pub-list li:last-child { border-bottom: 1px solid var(--line); }
.pub-year {
  font-family: var(--font-mono); font-weight: 500; color: var(--purple);
  font-size: 0.95rem;
}
.pub-cite { margin: 0; }
.pub-cite .ptitle { font-weight: 600; }
.pub-cite .pjournal { font-style: italic; color: var(--ink-soft); }

/* =========================================================
   OPPORTUNITIES
   ========================================================= */
.opps { max-width: 66ch; }
.opps p { margin: 0 0 18px; }
.btn {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em;
  background: var(--purple); color: var(--white);
  text-decoration: none; padding: 13px 24px; border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--purple-deep); }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery {
  display: grid; gap: 14px; margin-top: 44px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.gallery figure {
  margin: 0; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4 / 3; position: relative;
  background: linear-gradient(150deg, var(--purple) 0%, var(--purple-deep) 100%);
}
.gallery figure:nth-child(3n+2) { background: linear-gradient(150deg, #f6cf3e 0%, #c79a12 100%); }
.gallery figure:nth-child(3n+3) { background: linear-gradient(150deg, var(--purple-mid) 0%, #37206b 100%); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: #fff; background: linear-gradient(transparent, rgba(46,17,82,0.72));
  padding: 26px 14px 12px;
}
.gallery figure:nth-child(3n+2) figcaption { color: var(--purple-deep); background: linear-gradient(transparent, rgba(255,255,255,0.55)); }

/* =========================================================
   NEWS
   ========================================================= */
.news-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-date { font-family: var(--font-mono); font-size: 0.82rem; color: var(--purple); }
.news-item h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin: 0 0 8px;
}
.news-item p { margin: 0; color: var(--ink-soft); }

/* =========================================================
   FOOTER / CONTACT
   ========================================================= */
.site-footer {
  background: var(--purple-deep); color: #d9cceb;
  padding-block: 72px 40px;
}
.footer-grid {
  display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr;
}
.site-footer h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  color: var(--gold); margin: 0 0 14px;
}
.site-footer h4 {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 14px;
}
.site-footer a { color: #d9cceb; }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; line-height: 1.9; }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-bottom {
  border-top: 1px solid rgba(217,204,235,0.25); margin-top: 48px; padding-top: 22px;
  font-family: var(--font-mono); font-size: 0.74rem; color: #b7a4d4;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* small helper note for the site owner (remove in production) */
.editme {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--purple);
  border: 1px dashed var(--purple); border-radius: 6px;
  padding: 3px 8px; display: inline-block; margin-bottom: 18px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; }
  .photo-strip { height: 200px; }

  /* mobile menu */
  .nav-toggle-label {
    display: flex; flex-direction: column; gap: 5px;
    width: 30px; height: 24px; justify-content: center; cursor: pointer;
  }
  .nav-toggle-label span,
  .nav-toggle-label::before,
  .nav-toggle-label::after {
    content: ""; height: 2px; width: 100%; background: var(--ink); border-radius: 2px;
  }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav-toggle:checked ~ .site-nav { max-height: 70vh; }
}

@media (max-width: 560px) {
  .section { padding-block: 64px; }
  .photo-strip { height: 160px; }
  .project { grid-template-columns: 1fr; gap: 8px; }
  .pub-list li { grid-template-columns: 1fr; gap: 4px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
}

/* accessibility */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* =========================================================
   ADDITIONS — team subgroups, degree lists, project resources
   ========================================================= */
.group-label { margin-top: 54px; }
.team-grid + .group-label { margin-top: 54px; }

.member .degrees {
  list-style: none; padding: 0; margin: 10px 0 0;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--ink-soft); line-height: 1.65;
}
.member .scholar {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--purple);
}

/* qualifications / generic prose list */
.opps ul, .reslist {
  margin: 14px 0 0; padding-left: 1.1em; color: var(--ink-soft);
}
.opps ul li, .reslist li { margin-bottom: 8px; }
.reslist { list-style: none; padding-left: 0; }
.reslist li::before { content: "→ "; color: var(--purple); }

.subhead {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  margin: 40px 0 8px; color: var(--ink);
}
.meta-line {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--purple);
  letter-spacing: 0.03em; margin: 0 0 14px;
}
