/* --- */
/* description: | 
/*   Contains custom style directives which are intended to be */
/*   applied posterior to black.css of reveal.js */
/* --- */

/* --- */

/* <link href="https://fonts.googleapis.com/css2?family=Crimson+Pro:opsz,wght@10..20,400;10..20,700&display=swap" rel="stylesheet"> */
/* <link href="https://fonts.googleapis.com/css2?family=Fira+Code&display=swap" rel="stylesheet"> */
/* @import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:opsz,wght@10..20,400;10..20,700&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap'); */


:root {
  --primary-pink: #ff0073;
}

body, .reveal {
  font-family: 'Crimson Pro', serif;
  font-size: 1.5em;
  /* max-width: 700px; */
  /* margin: 4em auto;
  padding: 0 1em;
  line-height: 1.6;
  background: #fafafa;
  color: #222; */
}

pre, code {
  background: #eee;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
}

.reveal pre {
  /* Center the entire pre/code block */
  margin-left: auto;
  margin-right: auto;
  text-align: center; /* centers inline content */
  /* white-space: pre-wrap; preserves line breaks and wraps long lines */
  max-width: 600px; /* or your preferred max width */
}

/* smallcaps */
.sc {
  font-feature-settings: "smcp";
}

.reveal a,
.reveal .controls,
.reveal .progress span {
  color: #ff0073 !important;         
  /* background-color: #b22222 !important; */
  /* border-color: #b22222 !important; */
}
.reveal a:hover {
  color: #ff00bf !important;
}

/* Transition behaviour for slide elements */
.reveal .slides section {
  transition:
    opacity 1.6s ease-in-out,
    transform 0.6s ease-in-out;
}

.reveal {
  /* deep black, less harsh */
  background-color: #111 !important; 
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  font-family: 'Crimson Pro', serif;
  font-feature-settings: "smcp";
  font-variant-caps: small-caps;
  /* prevent uppercase override from theme */
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.reveal .slides section {
  opacity: 0;
  transform: translateY(1rem);
  filter: blur(1.5px);
  transition:
    opacity 0.8s ease-in-out,
    transform 0.8s ease-in-out,
    filter 0.6s ease-in-out;
}

/* Active (visible) slide state */
.reveal .slides section.present {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

/* --- */

/* Slide image-text layout */

.slide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.image-column img {
  width: 100%;                
  max-width: 20rem;          
  aspect-ratio: 1 / 1;      
  object-fit: cover;         
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.image-column figure {
  margin: 0;
  padding: 0;
}

.image-column figcaption {
  font-size: 0.2em;
  color: #666666;
  margin-top: 0;      /* remove space above */
  padding-top: 0;     /* remove padding */
  line-height: 1.1;
  font-style: italic;
}

.text-column {
  font-size: 0.8em;
  line-height: 1.6;
  text-align: left;
  direction: ltr;
}

/* --- */


.col-emph {
  color: var(--primary-pink) !important;
  font-weight: bold !important;
}

.emph {
  font-weight: bold;
}

.answer {
  color: var(--primary-pink);
  font-weight: bold;
  font-size: 1.2em;
}

/* --- */

/* Image plus Caption */

.image-wrapper {
  display: inline-block;
  text-align: center;
  margin: 0;
}

.image-wrapper img {
  display: block;
  margin: 0;
}

.image-wrapper .caption {
  font-size: 0.2em;
  color: gray;
  margin-top: 0.2em;
  line-height: 1.2;
}

.reveal .image-wrapper .caption a {
  color: gray !important;
  text-decoration: none !important;
}

.reveal .image-wrapper .caption a:hover {
  color: darkgray !important;
}

/* --- */

/* Headline Block */

.headline-block {
  text-align: left;
  margin-bottom: 2rem;  /* spacing between blocks if reused */
}

.headline-block h3 {
  margin-bottom: 0.5rem;
}

.headline-block ul {
  margin-top: 0;
  padding-left: 1.5em; /* default UL indent */
}

/* --- */

figure {
  display: inline-block;       /* shrink-wrap to image width */
  margin: 0;                   /* remove default margins */
}

figcaption {
  font-size: 0.75em;
  color: gray;
  margin-top: 0.2em;           /* small gap, adjust as needed */
  line-height: 1.2;
  text-align: center;
}

.reveal figcaption a {
  color: gray !important;
  text-decoration: none;
  transition: color 0.3s ease !important;
}

.reveal figcaption a:hover,
.reveal figcaption a:focus {
  color: lightgray !important;
  outline: none;
}
/* ---  */

/* Colophon Slide */

.reveal .colophon {
  font-size: 0.6em;
  color: gray;
  line-height: 1.4;
}

.reveal .colophon a {
  color: inherit;
  text-decoration: none;
}

.reveal .colophon a:hover {
  color: darkgray;
  text-decoration: underline;
}
