@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background-color: #F8F5F0;
  --section-divider-bg: #1C2833;

  --heading-font: "Playfair Display", Georgia, serif;
  --body-font: "Inter", Helvetica, sans-serif;
  --base-font-size: 32px;
  --text-size: 16pt;
  --h1-size: 44pt;
  --h2-size: 32pt;
  --h3-size: 22pt;
  --footnote-size: 11pt;

  --primary-color: #1C2833;
  --secondary-color: #997929;
  --accent-color: #5D1D2E;
  --text-color: #1C2833;
  --muted-color: #6B7280;
  --line-color: #C9C2B5;

  --slide-padding: 70px;
  --slide-padding-top: 50px;
  --content-gap: 30px;

  --box-radius: 4px;
}

.reveal {
  font-family: var(--body-font);
  font-size: var(--base-font-size);
}

.reveal strong, .reveal b { font-weight: 600; color: var(--primary-color); }

.reveal-viewport { background-color: var(--background-color); }
.reveal-viewport.is-section-divider .slide-background.present {
  background-color: var(--section-divider-bg) !important;
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
  font-family: var(--heading-font);
  text-transform: none;
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.reveal h1 { font-size: var(--h1-size); }
.reveal h2 { font-size: var(--h2-size); margin-bottom: 0; }
.reveal h3 { font-size: var(--h3-size); }

.reveal p, .reveal li, .reveal td, .reveal th, .reveal blockquote {
  font-size: var(--text-size);
  color: var(--text-color);
  line-height: 1.5;
}

.reveal ul { list-style: none; padding-left: 0; margin: 15px 0; }
.reveal ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.reveal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--secondary-color);
  border-radius: 50%;
}
.reveal ul ul li::before {
  background: var(--muted-color);
  width: 5px;
  height: 5px;
}

.reveal blockquote p { font-size: inherit; }

.reveal .slides section {
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  padding: var(--slide-padding-top) var(--slide-padding) var(--slide-padding) var(--slide-padding) !important;
  box-sizing: border-box;
  text-align: left;
}
.reveal .slides section.stack { padding: 0 !important; }
.reveal .slides section > .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--content-gap);
  text-align: left;
}
.reveal .slides section > .footnote {
  position: absolute;
  bottom: 18px;
  left: var(--slide-padding);
  right: var(--slide-padding);
  font-size: var(--footnote-size);
  color: var(--muted-color);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Section dividers — dark navy backdrop, gold accent */
.reveal .slides section.section-divider {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
}
.reveal .slides section.section-divider h1 {
  font-size: 64pt;
  text-align: center;
  color: #F8F5F0;
  letter-spacing: 0.02em;
}
.reveal .slides section.section-divider h2 {
  font-size: 28pt;
  text-align: center;
  color: var(--secondary-color);
  font-family: var(--body-font);
  font-weight: 400;
  margin-top: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.reveal .slides section.section-divider p {
  font-size: 18pt;
  color: rgba(248, 245, 240, 0.75);
  margin-top: 24px;
  font-style: italic;
}
.reveal .slides section.section-divider .eyebrow {
  font-size: 11pt;
  color: var(--secondary-color);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--body-font);
}

/* Title slide rule — accent gold */
.reveal .slides section > h1,
.reveal .slides section > h2 {
  flex-shrink: 0;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-color);
  position: relative;
}
.reveal .slides section.section-divider > h1,
.reveal .slides section.section-divider > h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.text-lg { font-size: 18pt !important; }
.text-xl { font-size: 20pt !important; }
.text-2xl { font-size: 24pt !important; }
.text-3xl { font-size: 28pt !important; }
.text-4xl { font-size: 32pt !important; }
.text-5xl { font-size: 40pt !important; }

.text-muted { color: var(--muted-color) !important; }
.text-accent { color: var(--secondary-color) !important; }
.text-burgundy { color: var(--accent-color) !important; }
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.12em; }
.font-light { font-weight: 300; }
.font-bold { font-weight: 600; }
.font-serif { font-family: var(--heading-font); }

.eyebrow {
  font-size: 11pt;
  color: var(--secondary-color);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}

.reveal blockquote {
  border-left: 3px solid var(--secondary-color);
  padding-left: 24px;
  margin: 20px 0;
  font-style: italic;
  background: none;
  box-shadow: none;
  width: 100%;
  max-width: none;
  font-family: var(--heading-font);
}
.reveal blockquote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--body-font);
  color: var(--muted-color);
  font-size: 13pt;
}

/* Custom components */
.card {
  background: #FFFFFF;
  border: 1px solid var(--line-color);
  border-radius: var(--box-radius);
  padding: 22px 24px;
}
.card .card-title {
  font-family: var(--heading-font);
  font-size: 20pt;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: 600;
}
.card .card-eyebrow {
  font-size: 10pt;
  color: var(--secondary-color);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.card p, .card li { font-size: 14pt; }

.stat {
  text-align: center;
}
.stat .stat-number {
  font-family: var(--heading-font);
  font-size: 56pt;
  color: var(--secondary-color);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .stat-label {
  font-size: 14pt;
  color: var(--muted-color);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 8px;
}

.pill {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 999px;
  font-size: 11pt;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.divider-line {
  width: 60px;
  height: 2px;
  background: var(--secondary-color);
  margin: 14px 0 20px 0;
}

.timeline-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-color);
}
.timeline-row:last-child { border-bottom: none; }
.timeline-row .timeline-when {
  font-family: var(--heading-font);
  font-size: 22pt;
  color: var(--secondary-color);
  font-weight: 600;
}
.timeline-row .timeline-what {
  font-size: 16pt;
  color: var(--text-color);
}
