/*
Theme Name: Rachel Schnepper
Theme URI: https://rachelschnepper.com
Author: Rachel N. Schnepper
Description: Personal portfolio theme for Rachel N. Schnepper, Ph.D.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: rachel-schnepper
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --teal-600:  #0d9488;
  --teal-500:  #14b8a6;
  --teal-400:  #2dd4bf;
  --teal-100:  #ccfbf1;
  --teal-50:   #f0fdfa;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--slate-800);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.2s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(15,23,42,0.08); }

.nav-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-900);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-name span { color: var(--teal-600); }

/* ─── HERO ────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 10vw;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  white-space: nowrap;
}
.hero-name em {
  font-style: italic;
  color: var(--teal-600);
}

.hero-divider {
  width: 3rem;
  height: 3px;
  background: var(--teal-500);
  margin-bottom: 1.75rem;
  border-radius: 2px;
}

.hero-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--slate-700);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.hero-institution {
  font-size: 0.95rem;
  color: var(--slate-500);
  margin-bottom: 2.5rem;
}

.hero-tagline {
  font-size: 0.9rem;
  color: var(--slate-500);
  font-style: italic;
  line-height: 1.6;
  max-width: 38ch;
  padding-left: 1rem;
  border-left: 2px solid var(--teal-400);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--teal-600);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--slate-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13,148,136,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--slate-700);
  border: 1.5px solid var(--slate-200);
}
.btn-ghost:hover {
  border-color: var(--teal-500);
  color: var(--teal-600);
}

/* ─── FEATURE STRIP ───────────────────────────────── */
#features {
  background: var(--slate-900);
  padding: 4rem 10vw;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  background: var(--slate-900);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--slate-800); }

.feature-icon {
  font-size: 1.25rem;
  color: var(--teal-500);
  margin-bottom: 0.9rem;
  display: block;
}

.feature-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--slate-400);
  line-height: 1.6;
}

/* ─── SECTIONS SHARED ─────────────────────────────── */
section {
  padding: 6rem 10vw;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--slate-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 3rem;
}

/* ─── ABOUT ───────────────────────────────────────── */
#about {
  background: var(--slate-50);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.competencies {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.competency-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.competency-card:hover {
  border-color: var(--teal-400);
  box-shadow: 0 4px 20px rgba(13,148,136,0.08);
}
.competency-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--teal-500);
  border-radius: 3px 0 0 3px;
}

.competency-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.competency-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-800);
  margin-bottom: 0.35rem;
}

.competency-desc {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.6;
}

/* ─── PRESENTATIONS ───────────────────────────────── */
#presentations {
  background: var(--white);
}

.presentations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.talk-card {
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 1.75rem;
  position: relative;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.talk-card:hover {
  border-color: var(--teal-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,148,136,0.1);
}

.talk-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: var(--teal-50);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  width: fit-content;
}

.talk-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-800);
  line-height: 1.4;
}

.talk-number {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--slate-200);
  line-height: 1;
}

.talk-meta {
  font-size: 0.775rem;
  color: var(--slate-400);
  line-height: 1.4;
  margin-top: auto;
  padding-top: 0.25rem;
}

/* ─── CONTACT ─────────────────────────────────────── */
#contact {
  background: var(--slate-900);
  text-align: center;
  padding: 7rem 10vw;
}
#contact .section-label { color: var(--teal-400); }
#contact .section-heading { color: var(--white); margin-bottom: 1rem; }

.contact-sub {
  font-size: 1rem;
  color: var(--slate-400);
  margin-bottom: 2.5rem;
  max-width: 45ch;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── FOOTER ──────────────────────────────────────── */
.site-footer {
  background: var(--slate-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--slate-500);
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .hero-left { padding: 7rem 2rem 4rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  #features { padding: 3rem 2rem; }

  #about { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 2rem; }
  section { padding: 4rem 2rem; }
  nav { padding: 1rem 1.5rem; }
}

@media (max-width: 600px) {
  .hero-name { white-space: normal; }
  .features-grid { grid-template-columns: 1fr; }
  .presentations-grid { grid-template-columns: 1fr; }
}
