/* THEME: Warm Hearth
 * Sage, terracotta, and warm cream — cozy, grounded, familiar.
 * Meant to feel like a comforting conversation rather than a tech briefing.
 */

/* Self-hosted fonts (downloaded from Google Fonts) — no internet dependency
   at presentation time. See assets/fonts/. */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/lora-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/lora-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/lora-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-variable.woff2") format("woff2");
}

/* ===========================================
   CSS VARIABLES
   =========================================== */
:root {
  --background-color: #FBF6EC;
  --section-divider-bg: #F2E4CC;

  --heading-font: "Lora", Georgia, serif;
  --body-font: "Nunito Sans", Helvetica, sans-serif;
  --base-font-size: 32px;
  --text-size: 16pt;
  --h1-size: 48pt;
  --h2-size: 36pt;
  --h3-size: 22pt;
  --footnote-size: 11pt;

  --primary-color: #C1694F;   /* terracotta */
  --secondary-color: #7C8F63; /* sage */
  --text-color: #3B332A;
  --muted-color: #7A6F5C;
  --line-color: #C1694F;

  --slide-padding: 60px;
  --slide-padding-top: 40px;
  --content-gap: 30px;
  --box-radius: 10px;
}

/* ===========================================
   BASE STYLES - Override reveal.js defaults
   =========================================== */

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

.reveal strong,
.reveal b {
  font-weight: 700;
}

.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(--text-color);
  font-weight: 600;
  line-height: 1.2;
}

.reveal h1 { font-size: var(--h1-size); color: var(--primary-color); }
.reveal h2 {
  font-size: var(--h2-size);
  margin-bottom: 0;
}
.reveal h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 4px;
  margin-top: 12px;
}
.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.55;
}

/* ===========================================
   LISTS
   =========================================== */

.reveal ul {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.reveal ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
}

/* Default dot bullet */
.reveal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
}

.reveal ul ul li::before {
  background: var(--secondary-color);
  width: 6px;
  height: 6px;
}

/* Icon bullets (Font Awesome) replace the dot when present */
.reveal ul li i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
  position: absolute;
  left: 0;
  top: 0.15em;
}
.reveal ul li:has(> i)::before {
  content: none;
}

/* Prevent double-sizing for nested elements */
.reveal blockquote p {
  font-size: inherit;
}

/* ===========================================
   SLIDE LAYOUT
   =========================================== */

.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: 15px;
  left: var(--slide-padding);
  right: var(--slide-padding);
  font-size: var(--footnote-size);
  color: var(--muted-color);
}

/* ===========================================
   SECTION DIVIDERS - Centered title slides
   =========================================== */

.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: 56pt;
  text-align: center;
}

.reveal .slides section.section-divider p {
  font-size: 20pt;
  color: var(--muted-color);
  font-style: italic;
}

/* ===========================================
   BLOCKQUOTES
   =========================================== */

.reveal blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 10px 0 10px 24px;
  margin: 20px 0;
  font-style: italic;
  font-size: 22pt;
  background: none;
  box-shadow: none;
  width: 100%;
  max-width: none;
}

.reveal blockquote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 14pt;
  color: var(--muted-color);
}

/* ===========================================
   CARDS - Column and stat components
   =========================================== */

.col-card {
  background: #FFFFFF;
  border: 1px solid #E9DCC4;
  border-top: 4px solid var(--secondary-color);
  border-radius: var(--box-radius);
  padding: 24px 26px;
}
.col-card h3 { color: var(--secondary-color); margin: 0 0 10px 0; }
.col-card p { margin: 0; }

.stat-card {
  background: #FFFFFF;
  border-radius: var(--box-radius);
  padding: 26px 20px;
  text-align: center;
  border-bottom: 4px solid var(--primary-color);
}
.stat-number { font-family: var(--heading-font); font-size: 40pt; font-weight: 700; color: var(--primary-color); }
.stat-label { font-size: 13pt; color: var(--muted-color); margin-top: 6px; }

/* ===========================================
   TEXT SIZE UTILITIES
   =========================================== */

.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-muted { color: var(--muted-color) !important; }
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.1em; }
.font-light { font-weight: 300; }
.font-bold { font-weight: 700; }

/* ===========================================
   MERMAID DIAGRAMS
   =========================================== */

.reveal pre.mermaid {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  text-align: center;
  width: 100%;
  overflow: visible;
}

.reveal pre.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* ===========================================
   HERO STATEMENT SLIDES (big single-statement slides)
   =========================================== */
.reveal .slides section.hero-statement {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
}

.hero-statement p {
  font-size: 34pt;
  line-height: 1.45;
  max-width: 960px;
  color: var(--text-color);
  font-family: var(--heading-font);
  font-weight: 600;
}

.hero-statement strong {
  color: var(--primary-color);
}

/* ===========================================
   QUOTE SLIDES
   =========================================== */
.quote-slide {
  flex: 1;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  align-items: center;
}

.quote-slide--reverse {
  grid-template-columns: 2fr 3fr;
}

.quote-slide--reverse > div:first-child { order: 2; }
.quote-slide--reverse > div:last-child { order: 1; }

.quote-slide blockquote {
  font-size: 29pt;
}

.quote-slide .attribution {
  font-size: 17pt;
  color: var(--muted-color);
  margin-top: 16px;
  font-style: normal;
  padding-left: 24px;
}

.quote-slide .attribution em { font-style: italic; }

.quote-portrait-wrap {
  display: flex;
  justify-content: center;
}

.quote-portrait {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.85) sepia(0.15) contrast(1.05);
  border: 6px solid #FFFFFF;
  box-shadow: 0 10px 26px rgba(59, 51, 42, 0.28);
}

.quote-logo-frame {
  background: #FFFFFF;
  border: 1px solid #E9DCC4;
  border-radius: var(--box-radius);
  padding: 44px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(59, 51, 42, 0.14);
}

.quote-logo-frame img { width: 100%; height: auto; display: block; }

.quote-slide--text-only {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
}

.quote-slide--text-only blockquote {
  font-size: 32pt;
  border-left: none;
  max-width: 960px;
  text-align: center;
  padding: 0;
}

.quote-slide--text-only .attribution {
  text-align: center;
  padding-left: 0;
}

/* ===========================================
   LLM PIPELINE DIAGRAM
   =========================================== */
.llm-pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 10px auto 0;
  width: 100%;
  max-width: 880px;
}

.pipeline-step {
  background: #FFFFFF;
  border: 1px solid #E9DCC4;
  border-radius: 8px;
  padding: 16px 28px;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 19pt;
  transition: background 0.4s, border-color 0.4s;
}

.pipeline-step.active {
  background: rgba(193, 105, 79, 0.1);
  border-color: var(--primary-color);
}

.pipeline-step .step-label {
  font-family: var(--heading-font);
  font-weight: 700;
  min-width: 220px;
  color: var(--primary-color);
  font-size: 20pt;
}

.pipeline-step.active .step-label { color: var(--primary-color); }

.pipeline-step .step-content {
  flex: 1;
  line-height: 1.4;
  color: var(--text-color);
}

.pipeline-step .step-content.small-text {
  font-size: 15pt;
  color: var(--muted-color);
}

.pipeline-arrow {
  font-size: 20pt;
  opacity: 0.5;
  line-height: 1;
  margin: 2px 0;
  color: var(--muted-color);
}

.pipeline-caption {
  font-size: 16pt;
  color: var(--muted-color);
  margin-top: 18px;
  text-align: center;
}

.token-display {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.token-display.small { font-size: 0.85em; }

.token {
  border-radius: 4px;
  padding: 3px 10px;
  font-family: monospace;
  font-size: 18pt;
  border: 1px solid;
}

.token.t1 { border-color: #C1694F; background: rgba(193, 105, 79, 0.15); color: #8A4A37; }
.token.t2 { border-color: #D4A24C; background: rgba(212, 164, 76, 0.18); color: #8A6A2A; }
.token.t3 { border-color: #7C8F63; background: rgba(124, 143, 99, 0.18); color: #55643F; }
.token.t4 { border-color: #8B5E4A; background: rgba(139, 94, 74, 0.15); color: #6B4636; }

/* ===========================================
   IMPLICATIONS GRID
   =========================================== */
.implications-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px 24px;
  flex: 1;
  margin-bottom: 14px;
}

.implication-item {
  background: #FFFFFF;
  border: 1px solid #E9DCC4;
  border-top: 4px solid var(--primary-color);
  border-radius: var(--box-radius);
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.implication-item h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px 0;
  font-size: 16.5pt;
}

.implication-item h3 i {
  color: var(--primary-color);
  font-size: 17pt;
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.implication-item p { margin: 0; font-size: 13.5pt; line-height: 1.4; }

/* ===========================================
   PRINCIPLES LIST (animated, staggered)
   =========================================== */
.principles-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  justify-content: center;
}

.principle-row {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #FFFFFF;
  border: 1px solid #E9DCC4;
  border-radius: var(--box-radius);
  padding: 14px 30px;
  box-shadow: 0 4px 14px rgba(59, 51, 42, 0.08);
}

.principle-row:nth-child(odd) { margin-right: 70px; }
.principle-row:nth-child(even) { margin-left: 70px; }

.principle-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #FFFFFF;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 20pt;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principle-row p { margin: 0; font-size: 16pt; }

/* ===========================================
   DO'S AND DON'TS CARDS
   =========================================== */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  flex: 1;
}

.dd-card {
  border-radius: var(--box-radius);
  background: #FFFFFF;
  border: 1px solid #E9DCC4;
  border-top: 5px solid var(--secondary-color);
  padding: 30px 34px;
}

.dd-card.dont { border-top-color: var(--primary-color); }

.dd-card h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22pt;
  margin: 0 0 20px 0;
}

.dd-card.do h3 { color: var(--secondary-color); }
.dd-card.dont h3 { color: var(--primary-color); }

.dd-card ul { margin: 0; }
.dd-card li { font-size: 17pt; line-height: 1.45; margin-bottom: 16px; }

/* ===========================================
   IMPACT / BEARING CARD GRIDS
   =========================================== */
.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
}

.impact-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.impact-grid .col-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17pt;
}

.impact-grid .col-card p { font-size: 13.5pt; }

.impact-grid:not(.cols-3) {
  grid-template-rows: repeat(2, 1fr);
  margin-bottom: 14px;
}

.impact-grid:not(.cols-3) .col-card {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.impact-grid:not(.cols-3) .col-card h3 {
  font-size: 20pt;
  margin-bottom: 12px;
}

.impact-grid:not(.cols-3) .col-card p {
  font-size: 16pt;
  line-height: 1.45;
}

/* ===========================================
   BEARING ON MINISTRY (full-width rows)
   =========================================== */
.bearing-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.bearing-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 34px;
  background: #FFFFFF;
  border: 1px solid #E9DCC4;
  border-left: 6px solid var(--secondary-color);
  border-radius: var(--box-radius);
  padding: 24px 44px;
}

.bearing-icon {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26pt;
}

.bearing-row h3 {
  margin: 0 0 8px 0;
  font-size: 22pt;
  color: var(--secondary-color);
}

.bearing-row p {
  margin: 0;
  font-size: 17pt;
  line-height: 1.45;
}

/* ===========================================
   CONCLUSION LIST
   =========================================== */
.conclusion-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.conclusion-item { display: flex; gap: 24px; align-items: flex-start; }

.conclusion-item .num {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 30pt;
  color: var(--primary-color);
  min-width: 56px;
}

.conclusion-item p { font-size: 20pt; margin: 0; line-height: 1.45; }

/* ===========================================
   Q+A / REFERENCE SLIDES
   =========================================== */
.qa-placeholder {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid #E9DCC4;
  background: #FFFFFF;
  border-radius: var(--box-radius);
  padding: 22px 44px;
  color: var(--muted-color);
  font-size: 15pt;
}

.qa-placeholder i {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22pt;
}

.qa-placeholder a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 24pt;
}

.reference-list { list-style: none; padding: 0; margin: 0; }
.reference-list li { font-size: 13pt; margin-bottom: 12px; }
.reference-list a { color: var(--primary-color); }

/* ===========================================
   PRINT / PDF EXPORT
   reveal.js forces `display:block !important` and
   `padding:0 !important` on every <section> while
   printing (html.reveal-print). These print-only
   rules match or exceed that specificity so our
   slide padding and flex-centered layouts survive
   the PDF export (?print-pdf).
   =========================================== */
html.reveal-print .reveal .slides section {
  padding: var(--slide-padding-top) var(--slide-padding) var(--slide-padding) var(--slide-padding) !important;
  box-sizing: border-box !important;
}

html.reveal-print .reveal .slides section.section-divider,
html.reveal-print .reveal .slides section.hero-statement {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}
