/* Presentation decks: a 16:9 stage, scaled to fit any screen. */

:root {
  --bg: #0f0d0b;
  --stage: #17130f;
  --ink: #f3ece0;
  --muted: #b8ab97;
  --gold: #d6aa4c;
  --accent: #c8604f;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --scale: 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

/* The deck is laid out at 1600 x 900 and scaled with --scale from deck.js. */
.deck {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1600px;
  height: 900px;
  transform: translate(-50%, -50%) scale(var(--scale));
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  padding: 90px 120px;
  background:
    radial-gradient(ellipse at 85% 0%, rgb(214 170 76 / 0.12), transparent 55%),
    linear-gradient(160deg, #1d1813, var(--stage) 60%);
  border-radius: 6px;
  align-content: center;
  animation: enter 0.45s ease both;
}

.slide[hidden] {
  display: none;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    animation: none;
  }
}

.slide-body > :first-child {
  margin-top: 0;
}

.slide h1,
.slide h2,
.slide h3 {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.slide h1 {
  font-size: 104px;
}

.slide h2 {
  font-size: 72px;
}

.slide h3 {
  margin-bottom: 18px;
  color: var(--gold);
  font: 600 26px/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.slide p,
.slide li {
  font-size: 36px;
  line-height: 1.4;
}

.slide p {
  max-width: 1200px;
  margin: 0 0 24px;
  color: var(--ink);
}

.slide ul,
.slide ol {
  display: grid;
  gap: 18px;
  margin: 0;
  padding-left: 40px;
}

.slide li::marker {
  color: var(--gold);
}

.slide strong {
  color: var(--gold);
  font-weight: 600;
}

.slide em {
  font-family: var(--serif);
  font-size: 1.1em;
}

.slide a {
  color: inherit;
  text-decoration-color: var(--gold);
}

.slide blockquote {
  margin: 0;
  padding-left: 48px;
  border-left: 6px solid var(--gold);
}

.slide blockquote p {
  font: italic 52px/1.3 var(--serif);
}

.slide blockquote + p {
  color: var(--muted);
  font-size: 28px;
}

/* Title slide */
.slide.is-title {
  align-content: end;
  padding-bottom: 120px;
}

.slide.is-title h1 {
  font-size: 128px;
}

.slide.is-title p {
  color: var(--muted);
  font: italic 44px/1.3 var(--serif);
}

/* Section divider */
.slide.is-section {
  align-content: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 40%, #2a1f15, var(--bg) 70%);
}

.slide.is-section h2 {
  font-size: 110px;
}

.slide.is-section p {
  margin-inline: auto;
  color: var(--muted);
}

/* Quote slide */
.slide.is-quote {
  padding-inline: 180px;
}

/* Full-bleed image with a caption panel */
.slide.is-image {
  padding: 0;
  align-content: end;
}

.slide.is-image .slide-art {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #000;
}

.slide.is-image .slide-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide.is-image .slide-body {
  position: relative;
  padding: 120px 120px 64px;
  background: linear-gradient(to top, rgb(8 6 4 / 0.9), rgb(8 6 4 / 0.55) 60%, transparent);
}

.slide.is-image .slide-body h2 {
  margin-bottom: 12px;
  font-size: 60px;
}

.slide.is-image .slide-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 28px;
}

/* Image beside text */
.slide.is-split {
  grid-template-columns: 640px minmax(0, 1fr);
  gap: 80px;
  align-items: center;
  padding: 0 120px 0 0;
}

.slide.is-split .slide-art {
  height: 900px;
  margin: 0;
  background: #000;
}

.slide.is-split .slide-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.is-split h2 {
  font-size: 62px;
}

.slide.is-split p,
.slide.is-split li {
  font-size: 32px;
}

/* Dense content: more items at a smaller size */
.slide.is-dense p,
.slide.is-dense li {
  font-size: 29px;
}

.slide.is-dense ul {
  gap: 12px;
}

/* Two columns of list items */
.slide.is-columns ul {
  grid-template-columns: 1fr 1fr;
  column-gap: 72px;
}

/* Question for discussion */
.slide.is-question {
  background: radial-gradient(ellipse at 20% 100%, rgb(200 96 79 / 0.22), transparent 60%), var(--stage);
}

.slide.is-question h3 {
  color: var(--accent);
}

.slide.is-question p {
  font: 500 50px/1.3 var(--serif);
}

/* Presenter notes overlay */
.notes {
  display: none;
}

body.show-notes .notes {
  position: absolute;
  right: 40px;
  bottom: 40px;
  left: 40px;
  display: block;
  max-height: 300px;
  overflow: auto;
  padding: 24px 32px;
  border: 1px solid rgb(214 170 76 / 0.4);
  border-radius: 12px;
  background: rgb(10 8 6 / 0.94);
  color: var(--ink);
  font-size: 24px;
  line-height: 1.5;
}

body.show-notes .notes p,
body.show-notes .notes li {
  font-size: 24px;
}

/* Chrome: the bar with controls */
.chrome {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
}

body:hover .chrome,
.chrome:focus-within {
  opacity: 1;
}

.chrome a {
  overflow: hidden;
  color: var(--muted);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.controls button {
  min-width: 34px;
  padding: 6px 10px;
  border: 1px solid #3b3227;
  border-radius: 8px;
  background: #1d1813;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.controls button[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

.counter {
  min-width: 64px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 0.3s ease;
}

@media print {
  body {
    overflow: visible;
  }

  .deck {
    position: static;
    transform: none;
  }

  .slide,
  .slide[hidden] {
    position: relative;
    display: grid;
    width: 1600px;
    height: 900px;
    break-after: page;
    animation: none;
  }

  .chrome,
  .progress {
    display: none;
  }
}
