/*
Theme Name: Access Lab
Theme URI: https://accesslabuga.com
Author: Agency Build
Description: Custom WordPress theme for the Access Lab at the University of Georgia — a research group led by Dr. Rachel Figard studying disability, identity, and accessible design in engineering education.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
License: Private
Text Domain: access-lab
*/

/* ============================================================
   ACCESS LAB — Site Stylesheet
   Design tokens defined in design-tokens.css (source of truth).
   Google Fonts enqueued via functions.php, not @import here.
   ============================================================ */

/* Skip link — visually hidden until focused (WCAG AA) */
.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--rust);
  color: var(--on-rust);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --cream: #F5F1E9; --cream-dark: #FAF7E0; --white: #FDFAF5;
  --ink: #18251D; --ink-muted: #3E1929; --ink-light: #7A7470;
  --rust: #C52233; --rust-light: #D64045; --rust-pale: #FFE2D1;
  --forest: #A4C695; --forest-light: #D1EEAA; --forest-pale: #D6EADF;
  --ochre: #E8985E; --ochre-light: #EFC69B; --ochre-pale: #D6CA98;
  --slate: #845A6D; --slate-pale: #C6CAED;
  --mauve: #EFD0CA; --mauve-pale: #F4FDD9;
  --on-rust: #FAF7E0; --on-forest: #18251D; --on-ink: #F5F1E9;
  --font-display: 'League Gothic', Impact, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-ui: 'DM Sans', system-ui, sans-serif;
  --text-xs: 0.6875rem; --text-sm: 0.8125rem; --text-base: 1rem;
  --text-lg: 1.125rem; --text-xl: 1.25rem; --text-2xl: 1.5rem;
  --text-3xl: 1.875rem; --text-4xl: 2.375rem; --text-5xl: 3rem;
  --text-hero: clamp(3.5rem, 8vw, 7.5rem);
  --leading-tight: 0.95; --leading-snug: 1.15;
  --leading-normal: 1.5; --leading-relaxed: 1.7;
  --tracking-tight: -0.03em; --tracking-wide: 0.06em; --tracking-wider: 0.12em;
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --section-y: clamp(3rem, 7vw, 6rem); --section-y-lg: clamp(4rem, 9vw, 8rem);
  --max-width: 1200px; --content-width: 820px;
  --nav-height: 68px; --gutter: clamp(1rem, 4vw, 2rem);
  --radius-sm: 2px; --radius: 4px; --radius-lg: 8px;
  --border: 1px solid rgba(28,25,23,0.18);
  --border-strong: 2px solid var(--ink);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── BASE ───────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--content-width); }

/* ── LEAGUE GOTHIC OVERRIDES ────────────────────────────────── */
/* League Gothic is single-weight condensed — force 400 everywhere */
.hero-title, .nav-logo-text, .identity-text, .identity-text strong,
.nav-card-title, .pin-card-title, .pi-name, .pi-fullname,
.section-heading, .member-name, .research-area-number,
.research-area-title, .pub-category-title, .collage-text-box h1,
.page-header h1, .contact-name, .contact-sidebar-heading,
.footer-lab-name {
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
}

/* ── TYPOGRAPHY UTILITIES ───────────────────────────────────── */
.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
.label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
}

/* ══════════════════════════════════════════════════════════════
   SCRAPBOOK ICON UTILITIES
   ══════════════════════════════════════════════════════════════ */
.scrappy {
  display: inline-block;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(1px 3px 8px rgba(28,25,23,0.13));
  vertical-align: middle;
}
.scrappy-abs {
  position: absolute;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(1px 3px 10px rgba(28,25,23,0.15));
  z-index: 2;
}
.scrappy-field { position: relative; overflow: visible; }

.page-header { position: relative; overflow: hidden; }
.page-header-logo-accent {
  position: absolute;
  right: clamp(1rem, 6vw, 5rem);
  bottom: -20px;
  width: clamp(100px, 14vw, 180px);
  height: auto;
  opacity: 0.22;
  filter: brightness(10) drop-shadow(0 4px 20px rgba(28,25,23,0.20));
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ── CARD STOCK / PINNED PAPER TEXTURE ─────────────────────── */
.pinned-paper {
  background-color: #F5F0E5;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 21px,
    rgba(28,25,23,0.048) 21px, rgba(28,25,23,0.048) 22px
  );
  box-shadow: 1px 2px 0 rgba(28,25,23,0.12), 0 6px 18px rgba(28,25,23,0.13);
  transition: transform 200ms var(--ease-out), box-shadow 200ms;
}
.pinned-paper:hover {
  box-shadow: 1px 2px 0 rgba(28,25,23,0.14), 0 10px 30px rgba(28,25,23,0.18);
}

.nav-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.065;
  pointer-events: none;
  z-index: 0;
}
.nav-card-label, .nav-card-title, .nav-card-body, .nav-card-arrow {
  position: relative;
  z-index: 1;
}

/* ── PLACEHOLDER STYLES ─────────────────────────────────────── */
.placeholder {
  border: 2px dashed var(--ochre);
  background: var(--ochre-pale);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.placeholder::before { content: '✏ PLACEHOLDER — '; font-weight: 700; color: var(--ochre); }

/* ══════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: #EFD0CA;
  border-bottom: var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}
.nav-logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(28,25,23,0.10));
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* WordPress wp_nav_menu() outputs a <ul> inside a <div> by default */
.nav-links,
.site-nav .menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a,
.site-nav .menu a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 150ms;
  position: relative;
}
.nav-links a::after,
.site-nav .menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.nav-links a:hover,
.site-nav .menu a:hover { color: var(--ink); }
.nav-links a:hover::after,
.site-nav .menu a:hover::after { transform: scaleX(1); }
.nav-links a.active,
.site-nav .menu .current-menu-item > a,
.site-nav .menu .current-page-ancestor > a { color: var(--ink); }
.nav-links a.active::after,
.site-nav .menu .current-menu-item > a::after,
.site-nav .menu .current-page-ancestor > a::after { transform: scaleX(1); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 250ms var(--ease-out), opacity 200ms;
}
/* Open state — JS adds .nav-open to <nav> */
.site-nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   SECTION DIVIDERS
   ══════════════════════════════════════════════════════════════ */
.divider { display: block; line-height: 0; margin-top: -1px; }
.divider svg { display: block; width: 100%; height: clamp(40px, 5vw, 64px); }

/* ══════════════════════════════════════════════════════════════
   HERO — Homepage
   ══════════════════════════════════════════════════════════════ */
.hero {
  background: var(--cream);
  min-height: 60vh;
  max-height: 60vh;
  padding-block: clamp(1rem, 2vw, 1.75rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}
.hero-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--rust);
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  color: var(--ink);
  margin-bottom: var(--space-8);
}
.hero-title em { font-style: normal; color: var(--rust); }
.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--ink-muted);
  max-width: 44ch;
  margin-bottom: var(--space-10);
}
.hero-cta-group { display: flex; align-items: center; gap: var(--space-6); }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-above-img {
  max-height: clamp(200px, 30vh, 280px);
  width: auto;
  display: block;
  margin-bottom: var(--space-8);
  filter: drop-shadow(0 4px 16px rgba(24,37,29,0.12));
}
.hero-title-scrapbook {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.hero-scrapbook-title-img {
  max-height: clamp(240px, 48vh, 400px);
  width: auto;
  max-width: 100%;
  display: block;
  filter: drop-shadow(2px 4px 16px rgba(24,37,29,0.10));
}

/* ══════════════════════════════════════════════════════════════
   IDENTITY STRIP
   ══════════════════════════════════════════════════════════════ */
.identity-strip { background: var(--rust); padding-block: var(--section-y); }
.identity-strip .container { max-width: var(--content-width); }
.identity-text {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: var(--leading-snug);
  color: var(--on-rust);
}

/* ══════════════════════════════════════════════════════════════
   PIN CARDS
   ══════════════════════════════════════════════════════════════ */
.nav-cards-section { background: var(--cream-dark); padding-block: var(--section-y-lg); }
.pin-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  padding-top: var(--space-12);
  align-items: start;
}
.pin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6) var(--space-6);
  text-decoration: none;
  color: var(--ink);
  border-radius: 2px;
  overflow: visible;
  background-color: var(--card-bg, #f0e8d8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='0.07'/%3E%3C/svg%3E");
  border: 1px solid rgba(28,25,23,0.10);
  box-shadow: 3px 4px 0 rgba(28,25,23,0.16), 0 9px 28px rgba(28,25,23,0.14);
  transform: rotate(var(--rot, -1.5deg));
  transform-origin: 18px 0;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.pin-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 2px 8px 0 rgba(28,25,23,0.11), 0 20px 48px rgba(28,25,23,0.18);
}
.pin-card-pin {
  position: absolute;
  top: -32px;
  left: -4px;
  width: 46px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(1px 4px 5px rgba(0,0,0,0.32));
  transform: rotate(-6deg);
  pointer-events: none;
}
.pin-card-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent, var(--rust));
  display: block;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1.5px solid var(--accent, var(--rust));
}
.pin-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: var(--space-4);
}
.pin-card-body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--ink-muted);
  flex: 1;
  margin-bottom: var(--space-6);
}
.pin-card-arrow {
  font-family: var(--font-ui);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent, var(--rust));
  align-self: flex-end;
  transition: transform 220ms var(--ease-out);
}
.pin-card:hover .pin-card-arrow { transform: translateX(5px); }

/* ══════════════════════════════════════════════════════════════
   PI STRIP (homepage)
   ══════════════════════════════════════════════════════════════ */
.pi-strip { background: var(--cream); padding-block: var(--section-y-lg); border-top: var(--border-strong); }
.pi-strip-inner { display: grid; grid-template-columns: 1fr auto; gap: var(--space-16); align-items: start; }
.pi-role {
  font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--rust); margin-bottom: var(--space-3);
}
.pi-name {
  font-family: var(--font-display); font-size: var(--text-5xl);
  font-weight: 400; line-height: var(--leading-tight);
  letter-spacing: 0.02em; margin-bottom: var(--space-3);
}
.pi-title-line { font-family: var(--font-ui); font-size: var(--text-base); color: var(--ink-muted); margin-bottom: var(--space-6); }
.pi-bio {
  font-family: var(--font-body); font-size: var(--text-lg); line-height: var(--leading-relaxed);
  color: var(--ink-muted); max-width: 60ch; margin-bottom: var(--space-8);
}
.pi-links { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.pi-link {
  font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 600;
  color: var(--rust); letter-spacing: 0.02em;
  border-bottom: 2px solid var(--rust); padding-bottom: 1px; transition: opacity 150ms;
}
.pi-link:hover { opacity: 0.75; }
.pi-photo-col { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.pi-photo-placeholder {
  width: 220px; height: 260px;
  border: var(--border-strong); border-radius: var(--radius);
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pi-photo-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ══════════════════════════════════════════════════════════════
   PAGE HEADERS (inner pages)
   ══════════════════════════════════════════════════════════════ */
.page-header {
  padding-top: calc(var(--section-y) + var(--space-8));
  padding-bottom: var(--section-y);
}
.page-header--rust  { background: var(--rust);   color: var(--on-rust); }
.page-header--forest { background: var(--forest); color: var(--on-forest); }
.page-header--ochre  { background: var(--ochre-pale); color: var(--ink); }
.page-header--ink    { background: var(--ink);    color: var(--on-ink); }

.page-header--collage {
  background-size: cover;
  background-position: center;
  background-color: var(--cream-dark);
  padding: 0;
  min-height: 300px;
  display: flex;
  align-items: center;
}
.page-header--collage .container { padding-block: var(--section-y-lg); }
.collage-text-box {
  background: rgba(245, 241, 233, 0.86);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-lg);
  max-width: 620px;
  border: 1px solid rgba(245, 241, 233, 0.6);
  color: var(--ink);
}
.collage-text-box .eyebrow { margin-bottom: var(--space-4); opacity: 0.75; }
.collage-text-box h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}
.collage-text-box h1 em { font-style: normal; color: var(--rust); }
.page-header h1 em { font-style: normal; }
.section-heading em { font-style: normal; color: var(--rust); }
.contact-name em { font-style: normal; color: var(--rust); }
.collage-text-box > p:last-child {
  font-family: var(--font-body); font-size: var(--text-lg); line-height: var(--leading-relaxed);
  color: var(--ink-muted); max-width: 48ch; margin-top: var(--space-3);
}
.page-header .eyebrow { margin-bottom: var(--space-4); opacity: 0.75; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: var(--leading-tight);
}
.page-header p {
  font-family: var(--font-body); font-size: var(--text-xl); line-height: var(--leading-relaxed);
  margin-top: var(--space-6); max-width: 60ch; opacity: 0.85;
}

/* ══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════════ */
.lab-overview { background: var(--cream); padding-block: var(--section-y-lg); }
.lab-overview-body {
  font-family: var(--font-body); font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: var(--leading-relaxed); color: var(--ink-muted);
  max-width: 68ch; margin-top: var(--space-8);
}
.lab-overview-body p + p { margin-top: var(--space-6); }

.pi-profile-section {
  background: var(--cream-dark); padding-block: var(--section-y-lg);
  border-top: var(--border-strong); border-bottom: var(--border-strong);
}
.pi-profile-grid { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-16); align-items: start; }
.pi-photo-frame { position: sticky; top: calc(var(--nav-height) + var(--space-8)); }
.pi-photo-box {
  width: 100%; aspect-ratio: 3/4;
  background: var(--cream); border: var(--border-strong); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  margin-bottom: var(--space-4);
}
.pi-photo-box img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.pi-contact-list { display: flex; flex-direction: column; gap: var(--space-2); }
.pi-contact-item {
  font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 500;
  color: var(--rust); display: flex; align-items: center; gap: var(--space-2);
}
.pi-contact-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.pi-badge {
  display: inline-block; font-family: var(--font-ui); font-size: var(--text-xs);
  font-weight: 700; letter-spacing: var(--tracking-wider); text-transform: uppercase;
  background: var(--rust); color: var(--on-rust);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); margin-bottom: var(--space-4);
}
.pi-fullname {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400; line-height: var(--leading-tight); letter-spacing: 0.02em; margin-bottom: var(--space-2);
}
.pi-academic-title { font-family: var(--font-ui); font-size: var(--text-base); color: var(--ink-muted); margin-bottom: var(--space-8); }
.pi-bio-full { font-family: var(--font-body); font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--ink-muted); }
.pi-bio-full p + p { margin-top: var(--space-5); }

.members-section { background: var(--cream); padding-block: var(--section-y-lg); }
.section-heading {
  font-family: var(--font-display); font-size: var(--text-4xl);
  font-weight: 400; line-height: var(--leading-snug); letter-spacing: 0.02em; margin-bottom: var(--space-3);
}
.section-subheading {
  font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--rust); margin-bottom: var(--space-4);
}
.section-intro {
  font-family: var(--font-body); font-size: var(--text-lg); line-height: var(--leading-relaxed);
  color: var(--ink-muted); max-width: 64ch; margin-bottom: var(--space-12);
}
.members-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6); margin-bottom: var(--space-16);
}
.member-card { border: var(--border-strong); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.member-photo {
  width: 100%; aspect-ratio: 1;
  background: var(--cream-dark); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: var(--text-xs); color: var(--ink-light);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-info { padding: var(--space-5) var(--space-5) var(--space-6); }
.member-degree-badge {
  display: inline-block; font-family: var(--font-ui); font-size: 0.625rem;
  font-weight: 700; letter-spacing: var(--tracking-wider); text-transform: uppercase;
  padding: 2px var(--space-2); border-radius: var(--radius-sm); margin-bottom: var(--space-3);
  background: var(--rust-pale); color: var(--rust);
}
.member-degree-badge.undergrad { background: var(--ochre-pale); color: var(--ochre); }
.member-name {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 400; line-height: var(--leading-snug); margin-bottom: var(--space-2); letter-spacing: 0.02em;
}
.member-program { font-family: var(--font-ui); font-size: var(--text-sm); color: var(--ink-muted); margin-bottom: var(--space-3); }
.member-interests { font-family: var(--font-body); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--ink-muted); margin-bottom: var(--space-4); }
.member-links { display: flex; gap: var(--space-4); }
.member-link { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 600; color: var(--rust); letter-spacing: 0.03em; border-bottom: 1px solid var(--rust); }
.member-card--placeholder { border-style: dashed; border-color: var(--ochre); background: var(--ochre-pale); }
.member-card--placeholder .member-photo { background: var(--ochre-pale); border-bottom: 2px dashed var(--ochre); color: var(--ochre); }

.alumni-section { background: var(--cream-dark); padding-block: var(--section-y); border-top: var(--border-strong); }
.alumni-table { width: 100%; border-collapse: collapse; margin-top: var(--space-8); font-family: var(--font-body); font-size: var(--text-base); }
.alumni-table th {
  font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--ink-muted); text-align: left;
  padding: var(--space-3) var(--space-4); border-bottom: var(--border-strong);
}
.alumni-table td { padding: var(--space-4); border-bottom: var(--border); vertical-align: top; line-height: var(--leading-normal); }
.alumni-table tr:hover td { background: rgba(28,25,23,0.03); }
.alumni-link { color: var(--rust); border-bottom: 1px solid var(--rust); }

/* ══════════════════════════════════════════════════════════════
   RESEARCH PAGE
   ══════════════════════════════════════════════════════════════ */
.research-overview { background: var(--cream); padding-block: var(--section-y-lg); }
.research-overview-text { font-family: var(--font-body); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: var(--leading-relaxed); color: var(--ink-muted); max-width: 70ch; }
.research-overview-text p + p { margin-top: var(--space-6); }
.research-area { padding-block: var(--section-y-lg); border-top: var(--border-strong); }
.research-area--rust  { background: var(--rust-pale); }
.research-area--slate { background: var(--slate-pale); }
.research-area--forest { background: var(--forest-pale); }
.research-area--mauve { background: var(--mauve-pale); }
.research-area-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.research-area-number {
  font-family: var(--font-display); font-size: 5rem; font-weight: 400; line-height: 1;
  letter-spacing: 0.02em; opacity: 0.12; margin-bottom: var(--space-3);
}
.research-area--rust  .research-area-number { color: var(--rust); }
.research-area--slate .research-area-number { color: var(--slate); }
.research-area--forest .research-area-number { color: var(--forest); }
.research-area--mauve .research-area-number { color: var(--mauve); }
.research-area-tag {
  display: inline-block; font-family: var(--font-ui); font-size: var(--text-xs);
  font-weight: 700; letter-spacing: var(--tracking-wider); text-transform: uppercase;
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); margin-bottom: var(--space-5);
}
.research-area--rust  .research-area-tag { background: var(--rust); color: var(--on-rust); }
.research-area--slate .research-area-tag { background: var(--slate); color: white; }
.research-area--forest .research-area-tag { background: var(--forest); color: var(--on-forest); }
.research-area--mauve .research-area-tag { background: var(--mauve); color: white; }
.research-area-title {
  font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400; line-height: var(--leading-snug); letter-spacing: 0.02em; margin-bottom: var(--space-6);
}
.research-area-body { font-family: var(--font-body); font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--ink-muted); }
.research-area-body p + p { margin-top: var(--space-5); }
.research-meta {
  padding: var(--space-6); border: var(--border-strong); border-radius: var(--radius);
  background: rgba(255,255,255,0.5); display: flex; flex-direction: column; gap: var(--space-5);
}
.research-meta-item label {
  font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--ink-muted); display: block; margin-bottom: var(--space-2);
}
.research-meta-item p { font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-normal); color: var(--ink-muted); }

/* ══════════════════════════════════════════════════════════════
   PUBLICATIONS PAGE
   ══════════════════════════════════════════════════════════════ */
.publications-body { background: var(--cream); padding-block: var(--section-y-lg); }
.pub-section { margin-bottom: var(--space-16); }
.pub-section-header {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-8); padding-bottom: var(--space-4); border-bottom: var(--border-strong);
}
.pub-category-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.pub-category-dot--rust   { background: var(--rust); }
.pub-category-dot--slate  { background: var(--slate); }
.pub-category-dot--forest { background: var(--forest); }
.pub-category-dot--mauve  { background: var(--mauve); }
.pub-category-title {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 400; line-height: var(--leading-snug); letter-spacing: 0.02em;
}
.pub-list { display: flex; flex-direction: column; gap: 0; }
.pub-item { padding: var(--space-6) 0; border-bottom: var(--border); display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start; }
.pub-year { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; color: var(--ink-light); letter-spacing: 0.05em; min-width: 3rem; padding-top: 3px; }
.pub-title { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 600; line-height: var(--leading-snug); color: var(--ink); margin-bottom: var(--space-2); }
.pub-authors { font-family: var(--font-body); font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--ink-muted); margin-bottom: var(--space-2); }
.pub-authors strong { color: var(--ink); font-weight: 600; }
.pub-venue { font-family: var(--font-ui); font-size: var(--text-xs); color: var(--ink-light); letter-spacing: 0.02em; display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.pub-badge {
  display: inline-flex; align-items: center; font-family: var(--font-ui); font-size: 0.625rem;
  font-weight: 700; letter-spacing: var(--tracking-wider); text-transform: uppercase;
  padding: 2px var(--space-2); border-radius: var(--radius-sm);
  background: var(--cream-dark); color: var(--ink-muted);
}
.pub-badge--press { background: var(--ochre-pale); color: var(--ochre); }
.pub-cite-count {
  font-family: var(--font-ui); font-size: 0.625rem; color: var(--ink-light);
  border: 1px solid var(--border); padding: 1px var(--space-2); border-radius: 99px;
}

/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════════ */
.contact-body { background: var(--cream); padding-block: var(--section-y-lg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.contact-section-label {
  font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--rust); margin-bottom: var(--space-3);
}
.contact-name {
  font-family: var(--font-display); font-size: var(--text-4xl);
  font-weight: 400; line-height: var(--leading-tight); letter-spacing: 0.02em; margin-bottom: var(--space-2);
}
.contact-role { font-family: var(--font-ui); font-size: var(--text-base); color: var(--ink-muted); margin-bottom: var(--space-8); }
.contact-item { display: flex; flex-direction: column; margin-bottom: var(--space-6); }
.contact-item-label { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--ink-light); margin-bottom: var(--space-1); }
.contact-item-value { font-family: var(--font-body); font-size: var(--text-lg); line-height: var(--leading-normal); color: var(--ink); }
.contact-item-value a { color: var(--rust); border-bottom: 1px solid var(--rust); transition: opacity 150ms; }
.contact-item-value a:hover { opacity: 0.75; }
.contact-sidebar { padding: var(--space-8); background: var(--cream-dark); border: var(--border-strong); border-radius: var(--radius); }
.contact-sidebar-heading { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; letter-spacing: 0.02em; margin-bottom: var(--space-4); }
.contact-sidebar p { font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--ink-muted); margin-bottom: var(--space-5); }
.contact-affiliations { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-8); }
.affiliation-link {
  font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 500;
  color: var(--ink-muted); border-bottom: 1px solid var(--border); padding-bottom: var(--space-3);
  display: flex; justify-content: space-between; align-items: center; transition: color 150ms;
}
.affiliation-link:hover { color: var(--rust); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer { background: var(--ink); color: var(--on-ink); padding-top: var(--section-y-lg); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-12); padding-bottom: var(--space-16); }
.footer-logo-row { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-5); }
.footer-logo-img { width: 40px; height: 40px; object-fit: contain; }
.footer-lab-name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; letter-spacing: 0.02em; color: var(--cream); }
.footer-tagline { font-family: var(--font-body); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: rgba(245,238,227,0.6); max-width: 32ch; }
.footer-nav-label { font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 700; letter-spacing: var(--tracking-wider); text-transform: uppercase; color: rgba(245,238,227,0.5); margin-bottom: var(--space-5); }
.footer-nav-list { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-nav-list a { font-family: var(--font-ui); font-size: var(--text-sm); font-weight: 500; color: rgba(245,238,227,0.75); transition: color 150ms; }
.footer-nav-list a:hover { color: var(--cream); }
.footer-address { font-family: var(--font-body); font-size: var(--text-sm); line-height: var(--leading-relaxed); color: rgba(245,238,227,0.6); }
.footer-email {
  display: block; margin-top: var(--space-4); font-family: var(--font-ui); font-size: var(--text-sm);
  font-weight: 500; color: var(--ochre-light); border-bottom: 1px solid var(--ochre);
  padding-bottom: 1px; width: fit-content; transition: opacity 150ms;
}
.footer-email:hover { opacity: 0.75; }
.footer-bottom {
  border-top: 1px solid rgba(245,238,227,0.12); padding-block: var(--space-5);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom span, .footer-bottom a { font-family: var(--font-ui); font-size: var(--text-xs); color: rgba(245,238,227,0.4); letter-spacing: 0.03em; }

/* ══════════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════════ */
.error-404-section {
  background: var(--cream);
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-block: var(--section-y-lg);
}
.error-404-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--rust);
  opacity: 0.18;
}
.error-404-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: flex; order: -1; }
  .hero-scrapbook-title-img { max-height: clamp(150px, 38vw, 260px); }
  .hero-logo-above-img { display: none; }
  .pin-cards { grid-template-columns: 1fr; gap: var(--space-12); max-width: 400px; }
  .pin-card { transform: rotate(0deg) !important; }
  .pi-strip-inner { grid-template-columns: 1fr; }
  .pi-photo-col { align-items: flex-start; }
  .pi-profile-grid { grid-template-columns: 1fr; }
  .pi-photo-frame { position: static; }
  .research-area-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .pub-item { grid-template-columns: 1fr; gap: var(--space-2); }
}
@media (max-width: 680px) {
  .nav-links, .site-nav .menu { display: none; }
  .nav-toggle { display: flex; }
  .members-grid { grid-template-columns: 1fr 1fr; }
  /* Mobile nav open state */
  .site-nav.nav-open .nav-links,
  .site-nav.nav-open .menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #EFD0CA;
    border-bottom: var(--border-strong);
    padding: var(--space-4) var(--gutter) var(--space-6);
    gap: var(--space-4);
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .members-grid { grid-template-columns: 1fr; }
}

/* Pinned-paper cards on research page index */
.pinned-paper { transition: transform 200ms var(--ease-out), box-shadow 200ms; }
