/* BEEM Lab — shared stylesheet */

:root {
  --black: #0e0e0d;
  --charcoal: #26261f;
  --ink: #3a3a33;
  --paper: #fbfaf7;
  --paper-alt: #f3f1ea;
  --line: #e2ded1;
  --gold: #cfb87c;
  --gold-deep: #a68a44;
  --max-w: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, 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.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-deep);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 28px;
  width: auto;
  border-radius: 4px;
  display: block;
  flex-shrink: 0;
}

.brand-logo-svg {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-cu-logo {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--black);
}

.brand-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-top: 2px;
}

nav.primary ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav.primary a {
  color: var(--ink);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

nav.primary a:hover,
nav.primary a.active {
  color: var(--black);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-row { flex-wrap: wrap; gap: 12px; padding: 16px 20px; }
  nav.primary ul { gap: 18px; flex-wrap: wrap; }
  .wrap { padding: 0 20px; }
  .brand-logo-svg { height: 23px; }
  .brand-cu-logo { height: 23px; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(207, 184, 124, 0.16), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.15;
  color: var(--black);
  margin: 0 0 22px;
  max-width: 18ch;
}

.hero p.lede {
  font-size: 1.1rem;
  max-width: 62ch;
  color: var(--charcoal);
  margin: 0 0 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 2px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--black);
}

.btn-primary {
  background: var(--black);
  color: var(--paper);
}
.btn-primary:hover { background: var(--charcoal); text-decoration: none; }

.btn-ghost {
  color: var(--black);
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--black); text-decoration: none; }

/* ---------- Sections ---------- */

section { padding: 68px 0; }
section.alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 40px; max-width: 70ch; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

h2.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--black);
  margin: 0 0 12px;
}

.section-head p { color: var(--charcoal); margin: 0; }

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 3px;
}

.card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--black);
  margin: 0 0 10px;
}

.card p { margin: 0; color: var(--charcoal); font-size: 0.96rem; }

.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- Research themes ---------- */

.theme {
  border-top: 1px solid var(--line);
  padding: 46px 0;
  display: grid;
  grid-template-columns: 0.9fr 2fr;
  gap: 40px;
  scroll-margin-top: 90px;
}

.theme:first-of-type { border-top: none; }

@media (max-width: 800px) {
  .theme { grid-template-columns: 1fr; gap: 20px; }
}

.theme-label {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--black);
  line-height: 1.3;
}

.theme-label .num {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.project {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.project:first-child { border-top: none; padding-top: 0; }

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.project h4 {
  font-size: 1.02rem;
  color: var(--black);
  margin: 0;
  font-weight: 600;
}

.badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge.active { background: #eef3ea; color: #3f6b3a; border: 1px solid #cfe0c9; }
.badge.past { background: var(--paper-alt); color: var(--ink); border: 1px solid var(--line); }

.project p { margin: 8px 0 0; color: var(--charcoal); font-size: 0.95rem; }

.project-figure {
  margin: 20px 0 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-alt);
}
.project-figure img { width: 100%; display: block; }

.project-pubs { margin-top: 20px; }

.project-pubs h6 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  margin: 0 0 10px;
}

ol.pub-list-mini {
  padding-left: 1.3em;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

ol.pub-list-mini li {
  font-size: 0.85rem;
  color: var(--charcoal);
  line-height: 1.55;
}

ol.pub-list-mini li em { color: var(--ink); }

/* ---------- Publications ---------- */

.pub-jump {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-top: 28px;
  padding-bottom: 22px;
  margin-bottom: 8px;
}

.pub-jump a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.pub-jump a:hover { color: var(--gold-deep); }

.pub-jump a .num {
  color: var(--gold-deep);
  font-weight: 600;
  margin-right: 4px;
}

.pub-section { padding: 46px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.pub-section:first-of-type { border-top: none; padding-top: 18px; }

.pub-section h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--black);
  margin: 0 0 22px;
}

ol.pub-list {
  padding-left: 1.4em;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

ol.pub-list li {
  font-size: 0.94rem;
  color: var(--charcoal);
  line-height: 1.55;
}

ol.pub-list li em { color: var(--ink); }

/* ---------- People ---------- */

.group-photo {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-alt);
}
.group-photo img { width: 100%; display: block; }
.group-photo figcaption {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--charcoal);
  text-align: center;
  border-top: 1px solid var(--line);
}

.past-photos-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--charcoal);
  margin: 16px 0 0;
}
.past-photos-note a { margin: 0 4px; }

.people-group { padding: 40px 0; border-top: 1px solid var(--line); }
.people-group:first-of-type { border-top: none; }

.people-group h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--black);
  margin: 0 0 22px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 820px) {
  .people-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .people-grid { grid-template-columns: 1fr; }
}

.person {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 3px;
  background: var(--paper);
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  overflow: hidden;
}

.avatar.photo {
  width: 112px;
  height: 112px;
}

.alumni-subhead {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  margin: 30px 0 12px;
}
.alumni-subhead:first-child { margin-top: 0; }

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}

@media (max-width: 700px) {
  .alumni-grid { grid-template-columns: 1fr; }
}

.alumni-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.alumni-item .alumni-name {
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--black);
}

.alumni-item .alumni-meta {
  font-size: 0.82rem;
  color: var(--charcoal);
  white-space: nowrap;
  text-align: right;
}

.avatar.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person h4 { margin: 0 0 4px; font-size: 1rem; color: var(--black); }
.person .role { font-size: 0.82rem; color: var(--gold-deep); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.person p.note { margin: 0; font-size: 0.86rem; color: var(--charcoal); }

.person-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.person-link:hover {
  text-decoration: none;
}
.person-link:hover .person {
  border-color: var(--gold);
}

/* ---------- Person profile page ---------- */

.back-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.back-link:hover { color: var(--gold-deep); }

.profile {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 8px;
}

@media (max-width: 620px) {
  .profile { flex-direction: column; align-items: flex-start; }
}

.profile-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--paper-alt);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.profile-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--black);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.6rem;
}

.profile-info h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.9rem;
  color: var(--black);
  margin: 0 0 8px;
}

.profile-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-bottom: 4px;
}

.profile-dept {
  font-size: 0.92rem;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.profile-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.profile-links a { font-size: 0.88rem; }

.profile-bio {
  margin-top: 40px;
  max-width: 72ch;
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.75;
}
.profile-bio p { margin: 0 0 18px; }

.profile-meta {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  max-width: 72ch;
}

.profile-meta h5 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--gold-deep);
  margin: 0 0 10px;
}

.profile-meta p {
  margin: 0 0 20px;
  color: var(--charcoal);
  font-size: 0.92rem;
}

.profile-meta ul {
  margin: 0 0 20px;
  padding-left: 1.2em;
  color: var(--charcoal);
  font-size: 0.92rem;
}
.profile-meta li { margin-bottom: 4px; }

.placeholder-note {
  margin-top: 34px;
  padding: 16px 20px;
  border: 1px dashed var(--line);
  border-radius: 3px;
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--paper-alt);
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--black);
  color: #cfcac0;
  padding: 52px 0 34px;
  margin-top: 40px;
}

footer.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

@media (max-width: 700px) {
  footer.site-footer .foot-grid { grid-template-columns: 1fr; }
}

footer.site-footer h5 {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}

footer.site-footer p, footer.site-footer a { color: #cfcac0; font-size: 0.9rem; }
footer.site-footer a:hover { color: var(--gold); }

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  color: var(--paper);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.brand-mark img {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
