/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette */
  --color-navy:       #1a2744;
  --color-navy-mid:   #2e4a80;
  --color-gold:       #c8a951;
  --color-gold-light: #f5edcc;
  --color-bg:         #fafafa;
  --color-bg-alt:     #f2f4f8;
  --color-surface:    #ffffff;
  --color-border:     #dde2ec;
  --color-text:       #1c1f2e;
  --color-muted:      #5a6280;
  --color-link:       #2e4a80;
  --color-link-hover: #1a2744;

  /* Typography */
  --font-serif:  'Merriweather', Georgia, serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-max: 1100px;
  --container-narrow: 720px;
  --radius: 6px;

  /* Shadows */
  --shadow-card: 0 2px 8px rgba(26, 39, 68, 0.08);
  --shadow-card-hover: 0 6px 20px rgba(26, 39, 68, 0.14);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

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

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

a { color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-link-hover); }

ul, ol { list-style: none; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-2xl);
}

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

.section__inner--narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: var(--space-md);
}

.section__title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--color-gold);
  position: absolute;
  bottom: 0;
  left: 0;
}

.section__lead {
  color: var(--color-muted);
  font-size: 1.05rem;
  margin-bottom: var(--space-xl);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  box-shadow: 0 2px 12px rgba(26, 39, 68, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.nav__brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav__brand:hover { color: var(--color-gold); }

.nav__links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav__link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--color-gold); }

/* Mobile hamburger — hidden by default on desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
  color: #fff;
  padding-block: var(--space-xl);
  text-align: center;
}

.hero__inner { max-width: 760px; margin-inline: auto; }

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-navy);
  border: 2px solid var(--color-gold);
}
.btn--primary:hover {
  background: #b8982f;
  border-color: #b8982f;
  color: var(--color-navy);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline:hover {
  border-color: #fff;
  color: #fff;
}

/* ============================================================
   PROSE (About body)
   ============================================================ */
.prose {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text);
}
.prose p     { margin-bottom: var(--space-md); }
.prose ul    { list-style: disc; padding-left: 1.5rem; margin-bottom: var(--space-md); }
.prose ul li { margin-bottom: var(--space-sm); }
.prose strong { font-weight: 600; color: var(--color-navy); }

/* ============================================================
   PEOPLE GRID
   ============================================================ */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.person-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.person-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.person-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.person-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card__initials {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
}

.person-card__body { display: flex; flex-direction: column; gap: 0.3rem; }

.person-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
}
.person-card__name a { text-decoration: none; color: inherit; }
.person-card__name a:hover { color: var(--color-navy-mid); text-decoration: underline; }

.person-card__role {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-navy-mid);
}

.person-card__affiliation {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.person-card__bio {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-top: var(--space-sm);
}

.person-card__email {
  font-size: 0.8rem;
  margin-top: auto;
  color: var(--color-link);
  word-break: break-all;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s;
}
.badge:hover { opacity: 0.8; }

.badge--slides    { background: #e8eaf6; color: #3949ab; border-color: #9fa8da; }
.badge--recording { background: #fce4ec; color: #c62828; border-color: #ef9a9a; }
.badge--register  { background: var(--color-gold-light); color: #7a5c00; border-color: var(--color-gold); }

/* ============================================================
   EVENT LIST
   ============================================================ */
.event-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.event-list__empty {
  color: var(--color-muted);
  font-style: italic;
}

.event-item {
  display: flex;
  gap: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.event-item--upcoming {
  border-left: 4px solid var(--color-gold);
}

.event-item--past {
  border-left: 4px solid var(--color-border);
}

.event-item__date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 3.2rem;
  text-align: center;
  padding-top: 0.1rem;
}

.event-item__date-block--muted .event-item__day,
.event-item__date-block--muted .event-item__month {
  opacity: 0.55;
}

.event-item__day {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-navy);
}

.event-item__month {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.event-item__year {
  font-size: 0.7rem;
  color: var(--color-muted);
  margin-top: 0.1rem;
}

.event-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.event-item__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.4;
}

.event-item__speaker {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy-mid);
}

.event-item__affil {
  font-weight: 400;
  color: var(--color-muted);
}

.event-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-md);
  font-size: 0.85rem;
  color: var(--color-muted);
}

.event-item__meta-item::before {
  content: '· ';
  color: var(--color-gold);
  font-weight: 700;
}
.event-item__meta-item:first-child::before { content: ''; }

.event-item__abstract {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-top: var(--space-sm);
}

.event-item__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* ============================================================
   TALK SUB-LIST (within an event)
   ============================================================ */
.talk-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.talk-item {
  padding: 0.6rem var(--space-md);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--color-surface);
}
.talk-item:last-child { border-bottom: none; }
.event-item--past .talk-item { background: var(--color-bg); }

.talk-item__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem var(--space-md);
}

.talk-item__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
}

.talk-item__speaker {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.talk-item__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: 0.3rem;
}

/* ============================================================
   PARTNER LOGOS
   ============================================================ */
.partner-logos {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.partner-logos__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
}

.partner-logos__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  min-width: 7rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.partner-logo:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--color-navy-mid);
}

.partner-logo img {
  max-height: 2.5rem;
  max-width: 8rem;
  width: auto;
  object-fit: contain;
}

.partner-logo__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: center;
}

.partner-logo--placeholder {
  background: var(--color-bg-alt);
  border-style: dashed;
  width: 7rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.65);
  padding-block: var(--space-lg);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.85rem;
}

.site-footer a { color: var(--color-gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 680px) {
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    background: var(--color-navy);
    padding: var(--space-md) var(--space-lg);
    gap: var(--space-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }
  .site-header { position: relative; }

  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 260px; justify-content: center; }

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

  .event-item {
    flex-direction: column;
    gap: var(--space-md);
  }
  .event-item__date-block {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-sm);
    min-width: unset;
  }
  .event-item__day   { font-size: 1.3rem; }
  .event-item__year  { margin-top: 0; }

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

@media (max-width: 480px) {
  .container { padding-inline: var(--space-md); }
}
