/*
Theme Name: Lundquist Lab
Author: Lundquist Urban Ecology Lab
Description: A purpose-built theme for an urban ecology research lab.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lundquist-lab
*/

:root {
  --ink: #111816;
  --muted: #60706a;
  --paper: #f5f5f1;
  --white: #ffffff;
  --green: #306b52;
  --lime: #c8dc72;
  --line: #d9ded9;
  --radius: 20px;
  --shadow: 0 22px 65px rgba(17, 24, 22, .11);
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  margin: 0;
}
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
.wrap { margin-inline: auto; max-width: var(--wrap); padding-inline: 28px; }
.eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 14px; text-transform: uppercase; }
.section { padding-block: clamp(72px, 9vw, 130px); }
.section-head { align-items: end; display: flex; gap: 32px; justify-content: space-between; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 5rem); letter-spacing: -.055em; line-height: .96; margin: 0; }
.section-head p { color: var(--muted); margin: 0; max-width: 48ch; }

.about { background: var(--white); }
.about-grid { display: grid; gap: clamp(40px, 8vw, 120px); grid-template-columns: .9fr 1.1fr; }
.about h2, .publication-layout h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); letter-spacing: -.055em; line-height: .98; margin: 0; }
.about-copy > p { color: var(--muted); font-size: 1.08rem; margin: 0 0 20px; max-width: 64ch; }
.facts { border-top: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 36px; padding-top: 28px; }
.facts strong { display: block; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.06em; line-height: 1; }
.facts span { color: var(--muted); display: block; font-size: .75rem; line-height: 1.3; margin-top: 7px; }

.site-header { background: rgba(245,245,241,.9); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); }
.nav { align-items: center; display: flex; min-height: 76px; justify-content: space-between; }
.brand { font-size: 1rem; font-weight: 850; letter-spacing: -.025em; text-decoration: none; }
.brand span { color: var(--green); }
.nav-links { align-items: center; display: flex; gap: 26px; }
.nav-links a { font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.nav-links a:hover { color: var(--green); }

.hero { min-height: calc(100svh - 76px); padding-block: clamp(56px, 8vw, 110px); }
.hero-grid { align-items: center; display: grid; gap: clamp(38px, 7vw, 90px); grid-template-columns: 1.05fr .95fr; }
.hero h1 { font-size: clamp(3.5rem, 8.3vw, 8rem); letter-spacing: -.075em; line-height: .84; margin: 0 0 34px; max-width: 9ch; }
.hero-copy { color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.35rem); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { align-items: center; border: 1px solid var(--ink); border-radius: 999px; display: inline-flex; font-size: .82rem; font-weight: 800; gap: 9px; min-height: 48px; padding: 0 21px; text-decoration: none; }
.button.primary { background: var(--ink); color: var(--white); }
.button:hover { transform: translateY(-2px); }
.hero-media { position: relative; }
.hero-media::before { background: var(--lime); border-radius: 50%; content: ""; height: 46%; position: absolute; right: -7%; top: -7%; width: 46%; z-index: -1; }
.hero-media img { aspect-ratio: 4/5; border-radius: 160px 20px 160px 20px; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.hero-note { background: var(--white); border: 1px solid var(--line); border-radius: 14px; bottom: 24px; font-size: .82rem; font-weight: 750; left: -34px; padding: 15px 18px; position: absolute; }

.research { background: var(--ink); color: var(--white); }
.research .section-head p { color: #aeb8b3; }
.project-grid { display: grid; gap: 22px; grid-template-columns: repeat(12, 1fr); }
.project { background: #1a2421; border: 1px solid #33403b; border-radius: var(--radius); display: flex; flex-direction: column; grid-column: span 4; overflow: hidden; }
.project.featured { grid-column: span 8; }
.bug-roads-project { order: 1; }
.green-space-project { order: 2; }
.river-project { grid-column: span 6; order: 3; }
.pedagogy-project { grid-column: span 6; order: 4; }
.project img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.project .photo-credit { background: #141c19; color: #98a39e; font-size: .62rem; margin: 0; padding: 6px 12px; text-align: right; }
.project .photo-credit a { color: inherit; }
.river-project > img { object-position: center 54%; }
.bug-roads-project > img { aspect-ratio: 16/9; object-position: center; }
.green-space-project > img {
  aspect-ratio: 1;
  object-position: center;
}
.pedagogy-project { align-self: start; display: flex; }
.pedagogy-project > img {
  aspect-ratio: 3/2;
  border-radius: 0;
  margin: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
  width: 100%;
}
.pedagogy-project .project-body { flex: 0 0 auto; padding-top: 22px; }
.project-body { display: flex; flex: 1; flex-direction: column; padding: clamp(22px, 3vw, 34px); }
.project h3 { font-size: clamp(1.6rem, 3vw, 2.65rem); letter-spacing: -.045em; line-height: 1; margin: 0 0 16px; }
.project p { color: #bdc6c2; margin: 0; }
.project .publication { border-top: 1px solid #3a4642; font-size: .83rem; margin-top: auto; padding-top: 24px; }
.project .publication a { font-weight: 750; }
.research-lens { border-block: 1px solid #38443f; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 40px; }
.research-lens > div { padding: 24px 28px; }
.research-lens > div + div { border-left: 1px solid #38443f; }
.research-lens span { color: var(--lime); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.research-lens p { color: #bdc6c2; font-size: .9rem; margin: 9px 0 0; }
.research-meta { border-top: 1px solid #3a4642; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 24px 0; padding-top: 18px; }
.research-meta div { min-width: 0; }
.research-meta dt { color: var(--lime); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.research-meta dd { color: #d6dcd9; font-size: .78rem; line-height: 1.4; margin: 4px 0 0; }
.active-projects { border-top: 1px solid #3a4642; margin-top: clamp(54px, 8vw, 96px); padding-top: clamp(40px, 6vw, 70px); }
.active-projects-head { align-items: end; display: grid; gap: 30px; grid-template-columns: .65fr 1.35fr; margin-bottom: 34px; }
.active-projects-head h3 { font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.05em; line-height: .98; margin: 0; max-width: 15ch; }
.active-project-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.active-project-grid article { background: #202b27; border: 1px solid #3a4642; border-radius: 14px; padding: clamp(22px, 3vw, 32px); }
.active-project-grid span { color: var(--lime); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.active-project-grid h4 { font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: -.035em; line-height: 1.08; margin: 24px 0 16px; }
.active-project-grid p { color: #bdc6c2; font-size: .9rem; margin: 0; }
.active-project-grid ul { border-top: 1px solid #3a4642; color: #dce1df; font-size: .75rem; list-style: none; margin: 24px 0 0; padding: 18px 0 0; }
.active-project-grid li { padding: 3px 0; }
.active-project-grid li::before { color: var(--lime); content: "— "; }
.current-work { align-items: start; border-top: 1px solid #3a4642; display: grid; gap: 40px; grid-template-columns: .65fr 1.35fr; margin-top: 54px; padding-top: 42px; }
.current-work h3 { font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.04em; line-height: 1; margin: 0; }
.current-work ul { display: grid; gap: 0 30px; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
.current-work li { border-top: 1px solid #3a4642; color: #c6ceca; padding: 16px 0; }

.teaching { background: #e7ebdf; }
.tool-grid { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: #c9cec5; border: 1px solid #c9cec5; }
.tool-grid article { background: #f7f8f4; padding: clamp(24px, 4vw, 46px); }
.tool-grid span { color: var(--green); font-size: .7rem; font-weight: 850; letter-spacing: .1em; }
.tool-grid h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -.04em; margin: 28px 0 12px; }
.tool-grid p { color: var(--muted); margin: 0; max-width: 52ch; }

.publications { background: var(--white); }
.publication-layout { display: grid; gap: clamp(40px, 8vw, 110px); grid-template-columns: .65fr 1.35fr; }
.publication-list { list-style: none; margin: 0; padding: 0; }
.publication-list li { border-top: 1px solid var(--line); display: grid; gap: 22px; grid-template-columns: 60px 1fr; padding: 22px 0; }
.publication-list span { color: var(--green); font-size: .76rem; font-weight: 850; }
.publication-list p { margin: 0; }
.publication-list a { font-weight: 700; }

.people-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.people-grid:has(> :only-child) { grid-template-columns: 1fr; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.person-body { padding: 22px; }
.person h3 { font-size: 1.35rem; letter-spacing: -.03em; margin: 0 0 4px; }
.person p { color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .1em; margin: 0; text-transform: uppercase; }
.pi-profile { align-items: center; display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); margin-inline: auto; max-width: 920px; }
.pi-profile img { height: 100%; min-height: 330px; }
.pi-profile .person-body { padding: clamp(26px, 4vw, 44px); }
.pi-profile h3 { font-size: clamp(2rem, 3.5vw, 3.35rem); line-height: 1; margin-bottom: 14px; }
.pi-profile .pi-affiliation { font-size: .78rem; margin-bottom: 28px; }
.pi-profile .pi-leadership { color: var(--ink); font-size: .78rem; font-weight: 750; letter-spacing: 0; line-height: 1.45; margin: -14px 0 24px; max-width: 44ch; text-transform: none; }
.pi-profile .pi-bio { color: var(--muted); font-size: 1rem; font-weight: 450; letter-spacing: 0; line-height: 1.7; max-width: 64ch; text-transform: none; }
.pi-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pi-links a { border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; font-weight: 800; padding: 9px 14px; text-decoration: none; text-transform: uppercase; }
.pi-links a:hover { background: var(--ink); color: var(--white); }
.person.text-only { display: flex; min-height: 100%; }
.person.text-only .person-body { align-self: end; padding: clamp(24px, 4vw, 42px); }
.person.text-only p:last-child { color: var(--muted); font-size: .9rem; font-weight: 500; letter-spacing: 0; line-height: 1.6; margin-top: 18px; text-transform: none; }
.alumni-head { align-items: end; border-top: 1px solid var(--line); display: grid; gap: 30px; grid-template-columns: .7fr 1.3fr; margin-top: 64px; padding-top: 52px; }
.alumni-head h3 { font-size: clamp(1.8rem, 4vw, 3.8rem); letter-spacing: -.05em; line-height: 1; margin: 0; max-width: 15ch; }
.alumni-grid { display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); margin-top: 38px; }
.alumnus { background: var(--white); border: 1px solid var(--line); min-width: 0; }
.alumnus img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.alumnus > div { min-height: 138px; padding: 20px; }
.alumnus h4 { font-size: 1.15rem; letter-spacing: -.025em; margin: 0 0 8px; }
.alumnus p { color: var(--muted); font-size: .86rem; line-height: 1.5; margin: 0; }

.contact { padding-bottom: 28px; }
.contact-card { background: var(--lime); border-radius: 28px; display: grid; gap: 44px; grid-template-columns: 1.35fr .65fr; padding: clamp(30px, 6vw, 76px); }
.contact-card h2 { font-size: clamp(2.7rem, 6vw, 6rem); letter-spacing: -.065em; line-height: .9; margin: 0; }
.contact-details { align-self: end; }
.contact-details p { margin: 7px 0; }
.contact-details a { font-weight: 750; }

.site-footer { padding-block: 38px; }
.footer-row { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding-top: 28px; }
.footer-row p { color: var(--muted); font-size: .82rem; margin: 0; }
.socials { display: flex; gap: 10px; }
.social { align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 50%; display: inline-flex; height: 42px; justify-content: center; width: 42px; }
.social svg { fill: #000; height: 20px; width: 20px; }
.social:hover { background: #000; }
.social:hover svg { fill: #fff; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0,0,0,0); }

@media (max-width: 900px) {
  .hero-grid, .contact-card, .about-grid, .publication-layout, .current-work { grid-template-columns: 1fr; }
  .hero h1 { max-width: 11ch; }
  .hero-media { margin-inline: auto; max-width: 620px; }
  .project, .project.featured { grid-column: span 6; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .pi-profile { grid-template-columns: minmax(210px, 260px) 1fr; }
  .alumni-grid { grid-template-columns: repeat(2, 1fr); }
  .alumni-head { grid-template-columns: 1fr; }
  .research-lens { grid-template-columns: 1fr; }
  .research-lens > div + div { border-left: 0; border-top: 1px solid #38443f; }
  .active-project-grid { grid-template-columns: 1fr; }
  .active-projects-head { grid-template-columns: 1fr; }
  .pedagogy-project > img { width: 100%; }
}
@media (max-width: 650px) {
  .wrap { padding-inline: 18px; }
  .nav-links a:not(:last-child) { display: none; }
  .section-head { align-items: start; flex-direction: column; }
  .project, .project.featured { grid-column: 1 / -1; }
  .people-grid { grid-template-columns: 1fr; }
  .pi-profile { grid-template-columns: 1fr; }
  .pi-profile img { min-height: 0; }
  .alumni-grid { grid-template-columns: 1fr; }
  .facts, .tool-grid, .current-work ul, .research-meta { grid-template-columns: 1fr; }
  .hero-note { bottom: 16px; left: -8px; }
  .footer-row { align-items: start; flex-direction: column; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
