/* ===================================================
   CARE for Yale — Editorial Campaign Site
   =================================================== */

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

:root {
  --navy: #2e2a6e;
  --navy-dark: #1f1c52;
  --navy-deeper: #18153f;
  --accent: #9b8ec4;
  --accent-pink: #e8a0b8;
  --bg: #faf5f7;
  --bg-alt: #f0eaf4;
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-light: #6b6b6b;
  --border: #e4dae2;
  --border-light: #ede6ec;
  --serif: 'Source Serif 4', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Layout --- */

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 680px;
}

/* --- Navigation --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
}

/* --- Hero --- */

.hero {
  position: relative;
  color: #ffffff;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(31, 28, 82, 0.45) 0%,
    rgba(31, 28, 82, 0.18) 50%,
    rgba(31, 28, 82, 0.05) 100%
  );
}

.hero-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8%;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 10rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-names {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* --- Intro --- */

.intro {
  padding: 80px 0 64px;
}

.intro h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  color: var(--navy);
}

.intro p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.intro p:last-child {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 500;
}

/* --- CARE Tabs --- */

.care-tabs {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.care-tabs-inner {
  display: flex;
  justify-content: center;
  gap: 0;
}

.care-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.care-tab:hover {
  border-bottom-color: var(--accent);
}

.care-tab-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1;
}

.care-tab-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.care-tab:hover .care-tab-label {
  color: var(--text);
}

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

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.section-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

.section-lede {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 48px;
}

/* --- Policy Items --- */

.policy-list {
  display: flex;
  flex-direction: column;
}

.policy {
  padding: 32px 0;
  border-top: 1px solid var(--border-light);
}

.policy:last-child {
  padding-bottom: 0;
}

.policy h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.policy p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 720px;
}

/* --- Candidates --- */

.candidates-heading {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 48px;
}

.candidates-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.candidate {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.candidate-photo {
  overflow: hidden;
  border-radius: 6px;
  width: 280px;
  height: 280px;
  flex-shrink: 0;
}

.candidate-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.candidate-bio h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 4px;
}

.candidate-details {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.candidate-bio p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.candidate-bio p:last-child {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 500;
}


/* --- Footer --- */

.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-contact a {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--navy);
}

.footer-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

/* --- Responsive --- */

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 20px;
    gap: 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    padding: 20px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .care-tabs-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .care-tab {
    padding: 14px 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    gap: 12px;
  }

  .section-letter {
    font-size: 2.25rem;
  }

  .section-head h2 {
    font-size: 1.4rem;
  }

  .candidate {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .candidate-photo {
    width: 240px;
    height: 240px;
  }

  .candidates-heading {
    font-size: 1.6rem;
    margin-bottom: 36px;
  }
}
