/* =========================================================
   Hutchinson Lab of Cognitive Neuroscience
   Shared stylesheet (v2 refresh: green/white, editorial hero)
   Palette: UO Green #154733 on warm whites
   ========================================================= */

:root {
  --green:        #154733;
  --green-mid:    #2d6a4f;
  --green-soft:   #e7efe9;
  --ink:          #1a1d1b;
  --muted:        #5a635d;
  --line:         #e2e6e3;
  --paper:        #fbfcfb;
  --paper-2:      #f6f8f6;
  --band:         #f2f6f3;
  --maxw:         1120px;
  --radius:       14px;
  --shadow:       0 1px 2px rgba(21,71,51,.06), 0 8px 30px rgba(21,71,51,.08);
  --shadow-lg:    0 20px 50px rgba(21,71,51,.18);
  --serif:        "Spectral", Georgia, "Times New Roman", serif;
  --sans:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; color: var(--green); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 500; margin: 0 0 .6em; }
h3 { font-size: 1.25rem; }

a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green); text-decoration: underline; }

p { margin: 0 0 1.1em; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 78px 0; }
.section--tight { padding: 52px 0; }
.section--alt { background: var(--paper-2); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green-mid);
  font-family: var(--sans);
  margin: 0 0 .8em;
}
.lead { font-size: 1.18rem; color: #33403a; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .98rem;
  font-family: var(--sans);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: #0e3525; color: #fff; box-shadow: var(--shadow); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { border-color: var(--green); color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: .96rem;
}
.nav__links a:hover { background: var(--green-soft); color: var(--green); text-decoration: none; }
.nav__links a.is-active { color: var(--green); font-weight: 600; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--green); margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 10px; border-radius: 8px; }
}

/* ---------- Hero (light, editorial) ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero__inner {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center;
  padding: 96px 0 88px;
}
.hero h1 { color: var(--green); margin: 0 0 .4em; font-size: clamp(2.6rem, 5.5vw, 4.2rem); line-height: 1.08; }
.hero p { color: #33403a; font-size: 1.22rem; max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__art {
  background: radial-gradient(120% 120% at 75% 15%, #1c5a40 0%, #154733 50%, #0d3122 100%);
  border-radius: 18px; padding: 44px 36px; box-shadow: var(--shadow-lg);
}
.hero__art img { width: 100%; filter: drop-shadow(0 18px 36px rgba(0,0,0,.4)); }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; padding: 64px 0 70px; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { order: -1; max-width: 340px; margin: 0 auto; }
}

/* ---------- Generic page header (interior pages) ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 76px 0 60px; }
.page-head h1 { color: var(--green); margin: 0 0 .3em; }
.page-head p { color: #465049; max-width: 62ch; margin: 0; font-size: 1.15rem; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--ed { grid-template-columns: .8fr 1.2fr; align-items: start; gap: 64px; }
.split--ed h2 { margin: 0; }
@media (max-width: 860px) { .split, .split--ed { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Research themes (numbered) ---------- */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
@media (max-width: 820px) { .themes { grid-template-columns: 1fr; } }
.theme { border-top: 3px solid var(--green); padding-top: 24px; }
.theme .num { font-family: var(--serif); font-size: 1.05rem; color: #9aa8a0; margin: 0 0 10px; }
.theme h3 { font-size: 1.3rem; margin: 0 0 .5em; line-height: 1.2; }
.theme p { margin: 0; color: #465049; }

/* ---------- Open-science band ---------- */
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 68px 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .4em; }
.band p { margin: 0; color: #465049; max-width: 56ch; }
.band__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Repo tiles (code page) ---------- */
.repo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .repo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .repo-grid { grid-template-columns: 1fr; } }
.repo {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.repo:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(21,71,51,.14); border-color: var(--green-mid); text-decoration: none; color: var(--ink); }
.repo__head { display: flex; align-items: center; gap: 10px; }
.repo__icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-size: 1rem;
}
.repo__icon svg { width: 22px; height: 22px; display: block; }
.repo__icon img { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; display: block; }
.repo__name { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600; font-size: 1.02rem; color: var(--green); }
.repo p { margin: 0; color: #465049; font-size: .96rem; flex: 1; }
.repo__go { font-size: .88rem; font-weight: 600; color: var(--green-mid); }

/* ---------- People ---------- */
.pi-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.pi-card img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; border: 5px solid var(--green-soft); }
@media (max-width: 680px) { .pi-card { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 860px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .people-grid { grid-template-columns: 1fr; } }
.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.person img {
  width: 130px; height: 130px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 18px; border: 4px solid var(--green-soft);
}
.person h3 { margin: 0 0 4px; }
.person .role { color: var(--green-mid); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.person p { font-size: .97rem; color: var(--muted); margin: 14px 0 0; text-align: left; }

.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px; font-size: .85rem; font-weight: 600;
  background: var(--green-soft); color: var(--green);
}
.chip:hover { background: var(--green); color: #fff; text-decoration: none; }

/* ---------- Alumni ---------- */
.alumni-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 4px 40px; }
@media (max-width: 680px) { .alumni-list { grid-template-columns: 1fr; } }
.alumni-list li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.alumni-list .who { font-weight: 600; color: var(--ink); }
.alumni-list .meta { color: var(--muted); font-size: .92rem; text-align: right; white-space: nowrap; }

/* ---------- Publications ---------- */
.pub-year { display: flex; align-items: baseline; gap: 16px; margin: 44px 0 18px; }
.pub-year h2 { margin: 0; }
.pub-year .rule { flex: 1; height: 1px; background: var(--line); }
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub {
  padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.pub:hover { border-color: var(--green-mid); box-shadow: var(--shadow); }
.pub .authors { color: var(--ink); }
.pub .authors b { color: var(--green); }
.pub .title { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--green); margin: 4px 0; }
.pub .venue { color: var(--muted); font-style: italic; font-size: .96rem; }

/* ---------- Join options ---------- */
.status-banner {
  background: var(--band); border: 1px solid #d8e4dc; border-left: 5px solid var(--green);
  border-radius: 12px; padding: 18px 22px; margin-bottom: 34px;
}
.join-card { border-left: 5px solid var(--green); }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 100px; margin-bottom: 12px;
}
.tag--open { background: var(--green-soft); color: var(--green); }
.tag--closed { background: #fbe3e0; color: #9b3b2e; }

/* ---------- Interest-form CTA (join page) ---------- */
.interest-cta {
  margin-top: 44px; text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 80% 10%, #1c5a40 0%, #154733 55%, #0d3122 100%);
  border-radius: 18px; padding: 44px 48px; box-shadow: var(--shadow-lg);
}
.interest-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .35em; }
.interest-cta p { margin: 0 auto 1.4em; color: rgba(255,255,255,.82); max-width: 52ch; }
.interest-cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn--inverse { background: #fff; color: var(--green); font-size: 1.02rem; padding: 14px 32px; }
.btn--inverse:hover { background: var(--green-soft); color: var(--green); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row .ic { font-size: 1.3rem; color: var(--green); }
.info-row .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.map-embed { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: rgba(255,255,255,.8); padding: 56px 0 30px; margin-top: 10px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #cfe3d8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h4 { color: #fff; font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand img { height: 38px; margin-bottom: 16px; opacity: .95; }
.footer-brand p { font-size: .95rem; max-width: 36ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: 40px; padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }
