/* Branching Out — a paper-and-ink talk site (responsive).
   All sizes use --p, a fluid "design pixel":
     wide windows:  1 p ≈ 1px on a 1600×900 window, grows/shrinks with the window
     tall windows:  layouts stack and --p is tuned for portrait/phones
   On a 1600-wide projector, 60p = 36pt, the minimum for on-screen text. */

:root {
  --p: calc(min(1vw, 1.778vh) / 16);
  --min: calc(60 * var(--p));
  --table: #efe7da;
  --paper: #fffaf0;
  --card: #fffdf7;
  --ink: #1f1c4d;
  --ink-soft: #4a4670;
  --magenta: #c2338f;
  --teal: #0f7f7d;
  --purple: #6744c0;
  --cyan: #1590c9;
  --rule: #b9d3ea;
  --margin: #e59bb7;
  --sticky-pink: #fbd8e8;
  --sticky-lilac: #e4dbfb;
  --sticky-aqua: #d3f1ee;
  --sticky-sky: #d8ecfb;
  --serif: "Fraunces", Georgia, serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --body: "Atkinson Hyperlegible", Verdana, sans-serif;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.3  0 0 0 0 0.25  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (max-aspect-ratio: 1/1) {
  :root { --p: calc(min(1.6vw, 1.05vh) / 16); }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font-family: var(--body); color: var(--ink); background: var(--table) var(--noise); }
body::before, body::after {
  content: ""; position: fixed; width: 62vmax; height: 62vmax; border-radius: 50%;
  background: url(assets/watercolor.jpg) center/cover; opacity: .5; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%);
          mask-image: radial-gradient(circle, #000 20%, transparent 68%);
}
body::before { left: -30vmax; top: -32vmax; }
body::after { right: -30vmax; bottom: -34vmax; transform: rotate(140deg); }

/* ---------- screens ---------- */
#deck { position: fixed; inset: 0; z-index: 1; }
.screen {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(40 * var(--p));
  padding: calc(76 * var(--p)) calc(80 * var(--p)) calc(120 * var(--p));
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
  font-size: var(--min);
}
.screen.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.notes { display: none; }
.wrap { width: min(100%, calc(1440 * var(--p))); }

/* ---------- paper objects ---------- */
.paper, .card, .sticky, .scrap, .photo, .strip {
  position: relative; background: var(--paper) var(--noise);
  box-shadow: 0 2px 3px rgba(60,40,20,.12), 0 18px 40px -12px rgba(60,40,20,.28);
}
.paper { padding: calc(70 * var(--p)) calc(100 * var(--p)); }
.card {
  --line: calc(80 * var(--p));
  background:
    linear-gradient(90deg, transparent calc(118 * var(--p)), var(--margin) calc(118 * var(--p)), var(--margin) calc(121 * var(--p)), transparent calc(121 * var(--p))),
    repeating-linear-gradient(transparent 0 calc(var(--line) - 2px), var(--rule) calc(var(--line) - 2px) var(--line)),
    var(--card);
  background-position: 0 0, 0 calc(30 * var(--p)), 0 0;
  padding: calc(50 * var(--p)) calc(90 * var(--p)) calc(60 * var(--p)) calc(170 * var(--p));
  width: min(100%, calc(1340 * var(--p)));
  transform: rotate(-.6deg);
}
.card.alt { transform: rotate(.7deg); }
.sticky { padding: calc(46 * var(--p)) calc(50 * var(--p)); background-color: var(--sticky-pink); background-image: var(--noise); }
.sticky.lilac { background-color: var(--sticky-lilac); } .sticky.aqua { background-color: var(--sticky-aqua); }
.sticky.sky { background-color: var(--sticky-sky); }
.scrap { padding: calc(60 * var(--p)) calc(80 * var(--p)); }
.photo { background: #fff; padding: calc(22 * var(--p)); }
.photo img { display: block; width: 100%; height: auto; }

/* torn edges: JS adds .bg with a jagged clip-path; the parent casts the shadow */
.torn { background: none !important; box-shadow: none !important; isolation: isolate;
  filter: drop-shadow(0 2px 2px rgba(60,40,20,.12)) drop-shadow(0 calc(16 * var(--p)) calc(22 * var(--p)) rgba(60,40,20,.22)); }
.torn > .bg { position: absolute; inset: 0; z-index: -1; background: var(--paper) var(--noise); }

/* washi tape (positioned on its parent) */
.tape {
  position: absolute; z-index: 3; width: calc(230 * var(--p)); height: calc(56 * var(--p)); opacity: .86;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 calc(12 * var(--p)), transparent calc(12 * var(--p)) calc(24 * var(--p))), var(--tc, #e98fb9);
  -webkit-mask-image: linear-gradient(90deg, transparent 0 2%, #000 4% 96%, transparent 98%);
          mask-image: linear-gradient(90deg, transparent 0 2%, #000 4% 96%, transparent 98%);
}
.tape.teal { --tc: #7fcfc8; } .tape.lilac { --tc: #b9a6ef; } .tape.sky { --tc: #8cc6ec; }
.tape.tl { left: calc(-40 * var(--p)); top: calc(-24 * var(--p)); transform: rotate(-14deg); }
.tape.tr { right: calc(-40 * var(--p)); top: calc(-22 * var(--p)); transform: rotate(10deg); }
.tape.tc { left: 50%; top: calc(-28 * var(--p)); transform: translateX(-50%) rotate(-3deg); }

/* ---------- type ---------- */
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: calc(150 * var(--p)); line-height: .92; }
h2 { font-size: calc(92 * var(--p)); line-height: 1.04; }
h3 { font-family: var(--serif); font-size: calc(70 * var(--p)); line-height: 1.05; font-weight: 700; }
p, li { font-size: var(--min); line-height: 1.33; }
.hand { font-family: var(--hand); font-weight: 700; color: var(--magenta); font-size: calc(84 * var(--p)); line-height: 1.05; }
.hand.teal { color: var(--teal); } .hand.purple { color: var(--purple); } .hand.cyan { color: var(--cyan); }
.em { color: var(--magenta); }
.u { background: linear-gradient(transparent 72%, rgba(194,51,143,.28) 72% 94%, transparent 94%); }
.hl { background: linear-gradient(104deg, transparent 1%, #fff09a 3% 96%, transparent 99%); padding: 0 .08em; }
.soft { color: var(--ink-soft); }
.title-row { width: min(100%, calc(1440 * var(--p))); }

ul.ink { list-style: none; padding: 0; margin: 0; }
ul.ink li { position: relative; padding-left: 1.15em; line-height: calc(80 * var(--p)); }
ul.ink li::before { content: "✓"; position: absolute; left: 0; font-family: var(--hand); font-weight: 700; color: var(--magenta); font-size: 1.33em; line-height: calc(80 * var(--p)); }
.code-stamp {
  display: inline-block; font-family: var(--hand); font-weight: 700; font-size: calc(84 * var(--p)); color: var(--teal);
  border: calc(5 * var(--p)) solid currentColor; border-radius: calc(14 * var(--p)); padding: 0 .3em; transform: rotate(-3deg); line-height: 1.15;
}
.card h2 { margin: calc(26 * var(--p)) 0 calc(30 * var(--p)); font-size: calc(88 * var(--p)); }

/* ---------- screen types ---------- */
/* title */
.s-title .layout { display: flex; align-items: center; gap: calc(30 * var(--p)); width: min(100%, calc(1460 * var(--p))); }
.s-title .paper { flex: 1 1 calc(1000 * var(--p)); transform: rotate(-1.2deg); min-height: calc(640 * var(--p)); display: flex; flex-direction: column; justify-content: center; }
.s-title .sub { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin-top: calc(30 * var(--p)); line-height: 1.15; }
.s-title .swatch { flex: 0 0 calc(460 * var(--p)); height: calc(640 * var(--p)); transform: rotate(2.4deg); }
.s-title .swatch .art { width: 100%; height: 100%; background: url(assets/swirl.jpg) center/cover; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(30 * var(--p)); }
.s-title .swatch .name { background: rgba(255,250,240,.93); padding: calc(22 * var(--p)) calc(26 * var(--p)); font-family: var(--serif); font-size: var(--min); line-height: 1.1; }
.s-title .swatch .name small { display: block; font-family: var(--hand); font-weight: 700; color: var(--magenta); font-size: calc(64 * var(--p)); margin-top: calc(10 * var(--p)); }

/* question */
.s-question .paper { width: min(100%, calc(1300 * var(--p))); padding: calc(110 * var(--p)) calc(110 * var(--p)); transform: rotate(.8deg); }
.s-question .q { font-family: var(--hand); font-weight: 700; font-size: calc(168 * var(--p)); line-height: .95; color: var(--purple); }
.s-question .answer { font-family: var(--serif); font-weight: 700; font-size: calc(110 * var(--p)); margin-top: calc(34 * var(--p)); }

/* section divider */
.s-part .scrap { width: min(100%, calc(1180 * var(--p))); padding: calc(70 * var(--p)) calc(100 * var(--p)) calc(80 * var(--p)); transform: rotate(-1deg); text-align: center; }
.s-part .verb { font-family: var(--hand); font-weight: 700; font-size: calc(230 * var(--p)); line-height: .85; color: var(--magenta); }
.s-part h2 { font-size: calc(96 * var(--p)); margin-top: calc(10 * var(--p)); }
.s-part p { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin-top: calc(16 * var(--p)); }
.s-part .git { font-family: ui-monospace, Consolas, monospace; font-size: var(--min); color: var(--teal); margin-bottom: calc(18 * var(--p)); word-break: break-word; }

/* principle sticky */
.s-principle .sticky { width: min(100%, calc(1220 * var(--p))); min-height: calc(600 * var(--p)); display: flex; flex-direction: column; justify-content: center; padding: calc(60 * var(--p)) calc(100 * var(--p)); }
.s-principle .n { font-family: var(--hand); font-weight: 700; font-size: calc(84 * var(--p)); color: var(--magenta); }
.s-principle h2 { font-size: calc(112 * var(--p)); margin: calc(6 * var(--p)) 0 calc(40 * var(--p)); }
.s-principle .line { color: var(--ink-soft); }

/* staggered strips (fears, feelings) */
.stack { display: flex; flex-direction: column; gap: calc(26 * var(--p)); width: min(100%, calc(1440 * var(--p))); }
.strip { align-self: flex-start; padding: calc(22 * var(--p)) calc(46 * var(--p)); font-family: var(--serif); font-weight: 700; font-size: calc(72 * var(--p)); line-height: 1.15; }
.strip:nth-child(1) { margin-left: 0; transform: rotate(-2deg); }
.strip:nth-child(2) { margin-left: calc(160 * var(--p)); transform: rotate(1.5deg); }
.strip:nth-child(3) { margin-left: calc(320 * var(--p)); transform: rotate(-1deg); }
.strip:nth-child(4) { margin-left: calc(480 * var(--p)); transform: rotate(2deg); }
.strip.hw { font-family: var(--hand); font-size: calc(120 * var(--p)); }
.stack .aside { position: absolute; right: 0; top: 0; width: calc(520 * var(--p)); transform: rotate(-4deg); }
.stack { position: relative; }

/* tree */
.s-tree .paper { width: min(100%, calc(1400 * var(--p))); padding: calc(50 * var(--p)) calc(80 * var(--p)); transform: rotate(-.5deg); }
.s-tree svg { display: block; width: 100%; height: auto; margin-top: calc(40 * var(--p)); }
.s-tree svg text { font-family: "Caveat", cursive; font-weight: 700; font-size: 76px; }
.rough { filter: url(#rough); }

/* garden */
.s-garden .paper { width: min(100%, calc(1360 * var(--p))); transform: rotate(.6deg); }
.s-garden .inner { display: flex; gap: calc(70 * var(--p)); align-items: center; margin-top: calc(40 * var(--p)); }
.s-garden .inner svg { flex: 0 0 calc(330 * var(--p)); width: calc(330 * var(--p)); height: auto; }

/* demo */
.s-demo .layout { display: flex; align-items: center; gap: calc(60 * var(--p)); width: min(100%, calc(1420 * var(--p))); }
.s-demo .paper { flex: 1 1 calc(880 * var(--p)); transform: rotate(-1deg); }
.s-demo .url { font-family: var(--serif); font-weight: 700; font-size: calc(92 * var(--p)); line-height: 1.02; color: var(--magenta); margin: calc(26 * var(--p)) 0 calc(34 * var(--p)); }
.s-demo .photo { flex: 0 0 calc(480 * var(--p)); transform: rotate(3deg); padding-bottom: calc(90 * var(--p)); }
.s-demo .qr { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.s-demo .qr img, .s-demo .qr canvas { width: 100% !important; height: auto !important; image-rendering: pixelated; }
.s-demo .cap { position: absolute; left: 0; right: 0; bottom: calc(12 * var(--p)); text-align: center; font-family: var(--hand); font-weight: 700; font-size: calc(64 * var(--p)); }

/* sequence */
.s-seq .paper { width: min(100%, calc(1400 * var(--p))); transform: rotate(-.6deg); padding: calc(70 * var(--p)) calc(80 * var(--p)) calc(90 * var(--p)); }
.steps { display: flex; flex-wrap: wrap; justify-content: space-between; gap: calc(30 * var(--p)); margin-top: calc(80 * var(--p)); position: relative; }
.step { text-align: center; flex: 1 1 calc(200 * var(--p)); }
.ring { width: calc(140 * var(--p)); height: calc(140 * var(--p)); margin: 0 auto calc(22 * var(--p)); border: calc(7 * var(--p)) solid currentColor;
  border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%; display: grid; place-items: center; font-family: var(--hand); font-weight: 700; font-size: calc(100 * var(--p)); background: var(--paper); transform: rotate(-4deg); }
.step p { font-family: var(--serif); font-weight: 700; }

/* site screenshot */
.s-site .layout { display: flex; align-items: center; gap: calc(60 * var(--p)); width: min(100%, calc(1440 * var(--p))); }
.s-site .photo { flex: 1 1 calc(860 * var(--p)); transform: rotate(-1.6deg); }
.s-site .note { flex: 0 1 calc(500 * var(--p)); }
.s-site .note .addr { font-family: var(--serif); font-weight: 700; font-size: calc(70 * var(--p)); line-height: 1.05; color: var(--magenta); }

/* rows of stickies */
.row { display: flex; gap: calc(46 * var(--p)); width: min(100%, calc(1400 * var(--p))); align-items: stretch; }
.row .sticky { flex: 1 1 0; min-height: calc(520 * var(--p)); display: flex; flex-direction: column; }
.row .sticky:nth-child(odd) { transform: rotate(-1.6deg); } .row .sticky:nth-child(even) { transform: rotate(1.4deg) translateY(calc(14 * var(--p))); }
.row .when { font-family: var(--hand); font-weight: 700; font-size: calc(68 * var(--p)); color: var(--magenta); line-height: 1; }
.row h3 { margin-top: calc(14 * var(--p)); }
.row .foot { margin-top: auto; padding-top: calc(20 * var(--p)); }

/* quotes */
.s-quote .lead { width: min(100%, calc(1320 * var(--p))); }
.s-quote .scrap { width: min(100%, calc(1320 * var(--p))); transform: rotate(-.8deg); padding: calc(70 * var(--p)) calc(100 * var(--p)) calc(80 * var(--p)); }
.s-quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: calc(78 * var(--p)); line-height: 1.2; }
.s-quote .who { font-family: var(--hand); font-weight: 700; font-size: calc(70 * var(--p)); color: var(--teal); margin-top: calc(30 * var(--p)); text-align: right; }

/* closing verbs */
.s-verbs { text-align: center; }
.s-verbs .words { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 calc(70 * var(--p)); }
.s-verbs .words span { font-family: var(--hand); font-weight: 700; font-size: calc(190 * var(--p)); line-height: 1.05; }

/* generic centered paper */
.s-center .paper { width: min(100%, calc(1280 * var(--p))); min-height: calc(600 * var(--p)); transform: rotate(-.7deg); display: flex; flex-direction: column; justify-content: center; }

/* ---------- tall / narrow windows: stack side-by-side layouts ---------- */
@media (max-aspect-ratio: 1/1) {
  .screen { justify-content: flex-start; padding-top: calc(120 * var(--p)); }
  .s-title .layout, .s-demo .layout, .s-site .layout, .s-garden .inner { flex-direction: column; align-items: stretch; }
  .s-title .paper, .s-demo .paper, .s-site .photo { flex: none; }
  .s-title .swatch { flex: none; height: calc(420 * var(--p)); width: 100%; }
  .s-demo .photo { flex: none; width: min(100%, calc(520 * var(--p))); align-self: center; }
  .s-site .note { flex: none; }
  .row { flex-direction: column; }
  .row .sticky { min-height: 0; }
  .row .foot { margin-top: calc(16 * var(--p)); }
  .strip:nth-child(n) { margin-left: 0; }
  .strip:nth-child(even) { align-self: flex-end; }
  .stack .aside { position: static; width: auto; }
  .card { padding-left: calc(110 * var(--p)); padding-right: calc(50 * var(--p));
    background: repeating-linear-gradient(transparent 0 calc(var(--line) - 2px), var(--rule) calc(var(--line) - 2px) var(--line)), var(--card); }
  .s-garden .inner svg { align-self: center; }
  .row .sticky { flex: none; }
  .row .sticky:nth-child(even) { transform: rotate(1.4deg); }
  .paper, .scrap, .s-question .paper, .s-part .scrap, .s-quote .scrap { padding: calc(60 * var(--p)) calc(56 * var(--p)); }
  .s-principle .sticky { padding: calc(56 * var(--p)) calc(56 * var(--p)); min-height: 0; }
  h1, .s-title h1 { font-size: calc(118 * var(--p)) !important; }
  h2 { font-size: calc(84 * var(--p)) !important; }
  .s-principle h2 { font-size: calc(96 * var(--p)) !important; }
  .s-question .q { font-size: calc(130 * var(--p)) !important; }
  .s-part .verb { font-size: calc(170 * var(--p)); }
  .s-verbs .words span { font-size: calc(150 * var(--p)); }
  .strip { max-width: 100%; }
  .strip.hw { font-size: calc(100 * var(--p)); }
}
.screen h1, .screen h2, .screen h3, .screen p, .screen li, .screen blockquote, .strip { overflow-wrap: break-word; }

/* ---------- chrome (navigation; not slide content) ---------- */
#tabs { position: fixed; top: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
#tabs button {
  font-family: var(--hand); font-weight: 700; font-size: clamp(16px, calc(30 * var(--p)), 30px); color: var(--ink); border: 0; cursor: pointer;
  padding: 4px 20px 6px; border-radius: 0 0 10px 10px; background: rgba(255,250,240,.92); box-shadow: 0 3px 8px rgba(60,40,20,.15);
}
#tabs button.on { background: var(--magenta); color: #fff; }
.site-url { position: absolute; right: calc(36 * var(--p)); bottom: calc(26 * var(--p)); z-index: 6; font-family: var(--hand); font-weight: 700; font-size: var(--min); line-height: 1;
  background: rgba(255,250,240,.94); padding: calc(4 * var(--p)) calc(22 * var(--p)) calc(8 * var(--p)); transform: rotate(-1.5deg); box-shadow: 0 2px 6px rgba(60,40,20,.15); }
.site-url::before { content: ""; position: absolute; left: 50%; top: calc(-14 * var(--p)); width: calc(90 * var(--p)); height: calc(26 * var(--p)); transform: translateX(-50%) rotate(3deg);
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 8px, transparent 8px 16px), #e98fb9; opacity: .8; }
#graph { position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; z-index: 5; max-width: 60vw; }
#graph i { width: 8px; height: 8px; border-radius: 50%; background: #cbbfae; margin: 0 3px; flex: none; cursor: pointer; }
#graph i.part { width: 12px; height: 12px; background: #b9a8d8; }
#graph i.done { background: var(--purple); } #graph i.here { background: var(--magenta); transform: scale(1.5); }
#notes-panel {
  position: fixed; left: 0; right: 0; bottom: 0; max-height: 40vh; overflow: auto; z-index: 20;
  background: rgba(31,28,77,.96); color: #f6f3ff; font: 19px/1.5 var(--body); padding: 16px 28px 24px;
  display: none; border-top: 4px solid var(--magenta);
}
#notes-panel.on { display: block; }
#notes-panel b { color: #ffd76a; }
#notes-panel .meta { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 16px; color: #c9c4ef; margin-bottom: 8px; }
#notes-panel .late { color: #ff8fb1; font-weight: 700; }
#notes-panel a { color: #9fe3ff; }

@media print {
  html, body { overflow: visible; height: auto; }
  body::before, body::after, #tabs, #graph, #notes-panel { display: none !important; }
  #deck { position: static; }
  .screen { position: relative; height: 100vh; opacity: 1; visibility: visible; transform: none; break-after: page; }
}

/* ---------- presenter view (?presenter) & previews (?preview=n) ---------- */
.s-end { justify-content: center; }
.mode-preview #tabs, .mode-preview #graph, .mode-preview #notes-panel { display: none !important; }
.mode-preview .screen { transition: none; }
.mode-presenter body { overflow: auto; background: #1d1b33; color: #f2f0ff; }
.mode-presenter body::before, .mode-presenter body::after,
.mode-presenter #deck, .mode-presenter #tabs, .mode-presenter #graph, .mode-presenter #notes-panel { display: none !important; }
#presenter { display: flex; flex-direction: column; gap: 14px; padding: 14px 18px; min-height: 100vh; font-family: var(--body); }
#presenter .p-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
#presenter .p-clock { font: 700 34px var(--body); color: #fff; }
#presenter .p-pace { display: flex; gap: 20px; flex-wrap: wrap; font-size: 20px; color: #cfcaf2; }
#presenter .p-pace b { color: #fff; font-size: 26px; }
#presenter .p-pace .late { color: #ff8fb1; font-weight: 700; } #presenter .p-pace .ok { color: #8fe3c4; font-weight: 700; }
#presenter .p-btns { margin-left: auto; display: flex; gap: 8px; }
#presenter button { font: 700 18px var(--body); padding: 10px 18px; border: 0; border-radius: 8px; background: #3b3770; color: #fff; cursor: pointer; }
#presenter button:hover { background: #c2338f; }
#presenter .p-main { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; flex: 1; min-height: 0; }
#presenter .p-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
#presenter .p-label { font: 700 14px var(--body); letter-spacing: 3px; color: #a7a1d8; margin-bottom: 6px; }
#presenter .p-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; outline: 3px solid #c2338f; background: var(--table); }
#presenter .p-frame.small { outline-color: #4b4790; }
#presenter iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
#presenter .p-notes { flex: 1; overflow: auto; background: #262347; border-radius: 8px; padding: 14px 18px; font-size: 24px; line-height: 1.45; }
#presenter .p-notes b { color: #ffd76a; } #presenter .p-notes a { color: #9fe3ff; }
#presenter .p-help { font-size: 14px; color: #8f8ab8; }
@media (max-width: 900px) { #presenter .p-main { grid-template-columns: 1fr; } }

/* ---------- live sandbox embed (screen 19) ---------- */
.s-demo .layout { align-items: stretch; width: min(100%, calc(1480 * var(--p))); }
.s-demo .photo.browser { flex: 1 1 calc(1040 * var(--p)); transform: rotate(-.6deg); padding: calc(14 * var(--p)); display: flex; flex-direction: column; }
.s-demo .browser .chrome { display: flex; align-items: center; gap: calc(10 * var(--p)); height: calc(46 * var(--p)); padding: 0 calc(14 * var(--p)); background: #eee9f8; font: calc(22 * var(--p)) var(--body); color: var(--ink-soft); }
.s-demo .browser .chrome i { width: calc(14 * var(--p)); height: calc(14 * var(--p)); border-radius: 50%; background: #c9bde8; display: block; }
.s-demo .browser .chrome span { margin-left: calc(12 * var(--p)); }
.s-demo .browser iframe { display: block; width: 100%; flex: 1; min-height: calc(560 * var(--p)); border: 0; background: #fff; }
.s-demo .side { flex: 0 0 calc(380 * var(--p)); display: flex; flex-direction: column; justify-content: center; gap: calc(20 * var(--p)); }
.s-demo .side .url { font-size: calc(72 * var(--p)); margin: 0; }
.s-demo .photo.qrphoto { flex: none; width: calc(340 * var(--p)); padding: calc(18 * var(--p)); transform: rotate(3deg); }

/* ---------- Lerman's full CRP (reference text; smaller by necessity) ---------- */
.s-crp { justify-content: flex-start; padding-top: calc(70 * var(--p)); padding-bottom: calc(100 * var(--p)); gap: calc(26 * var(--p)); }
.s-crp .crp-head { width: min(100%, calc(1500 * var(--p))); }
.s-crp h2 { font-size: calc(76 * var(--p)); }
.s-crp .intro { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: calc(36 * var(--p)); margin-top: calc(10 * var(--p)); }
.s-crp .crp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(26 * var(--p)); width: min(100%, calc(1500 * var(--p))); }
.s-crp .sticky { padding: calc(26 * var(--p)) calc(28 * var(--p)); }
.s-crp .sticky:nth-child(odd) { transform: rotate(-1deg); } .s-crp .sticky:nth-child(even) { transform: rotate(1deg); }
.s-crp h3 { font-size: calc(44 * var(--p)); margin-bottom: calc(14 * var(--p)); }
.s-crp h3 .hand { font-size: calc(56 * var(--p)); margin-right: calc(6 * var(--p)); }
.s-crp p { font-size: calc(29 * var(--p)); line-height: 1.32; }
@media (max-aspect-ratio: 1/1) {
  .s-crp .crp-grid { grid-template-columns: 1fr; }
  .s-demo .photo.browser, .s-demo .side { flex: none; }
  .s-demo .side { align-items: center; }
}
/* CRP: 2x2 so the full text fits */
.s-crp { padding-top: calc(58 * var(--p)); padding-bottom: calc(100 * var(--p)); gap: calc(16 * var(--p)); }
.s-crp h2 { font-size: calc(64 * var(--p)); }
.s-crp .intro { font-size: calc(30 * var(--p)); margin-top: calc(4 * var(--p)); }
.s-crp .crp-grid { grid-template-columns: repeat(2, 1fr); gap: calc(18 * var(--p)) calc(26 * var(--p)); }
.s-crp .sticky { padding: calc(18 * var(--p)) calc(30 * var(--p)) calc(20 * var(--p)); }
.s-crp h3 { font-size: calc(40 * var(--p)); margin-bottom: calc(6 * var(--p)); }
.s-crp h3 .hand { font-size: calc(48 * var(--p)); }
.s-crp p { font-size: calc(27 * var(--p)); line-height: 1.3; }
.s-demo .browser .tape { left: auto; right: calc(-30 * var(--p)); transform: rotate(9deg); }

/* ---------- v5: course cards with screenshots ---------- */
.s-course2 .layout { display: flex; align-items: center; gap: calc(50 * var(--p)); width: min(100%, calc(1480 * var(--p))); }
.s-course2 .card { flex: 0 1 calc(700 * var(--p)); width: auto; padding-right: calc(50 * var(--p)); }
.s-course2 .card h2 { font-size: calc(74 * var(--p)); }
.s-course2 .shot { flex: 1 1 calc(760 * var(--p)); transform: rotate(1.8deg); }
.s-course2 .card.alt + .shot { transform: rotate(-1.6deg); }

/* novice fears + terminal gif with Matrix fade-in */
.s-fears .layout { display: flex; align-items: center; gap: calc(50 * var(--p)); width: min(100%, calc(1440 * var(--p))); }
.s-fears .stack { flex: 1 1 calc(760 * var(--p)); }
.s-fears .strip { font-size: calc(64 * var(--p)); }
.s-fears .strip:nth-child(2) { margin-left: calc(70 * var(--p)); } .s-fears .strip:nth-child(3) { margin-left: calc(140 * var(--p)); } .s-fears .strip:nth-child(4) { margin-left: calc(210 * var(--p)); }
.s-fears .term { flex: 0 0 calc(600 * var(--p)); transform: rotate(2deg); position: relative; }
.s-fears .term img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }
.s-fears .term .fadein { position: absolute; inset: calc(22 * var(--p)); width: calc(100% - 44 * var(--p)); opacity: 0; transition: opacity 1.4s ease; }
.screen.active .fadein { opacity: 1; transition-delay: 2s; }

/* principles with media */
.s-principle.media .layout { display: flex; align-items: center; gap: calc(50 * var(--p)); width: min(100%, calc(1480 * var(--p))); }
.s-principle.media .sticky { flex: 1 1 calc(860 * var(--p)); width: auto; min-height: calc(560 * var(--p)); padding: calc(50 * var(--p)) calc(70 * var(--p)); }
.s-principle.media h2 { font-size: calc(96 * var(--p)); }
.s-principle .photo.phone { flex: 0 0 calc(500 * var(--p)); transform: rotate(2.5deg); }
.s-principle .photo.uc { flex: 0 0 calc(420 * var(--p)); transform: rotate(3deg); }
.s-principle .photo.uc video { display: block; width: 100%; }
.s-principle .photo.clippy { flex: 0 0 calc(520 * var(--p)); transform: rotate(2.5deg); }
.s-principle .fork-art { flex: 0 0 calc(300 * var(--p)); width: calc(300 * var(--p)); height: auto; transform: rotate(8deg); filter: drop-shadow(0 calc(10 * var(--p)) calc(12 * var(--p)) rgba(60,40,20,.2)); }
.s-principle.wide-media .sticky { flex-basis: calc(720 * var(--p)); }
.layers { position: relative; flex: 0 0 calc(700 * var(--p)); height: calc(700 * var(--p)); }
.layers .photo { position: absolute; padding: calc(10 * var(--p)); width: calc(270 * var(--p)); height: auto; display: block; }
.layers .l1 { left: 0; top: 0; transform: rotate(-7deg); }
.layers .l2 { left: calc(140 * var(--p)); top: calc(10 * var(--p)); transform: rotate(3deg); }
.layers .l3 { left: calc(280 * var(--p)); top: calc(40 * var(--p)); transform: rotate(-3deg); }
.layers .l4 { left: calc(420 * var(--p)); top: calc(0 * var(--p)); transform: rotate(6deg); }
.layers .l5 { left: calc(70 * var(--p)); top: calc(380 * var(--p)); width: calc(580 * var(--p)); transform: rotate(-2deg); }

/* full student quote */
.s-fullquote .lead { width: min(100%, calc(1400 * var(--p))); }
.s-fullquote .scrap { width: min(100%, calc(1400 * var(--p))); padding: calc(46 * var(--p)) calc(80 * var(--p)) calc(50 * var(--p)); transform: rotate(-.5deg); }
.s-fullquote blockquote { margin: 0; font-family: var(--serif); font-style: italic; color: var(--ink); }
.s-fullquote blockquote p { font-size: calc(40 * var(--p)); line-height: 1.32; }
.s-fullquote .noai { margin-top: calc(14 * var(--p)); color: var(--teal); }
.s-fullquote .who { font-family: var(--hand); font-weight: 700; font-size: var(--min); color: var(--teal); text-align: right; margin-top: calc(10 * var(--p)); }

/* final reflections image */
.s-reflect .card { width: min(100%, calc(1100 * var(--p))); padding-left: calc(150 * var(--p)); }
.s-reflect .mirror-row { display: flex; justify-content: center; margin-top: calc(20 * var(--p)); }
.s-reflect .mirror { width: calc(560 * var(--p)); height: auto; transform: rotate(-1.5deg); padding: calc(14 * var(--p)); }

@media (max-aspect-ratio: 1/1) {
  .s-course2 .layout, .s-fears .layout, .s-principle.media .layout { flex-direction: column; align-items: stretch; }
  .s-course2 .card, .s-course2 .shot, .s-fears .stack, .s-fears .term, .s-principle.media .sticky { flex: none; }
  .s-fears .term, .s-principle .photo.phone, .s-principle .photo.uc, .s-principle .photo.clippy, .s-principle .fork-art, .layers { align-self: center; flex: none; }
  .s-fears .term { width: min(100%, calc(600 * var(--p))); }
  .s-principle .photo.phone, .s-principle .photo.clippy { width: min(100%, calc(560 * var(--p))); }
  .s-principle .photo.uc { width: calc(420 * var(--p)); }
  .s-fullquote blockquote p { font-size: calc(46 * var(--p)); }
}
/* v5 fixes */
.s-course2 .card { flex: 0 0 calc(900 * var(--p)); padding: calc(40 * var(--p)) calc(40 * var(--p)) calc(44 * var(--p)) calc(150 * var(--p)); }
.s-course2 .card h2 { font-size: calc(68 * var(--p)); margin: calc(18 * var(--p)) 0 calc(18 * var(--p)); }
.s-course2 .card li { white-space: nowrap; }
.s-course2 .shot { flex: 1 1 calc(520 * var(--p)); }
.s-fullquote { gap: calc(18 * var(--p)); padding-top: calc(60 * var(--p)); }
.s-fullquote .lead { font-size: calc(64 * var(--p)); }
.s-fullquote blockquote p { font-size: calc(35 * var(--p)); line-height: 1.3; }
.s-fullquote .scrap { padding: calc(36 * var(--p)) calc(70 * var(--p)) calc(40 * var(--p)); }
.s-fullquote .who { margin-right: calc(420 * var(--p)); }
.s-reflect .mirror { width: calc(470 * var(--p)); }
.s-reflect .card { padding-top: calc(36 * var(--p)); padding-bottom: calc(40 * var(--p)); }
@media (max-aspect-ratio: 1/1) { .s-course2 .card li { white-space: normal; } .s-fullquote .who { margin-right: 0; } }

/* click-to-reveal (space / click shows it before moving on) */
.screen .fadein.reveal, .screen.active .fadein.reveal { opacity: 0; transition: opacity 1.2s ease; transition-delay: 0s; }
.screen.active .fadein.reveal.shown { opacity: 1; }

/* course pages: screenshot is the focal point, text small */
.s-course2.shot-first .layout { width: min(100%, calc(1500 * var(--p))); gap: calc(36 * var(--p)); align-items: center; }
.s-course2.shot-first .card { flex: 0 0 calc(400 * var(--p)); padding: calc(26 * var(--p)) calc(26 * var(--p)) calc(30 * var(--p)) calc(70 * var(--p));
  --line: calc(46 * var(--p));
  background: repeating-linear-gradient(transparent 0 calc(var(--line) - 2px), var(--rule) calc(var(--line) - 2px) var(--line)), var(--card) var(--noise);
  border-left: calc(3 * var(--p)) solid var(--margin); }
.s-course2.shot-first .code-stamp { font-size: calc(46 * var(--p)); border-width: calc(3 * var(--p)); }
.s-course2.shot-first .card h2 { font-size: calc(38 * var(--p)); margin: calc(14 * var(--p)) 0 calc(10 * var(--p)); }
.s-course2.shot-first ul.ink li { font-size: calc(28 * var(--p)); line-height: calc(46 * var(--p)); padding-left: 1.2em; white-space: normal; }
.s-course2.shot-first ul.ink li::before { line-height: calc(46 * var(--p)); }
.s-course2.shot-first .shot { flex: 1 1 calc(1060 * var(--p)); transform: rotate(1.2deg); padding: calc(16 * var(--p)); }
.s-course2.shot-first .card.alt + .shot { transform: rotate(-1deg); }
.s-course2.shot-first .shot .tape { width: calc(200 * var(--p)); }

/* ---------- image-first pages: images are the focal point, text steps back ---------- */
.s-principle.media .layout { gap: calc(44 * var(--p)); width: min(100%, calc(1520 * var(--p))); }
.s-principle.media .sticky { flex: 0 0 calc(560 * var(--p)); min-height: 0; padding: calc(36 * var(--p)) calc(44 * var(--p)); }
.s-principle.media .n { font-size: calc(54 * var(--p)); }
.s-principle.media h2 { font-size: calc(60 * var(--p)); margin: calc(4 * var(--p)) 0 calc(20 * var(--p)); }
.s-principle.media .line { font-size: calc(34 * var(--p)); }
.s-principle.media .hand.purple { font-size: calc(58 * var(--p)) !important; }
.s-principle.media .photo.phone, .s-principle.media .photo.uc, .s-principle.media .photo.clippy, .s-principle.media .photo.forkimg { flex: 1 1 auto; max-width: calc(880 * var(--p)); }
.s-principle .photo.phone img, .s-principle .photo.clippy img, .s-principle .photo.forkimg img { max-height: calc(680 * var(--p)); width: auto; max-width: 100%; margin: 0 auto; }
.s-principle .photo.phone { flex-basis: calc(760 * var(--p)); }
.s-principle .photo.uc { flex: 0 1 calc(660 * var(--p)); }
.s-principle .photo.clippy { flex-basis: calc(720 * var(--p)); }
.s-principle .photo.forkimg { flex-basis: calc(880 * var(--p)); transform: rotate(-1.5deg); }
.s-principle.wide-media .sticky { flex-basis: calc(500 * var(--p)); }
.layers { flex: 1 1 calc(900 * var(--p)); height: calc(740 * var(--p)); }
.layers .photo { width: calc(340 * var(--p)); }
.layers .l2 { left: calc(180 * var(--p)); } .layers .l3 { left: calc(360 * var(--p)); } .layers .l4 { left: calc(540 * var(--p)); }
.layers .l5 { left: calc(90 * var(--p)); top: calc(360 * var(--p)); width: calc(720 * var(--p)); }

/* novice page: terminal is the focal point */
.s-fears h2.title-row { font-size: calc(64 * var(--p)); }
.s-fears .stack { flex: 0 1 calc(560 * var(--p)); gap: calc(18 * var(--p)); }
.s-fears .strip { font-size: calc(44 * var(--p)); padding: calc(16 * var(--p)) calc(32 * var(--p)); }
.s-fears .strip:nth-child(2) { margin-left: calc(50 * var(--p)); } .s-fears .strip:nth-child(3) { margin-left: calc(100 * var(--p)); }
.s-fears .term { flex: 1 1 calc(860 * var(--p)); max-width: calc(860 * var(--p)); }
.s-fears .term img { aspect-ratio: 16 / 10; }

/* site they fork + final reflections */
.s-site h2.title-row { font-size: calc(64 * var(--p)); }
.s-site .photo { flex: 1 1 calc(1080 * var(--p)); }
.s-site .note { flex: 0 1 calc(360 * var(--p)); }
.s-site .note .addr { font-size: calc(44 * var(--p)); }
.s-site .note .hand { font-size: calc(48 * var(--p)) !important; }
.s-reflect .card { width: min(100%, calc(1000 * var(--p))); padding: calc(24 * var(--p)) calc(40 * var(--p)) calc(28 * var(--p)) calc(110 * var(--p)); }
.s-reflect .code-stamp { font-size: calc(50 * var(--p)); }
.s-reflect .mirror { width: calc(620 * var(--p)); }

/* sandbox demo: give the live sandbox more room */
.s-demo .side { flex-basis: calc(300 * var(--p)); }
.s-demo .side .hand { font-size: calc(56 * var(--p)); }
.s-demo .side .url { font-size: calc(50 * var(--p)); }
.s-demo .photo.qrphoto { width: calc(280 * var(--p)); }
.s-demo .photo.browser { flex-basis: calc(1140 * var(--p)); }
.s-demo .browser iframe { min-height: calc(640 * var(--p)); }

@media (max-aspect-ratio: 1/1) {
  .s-principle.media .sticky, .s-fears .stack { flex: none; }
  .s-principle.media .photo.phone, .s-principle.media .photo.uc, .s-principle.media .photo.clippy, .s-principle.media .photo.forkimg, .s-fears .term, .layers { flex: none; max-width: 100%; width: 100%; }
  .layers { height: calc(760 * var(--p)); }
}
/* small-pieces page: one-line heading + one-line cycle, smaller animation */
.s-principle.media .sticky.small-pieces { flex: 0 0 calc(820 * var(--p)); }
.s-principle.media .small-pieces h2 { font-size: calc(54 * var(--p)); white-space: nowrap; }
.s-principle.media .small-pieces .cycle-line { font-size: calc(46 * var(--p)) !important; white-space: nowrap; }
.s-principle .photo.uc { flex: 0 1 calc(560 * var(--p)); max-width: calc(560 * var(--p)); }
.s-principle .photo.uc video { max-height: calc(620 * var(--p)); width: 100%; object-fit: contain; }
/* final reflections fits */
.s-reflect .mirror { width: calc(500 * var(--p)); }
@media (max-aspect-ratio: 1/1) { .s-principle.media .small-pieces h2, .s-principle.media .small-pieces .cycle-line { white-space: normal; } }
/* process image */
.s-principle .photo.processimg { flex: 1 1 calc(860 * var(--p)); max-width: calc(860 * var(--p)); transform: rotate(2deg); }
.s-principle .photo.processimg img { width: 100%; height: auto; }
/* redundant resources: title only, bigger + spread-out screenshots */
.s-principle.wide-media .sticky { flex: 0 0 calc(380 * var(--p)); }
.s-principle.wide-media h2 { font-size: calc(64 * var(--p)); }
.layers { flex: 1 1 calc(1060 * var(--p)); max-width: calc(1060 * var(--p)); height: calc(780 * var(--p)); }
.layers .photo { width: calc(400 * var(--p)); height: calc(560 * var(--p)); object-fit: cover; object-position: top; }
.layers .l1 { left: 0; top: 0; transform: rotate(-6deg); }
.layers .l2 { left: calc(220 * var(--p)); top: calc(40 * var(--p)); transform: rotate(3deg); }
.layers .l3 { left: calc(440 * var(--p)); top: calc(0 * var(--p)); transform: rotate(-2deg); }
.layers .l4 { left: calc(660 * var(--p)); top: calc(50 * var(--p)); transform: rotate(5deg); }
.layers .l5 { left: calc(170 * var(--p)); top: calc(380 * var(--p)); width: calc(720 * var(--p)); height: auto; transform: rotate(-2deg); }
.layers { height: calc(680 * var(--p)); }
.layers .photo { height: calc(470 * var(--p)); }
.layers .l1 { top: calc(10 * var(--p)); } .layers .l2 { top: calc(40 * var(--p)); } .layers .l3 { top: calc(0 * var(--p)); } .layers .l4 { top: calc(30 * var(--p)); }
.layers .l5 { top: calc(330 * var(--p)); width: calc(660 * var(--p)); left: calc(200 * var(--p)); }
.layers .photo.l5 { height: auto; object-fit: contain; top: calc(300 * var(--p)); }
.s-principle .photo.clippy { flex: 0 1 calc(560 * var(--p)); max-width: calc(560 * var(--p)); } .s-principle .photo.clippy img { width: 100%; max-height: calc(660 * var(--p)); object-fit: contain; }
.s-principle.media .photo.clippy { flex: 0 0 auto; width: auto; max-width: none; } .s-principle .photo.clippy img { width: auto; height: calc(620 * var(--p)); max-height: none; }
/* ---------- the sandbox: the main event, full screen and live ---------- */
.s-demo.big { padding: calc(56 * var(--p)) calc(40 * var(--p)) calc(96 * var(--p)); }
.s-demo.big .photo.browser { width: min(100%, calc(1540 * var(--p))); height: 100%; flex: 1 1 auto; transform: rotate(-.3deg); padding: calc(12 * var(--p)); display: flex; flex-direction: column; }
.s-demo.big .browser .chrome { height: calc(54 * var(--p)); font-size: calc(26 * var(--p)); }
.s-demo.big .browser .chrome em { margin-left: auto; font-style: normal; font-size: calc(40 * var(--p)); color: var(--magenta); }
.s-demo.big .browser iframe { flex: 1; min-height: 0; height: 100%; }
.s-demo.big .browser .tape { left: calc(-30 * var(--p)); right: auto; top: calc(-22 * var(--p)); transform: rotate(-10deg); }
.s-site h2.title-row .sitecode { font-size: calc(52 * var(--p)); margin-left: calc(16 * var(--p)); vertical-align: middle; }
.s-verbs h2.ask { font-family: var(--hand); font-weight: 700; font-size: calc(170 * var(--p)); line-height: 1.05; margin: 0; max-width: calc(1400 * var(--p)); }
.s-part .jargon-img { display: block; width: calc(820 * var(--p)); max-width: 100%; height: auto; margin: calc(20 * var(--p)) auto 0; padding: calc(12 * var(--p)); transform: rotate(1.5deg); }
.s-part:has(.jargon-img) .scrap { padding: calc(30 * var(--p)) calc(60 * var(--p)) calc(40 * var(--p)); } .s-part:has(.jargon-img) .git { font-size: calc(40 * var(--p)); margin-bottom: 0; } .s-part:has(.jargon-img) .verb { font-size: calc(150 * var(--p)); } .s-part .jargon-img { width: calc(620 * var(--p)); margin-top: calc(10 * var(--p)); }
.s-fears .term .fadein { object-fit: cover; object-position: center top; top: calc(22 * var(--p)); height: calc(100% - 44 * var(--p)); aspect-ratio: auto; }
/* sandbox: no tilt (keeps typing/hit-testing crisp) + backup link */
.s-demo.big .photo.browser { transform: none; }
.s-demo.big .browser .chrome .newtab { margin-left: calc(24 * var(--p)); font-size: calc(24 * var(--p)); color: var(--purple); text-decoration: none; white-space: nowrap; }
/* questions page: centered, links spread evenly, email below */
.s-final .paper { width: min(100%, calc(1100 * var(--p))); min-height: calc(680 * var(--p)); display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(60 * var(--p)) calc(80 * var(--p)); transform: rotate(-.8deg); }
.s-final h1 { font-size: calc(140 * var(--p)); }
.s-final .final-links { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; width: 100%; margin-top: calc(20 * var(--p)); }
.s-final .final-links a { font-family: var(--serif); font-weight: 700; font-size: calc(72 * var(--p)); color: var(--ink); text-decoration: none; }
.s-final .final-links a.em { color: var(--magenta); }
.s-final .final-links .hand { font-size: calc(76 * var(--p)); }
.s-demo.big .sim-wrap { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.s-demo.big .sim-wrap iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; min-height: 0; flex: none; }
/* cover: no image; name in the "Branching" style, affiliation in the "Out:" style */
.s-cover .paper { width: min(100%, calc(1240 * var(--p))); min-height: 0; flex: none; text-align: center; align-items: center; padding: calc(60 * var(--p)) calc(90 * var(--p)) calc(64 * var(--p)); transform: rotate(-1deg); }
.s-cover h1 { font-size: calc(150 * var(--p)); }
.s-cover .sub { margin-top: calc(20 * var(--p)); }
.s-cover .who-name { font-family: var(--serif); font-weight: 800; font-style: italic; font-size: calc(76 * var(--p)); line-height: 1.05; margin-top: calc(46 * var(--p)); }
.s-cover .who-meta { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: calc(48 * var(--p)); line-height: 1.25; margin-top: calc(12 * var(--p)); }
/* book covers (screen 2): covers are the focal point */
.s-books { gap: calc(24 * var(--p)); }
.s-books .books { display: flex; justify-content: center; align-items: center; gap: calc(110 * var(--p)); }
.s-books .book { margin: 0; padding: calc(14 * var(--p)); }
.s-books .book img { display: block; height: calc(620 * var(--p)); width: auto; }
.s-books .book:first-child { transform: rotate(-3deg); } .s-books .book:last-child { transform: rotate(2.5deg); }
.s-books .books-label { font-size: calc(64 * var(--p)); color: var(--purple); }
@media (max-aspect-ratio: 1/1) { .s-books .books { flex-direction: column; gap: calc(50 * var(--p)); } .s-books .book img { height: auto; width: min(100%, calc(520 * var(--p))); } }
/* book covers: always side by side, smaller, tilted */

.s-books .books { flex-direction: row !important; flex-wrap: nowrap; gap: calc(80 * var(--p)) !important; max-width: 100%; }
.s-books .book { flex: 0 1 auto; max-width: 44%; }
.s-books .book img { height: calc(500 * var(--p)) !important; width: auto !important; max-width: 100%; object-fit: contain; }
.s-books .book:first-child { transform: rotate(-4deg) translateY(calc(10 * var(--p))); }
.s-books .book:last-child { transform: rotate(3.5deg) translateY(calc(-10 * var(--p))); }
#presenter .p-text { outline: none; min-height: 4em; border-radius: 6px; padding: 4px 6px; margin: -4px -6px; cursor: text; }
#presenter .p-text:hover { background: rgba(255,255,255,.04); }
#presenter .p-text:focus { background: rgba(255,255,255,.07); box-shadow: 0 0 0 2px #c2338f; }
#presenter .p-edited { color: #ffd76a; }
#presenter .p-reset { font-size: 12px; padding: 2px 8px; margin-left: 6px; letter-spacing: 0; }
/* presenter view v2: fits one screen, no scrolling; slides smaller, notes wide */
#presenter { height: 100vh; min-height: 0; overflow: hidden; gap: 10px; padding: 10px 16px; }
#presenter .p-top { gap: 16px; }
#presenter .p-clock { font-size: 26px; }
#presenter .p-pace { font-size: 16px; gap: 14px; } #presenter .p-pace b { font-size: 20px; }
#presenter button { font-size: 15px; padding: 7px 13px; }
#presenter .p-main { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 16px; min-height: 0; flex: 1; }
#presenter .p-slides { display: flex; flex-direction: column; gap: 4px; min-height: 0; }
#presenter .p-slides .p-frame { width: 100%; }
#presenter .p-slides .p-frame.small { width: 70%; }
#presenter .p-slides .p-label { margin: 6px 0 2px; font-size: 12px; }
#presenter .p-notes { min-height: 0; overflow-y: auto; font-size: 19px; line-height: 1.45; padding: 12px 18px; }
#presenter .p-notes p { margin: 0 0 .6em; }
#presenter .p-help { font-size: 12px; }
@media (max-height: 700px) { #presenter .p-notes { font-size: 17px; } }
#presenter .p-notes, #presenter .p-notes p, #presenter .p-notes li, #presenter .p-text { font-size: var(--pn, 19px) !important; line-height: 1.42 !important; font-family: var(--body); }
