/* ── THEME VARIABLES ── */
:root {
  --bg: #f5f2ee;
  --bg-alt: #edeae5;
  --ink: #1a1816;
  --ink-muted: #6b6560;
  --accent: #2a52a0;
  --accent: #29815b;
  /* --accent: #070633; */
  --accent-warm: #c8490a;
  --rule: #d4cfc9;
  /* --serif: "DM Serif Display", Georgia, serif; */
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

/* ── BASE ── */
.reveal {
  font-family: var(--sans);
  font-size: 22px;
  color: var(--ink);
  background: var(--bg);
}

.reveal .slides section {
  text-align: left;
  padding: 3rem 3.5rem 0;
  height: 100%;
  box-sizing: border-box;
}

/* ── TYPOGRAPHY ── */
.reveal h1 {
  /* font-family: var(--serif); */
  font-family: var(--sans);
  font-size: 3.2em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 0.3em;
  font-weight: 800;
}

.reveal h2 {
  font-family: var(--serif);
  font-size: 2.2em;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.1;
}

.reveal h3 {
  font-family: var(--sans);
  font-size: 0.7em;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1em;
}

.reveal p {
  font-size: 0.85em;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 0.8em;
  font-weight: 300;
}

.reveal strong {
  color: var(--ink);
  font-weight: 500;
}

/* ── PROGRESS & CONTROLS ── */
.reveal .progress {
  background: var(--rule);
  height: 2px;
}
.reveal .progress span {
  background: var(--accent);
}
.reveal .controls {
  color: var(--accent);
}

/* ── SLIDE NUMBER ── */
.reveal .slide-number {
  font-family: var(--sans);
  font-size: 0.55em;
  color: var(--ink-muted);
  background: transparent;
  bottom: 1.4rem;
  right: 2rem;
}

/* ── UTILITY CLASSES ── */
.rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 0 1.6em;
}

.label {
  font-family: var(--sans);
  font-size: 0.6em;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4em;
  display: block;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 1.4rem 1.6rem;
  border-radius: 2px;
}

.card .card-label {
  font-family: var(--sans);
  font-size: 0.6em;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6em;
  display: block;
}

.card p {
  font-size: 0.78em;
  margin: 0;
}

.card h4 {
  font-family: var(--serif);
  font-size: 1.1em;
  font-weight: 400;
  margin: 0 0 0.4em;
  color: var(--ink);
}

.big-stat {
  font-family: var(--serif);
  font-size: 4em;
  color: var(--accent);
  line-height: 1;
  margin: 0;
}

.fragment .big-stat {
  font-family: var(--serif);
  font-size: 4em;
  color: var(--accent);
  line-height: 1;
  margin: 0;
}

.fragment .big-stat-label {
  font-size: 0.72em;
  color: var(--ink-muted);
  font-weight: 300;
  margin-top: 0.2em;
}

.tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  border-radius: 2px;
  margin-right: 0.4em;
  margin-bottom: 0.4em;
}

.tag.warm {
  background: var(--accent-warm);
}
.tag.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ── COVER SLIDE ── */
.slide-cover {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide-cover::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 38%;
  height: 100vh;
  background: var(--bg-alt);
  border-left: 1px solid var(--rule);
  z-index: 0;
}

.slide-cover .cover-content {
  position: relative;
  z-index: 1;
  max-width: 58%;
}

.slide-cover .cover-meta {
  position: absolute;
  bottom: 2.5rem;
  right: 3.5rem;
  z-index: 1;
  text-align: right;
}

.slide-cover .cover-meta p {
  font-size: 0.8em;
  margin: 0;
  line-height: 1.8;
  color: var(--ink-muted);
}

.slide-cover .cover-year {
  position: absolute;
  top: 2rem;
  right: 3.5rem;
  font-family: var(--serif);
  font-size: 6em;
  color: var(--rule);
  line-height: 1;
  z-index: 1;
  user-select: none;
}

/* ── SECTION TITLE SLIDES ── */
.slide-section {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4rem !important;
  background: var(--ink) !important;
}

.slide-section h2 {
  color: var(--bg) !important;
  font-size: 3em;
}

.slide-section h3 {
  color: var(--accent) !important;
  /* accent stays readable on dark */
  filter: brightness(1.4);
}

.slide-section p {
  color: rgba(245, 242, 238, 0.55) !important;
}

/* ── DEMO SLIDE ── */
.slide-demo {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
}

.demo-header {
  padding: 1rem 3.5rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.demo-header h3 {
  margin: 0;
  font-size: 0.65em;
}

.demo-header .demo-url {
  font-family: monospace;
  font-size: 0.62em;
  color: var(--ink-muted);
  background: var(--bg-alt);
  padding: 0.3em 0.8em;
  border-radius: 2px;
  border: 1px solid var(--rule);
}

.demo-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}

/* ── QUOTE SLIDE ── */
.slide-quote blockquote {
  border: none;
  padding: 0;
  margin: 2rem 0;
}

.slide-quote blockquote p {
  font-family: var(--serif);
  font-size: 1.5em;
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
}

.slide-quote cite {
  font-size: 0.7em;
  color: var(--ink-muted);
  font-style: normal;
}

/* ── LIST STYLES ── */
.reveal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reveal ul li {
  font-size: 0.82em;
  font-weight: 300;
  color: var(--ink-muted);
  padding: 0.55em 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 0.8em;
  line-height: 1.5;
}

.reveal ul li::before {
  content: "—";
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
}

/* ── THANK YOU ── */
.slide-end {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.slide-end .big-title {
  font-family: var(--serif);
  font-size: 5em;
  line-height: 0.95;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.slide-end .big-title em {
  color: var(--accent);
  font-style: italic;
}

/* ── FRAGMENT ANIMATIONS ── */
.reveal .fragment {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* ── VERTICAL SLIDE INDICATOR ── */
.v-hint {
  font-size: 0.6em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1.5rem;
}

.v-hint::before {
  content: "↓";
  color: var(--accent);
}
