/* Deck theme: pure black background, white text, EB Garamond body,
   TeX Gyre Chorus (chancery) display face for titles. */

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond12-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond12-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond12-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Chorus";
  src: url("fonts/texgyrechorus-mediumitalic.otf") format("opentype");
}

:root {
  --slt-background: #000;
  --slt-foreground: #fff;
  --slt-muted: #999;
  --slt-landscape-color: #adb4b9;
  --slt-accent: #ffdc00;
  --slt-progress-accent: var(--slt-accent);
  --slt-body-font: "EB Garamond", Garamond, serif;
  --slt-display-font: "Chorus", "EB Garamond", serif;
}

body[data-progress-color="orange"] {
  --slt-progress-accent: #ff9933;
}
body[data-progress-color="light-blue"] {
  --slt-progress-accent: #8ed8ff;
}
body[data-progress-color="magenta"] {
  --slt-progress-accent: #ff4dff;
}

html,
body,
.reveal-viewport {
  background: var(--slt-background);
}

.reveal {
  font-family: var(--slt-body-font);
  font-size: 36px;
  color: var(--slt-foreground);
}

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

/* Presenter previews: mark the drawing area's edge against black letterboxing. */
.reveal .slides .presenter-slide-boundary {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid #999;
  pointer-events: none;
  z-index: 50;
}

.reveal .slides section {
  line-height: 1.3;
}

/* Headings. */

.reveal .proof-checkpoint > p {
  font-size: 28px;
  margin-bottom: 16px;
}

.reveal h1,
.reveal h2 {
  font-family: var(--slt-display-font);
  font-weight: normal;
  margin: 0 0 0.6em 0;
}
.reveal h1 {
  font-size: 2.6em;
}
.reveal h2 {
  font-size: 1.6em;
}
.reveal h3 {
  font-size: 1.1em;
  font-style: italic;
  font-weight: normal;
  margin: 0 0 0.4em 0;
}

/* Title slide and section-title slides (level-1 headings) are centred. */

.reveal #title-slide,
.reveal section.level1 > h1:only-child {
  text-align: center;
}
.reveal #title-slide {
  padding-top: 18%;
}
.reveal #title-slide[data-landscape="analytic-continuation"] {
  --slt-landscape-color: #b2d7eb;
}
.reveal #title-slide > .title-landscape {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}
.reveal #title-slide > :not(.title-landscape) {
  position: relative;
  z-index: 1;
}
.reveal #title-slide .subtitle {
  font-style: italic;
  font-size: 1.2em;
  margin-bottom: 1.5em;
}
.reveal #title-slide .author,
.reveal #title-slide .date {
  margin: 0.2em 0;
}
.reveal section.level1 > h1:only-child {
  margin-top: 25%;
}

/* Decorative mathematical ornaments above section titles. */

.reveal section.level1[data-ornament]::before {
  content: "";
  position: absolute;
  top: 85px;
  left: 50%;
  width: 280px;
  height: 180px;
  transform: translateX(-50%);
  background: var(--slt-muted);
  mask: var(--slt-ornament) center / contain no-repeat;
  pointer-events: none;
}
.reveal section[data-ornament="cusp"] {
  --slt-ornament: url("ornaments/cusp.svg");
}
.reveal section[data-ornament="cusp-5"] {
  --slt-ornament: url("ornaments/cusp-5.svg");
}
.reveal section[data-ornament="parabola"] {
  --slt-ornament: url("ornaments/parabola.svg");
}
.reveal section[data-ornament="triple-crossing"] {
  --slt-ornament: url("ornaments/triple-crossing.svg");
}
.reveal section[data-ornament="normal-crossings"] {
  --slt-ornament: url("ornaments/normal-crossings.svg");
}
.reveal section[data-ornament="punctured-axes"] {
  --slt-ornament: url("ornaments/punctured-axes.svg");
}
.reveal section[data-ornament="loss-regular"] {
  --slt-ornament: url("ornaments/loss-regular.svg");
}
.reveal section[data-ornament="loss-normal-crossing"] {
  --slt-ornament: url("ornaments/loss-normal-crossing.svg");
}
.reveal section[data-ornament="network-5"] {
  --slt-ornament: url("ornaments/network-5.svg");
}
.reveal section[data-ornament="network-4"] {
  --slt-ornament: url("ornaments/network-4.svg");
}
.reveal section[data-ornament="network-3"] {
  --slt-ornament: url("ornaments/network-3.svg");
}
.reveal section[data-ornament="network-2"] {
  --slt-ornament: url("ornaments/network-2.svg");
}
.reveal section[data-ornament="network-1"] {
  --slt-ornament: url("ornaments/network-1.svg");
}
.reveal section[data-ornament="network-0"] {
  --slt-ornament: url("ornaments/network-0.svg");
}

/* Three reductions: merge duplicates, remove a zero-output unit, absorb a constant. */

.reveal section[data-ornament="network-short-3"] {
  --slt-ornament: url("ornaments/network-short-3.svg");
}

.reveal section[data-ornament="network-short-2"] {
  --slt-ornament: url("ornaments/network-short-2.svg");
}

.reveal section[data-ornament="network-short-1"] {
  --slt-ornament: url("ornaments/network-short-1.svg");
}

.reveal section[data-ornament="network-short-0"] {
  --slt-ornament: url("ornaments/network-short-0.svg");
}

/* Body text. */

.reveal #regular-case h2 {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
}
.reveal #regular-case h2 .regular-bowl {
  width: 180px;
  height: 94px;
  margin: 0;
  object-fit: contain;
}
.reveal #regular-case .regular-statement {
  font-size: 32px;
  margin-top: 28px;
}
.reveal #regular-case .regular-statement strong {
  color: #8ed8ff;
}
.reveal #interpretations .information-calculation {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}
.reveal #interpretations .information-calculation .katex-display {
  text-align: left;
  margin: 0.35em 0;
}
.reveal #interpretations .information-calculation .katex-display > .katex {
  text-align: left;
}
.reveal #quadratic-valley h2 {
  margin-bottom: 16px;
}
.reveal #quadratic-valley .minimal-definition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 30px;
  align-items: center;
  font-size: 28px;
}
.reveal #quadratic-valley .zero-set-definition {
  font-size: 28px;
  margin-bottom: 12px;
}
.reveal #quadratic-valley .minimal-statement {
  margin-top: 12px;
  font-size: 28px;
}
.reveal #quadratic-valley strong {
  color: #8ed8ff;
}
.reveal #quadratic-valley .minimal-statement .katex-display {
  margin: 0.35em 0;
}
.reveal #strictly-singular h2 {
  margin-bottom: 8px;
}
.reveal #strictly-singular > p {
  font-size: 28px;
  margin-bottom: 12px;
}
.reveal #strictly-singular .singular-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  text-align: center;
}
.reveal #strictly-singular .singular-example {
  font-size: 26px;
}
.reveal #strictly-singular .singular-example > p {
  margin-bottom: 4px;
}
.reveal #strictly-singular .singular-example > p:first-child {
  font-size: 30px;
  color: #8ed8ff;
}
.reveal #strictly-singular .singular-example > p:last-child {
  margin-top: 6px;
}
.reveal #strictly-singular .singular-example strong {
  color: #8ed8ff;
}
.reveal #llc-definition .llc-examples {
  display: block;
  margin-top: 12px;
}
.reveal #llc-definition .llc-example {
  display: grid;
  grid-template-columns: max-content 180px;
  align-items: center;
  gap: 10px;
  font-size: 32px;
}
.reveal #llc-definition > p:first-of-type > strong:first-child,
.reveal #llc-definition .llc-interpretation strong,
.reveal #llc-definition .llc-example strong {
  color: #8ed8ff;
}
.reveal #llc-definition .llc-example p {
  margin: 0 0 8px;
}
.reveal #llc-definition .llc-example img {
  width: 180px;
  height: 96px;
  object-fit: contain;
}
.reveal #llc-definition .llc-interpretation {
  font-size: 32px;
  margin-top: 14px;
}

.reveal #density-of-states {
  font-size: 32px;
}
.reveal #density-of-states h2 {
  font-size: 57.6px;
  margin-bottom: 20px;
}
.reveal #density-of-states p {
  margin: 12px 0;
}
.reveal #density-of-states .katex-display {
  margin: 0.35em 0;
}
.reveal #density-of-states .dos-shell-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
}
.reveal #density-of-states .dos-shell-row figure {
  margin: 0;
}
.reveal #density-of-states .dos-shell-row img {
  display: block;
  width: 100%;
  margin: 0;
}
.reveal #density-of-states .dos-shell-row figcaption {
  display: none;
}

.reveal #dirac-delta {
  font-size: 32px;
}
.reveal #dirac-delta h2 {
  font-size: 57.6px;
  margin-bottom: 20px;
}
.reveal #dirac-delta p {
  margin: 12px 0;
}
.reveal #dirac-delta .katex-display {
  margin: 0.35em 0;
}

.reveal #analytic-recap > p {
  font-size: 32px;
}
.reveal #analytic-recap .katex-display {
  margin: 0.45em 0;
}
.reveal #analytic-manifolds h2 {
  margin-bottom: 20px;
}
.reveal #analytic-manifolds > p {
  font-size: 32px;
  margin-bottom: 14px;
}
.reveal #analytic-manifolds .chart-functions {
  font-size: 30px;
  margin-top: 14px;
}
.reveal #analytic-manifolds .chart-functions .katex-display {
  margin: 0.3em 0;
}
.reveal #resolution h2 {
  margin-bottom: 20px;
}
.reveal #resolution .katex-display {
  margin: 0.35em 0;
}
.reveal #resolution > p {
  margin-bottom: 12px;
}
.reveal #resolution slt-resolution-diagram {
  max-width: 1040px;
}
.reveal #resolution .resolution-construction {
  font-size: 30px;
  margin-top: 8px;
}
.reveal #equivalent-losses h2 {
  margin-bottom: 20px;
}
.reveal #equivalent-losses p,
.reveal #equivalent-losses ol {
  font-size: 30px;
  margin-bottom: 10px;
}
.reveal #equivalent-losses .katex-display {
  margin: 0.2em 0;
}
.reveal #dos-properties h2 {
  margin-bottom: 16px;
}
.reveal #dos-properties p {
  font-size: 30px;
  margin-bottom: 8px;
}
.reveal #dos-properties .katex-display {
  margin: 0.2em 0;
}
.reveal #density-to-volume h2 {
  margin-bottom: 20px;
}
.reveal #density-to-volume > p {
  margin-bottom: 14px;
}
.reveal #density-to-volume .katex-display {
  margin: 0.35em 0;
}
.reveal .slides p {
  margin: 0 0 0.6em 0;
}
.reveal .slides ul,
.reveal .slides ol {
  margin: 0 0 0.6em 1.2em;
}
.reveal .slides li {
  margin: 0.25em 0;
}
.reveal .slides ul > li::marker {
  content: "•  ";
}
.reveal .slides dl {
  margin: 0 0 0.6em 0;
}
.reveal .slides dt {
  font-weight: bold;
}
.reveal .slides dd {
  margin: 0 0 0.6em 1.2em;
}
.reveal .slides em {
  font-style: italic;
}
.reveal .slides strong {
  font-weight: bold;
}
.reveal .slides a {
  color: var(--slt-foreground);
  text-decoration: underline;
}
.reveal .slides .math.inline > .katex {
  font-size: 1em;
}
.reveal .slides .katex-display {
  margin: 0.6em 0;
}
.reveal .slides .muted {
  color: var(--slt-muted);
}
.reveal .slides .centered {
  text-align: center;
}

.reveal .slides blockquote {
  margin: 0.8em 1em;
  font-style: italic;
}

/* Images, videos and widgets fill available width, centred. */

/* Lecture 4 calculations use the same 32px body and full-sized titles as
   Lecture 3's density-of-states slides. Keep displayed calculations readable. */
.reveal .slides section.bayes-calculation {
  font-size: 32px;
}
.reveal .slides section.bayes-calculation h2 {
  font-size: 57.6px;
  margin-bottom: 20px;
}
.reveal .slides section.bayes-calculation .katex-display {
  margin: 0.35em 0;
}

.reveal .slides img,
.reveal .slides video {
  max-width: 100%;
  max-height: 520px;
  display: block;
  margin: 0 auto;
}

/* A compact portrait grid with room for four lecturers in a sidebar. */
.reveal .slides .headshots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.reveal .slides .headshots > p {
  margin: 0;
}
.reveal .slides .headshots img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Two columns, via pandoc's `:::: columns` / `::: column` divs. */

.reveal .slides .columns {
  display: flex;
  gap: 1.5em;
}
.reveal .slides .column {
  flex: 1;
}

/* Slide shorthand: .sidebar or .split, with --- between the columns. */
.reveal .slides .columns.sidebar,
.reveal .slides .columns.split {
  gap: 1%;
}
.reveal .slides .columns.split > .column {
  flex: 0 0 49.5%;
  min-width: 0;
}
.reveal .slides .columns.sidebar > .column {
  flex: 0 0 24%;
  min-width: 0;
}
.reveal .slides .columns.sidebar > .column:first-child {
  flex-basis: 75%;
}

/* Section progress: each segment is proportional to its slide count. */

.reveal .section-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  display: flex;
  gap: 2px;
  z-index: 30;
}
.reveal .section-progress button {
  position: relative;
  flex-basis: 0;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--slt-muted);
  cursor: pointer;
}
.reveal .section-progress button[aria-current="step"] {
  color: var(--slt-progress-accent);
}
.reveal .section-progress button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0.25;
}
.reveal .section-progress button > span {
  display: block;
  height: 100%;
  background: currentColor;
  transform: scaleX(var(--section-progress, 0));
  transform-origin: left;
}
.reveal .section-progress button:focus-visible {
  outline: 2px solid var(--slt-foreground);
  outline-offset: 2px;
}

/* Highlight mouse and keyboard navigation in the overview grid. */

.reveal.overview .slides section:not(.stack):hover,
.reveal.overview .slides section:not(.stack).present {
  outline: 10px solid #ff9933;
  outline-offset: 10px;
}

/* Slide number. */

.reveal .slide-number {
  background: transparent;
  color: var(--slt-muted);
  font-family: var(--slt-body-font);
  font-size: 18px;
}
.reveal .slide-number a {
  text-decoration: none;
}

/* Chalk slides: blank pages for drawing on, optionally with a heading. */

.reveal section.chalk > h2:empty {
  display: none;
}

/* Fit long slides on the page: smaller text and tighter spacing where the
   content would otherwise run past the bottom edge once every fragment is
   shown. */

.reveal #quadratic-valley h2 {
  margin-bottom: 6px;
}
.reveal #quadratic-valley .minimal-statement {
  margin-top: 6px;
}

.reveal #strictly-singular h2 {
  margin-bottom: 4px;
}

.reveal #interpretations {
  font-size: 32px;
}
.reveal #interpretations h2 {
  font-size: 57.6px;
}

.reveal #analytic-manifolds > p {
  font-size: 29px;
  margin-bottom: 8px;
}
.reveal #analytic-manifolds .chart-functions {
  font-size: 27px;
  margin-top: 6px;
}
.reveal #analytic-manifolds slt-chart-diagram {
  max-width: 900px;
}

.reveal #resolution > p {
  margin-bottom: 6px;
}
.reveal #resolution slt-resolution-diagram {
  max-width: 940px;
}

.reveal #equivalent-losses p,
.reveal #equivalent-losses ol {
  font-size: 25px;
  margin-bottom: 6px;
}
.reveal #equivalent-losses .katex-display {
  margin: 0.1em 0;
}

.reveal #dirac-delta {
  font-size: 29px;
}
.reveal #dirac-delta p {
  margin: 8px 0;
}

.reveal #density-of-states {
  font-size: 28px;
}
.reveal #density-of-states p {
  margin: 8px 0;
}

.reveal #dos-properties p {
  font-size: 25px;
  margin-bottom: 4px;
}
.reveal #dos-properties .katex-display {
  margin: 0.1em 0;
}

.reveal #mellin-transform {
  font-size: 31px;
}
.reveal #mellin-transform h2 {
  font-size: 57.6px;
}

.reveal #zeta-poles p {
  margin: 12px 0;
}
.reveal #zeta-poles .katex-display {
  margin: 0.3em 0;
}

.reveal #one-variable {
  font-size: 32px;
}
.reveal #one-variable h2 {
  font-size: 57.6px;
  margin-bottom: 16px;
}
.reveal #one-variable p {
  margin: 8px 0;
}
.reveal #one-variable ul {
  margin: 8px 0 8px 1em;
}
.reveal #one-variable .katex-display {
  margin: 0.2em 0;
}

.reveal #several-variables-2 {
  font-size: 32px;
}
.reveal #several-variables-2 h2 {
  font-size: 57.6px;
  margin-bottom: 16px;
}
.reveal #several-variables-2 p {
  margin: 10px 0;
}
.reveal #several-variables-2 .katex-display {
  margin: 0.3em 0;
}

.reveal #rlct-formula h2 {
  margin-bottom: 16px;
}
.reveal #rlct-formula p {
  margin: 10px 0;
}
.reveal #rlct-formula .katex-display {
  margin: 0.3em 0;
}

.reveal #inverse-mellin h2 {
  margin-bottom: 16px;
}
.reveal #inverse-mellin p {
  margin: 10px 0;
}
.reveal #inverse-mellin .katex-display {
  margin: 0.3em 0;
}
