/**
 * Datafrosch theme for reveal.js
 *
 * Inspired by the editorial style of homolova.sk:
 *   chunky Bowlby One uppercase headings in hot pink,
 *   Roboto body on cream/white paper,
 *   flat candy-pop colour blocks for tags & accents.
 */
@import url('https://fonts.googleapis.com/css2?family=Bowlby+One&family=Roboto:wght@400;500;700&family=Roboto+Slab:wght@500;700&family=JetBrains+Mono:wght@400;600&display=swap');

/*********************************************
 * BRAND TOKENS
 *********************************************/
:root {
  --df-ink:        #020202;
  --df-ink-soft:   #222222;
  --df-muted:      #666666;
  --df-paper:      #ffffff;
  --df-cream:      #fdf5f0;

  --df-pink:       #FF8BB8;
  --df-green:      #02F585;
  --df-blue:       #5B8BEE;
  --df-orange:     #FF8A1F;

  --df-rule:       #020202;

  --r-background-color: var(--df-paper);
  --r-main-font:    'Roboto', system-ui, -apple-system, sans-serif;
  --r-main-font-size: 36px;
  --r-main-color:   var(--df-ink);
  --r-block-margin: 22px;
  --r-heading-margin: 0 0 0.6em 0;
  --r-heading-font: 'Bowlby One', 'Roboto Slab', Impact, sans-serif;
  --r-heading-color: var(--df-pink);
  --r-heading-line-height: 0.95;
  --r-heading-letter-spacing: 0.005em;
  --r-heading-text-transform: uppercase;
  --r-heading-text-shadow: none;
  --r-heading-font-weight: 400;
  --r-heading1-text-shadow: none;
  --r-heading1-size: 2.6em;
  --r-heading2-size: 1.8em;
  --r-heading3-size: 1.25em;
  --r-heading4-size: 0.95em;
  --r-code-font: 'JetBrains Mono', 'Fira Code', Menlo, monospace;
  --r-link-color: var(--df-pink);
  --r-link-color-dark: #d96a96;
  --r-link-color-hover: var(--df-ink);
  --r-selection-background-color: var(--df-pink);
  --r-selection-color: var(--df-paper);
  --r-overlay-element-bg-color: 2, 2, 2;
  --r-overlay-element-fg-color: 255, 255, 255;
}

/*********************************************
 * BASE
 *********************************************/
.reveal-viewport {
  background: var(--df-paper);
}

.reveal {
  font-family: var(--r-main-font);
  font-size: var(--r-main-font-size);
  font-weight: 400;
  color: var(--r-main-color);
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section,
.reveal .slides section > section {
  line-height: 1.5;
  font-weight: inherit;
  padding: 1.5rem 1.75rem;
}

.reveal ::selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
  text-shadow: none;
}

/*********************************************
 * HEADINGS — Bowlby One, uppercase, pink
 *********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  margin: var(--r-heading-margin);
  color: var(--r-heading-color);
  font-family: var(--r-heading-font);
  font-weight: var(--r-heading-font-weight);
  line-height: var(--r-heading-line-height);
  letter-spacing: var(--r-heading-letter-spacing);
  text-transform: uppercase;
  text-shadow: none;
  word-wrap: break-word;
}

.reveal h1 { font-size: var(--r-heading1-size); }
.reveal h2 { font-size: var(--r-heading2-size); }
.reveal h3 { font-size: var(--r-heading3-size); color: var(--df-ink); }
.reveal h4 {
  font-size: var(--r-heading4-size);
  color: var(--df-ink);
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/*********************************************
 * INLINE TEXT
 *********************************************/
.reveal p {
  margin: var(--r-block-margin) 0;
  line-height: 1.5;
}

.reveal strong, .reveal b {
  font-weight: 700;
  color: var(--df-ink);
  background: linear-gradient(transparent 60%, rgba(255, 139, 184, 0.35) 60%);
  padding: 0 0.05em;
}

.reveal em, .reveal i {
  font-style: italic;
  color: var(--df-ink-soft);
}

.reveal small {
  display: inline-block;
  font-size: 0.55em;
  line-height: 1.4em;
  vertical-align: top;
  color: var(--df-muted);
  font-family: 'Roboto Slab', Georgia, serif;
  letter-spacing: 0.04em;
}

/*********************************************
 * LISTS — flat squares, ink-coloured
 *********************************************/
.reveal ol,
.reveal dl,
.reveal ul {
  display: inline-block;
  text-align: left;
  margin: 0 0 0 1em;
}

.reveal ul { list-style: none; padding-left: 0; }
.reveal ul li {
  position: relative;
  padding-left: 1.4em;
  margin: 0.4em 0;
}
.reveal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55em;
  height: 0.55em;
  background: var(--df-pink);
}
.reveal ul ul li::before { background: var(--df-blue); }
.reveal ul ul ul li::before { background: var(--df-orange); }

.reveal ol {
  list-style: none;
  counter-reset: df-counter;
  padding-left: 0;
}
.reveal ol li {
  counter-increment: df-counter;
  position: relative;
  padding-left: 2.4em;
  margin: 0.5em 0;
}
.reveal ol li::before {
  content: counter(df-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--r-heading-font);
  font-size: 1em;
  color: var(--df-pink);
  letter-spacing: -0.04em;
}

.reveal ul ul, .reveal ul ol,
.reveal ol ol, .reveal ol ul {
  display: block;
  margin-left: 1.5em;
  margin-top: 0.25em;
}

/*********************************************
 * BLOCKQUOTE — editorial pull-quote
 *********************************************/
.reveal blockquote {
  display: block;
  position: relative;
  width: 82%;
  margin: var(--r-block-margin) auto;
  padding: 0.5em 0 0.5em 1.5em;
  font-family: 'Roboto Slab', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.1em;
  line-height: 1.45;
  color: var(--df-ink);
  border-left: 6px solid var(--df-pink);
  background: transparent;
  box-shadow: none;
}
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
  display: inline-block;
  margin: 0;
}

/*********************************************
 * CODE
 *********************************************/
.reveal pre {
  display: block;
  position: relative;
  width: 92%;
  margin: var(--r-block-margin) auto;
  text-align: left;
  font-size: 0.48em;
  font-family: var(--r-code-font);
  line-height: 1.45em;
  word-wrap: break-word;
  border: 2px solid var(--df-ink);
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--df-pink);
  overflow: hidden;
}
.reveal pre code {
  display: block;
  padding: 1rem 1.2rem;
  overflow: auto;
  max-height: 460px;
  word-wrap: normal;
  background: var(--df-cream);
  color: var(--df-ink);
}
.reveal code {
  font-family: var(--r-code-font);
  text-transform: none;
  tab-size: 2;
}
:not(pre) > code {
  background: var(--df-cream);
  color: var(--df-ink);
  padding: 0.05em 0.35em;
  border: 1px solid var(--df-ink);
  font-size: 0.85em;
}

/*********************************************
 * TABLES — newsprint
 *********************************************/
.reveal table {
  margin: auto;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.75em;
  background: var(--df-paper);
  border-top: 3px solid var(--df-ink);
  border-bottom: 3px solid var(--df-ink);
}
.reveal table th {
  font-weight: 700;
  background: transparent;
  color: var(--df-ink);
  font-family: 'Roboto Slab', Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--df-ink);
  font-size: 0.85em;
}
.reveal table th,
.reveal table td {
  text-align: left;
  padding: 0.45em 0.9em;
  border-bottom: 1px solid #e5e5e5;
}
.reveal table tbody tr:last-child td {
  border-bottom: none;
}

/*********************************************
 * IMAGES
 *********************************************/
.reveal img,
.reveal video,
.reveal iframe {
  max-width: 95%;
  max-height: 95%;
}
.reveal img {
  margin: var(--r-block-margin) 0;
  border-radius: 0;
}

/*********************************************
 * LINKS — pink, underlined on hover only
 *********************************************/
.reveal a {
  color: var(--r-link-color);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid var(--df-pink);
  transition: color 0.15s ease, background 0.15s ease;
}
.reveal a:hover {
  color: var(--df-paper);
  background: var(--df-pink);
  border-bottom-color: var(--df-pink);
}

/*********************************************
 * FRAME HELPER
 *********************************************/
.reveal .r-frame {
  border: 3px solid var(--df-ink);
  border-radius: 0;
  box-shadow: 8px 8px 0 var(--df-pink);
}
.reveal a:hover .r-frame {
  box-shadow: 8px 8px 0 var(--df-blue);
}

/*********************************************
 * CONTROLS + PROGRESS
 *********************************************/
.reveal .controls { color: var(--df-pink); }
.reveal .progress {
  background: rgba(2, 2, 2, 0.08);
  color: var(--df-pink);
  height: 4px;
}
.reveal .progress span {
  background: var(--df-pink);
}

/*********************************************
 * SLIDE VARIANTS
 *********************************************/

/* Title slide — masthead style */
.reveal section.title-slide {
  text-align: left;
  padding: 2.5rem 2.5rem;
}
.reveal section.title-slide .kicker {
  display: block;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  font-size: 0.55em;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--df-ink);
  margin-bottom: 1.2em;
  padding-bottom: 0.6em;
  border-bottom: 3px solid var(--df-ink);
}
.reveal section.title-slide h1 {
  font-size: 3.4em;
  line-height: 0.95;
  margin-bottom: 0.4em;
}
.reveal section.title-slide .subtitle {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.1em;
  font-weight: 500;
  font-style: italic;
  color: var(--df-ink-soft);
  margin-bottom: 1.4em;
}
.reveal section.title-slide .meta {
  font-family: 'Roboto Slab', Georgia, serif;
  margin-top: 2em;
  font-size: 0.55em;
  color: var(--df-ink);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-top: 2px solid var(--df-ink);
  padding-top: 0.8em;
  display: inline-block;
}

/* Section divider — pair this class with data-background-color="#FF8BB8" */
.reveal section.section-divider {
  color: var(--df-paper);
  text-align: left;
  padding: 2.5rem;
}
.reveal section.section-divider h1,
.reveal section.section-divider h2,
.reveal section.section-divider h3,
.reveal section.section-divider p,
.reveal section.section-divider em,
.reveal section.section-divider i,
.reveal section.section-divider .eyebrow {
  color: inherit;
}
.reveal section.section-divider .eyebrow {
  display: inline-block;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 0.55em;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1em;
  padding-bottom: 0.6em;
  border-bottom: 2px solid currentColor;
}
.reveal section.section-divider h2 { font-size: 3em; }
.reveal section.section-divider strong {
  background: linear-gradient(transparent 60%, rgba(255, 255, 255, 0.4) 60%);
  color: inherit;
}

/* On a dark/coloured divider, code chip flips contrast */
.reveal section.section-divider :not(pre) > code {
  background: rgba(255, 255, 255, 0.85);
  color: var(--df-ink);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Variant for dividers on light backgrounds (green) — flip to ink text */
.reveal section.section-divider.on-light { color: var(--df-ink); }
.reveal section.section-divider.on-light strong {
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.12) 60%);
}

/* Dark slide — pair with data-background-color="#020202" */
.reveal section.dark { color: var(--df-paper); }
.reveal section.dark h1,
.reveal section.dark h3,
.reveal section.dark h4,
.reveal section.dark p { color: var(--df-paper); }
.reveal section.dark h2 { color: var(--df-pink); }
.reveal section.dark strong { background: linear-gradient(transparent 60%, rgba(255, 139, 184, 0.6) 60%); color: var(--df-paper); }
.reveal section.dark em,
.reveal section.dark i { color: rgba(255, 255, 255, 0.75); }

/*********************************************
 * TAG / BADGE — flat block (signature element)
 *********************************************/
.reveal .tag {
  display: inline-block;
  background: var(--df-pink);
  color: var(--df-paper);
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 0.5em;
  font-weight: 700;
  padding: 0.25em 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  vertical-align: middle;
  margin: 0 0.15em;
  line-height: 1.6;
}
.reveal .tag.green  { background: var(--df-green);  color: var(--df-ink); }
.reveal .tag.blue   { background: var(--df-blue);   color: var(--df-paper); }
.reveal .tag.orange { background: var(--df-orange); color: var(--df-paper); }
.reveal .tag.ink    { background: var(--df-ink);    color: var(--df-paper); }

/*********************************************
 * CALLOUTS
 *********************************************/
.reveal .tip,
.reveal .warning {
  display: block;
  padding: 1rem 1.3rem;
  margin: 1rem auto;
  font-size: 0.78em;
  text-align: left;
  max-width: 86%;
  font-family: 'Roboto Slab', Georgia, serif;
  border: 2px solid var(--df-ink);
  background: var(--df-cream);
  box-shadow: 5px 5px 0 var(--df-pink);
}
.reveal .warning {
  box-shadow: 5px 5px 0 var(--df-orange);
}
.reveal .tip strong,
.reveal .warning strong {
  background: none;
  text-transform: uppercase;
  font-family: var(--r-heading-font);
  color: var(--df-ink);
  letter-spacing: 0.04em;
  margin-right: 0.3em;
}

/*********************************************
 * COLUMNS + CARDS
 *********************************************/
.reveal .cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin: 1rem 0;
}
.reveal .cols.three { grid-template-columns: repeat(3, 1fr); }
.reveal .cols > * { margin: 0; }
.reveal .cols ul,
.reveal .cols ol { display: block; margin-left: 0; }

.reveal .card {
  background: var(--df-cream);
  border: 2px solid var(--df-ink);
  padding: 1.1rem 1.2rem;
  box-shadow: 6px 6px 0 var(--df-pink);
}
.reveal .card.green  { box-shadow: 6px 6px 0 var(--df-green); }
.reveal .card.blue   { box-shadow: 6px 6px 0 var(--df-blue); }
.reveal .card.orange { box-shadow: 6px 6px 0 var(--df-orange); }
.reveal .card h3,
.reveal .card h4 {
  margin-top: 0;
  color: var(--df-ink);
}

/*********************************************
 * FRAGMENTS
 *********************************************/
.reveal .fragment.highlight-current-pink.current-fragment {
  color: var(--df-pink);
}

/*********************************************
 * PRINT
 *********************************************/
@media print {
  .reveal-viewport { background: white; }
  .backgrounds { background-color: white; }
}
