/* ================================================
   TAYO AKINYEMI — Personal Website
   ================================================
   Colors:
     Purple:     #5B3491
     Gold:       #C9992B
     Background: #FEFCF8
     Text:       #1A1A1A
     Muted:      #6B6878
     Border:     #E5DFF0
   Fonts:
     Headings:   Playfair Display (serif)
     Body:       Inter (sans-serif)
   ================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --purple:        #5B3491;
  --purple-dark:   #3E2268;
  --purple-light:  #EDE5F7;
  --gold:          #C9992B;
  --gold-light:    #FBF4E0;
  --bg:            #FFFFFF;
  --text:          #1A1A1A;
  --muted:         #6B6878;
  --border:        #E8E2F0;
  --white:         #FFFFFF;
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;
  --max-width:     1100px;
  --radius:        6px;
  --transition:    0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section--sm {
  padding: 3rem 0;
}

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

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav__logo:hover { color: var(--purple); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--purple);
}

/* Hamburger (mobile) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}

.btn--primary {
  background: var(--purple);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--purple-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
}

.btn--outline:hover {
  background: var(--purple-light);
  color: var(--purple);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
}

.btn--gold:hover {
  background: #b8881f;
  color: var(--white);
}

/* --- Hero (Homepage) --- */
.hero {
  background: var(--purple-dark);
  padding: 5rem 0 4rem;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 5rem;
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero__title {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.hero__tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn--hero-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn--hero-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.6);
}

.hero__photo {
  position: relative;
}

.hero__photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
}

.hero__photo::before {
  content: '';
  position: absolute;
  top: 12px;
  left: -12px;
  right: 12px;
  bottom: -12px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  z-index: 0;
}

.hero__photo img {
  position: relative;
  z-index: 1;
}

/* --- Section Labels --- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
  margin-bottom: 3rem;
}

/* --- Cards Grid --- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(91, 52, 145, 0.08);
  transform: translateY(-2px);
}

.card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card__link::after {
  content: '→';
  transition: transform var(--transition);
}

.card:hover .card__link::after {
  transform: translateX(4px);
}

/* --- Research Cards (2-col) --- */
.cards--research {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Newsletter CTA --- */
.newsletter {
  background: var(--purple);
  color: var(--white);
  padding: 4.5rem 0;
  text-align: center;
}

.newsletter__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.newsletter__title {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.newsletter__desc {
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 auto 2rem;
  font-size: 0.975rem;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.page-hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.page-hero__title {
  margin-bottom: 1rem;
}

.page-hero__intro {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.7;
}

/* --- Prose (long-form text) --- */
.prose {
  max-width: 720px;
}

.prose p {
  margin-bottom: 1.35rem;
  line-height: 1.8;
}

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.35rem;
}

.prose ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* --- Speaking List --- */
.speaking-list {
  margin-bottom: 2rem;
}

.speaking-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.speaking-item:last-child { border-bottom: none; }

.speaking-item__year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  padding-top: 0.15rem;
  letter-spacing: 0.05em;
}

.speaking-item__content {}

.speaking-item__event {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.speaking-item__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.speaking-item__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
}

/* --- Publications Grid --- */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.pub-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: all var(--transition);
}

.pub-card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 20px rgba(91, 52, 145, 0.08);
}

.pub-card__body {
  padding: 1.75rem;
}

.pub-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
  line-height: 1.3;
}

.pub-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pub-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.pub-card__link::after {
  content: '→';
  transition: transform var(--transition);
}

.pub-card:hover .pub-card__link::after {
  transform: translateX(4px);
}

/* --- Podcast Episodes --- */
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.episode {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  background: var(--white);
  transition: all var(--transition);
}

.episode:hover {
  border-color: var(--purple);
  box-shadow: 0 2px 12px rgba(91, 52, 145, 0.07);
}

.episode__meta {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.episode__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.35;
}

.episode__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple);
}

.episode__link::after {
  content: ' →';
}

/* --- Archive --- */
.archive-section {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.archive-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

.archive-header:hover {
  color: var(--purple);
}

.archive-header__icon {
  font-size: 1.2rem;
  color: var(--purple);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.archive-section.open .archive-header__icon {
  transform: rotate(180deg);
}

.archive-body {
  display: none;
  padding-bottom: 1.5rem;
}

.archive-section.open .archive-body {
  display: block;
}

.archive-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.archive-links li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.3rem;
  border-bottom: 1px solid var(--border);
}

.archive-links li:last-child {
  border-bottom: none;
}

.archive-links li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 0.52rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.archive-links li a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color var(--transition);
  line-height: 1.5;
  display: inline;
}

.archive-links li a:hover {
  color: var(--purple);
}

.archive-year {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 1.75rem 0 0.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.archive-year:first-child {
  margin-top: 0.25rem;
}

/* --- Connect Page --- */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.connect-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition);
}

.connect-link:hover {
  color: var(--purple);
}

.connect-link__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.connect-link__label {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.1rem;
}

.connect-link__value {
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--white);
  font-weight: 600;
}

.footer__copy {
  font-size: 0.8rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--gold);
}

/* --- Utility --- */
.text-muted { color: var(--muted); }
.text-purple { color: var(--purple); }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }

.note-box {
  background: var(--gold-light);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 3rem;
}

/* --- Loading State --- */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__photo {
    max-width: 380px;
  }

  .hero__photo::before {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .cards--research {
    grid-template-columns: 1fr 1fr;
  }

  .pub-grid {
    grid-template-columns: 1fr;
  }

  .connect-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .nav__links.open {
    display: flex;
  }

  .nav {
    position: relative;
  }

  .nav__toggle {
    display: flex;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .cards--research {
    grid-template-columns: 1fr;
  }

  .speaking-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
