/* ═══════════════════════════════════════════════════════════════
   ADM Research Group — complete site styles
   Color tokens: colors_and_type.css in project root
═══════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --bg:          #F6F2EC;
  --surface:     #EDE8DF;
  --border:      #D5CFC5;
  --text:        #141210;
  --meta:        #6E665C;
  --accent:      #B4412B;
  --accent-dim:  rgba(180, 65, 43, 0.10);
  --slate:       #3A4A5A;
  --slate-dark:  #263040;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --nav-h:  70px;
  --max-w:  1120px;
  --gap:    1.75rem;
  --r:      10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #1A1815;
    --surface:    #221F1C;
    --border:     #2E2B27;
    --text:       #F0EBE3;
    --meta:       #8E867A;
    --accent:     #D2604A;
    --accent-dim: rgba(210, 96, 74, 0.12);
    --slate:      #3A4A5A;
    --slate-dark: #263040;
  }
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Shared layout ───────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav-brand:hover { text-decoration: none; }

.nav-logo { height: 36px; width: auto; }

.nav-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-name strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.nav-name span {
  font-size: 0.70rem;
  color: var(--meta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--meta);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav-link.active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-dim);
}

/* ═══════════════════════════════════════════════════════════════
   LANDING HERO (index.html only)
═══════════════════════════════════════════════════════════════ */
.landing-hero {
  position: relative;
  height: calc(100vh - var(--nav-h));
  min-height: 480px;
  max-height: 800px;
  background-color: var(--slate);
  background-image: url('../images/group_pics/2024.jpeg');
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: flex-end;
}

.landing-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 18, 16, 0.88) 0%,
    rgba(20, 18, 16, 0.45) 55%,
    rgba(20, 18, 16, 0.15) 100%
  );
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.landing-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.landing-hero-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
}

.landing-hero-content strong { color: #fff; }

/* ── Landing: About ── */
.about-section {
  padding: 5rem 2rem;
}

.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.about-text p {
  color: var(--meta);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-photo {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ── Landing: Feature cards ── */
.features-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}

.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.features-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--meta);
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: var(--text);
}

.feature-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}

.feature-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--meta);
  line-height: 1.6;
}

.feature-arrow {
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE BANNER (inner pages)
═══════════════════════════════════════════════════════════════ */
.page-banner {
  background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
  padding: 3.5rem 2rem;
}

.page-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.35rem;
}

.page-banner p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
}

/* ═══════════════════════════════════════════════════════════════
   SHARED PAGE CONTENT
═══════════════════════════════════════════════════════════════ */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

/* ── Section heading ── */
.sh {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sh::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sh:first-child { margin-top: 0; }

/* ═══════════════════════════════════════════════════════════════
   PEOPLE PAGE
═══════════════════════════════════════════════════════════════ */

/* ── PI feature card ── */
.pi-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.pi-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

.pi-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.pi-role {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.pi-bio {
  font-size: 0.9rem;
  color: var(--meta);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.pi-links { display: flex; gap: 0.6rem; }

.pi-links a, .member-icons a {
  color: var(--meta);
  font-size: 1.05rem;
  transition: color 0.15s;
  text-decoration: none;
}

.pi-links a:hover, .member-icons a:hover { color: var(--accent); }

/* ── Team grid ── */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: var(--gap);
}

.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.member-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.member-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
}

.member-body { padding: 0.85rem 1rem 1rem; }

.member-name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.member-role {
  font-size: 0.74rem;
  color: var(--meta);
  margin-bottom: 0.6rem;
}

.member-icons { display: flex; gap: 0.5rem; }

/* ── Alumni ── */
.alumni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  list-style: none;
}

.alumni-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--meta);
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}

.gallery-figure {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.gallery-figure img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-caption {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--meta);
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════════
   RESEARCH PAGE
═══════════════════════════════════════════════════════════════ */

/* ── Themes ── */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--gap);
}

.theme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 1.5rem;
}

.theme-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.theme-card p {
  font-size: 0.875rem;
  color: var(--meta);
  line-height: 1.65;
}

.themes-showcase {
  position: relative;
  margin-top: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--r) + 8px);
  background:
    radial-gradient(circle at top left, rgba(180, 65, 43, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(58, 74, 90, 0.08), transparent 55%),
    var(--surface);
  overflow: hidden;
}

.themes-showcase::after {
  content: '';
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: rgba(58, 74, 90, 0.08);
  filter: blur(4px);
}

.themes-intro {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin-bottom: 1.5rem;
  color: var(--meta);
  font-size: 0.98rem;
  line-height: 1.8;
}

.themes-grid-featured {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.theme-card-featured {
  min-height: 100%;
  padding: 1.6rem;
  border-top: none;
  box-shadow: 0 14px 34px rgba(38, 48, 64, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.theme-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(38, 48, 64, 0.12);
  border-color: rgba(180, 65, 43, 0.35);
}

.theme-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-card-featured h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.theme-card-featured p {
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ── Selected publications ── */
.pub-selected-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
}

.pub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pub-card-year {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.pub-card-title {
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.pub-card-meta {
  font-size: 0.82rem;
  color: var(--meta);
  line-height: 1.5;
}

.pub-card-link {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.2rem;
  font-weight: 500;
}

/* ── All publications list ── */
.pub-list { list-style: none; }

.pub-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.pub-row:first-child { border-top: 1px solid var(--border); }

.pub-row-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 3px;
  text-align: right;
}

.pub-row-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.pub-row-meta {
  font-size: 0.82rem;
  color: var(--meta);
}

.pub-row-link {
  display: inline-block;
  font-size: 0.78rem;
  margin-top: 0.25rem;
  color: var(--accent);
}

@media (max-width: 480px) {
  .pub-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .pub-row-year { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════════
   NEWS PAGE
═══════════════════════════════════════════════════════════════ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-year-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--meta);
  margin: 2.25rem 0 0.5rem;
}

.news-year-label:first-child { margin-top: 0; }

/* Standard compact card */
.news-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem 1.5rem;
  align-items: start;
}

/* Featured card — with a photo at the top */
.news-card--featured {
  display: block;
  padding: 0;
  overflow: hidden;
}

.news-card--featured .news-card-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.news-card--featured .news-card-body {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 1.5rem;
  align-items: start;
}

/* Publication badge variant */
.news-badge--pub {
  background: var(--slate);
}

.news-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 0.5rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  text-align: center;
  flex-shrink: 0;
}

.news-badge-month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-badge-year {
  font-size: 1rem;
  font-weight: 700;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.news-body {
  font-size: 0.875rem;
  color: var(--meta);
  line-height: 1.65;
}

.news-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.45rem;
}

@media (max-width: 500px) {
  .news-card,
  .news-card--featured .news-card-body { grid-template-columns: 1fr; }
  .news-badge { flex-direction: row; gap: 0.4rem; width: fit-content; border-radius: 4px; padding: 0.3rem 0.6rem; }
}

/* ═══════════════════════════════════════════════════════════════
   WORK WITH US PAGE
═══════════════════════════════════════════════════════════════ */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--meta);
  line-height: 1.65;
}

.contact-card a {
  font-weight: 600;
}

.position-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.position-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.position-card p {
  font-size: 0.88rem;
  color: var(--meta);
  line-height: 1.65;
}

.position-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.55rem;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--slate);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.footer-icons {
  display: flex;
  gap: 1.25rem;
  font-size: 1.15rem;
}

.footer-icons a {
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
  text-decoration: none;
}

.footer-icons a:hover { color: #fff; }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 480px; }
}

@media (max-width: 640px) {
  .nav-name span { display: none; }
  .wrap, .page-content, .about-section,
  .features-section, .page-banner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .nav-inner { padding: 0 1.25rem; }
  .landing-hero-content { padding: 2rem 1.25rem; }
  .pi-card { grid-template-columns: 1fr; }
  .pi-photo { max-width: 160px; }
  .themes-showcase { padding: 1.4rem; }
}

@media (max-width: 440px) {
  .nav-name strong { font-size: 0.82rem; }
  .nav-link { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
}
