@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./assets/fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Noto Sans Georgian";
  src: url("./assets/fonts/noto-sans-georgian.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBF, U+2D00-2D2F, U+2E31;
}

:root {
  color-scheme: dark;
  --paper: #f7f6f4;
  --ink: #293b33;
  --deep-ink: #17231d;
  --muted: #5e625f;
  --rose: #f0624a;
  --red-ink: #b52c16;
  --sage: #9cc2a4;
  --sage-paper: #edf2eb;
  --display: "Bricolage Grotesque", "Noto Sans Georgian", system-ui, sans-serif;
  --body: Inter, "Noto Sans Georgian", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100svh;
  margin: 0;
  padding: 12px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: var(--deep-ink);
  color: var(--paper);
  font-family: var(--body);
}
.deck {
  width: min(calc(100vw - 24px), calc((100svh - 80px) * 16 / 9));
  container-type: inline-size;
}
.slide {
  color-scheme: light;
  aspect-ratio: 16 / 9;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  gap: 5cqw;
  padding: 5.7cqw;
  background: var(--paper);
  color: var(--ink);
}
.slide + .slide { margin-top: 12px; }
.deck[data-ready] .slide { margin-top: 0; }
h1, h2, p, figure { margin: 0; }
h1, h2 {
  font-family: var(--display);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: .99;
  text-wrap: balance;
}
h1 { font-size: 6.25cqw; }
h2 { font-size: 5.65cqw; }
em { font-style: normal; color: var(--red-ink); }
.slide-copy { display: grid; gap: 2cqw; }
.slide-copy > p {
  color: var(--muted);
  font-size: 2.15cqw;
  line-height: 1.45;
  max-width: 32ch;
  text-wrap: pretty;
}
.cover {
  grid-template-columns: 1.35fr 1fr;
  background:
    radial-gradient(ellipse at 5% 35%, rgb(240 98 74 / 20%), transparent 54%),
    repeating-linear-gradient(0deg, transparent 0 calc(4cqw - 1px), rgb(41 59 51 / 7%) calc(4cqw - 1px) 4cqw),
    repeating-linear-gradient(90deg, transparent 0 calc(4cqw - 1px), rgb(41 59 51 / 7%) calc(4cqw - 1px) 4cqw),
    var(--paper);
}
.wordmark { position: absolute; width: 10cqw; height: auto; top: 4cqw; left: 5.7cqw; }
.cover .slide-copy { margin-top: 5cqw; }
.cover em { display: block; }
.mascot { height: 42cqw; position: relative; display: grid; place-items: center; }
.mascot img, .mascot video { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.mascot img { filter: drop-shadow(0 1.6cqw 2.5cqw rgb(41 59 51 / 17%)); }
.play-mascot {
  position: absolute;
  right: 0;
  bottom: 0;
  border: 1px solid rgb(41 59 51 / 15%);
  background: var(--paper);
  color: var(--ink);
  font-size: max(10px, 1.1cqw);
  padding: .65em 1em;
}
.statement {
  grid-template-columns: 1.15fr 1fr;
  color-scheme: dark;
  background: var(--ink);
  color: var(--paper);
}
.statement em { color: #faa895; }
.statement .slide-copy > p { color: #dce9dc; }
.conversation { display: grid; gap: 1.25cqw; font-size: 1.65cqw; line-height: 1.45; }
.question { justify-self: end; padding: 1.4cqw; border-radius: 1.7cqw 1.7cqw .4cqw 1.7cqw; background: var(--sage); color: var(--deep-ink); }
.reply {
  display: flex;
  align-items: start;
  gap: .95cqw;
  padding: 1.45cqw;
  border-radius: 1.7cqw 1.7cqw 1.7cqw .4cqw;
  background: var(--paper);
  color: var(--ink);
}
.reply img { width: 3.3cqw; height: auto; }
.feature, .closing { grid-template-columns: 1.2fr 1fr; }
.feature { background: var(--sage-paper); }
.scene img {
  display: block;
  width: 100%;
  height: 31cqw;
  object-fit: cover;
  border-radius: 1.8cqw;
  box-shadow: 0 2cqw 3.75cqw -.7cqw rgb(41 59 51 / 18%);
}
.feature .scene img { height: auto; }
.closing {
  background: linear-gradient(150deg, var(--paper), #f4e1d9);
  grid-template-columns: 1fr 1.13fr;
}
.closing .scene { grid-column: 2; grid-row: 1; }
.closing .slide-copy { grid-column: 1; grid-row: 1; }
.closing a { color: var(--red-ink); font-size: 1.9cqw; text-underline-offset: .25em; }

button { cursor: pointer; border-radius: 999px; font: inherit; }
.controls { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.controls button {
  padding: 8px 12px;
  color: inherit;
  background: transparent;
  border: 1px solid rgb(247 246 244 / 35%);
}
.controls button:hover:not(:disabled) { background: rgb(247 246 244 / 11%); }
.controls button:disabled { opacity: .45; cursor: default; }
.controls output { min-width: 3em; text-align: center; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
h1:focus, h2:focus { outline: none; }
@media (max-width: 620px) and (orientation: portrait) {
  body { align-content: center; }
}
@page { size: 16in 9in; margin: 0; }
@media print {
  body { display: block; margin: 0; padding: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .deck { width: 16in; }
  .deck .slide, .deck .slide[hidden] { display: grid !important; break-inside: avoid; margin: 0; }
  .deck .slide + .slide { break-before: page; }
  .controls, .mascot video, .play-mascot { display: none !important; }
  .mascot img[hidden] { display: block !important; }
}
