/* ------------------------------------------------------------------ *
 *  Saving Conda — deck styles. Stage is a fixed 1920×1080; reveal.js
 *  scales it. All sizes below are px on that stage.
 * ------------------------------------------------------------------ */
:root {
  --yellow: #ffd432;   /* prefix.dev primary */
  --amber: #ffca16;
  --ink: #001d38;      /* prefix.dev navy */
  --soft: #5b6b80;
  --paper: #f8f6f2;
  --sand: #f1ede4;
  --blue: #5773ff;
  --good: #70c038;
  --bad: #ff6b38;
  --display: 'Moranga', Georgia, 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
}

html, body, body.reveal-viewport { background: #f8f6f2; }
.reveal { font-family: var(--body); font-size: 44px; line-height: 1.36; color: var(--ink); font-weight: 400; }
.reveal .slides { text-align: left; }
.reveal .slides section { width: 1920px; height: 1080px; padding: 92px 120px 128px; box-sizing: border-box; top: 0 !important; }
/* PDF export (?view=print): reveal zeroes the padding there — put it back */
html.reveal-print .reveal .slides .pdf-page section { padding: 92px 120px 128px !important; height: 1080px !important; }
.reveal .progress { color: var(--yellow); height: 6px; background: rgba(0, 29, 56, 0.12); }

/* paper grain over everything, like the tooth of the sheet */
.reveal::after {
  content: ''; position: absolute; inset: 0; z-index: 40; pointer-events: none; opacity: 0.11; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* painted backgrounds */
.reveal .painting { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reveal .vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 20, 40, 0.38)); }

/* ---------------- type ---------------- */
.reveal h1, .reveal h2, .reveal h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.012em; line-height: 1.02; color: inherit; text-transform: none; }
.reveal h1 { font-size: 236px; font-weight: 700; line-height: 0.9; }
.reveal h2 { font-size: 96px; margin-bottom: 44px; }
.reveal h2.fit { font-size: 84px; }
.reveal h3 { font-size: 60px; font-weight: 500; }
.reveal p { margin: 0 0 26px; }
.kicker { font-family: var(--hand); font-size: 52px; color: var(--soft); margin: 0 0 6px !important; line-height: 1; }
.hand { font-family: var(--hand); font-size: 64px; line-height: 1.1; }
.hand.lg { font-size: 84px; }
.soft { color: var(--soft); }
.mono, .reveal code { font-family: var(--mono); font-size: 0.86em; }
.reveal strong { font-weight: 600; }
.reveal mark { color: inherit; padding: 0 0.12em; margin: 0 -0.06em; background: linear-gradient(transparent 70%, var(--yellow) 70%, var(--yellow) 96%, transparent 96%); }
.s-yellow mark { background: linear-gradient(transparent 70%, rgba(255, 255, 255, 0.72) 70%, rgba(255, 255, 255, 0.72) 96%, transparent 96%); }

.reveal ul { list-style: none; margin: 0; padding: 0; }
.reveal ul li { position: relative; padding-left: 58px; margin-bottom: 26px; }
.reveal ul li::before { content: ''; position: absolute; left: 4px; top: 0.42em; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--ink); }

/* ---------------- slide kinds ---------------- */
/* (reveal copies a slide's classes onto its background element, hence the explicit `section`) */
section.s-paper::after { content: ''; position: absolute; right: 116px; bottom: 44px; width: 150px; height: 40px; background: url(../assets/prefix_logo_light.svg) no-repeat right center / contain; opacity: 0.9; }
.s-yellow .kicker { color: rgba(0, 29, 56, 0.66); }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.cols.top { align-items: start; }
.center { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.big { font-family: var(--display); font-weight: 600; font-size: 150px; line-height: 1.02; letter-spacing: -0.015em; margin: 0 !important; }
.big.xl { font-size: 178px; }
.s-yellow .big mark { background: linear-gradient(transparent 74%, rgba(255, 255, 255, 0.72) 74%, rgba(255, 255, 255, 0.72) 97%, transparent 97%); }

/* a sheet of paper lying on the painting */
.card { background: linear-gradient(128deg, rgba(255, 255, 255, 0.55), transparent 45%), var(--paper); color: var(--ink); border-radius: 5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 3px rgba(0, 0, 0, 0.22), 0 34px 80px rgba(0, 16, 34, 0.5); padding: 70px 90px; position: absolute; }
.title-card { left: 140px; top: 150px; width: 1050px; transform: rotate(-2deg); padding: 80px 100px 70px; }
.title-card .ring { position: absolute; right: -210px; top: -110px; width: 400px; transform: rotate(14deg); filter: drop-shadow(0 18px 22px rgba(0, 16, 34, 0.35)); }
.title-card .ul { width: 660px; height: 44px; margin: 14px 0 30px 4px; }
.title-card.thanks { top: 200px; width: 1120px; padding-top: 64px; }
.title-card.thanks h1, .title-card.compact h1 { font-size: 176px; line-height: 1; }
.title-card.compact { left: 90px; top: 56px; width: auto; padding: 48px 84px 46px 76px; }
.title-card.compact .ul { width: 540px; }
.title-card.thanks .ring { width: 250px; right: -120px; top: -90px; }
.title-card.thanks .links { margin-top: 30px; }
.title-card .by { font-size: 46px; margin: 0; }
.title-card .by b { font-weight: 600; }
.part-card { left: 150px; bottom: 150px; max-width: 1300px; transform: rotate(-1.4deg); }
.part-card.right { left: auto; right: 150px; transform: rotate(1.3deg); }
.part-card h2 { font-size: 132px; margin: 0; }
.part-card .kicker { font-size: 60px; }

/* boxes with a hand-drawn edge */
.box { border: 5px solid var(--ink); border-radius: var(--wobble); background: #fffdf8; padding: 34px 40px; position: relative; }
.box.y { background: var(--yellow); }
.box.sand { background: var(--sand); }
.box h3 { margin-bottom: 14px; }
.box p:last-child { margin-bottom: 0; }
.box.sm { padding: 26px 34px 28px; }
.box.sm h3 { font-size: 52px; margin: 0; }
.box.sm p { font-size: 36px; line-height: 1.25; margin: 8px 0 0; color: var(--soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.tag { display: inline-block; font-family: var(--hand); font-size: 42px; line-height: 1; background: var(--yellow); border: 4px solid var(--ink); border-radius: var(--wobble); padding: 8px 22px 10px; }
.tag.plain { background: #fffdf8; }
.tag.lg { font-size: 52px; }

/* "five things" cards */
.five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px; margin-top: 50px; }
.five .box { min-height: 420px; padding: 30px 30px; }
.five .box:nth-child(odd) { transform: rotate(-1.6deg); }
.five .box:nth-child(even) { transform: rotate(1.4deg) translateY(26px); }
.five .n { font-family: var(--hand); font-size: 96px; line-height: 0.8; color: var(--soft); }
.five h3 { font-size: 46px; margin: 22px 0 16px; }
.five p { font-size: 36px; line-height: 1.3; color: var(--soft); }

/* the tracker along the bottom edge */
.tracker { position: absolute; left: 120px; bottom: 40px; display: flex; gap: 16px; font-family: var(--hand); font-size: 36px; line-height: 1; }
.tracker .t { padding: 6px 20px 9px; border: 3px solid rgba(0, 29, 56, 0.22); border-radius: var(--wobble); color: rgba(0, 29, 56, 0.45); white-space: nowrap; }
.tracker .t.done { color: var(--ink); border-color: var(--ink); }
.tracker .t.active { color: var(--ink); border-color: var(--ink); background: var(--yellow); }

/* terminal */
.term { background: #06121f; border: 3px solid #2c4865; border-radius: 20px; padding: 26px 40px 40px; font-family: var(--mono); font-size: 27px; line-height: 1.65; color: #dfe8f2; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); white-space: pre-wrap; }
.term .bar { display: flex; gap: 12px; margin-bottom: 22px; }
.term .bar i { width: 18px; height: 18px; border-radius: 50%; background: #2c4865; }
.term .p { color: var(--yellow); }
.term .dim { color: #7f93aa; }
.term .spin { color: var(--yellow); font-weight: 700; display: inline-block; width: 1ch; }
.elapsed { font-family: var(--hand); font-size: 64px; color: var(--soft); margin-top: 26px; text-align: right; }

/* code on paper */
.code { font-variant-ligatures: none; font-family: var(--mono); font-size: 27px; line-height: 1.42; white-space: pre; margin: 0; }
.code .k { color: #0b57c9; } .code .s { color: #2c7a0c; } .code .j { color: #c2410c; font-weight: 700; } .code .c { color: #8b94a3; }
.label { font-family: var(--hand); font-size: 46px; line-height: 1; margin-bottom: 16px; display: block; }
.vs { font-family: var(--hand); font-size: 90px; align-self: center; }

/* people */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin-top: 36px; }
.people .box { text-align: center; padding: 30px 26px 30px; }
.people .box:nth-child(odd) { transform: rotate(-1.3deg); }
.people .box:nth-child(even) { transform: rotate(1.2deg) translateY(18px); }
.people .art { width: 170px; margin: 0 auto 14px; }
.people h3 { font-size: 50px; }
.people p { font-family: var(--hand); font-size: 44px; line-height: 1.08; margin-top: 12px; }

/* placeholder cards the speaker still has to fill */
.three .row { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 50px; align-items: center; margin-bottom: 20px; }
.three h3 { font-size: 52px; margin: 10px 0 8px; }
.three .row > div > p { font-size: 34px; line-height: 1.25; margin: 0; color: var(--soft); }
.three .tag { font-size: 34px; }
.three .box.sm { padding: 18px 30px 20px; }
.shot { border: 5px solid var(--ink); border-radius: var(--wobble); overflow: hidden; background: #f8fafc; width: 1500px; margin: 0 auto; transform: rotate(-0.5deg); }
.shot img { display: block; width: 100%; margin: 0; }
.reveal .shot img { max-width: none; max-height: none; }
/* the full page is 1440 wide; show x 150–1290, y 232–640 of it */
.shot.v1 { height: 537px; }
.reveal .shot.v1 img { width: 1895px; max-width: none; max-height: none; margin: -305px 0 0 -197px; }
.shot-src { font-family: var(--hand); font-size: 40px; line-height: 1; color: var(--soft); text-align: right; margin: 16px 100px 0 0; }
.quotes { display: grid; grid-template-columns: 1.25fr 1fr; gap: 50px; margin-top: 44px; align-items: start; }
.quotes .box:first-child { transform: rotate(-0.8deg); }
.quotes .box:last-child { transform: rotate(0.9deg) translateY(30px); }
.quotes .q { font-size: 40px; line-height: 1.32; margin: 0 0 22px; }
.quotes .who { font-family: var(--hand); font-size: 50px; line-height: 1; margin: 30px 0 0; text-align: right; color: var(--soft); }
.todo { border: 5px dashed rgba(0, 29, 56, 0.45); border-radius: 18px; padding: 40px; min-height: 360px; display: flex; flex-direction: column; justify-content: center; text-align: center; font-family: var(--hand); font-size: 52px; line-height: 1.1; color: var(--soft); position: relative; background: rgba(255, 255, 255, 0.5); }
.todo .sm { font-size: 36px; }
.todo .tape, .draft-tape { position: absolute; top: -28px; left: 50%; transform: translateX(-50%) rotate(-3deg); background: var(--bad); color: #fff; font-family: var(--mono); font-size: 26px; font-weight: 700; padding: 8px 22px; letter-spacing: 0.06em; }
.draft-tape { top: 60px; left: auto; right: 120px; transform: rotate(4deg); }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.flow .box { padding: 24px 26px; font-size: 34px; line-height: 1.25; }
.flow .box::before { counter-increment: step; content: counter(step); font-family: var(--hand); font-size: 60px; line-height: 0.8; display: block; color: var(--soft); margin-bottom: 8px; }

.links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.stat { font-family: var(--display); font-weight: 700; font-size: 250px; line-height: 0.9; letter-spacing: -0.02em; }
.stat small { font-size: 0.5em; font-weight: 600; }

/* ---------------- ink that draws itself ---------------- */
.art { color: var(--ink); }
.art svg { display: block; width: 100%; height: auto; overflow: visible; }
.sk .t-hand { font-family: var(--hand); } .sk .t-display { font-family: var(--display); } .sk .t-mono { font-family: var(--mono); } .sk .t-body { font-family: var(--body); }
.draw { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
.go .draw { animation: draw var(--dur, 0.55s) cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: calc(var(--i, 0) * var(--step, 70ms)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pop { opacity: 0; }
.go .pop { animation: pop 0.4s ease-out forwards; animation-delay: calc(var(--i, 0) * var(--step, 70ms) + 140ms); }
@keyframes pop { to { opacity: var(--o, 1); } }
.anim { opacity: 0; }
.anim.go { animation: rise 0.4s ease-out both; }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }

/* the rocket rides the tip of its line while the line draws */
.rocket { offset-rotate: auto; offset-distance: 0%; opacity: 0; }
.go .rocket { animation: fly var(--dur, 2.6s) cubic-bezier(0.4, 0, 0.2, 1) both; animation-delay: calc(var(--i, 0) * var(--step, 70ms)); }
@keyframes fly { from { offset-distance: 0%; opacity: 1; } to { offset-distance: 100%; opacity: 1; } }

/* ---------------- a real painting, with bubbles ---------------- */
.s-painting .credit { position: absolute; right: 40px; bottom: 26px; font-size: 24px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); opacity: 0.9; }
.s-painting .head { left: 110px; top: 80px; padding: 34px 54px 38px; transform: rotate(-1.5deg); }
.s-painting .head h2 { margin: 0; font-size: 92px; }
.bub { position: absolute; }
.bubble { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: var(--s, 330px); height: var(--s, 330px); border-radius: 50%; box-sizing: border-box; padding: 26px;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.98), rgba(250, 247, 240, 0.9) 58%, rgba(241, 237, 228, 0.86)); border: 5px solid var(--ink);
  box-shadow: 0 26px 50px rgba(0, 20, 40, 0.38), inset -10px -14px 30px rgba(0, 29, 56, 0.07); font-family: var(--display); font-weight: 600; font-size: 56px; line-height: 1.02; color: var(--ink); }
.bubble small { font-family: var(--hand); font-weight: 400; font-size: 38px; margin-top: 8px; color: var(--soft); line-height: 1; }
.bubble.y { background: radial-gradient(circle at 32% 26%, #fff3b8, var(--yellow) 60%, var(--amber)); }
.bubble.bud { border-style: dashed; background: rgba(255, 255, 255, 0.62); font-family: var(--hand); font-weight: 400; font-size: 50px; color: var(--ink); box-shadow: 0 14px 30px rgba(0, 20, 40, 0.22); }
.anim.go.bub { animation: bloom 0.6s cubic-bezier(0.2, 0.9, 0.25, 1) both; animation-delay: var(--d, 0ms); }
@keyframes bloom { from { opacity: 0; scale: 0.2; } 70% { opacity: 1; scale: 1.08; } to { opacity: 1; scale: 1; } }

/* slide overview (Esc / O): show every drawing finished */
.reveal.overview .draw { stroke-dashoffset: 0; }
.reveal.overview .pop { opacity: var(--o, 1); }
.reveal.overview .anim { opacity: 1; }

.no-anim .draw { stroke-dashoffset: 0 !important; animation: none !important; }
.no-anim .pop { opacity: var(--o, 1) !important; animation: none !important; }
.no-anim .anim { opacity: 1 !important; animation: none !important; }
.no-anim .rocket { animation: none !important; offset-distance: 100%; opacity: 1; }
.reveal.overview .rocket { offset-distance: 100%; opacity: 1; }

@media print { .reveal::after { display: none; } }
