
:root {
  --cream: #fbf7f0;
  --paper: #fffdf9;
  --ink: #2a2220;
  --muted: #6c5e58;
  --accent: #9b4d3a;
  --gold: #c9a34e;
  --teal: #0e4a54;
  --soft-teal: #dfecee;
  --line: rgba(42, 34, 32, 0.14);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

/* Overall deck */
.reveal {
  font-family: Aptos, Segoe UI, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

.reveal .slides section {
  text-align: left;
  padding: 48px 64px;
  box-sizing: border-box;
}

/* Typography */
.reveal h1,
.reveal h2 {
  font-family: Aptos Display, Segoe UI, Helvetica, Arial, sans-serif;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.reveal h1 {
  font-size: 2.55em;
  margin-bottom: 0.22em;
}

.reveal h2 {
  font-size: 1.55em;
  margin-bottom: 0.35em;
}

.reveal p,
.reveal li {
  font-size: 0.72em;
  line-height: 1.28;
}

.reveal .kicker {
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.38em;
  letter-spacing: 0.15em;
  font-weight: 800;
  margin-bottom: 0.45em;
}

.reveal .sub {
  color: var(--muted);
  font-size: 0.58em;
  margin-top: -0.25em;
  margin-bottom: 0.7em;
}

.reveal .caption {
  color: var(--muted);
  font-style: italic;
  font-size: 0.38em;
  margin-top: 0.5em;
  line-height: 1.2;
}

.reveal .small {
  font-size: 0.56em;
  color: var(--muted);
  line-height: 1.25;
}

.reveal .accent {
  color: var(--accent);
  font-weight: 800;
}

.reveal .teal {
  color: var(--teal);
  font-weight: 800;
}

.reveal .gold {
  color: var(--gold);
  font-weight: 800;
}

/* Slide backgrounds */
.reveal section.slide {
  background: linear-gradient(135deg, var(--cream) 0%, var(--paper) 100%);
}

.reveal section.dark {
  background: radial-gradient(circle at top left, #3b302d 0%, var(--ink) 58%);
  color: #f5ebdd;
}

.reveal section.dark h1,
.reveal section.dark h2 {
  color: white;
}

.reveal section.dark .kicker {
  color: var(--gold);
}

.reveal section.dark .gold {
  color: #e5c66f;
}

/* Images */
.reveal img {
  max-height: 74vh;
  max-width: 100%;
  object-fit: contain;
  box-shadow: var(--shadow);
  border: 2px solid white;
  border-radius: 12px;
}

/* Use this for the generated Ade portrait on white background */
.reveal img.portrait-clean,
.reveal img.no-shadow {
  box-shadow: none;
  border: none;
  border-radius: 0;
  background: transparent;
}

/* Use this for old family photos */
.reveal img.family-photo {
  border: 8px solid white;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
  border-radius: 6px;
}

/* Layouts */
.hero {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 1.35em;
  align-items: center;
}

.hero img {
  max-height: 78vh;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2em;
  align-items: center;
}

.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.9em;
  align-items: start;
}

.grid3 img {
  max-height: 48vh;
}

/* Card-like text block */
.card {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.75em 0.9em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

/* Pull quote / humor line */
.quote {
  font-family: Aptos Display, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 1.08em;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--accent);
  font-weight: 800;
  margin: 0.45em 0;
}

.quote::before {
  content: "“";
  color: var(--gold);
}

.quote::after {
  content: "”";
  color: var(--gold);
}

/* Big closing phrase */
.bigline {
  font-family: Aptos Display, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 1.25em;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Slightly more elegant final slide */
.closing {
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
}

.closing h1 {
  font-size: 2.65em;
}

.closing .gold {
  font-size: 0.9em;
  line-height: 1.22;
}

/* Notes are not visible in presentation mode */
.reveal aside.notes {
  display: none;
}


.reveal .slides section.photo-slide {
  text-align: center;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 64px;
  box-sizing: border-box;
}

.reveal .slides section.photo-slide h2 {
  text-align: center;
  width: 100%;
  margin-bottom: 0.45em;
}

.reveal img.main-photo {
  display: block;
  margin: 0 auto;
  max-height: 66vh;
  max-width: 72vw;
  object-fit: contain;
  box-shadow: none;
  border: none;
  border-radius: 0;
}

.reveal .slides section.photo-slide .caption {
  text-align: center;
  width: 100%;
  margin-top: 0.8em;
  font-size: 0.42em;
}

.reveal .slide-menu-button,
.reveal .hamburger {
  display: none !important;
}

/* Triptych slide: always keep three photos in one row */
.reveal .slides section.triptych-slide {
  text-align: center;
  padding: 44px 64px 34px 64px;
  box-sizing: border-box;
}

.reveal .slides section.triptych-slide h2 {
  text-align: center;
  margin-bottom: 0.45em;
  font-size: 1.32em;
  line-height: 1.05;
}

/* The actual 3-column layout */
.reveal .slides section.triptych-slide .photo-triptych {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

/* Critical Quarto/Pandoc fix: images may be wrapped in <p> */
.reveal .slides section.triptych-slide .photo-triptych p {
  display: contents;
}

/* Each image stays inside its third of the slide */
.reveal .slides section.triptych-slide .photo-triptych img {
  display: block;
  width: 100%;
  height: 540px;
  max-height: 58vh;
  object-fit: contain;
  margin: 0;
  box-sizing: border-box;
}

/* Family photo styling inside the triptych */
.reveal .slides section.triptych-slide .photo-triptych img.family-photo {
  border: 6px solid white;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
