/* The pitch deck at ratpool.xyz/pitch: fifteen 1920x1080 slides, each scaled
   to its frame (deck.js), printed one slide a page for the PDF. Fonts are
   served from this site; the site's rules load nothing from elsewhere. */
@font-face {
  font-family: Anton;
  src: url('/fonts/anton-400.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('/fonts/barlow-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('/fonts/barlow-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('/fonts/barlow-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('/fonts/barlow-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0b0a09;
  --bone: #ece5d6;
  --muted: #a99f8d;
  --gold: #d8ad4e;
  --gold-bright: #f0cd6e;
  --line: #2c2721;
  --edge: #17130f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: Barlow, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

/* The bar over the deck. */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 10, 9, 0.94);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bone);
  font-family: Anton, Impact, sans-serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.bar-title {
  flex: 1;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pdf {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  background: var(--gold);
  color: var(--edge);
  font-family: Anton, Impact, sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
.pdf:hover {
  background: var(--gold-bright);
}
.note {
  display: none;
  margin: 16px 16px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
@media (max-width: 640px) {
  .bar-title {
    display: none;
  }
  .note {
    display: block;
  }
}

/* The slides. */
.deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px 16px 56px;
}
.frame {
  position: relative;
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.frame > section {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform: scale(var(--s, 0.5));
  transform-origin: 0 0;
}
.frame section * {
  margin: 0;
}
.frame section img {
  display: block;
}
.frame section ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 1.1em;
}
.frame section li::marker {
  color: #d8ad4e;
}
.frame section table {
  border-collapse: collapse;
}
.frame section th,
.frame section td {
  padding: 18px 0;
  border-bottom: 1px solid rgba(31, 26, 21, 0.18);
  text-align: left;
}
.frame section th {
  border-bottom: 2px solid #1f1a15;
  color: #4a4238;
  font-weight: 600;
}

/* The PDF: one slide a page, at the slide's own size. */
@page {
  size: 1920px 1080px;
  margin: 0;
}
@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .bar,
  .note {
    display: none !important;
  }
  .deck {
    display: block;
    padding: 0;
  }
  .frame {
    width: 1920px;
    max-width: none;
    height: 1080px;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
  }
  .frame > section {
    transform: none;
  }
}
