/* Shared styling for the open-deck.org example decks.
   OpenDeck "Zen / Paper" look: ink-on-paper, Inter + Newsreader, hierarchy
   from type + space. Plus the REQUIRED engine styles (data-step reveals, step
   dots, tooltip) so reveals/tooltips work. Slides are 1920×1080 canvases the
   deck-stage engine auto-scales to fit. */

@font-face { font-family: "Inter"; font-weight: 300 700; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 500; font-display: swap; src: url("/fonts/newsreader-italic-latin.woff2") format("woff2"); }

html, body { margin: 0; padding: 0; background: #0A0A0A; }
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
deck-stage:not(:defined) { visibility: hidden; }
deck-stage { background: #0A0A0A; }

/* Each slide is a full-bleed canvas at the deck's design size. */
section {
  background: #FAFAF8; color: #1A1A1A; position: relative; overflow: hidden;
  box-sizing: border-box; padding: 120px 150px;
  display: flex; flex-direction: column; justify-content: center;
}
section.dark { background: #0F0F0E; color: #F4F4EF; }

.eyebrow { font-size: 26px; letter-spacing: .18em; text-transform: uppercase; color: #9A9A92; font-weight: 600; margin: 0 0 36px; }
h1 { font-size: 132px; line-height: 1.02; font-weight: 600; margin: 0 0 36px; letter-spacing: -.03em; }
h2 { font-size: 84px; line-height: 1.06; font-weight: 600; margin: 0 0 56px; letter-spacing: -.02em; }
.ital { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 400; }
p.lead { font-size: 42px; line-height: 1.4; color: #6E6E68; max-width: 1300px; margin: 0; }
.dark p.lead { color: #9A9A92; }

.row { display: flex; gap: 32px; margin-top: 8px; }
.tile { flex: 1; background: #FFFFFF; border: 1px solid rgba(26,26,26,.08); border-radius: 22px; padding: 52px; }
.dark .tile { background: #161615; border-color: rgba(245,245,240,.10); }
.tile h3 { font-size: 44px; margin: 0 0 16px; font-weight: 600; letter-spacing: -.01em; }
.tile p { font-size: 30px; line-height: 1.4; color: #6E6E68; margin: 0; }
.dark .tile p { color: #9A9A92; }
.tile.accent { background: #1A1A1A; color: #FAFAF8; border-color: #1A1A1A; }
.tile.accent p { color: rgba(250,250,248,.72); }

.bignum { font-size: 220px; font-weight: 600; letter-spacing: -.04em; line-height: 0.95; }
.bignum .unit { font-size: 96px; color: #9A9A92; }

/* ── REQUIRED engine styles (reveals / step dots / tooltip) ───────────── */
deck-stage [data-step] {
  opacity: 0; transform: translateY(12px);
  transition: opacity 480ms cubic-bezier(.2,0,0,1), transform 480ms cubic-bezier(.2,0,0,1);
  pointer-events: none;
}
[data-step].step-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
[data-step].step-past { opacity: .92; }
[data-step].step-current { opacity: 1; }

deck-stage .step-dots { position: absolute; bottom: 44px; left: 150px; display: none; gap: 8px; align-items: center; z-index: 4; }
deck-stage .step-dots.has-steps { display: flex; }
.step-dots .dot { width: 14px; height: 2px; background: rgba(26,26,26,.22); transition: background 200ms ease, width 200ms ease; }
.step-dots .dot.on { background: rgba(26,26,26,.5); }
.step-dots .dot.current { background: #1A1A1A; width: 28px; }
.dark .step-dots .dot { background: rgba(245,245,240,.3); }
.dark .step-dots .dot.on { background: rgba(245,245,240,.6); }
.dark .step-dots .dot.current { background: #F4F4EF; }

[data-tip] { cursor: help; }
#deck-tip {
  position: fixed; left: 0; top: 0; background: #1A1A1A; color: #fff;
  padding: 18px 22px; font-size: 24px; line-height: 1.45; max-width: 560px;
  pointer-events: none; opacity: 0; z-index: 9999; border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.30); transition: opacity 180ms ease; --tip-arrow-x: 50%;
}
#deck-tip.show { opacity: 1; }
#deck-tip::after { content: ''; position: absolute; left: var(--tip-arrow-x); width: 14px; height: 14px; background: #1A1A1A; transform: translateX(-50%) rotate(45deg); bottom: -7px; top: auto; }
#deck-tip.below::after { bottom: auto; top: -7px; }
