/* BakeServe diagnosis deck, Tinkerbird brand (tokens from tinkerbird/DESIGN.md). Claude Code, 7 October 2026.
   Stage 1280 x 720, scaled to the window by deck.js. Below 760 px wide the slides stack as a scrolling page. */
@font-face { font-family: 'Bricolage Grotesque'; src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(fonts/instrument-sans-latin.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #1B1A17; --ink-lift: #2A2924; --paper: #F7F3EA; --paper-deep: #EDE7D8;
  --yellow: #F2C200; --slate: #5B5850; --slate-light: #B9B5A9; --crimson: #B8321A; --mist: #E0DACB;
  --display: 'Bricolage Grotesque', 'Arial Black', Arial, sans-serif;
  --body: 'Instrument Sans', Arial, Helvetica, sans-serif;
  --scale: 1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--ink); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }

/* ---------- viewer ---------- */
.viewer { position: fixed; inset: 0; display: grid; place-items: center; }
.stage { width: 1280px; height: 720px; position: relative; transform: scale(var(--scale)); transform-origin: center; }
.slide { position: absolute; inset: 0; width: 1280px; height: 720px; overflow: hidden; background: var(--paper);
  padding: 52px 72px 0; opacity: 0; visibility: hidden; transition: opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 300ms; }
.slide.is-current { opacity: 1; visibility: visible; transition: opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.slide.deep { background: var(--paper-deep); }
.slide.dark { background: var(--ink); color: var(--paper); }

.controls { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 20px; color: var(--slate-light); font-size: 14px; pointer-events: none; }
.controls > * { pointer-events: auto; }
.controls a, .controls button { color: var(--paper); background: var(--ink-lift); border: 0; border-radius: 999px; font: 600 14px var(--body);
  padding: 8px 14px; cursor: pointer; text-decoration: none; min-height: 36px; }
.controls button:focus-visible, .controls a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.controls .pair { display: flex; gap: 8px; }
.dots { display: flex; gap: 7px; align-items: center; }
.dots button { width: 10px; height: 10px; min-height: 10px; padding: 0; border-radius: 50%; background: var(--slate); }
.dots button[aria-current="true"] { background: var(--yellow); box-shadow: 0 0 0 4px rgba(242, 194, 0, 0.25); }

/* ---------- slide skeleton ---------- */
.kicker { font: 600 22px/1.2 var(--body); color: var(--slate); height: 28px; }
.dark .kicker { color: var(--slate-light); }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: 52px; line-height: 1.02; margin-top: 18px; max-width: 1080px; text-wrap: balance; }
.body { position: absolute; left: 72px; right: 72px; top: 236px; bottom: 92px; }
.foot { position: absolute; left: 72px; right: 72px; bottom: 30px; display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; color: var(--slate); }
.foot img { height: 24px; width: auto; }
.dark .foot { color: var(--slate-light); }
.foot .n { font-variant-numeric: tabular-nums; }

p, li { font-size: 28px; line-height: 1.4; }
.lead { font-size: 30px; line-height: 1.4; max-width: 980px; }
.muted { color: var(--slate); }
.dark .muted { color: var(--slate-light); }
.label { font: 600 22px/1.3 var(--body); color: var(--slate); }
.dark .label { color: var(--slate-light); }
.source { margin-top: 22px; font-size: 20px; color: var(--slate); max-width: 1000px; }
.dark .source { color: var(--slate-light); }
strong { font-weight: 700; }

/* cover, divider, close */
.cover { padding: 64px 88px; display: flex; flex-direction: column; }
.cover .logo { height: 46px; width: auto; align-self: flex-start; }
.cover h1 { font-weight: 750; font-size: 96px; line-height: 0.96; letter-spacing: -0.035em; margin-top: auto; max-width: 1060px; }
.cover .sub { font-size: 30px; color: var(--slate-light); margin-top: 26px; max-width: 900px; }
.cover .meta { display: flex; justify-content: space-between; margin-top: 56px; font-size: 20px; color: var(--slate-light); }
.pulse { position: absolute; right: 120px; top: 120px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--yellow); animation: tink 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
.pulse::after { animation-delay: 0.7s; }
@keyframes tink { from { transform: scale(1); opacity: 0.9; } to { transform: scale(4.2); opacity: 0; } }

.statement h2 { font-size: 76px; line-height: 0.98; font-weight: 750; letter-spacing: -0.03em; margin-top: 64px; max-width: 1100px; }
.statement .lead { margin-top: 40px; }
.statement .y { color: var(--yellow); }

/* number tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { background: var(--paper-deep); border-radius: 18px; padding: 26px 26px 24px; min-height: 236px; display: flex; flex-direction: column; }
.deep .tile { background: var(--paper); }
.dark .tile { background: var(--ink-lift); }
.tile .big { font: 700 64px/1 var(--display); letter-spacing: -0.03em; }
.tile .big small { font-size: 32px; letter-spacing: -0.01em; }
.tile p { font-size: 26px; line-height: 1.35; margin-top: auto; }
.dark .tile .big { color: var(--yellow); }

/* two columns */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cols.wide-left { grid-template-columns: 1.25fr 1fr; }
ul.points { list-style: none; display: grid; gap: 18px; }
ul.points li { padding-left: 34px; position: relative; }
ul.points li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.dark ul.points li::before { background: var(--paper); }
ul.points li.first::before { background: var(--yellow); }

/* process line */
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; position: relative; margin-top: 8px; }
.step { background: var(--paper-deep); border-radius: 14px; height: 112px; padding: 14px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.step b { font: 650 24px/1.1 var(--display); }
.step span { font-size: 20px; color: var(--slate); line-height: 1.25; }
.step.count { background: var(--ink); color: var(--paper); }
.step.count span { color: var(--yellow); font-weight: 600; }
.gap { grid-column: 3 / 7; border: 2px dashed var(--crimson); border-top: 0; height: 30px; border-radius: 0 0 12px 12px; margin-top: 4px; }
.gap-label { grid-column: 3 / 7; text-align: center; font-size: 24px; color: var(--crimson); font-weight: 600; }
.standards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.standards div { border-top: 2px solid var(--ink); padding-top: 12px; }
.standards b { font: 700 46px/1 var(--display); display: block; }
.standards span { font-size: 22px; color: var(--slate); }

/* bars */
.chart { position: relative; height: 330px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; align-items: end;
  border-bottom: 2px solid var(--ink); }
.bar { position: relative; background: var(--slate); border-radius: 4px 4px 0 0; height: calc(var(--v) * 1%); }
.bar.hi { background: var(--crimson); }
.bar .v { position: absolute; left: 0; right: 0; bottom: 100%; padding-bottom: 6px; text-align: center; font: 600 22px var(--body); color: var(--ink); }
.ticks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; margin-top: 10px; }
.ticks span { text-align: center; font-size: 22px; color: var(--slate); line-height: 1.2; }
.ticks span.hi { color: var(--crimson); font-weight: 600; }
.ref { position: absolute; left: 0; right: 0; bottom: calc(var(--v) * 1%); border-top: 2px dashed var(--ink); }
.ref span { position: absolute; left: 0; bottom: 4px; font-size: 22px; font-weight: 600; background: var(--paper); padding-right: 8px; }

/* horizontal ranges */
.ranges { display: grid; gap: 24px; }
.range { display: grid; grid-template-columns: 300px 1fr; align-items: center; gap: 24px; }
.range .name { font-size: 26px; line-height: 1.25; }
.track { position: relative; height: 40px; background: var(--paper-deep); border-radius: 8px; }
.track i { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1%); background: var(--slate); border-radius: 8px; }
.track i.hi { background: var(--crimson); }
.track i.ink { background: var(--ink); }
.track em { position: absolute; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 22px; font-weight: 600; white-space: nowrap; }
.axis { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }
.axis div { position: relative; height: 26px; }
.axis span { position: absolute; transform: translateX(-50%); font-size: 22px; color: var(--slate); white-space: nowrap; }

/* split bar (flour) */
.split { display: flex; height: 64px; border-radius: 8px; overflow: hidden; gap: 2px; }
.split div { display: grid; place-items: center; font-size: 24px; font-weight: 600; color: var(--paper); }

/* cards: who does what */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--paper-deep); border-radius: 16px; padding: 22px 24px; min-height: 180px; }
.deep .card { background: var(--paper); }
.card h3 { font-size: 30px; font-weight: 700; }
.card .role { font: 600 22px var(--body); color: var(--slate); margin-left: 10px; letter-spacing: 0; }
.card p { font-size: 26px; line-height: 1.3; margin-top: 10px; }

/* timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding-top: 40px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; border-top: 2px solid var(--ink); }
.when { position: relative; }
.when::before { content: ""; position: absolute; top: -34px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.when.first::before { background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.when b { display: block; font: 700 30px/1.05 var(--display); }
.when p { font-size: 26px; line-height: 1.35; margin-top: 10px; }

/* internal slide */
.internal { margin-left: 14px; font-size: 18px; vertical-align: 2px; font-weight: 600; color: var(--crimson); border: 2px solid var(--crimson); border-radius: 999px; padding: 4px 14px; }

/* ---------- phones: stack the slides as one page ---------- */
@media (max-width: 760px) {
  body { overflow: auto; background: var(--paper); }
  .viewer { position: static; display: block; }
  .stage { width: 100%; max-width: 100%; height: auto; transform: none; }
  .tiles[style], .flow[style] { grid-template-columns: 1fr !important; }
  .step[style] { height: auto !important; gap: 8px; }
  .step span[style] { font-size: 16px !important; }
  .tile .big[style] { font-size: 30px !important; }
  .slide { overflow-wrap: anywhere; }
  .slide { position: relative; inset: auto; width: auto; height: auto; opacity: 1; visibility: visible; padding: 36px 20px 28px; }
  .controls { display: none; }
  h2 { font-size: 32px; }
  .statement h2 { font-size: 40px; margin-top: 24px; }
  .cover { min-height: 92vh; padding: 32px 20px; }
  .cover h1 { font-size: 52px; }
  .cover .sub { font-size: 20px; }
  .cover .meta { flex-direction: column; gap: 6px; font-size: 16px; margin-top: 32px; }
  .pulse { right: 32px; top: 40px; }
  .body { position: static; margin-top: 24px; }
  .foot { position: static; margin-top: 28px; font-size: 14px; }
  .source { position: static; margin-top: 16px; font-size: 14px; }
  p, li, .lead { font-size: 18px; }
  .kicker { font-size: 15px; }
  .tiles, .cols, .cols.wide-left, .cards, .standards { grid-template-columns: 1fr; gap: 14px; }
  .tile { min-height: 0; }
  .tile .big { font-size: 44px; }
  .tile p, .card p { font-size: 17px; margin-top: 10px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .gap, .gap-label { grid-column: 1 / -1; }
  .step { height: 84px; }
  .step b { font-size: 18px; }
  .step span { font-size: 14px; }
  .standards b { font-size: 34px; }
  .chart { height: 200px; gap: 6px; }
  .bar .v { font-size: 13px; }
  .ticks { gap: 6px; }
  .ticks span { font-size: 12px; }
  .ref span { font-size: 13px; }
  .range, .axis { grid-template-columns: 1fr; gap: 6px; }
  .axis div:first-child { display: none; }
  .range .name { font-size: 16px; }
  .track em, .axis span { font-size: 13px; }
  .track { margin-bottom: 22px; }
  .track em { top: calc(100% + 11px); left: 0 !important; color: var(--ink) !important; }
  .split div { font-size: 13px; }
  .card h3 { font-size: 24px; }
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px solid var(--ink); }
  .when::before { left: -28px; top: 6px; }
  .when b { font-size: 22px; }
  .when p { font-size: 17px; }
  .internal { display: inline-block; margin: 6px 0 0; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-current { transition: none; }
  .pulse::before, .pulse::after { animation: none; transform: scale(2); opacity: 0.4; }
}
@media print {
  html, body { background: none; overflow: visible; }
  .viewer { position: static; display: block; }
  .stage { transform: none; width: 1280px; height: auto; }
  .slide { position: relative; opacity: 1; visibility: visible; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .controls { display: none; }
  @page { size: 1280px 720px; margin: 0; }
}
