/* ==========================================================================
   Le Bistro track: the shared look of lectures L27–L31
   Built on _shared/deck.css (the engine). Colours and fonts come from
   srms.stepacademy.ge, so the slides look like the site we rebuild.
   ========================================================================== */

:root {
  --bg: #f6f1e7;            /* paper */
  --surface: #fdfaf2;       /* paper-raised */
  --surface-2: #ece4d3;     /* paper-deep */
  --ink: #2e2a26;
  --ink-2: #6e645a;
  --ink-3: #a3988a;
  --line: #ddd2bf;
  --accent: #5c1a23;        /* wine */
  --accent-ink: #fdfaf2;
  --accent-on-dark: #d9b26f;
  --wine: #5c1a23;
  --wine-deep: #421219;
  --night: #24090d;
  --brass: #a98545;
  --brass-soft: #c9af7e;
  --good: #47654c;          /* leaf */
  --bad: #a93b2c;           /* tomato */
  --warn: #96691d;          /* mustard */
  --sky: #2f5d7c;
  --letterbox: #160507;

  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Karla", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --card-r: 10px;
  --tag-r: 999px;
  --btn-r: 999px;
  --r-apple: 22px;
  --shadow-1: 0 1px 1px rgba(46, 42, 38, .04), 0 3px 8px rgba(46, 42, 38, .05), 0 14px 30px -14px rgba(46, 42, 38, .2);
  --shadow-2: 0 1px 1px rgba(46, 42, 38, .05), 0 10px 22px rgba(46, 42, 38, .08), 0 40px 80px -30px rgba(46, 42, 38, .35);

  --code-bg: #1d1816;
  --code-fg: #f0e7da;
  --code-dim: #8b7d70;
  --tok-keyword: #f2a2ad;
  --tok-string: #b9d89a;
  --tok-fn: #f3cd83;
  --tok-tag: #8fd1c6;
  --tok-attr: #e9b779;
  --tok-num: #f7a982;
  --tok-punct: #a39689;
  --tok-class: #f3cd83;
  --tok-hl: rgba(255, 236, 200, .08);
  --tok-add: rgba(151, 214, 130, .14);
  --accent-code: #e9c27f;
  --good-code: #9fd88a;
  --term-bg: #1d1816;
  --term-prompt: #e9c27f;
  --hs-line: #5c1a23;
  --hs-fill: rgba(92, 26, 35, .12);
  --hs-tip-bg: #2e2a26;
  --hs-tag: #f3cd83;
  --flip-back: #421219;
  --flip-back-ink: #fdfaf2;
  --curtain-bg: #421219;
  --curtain-ink: #f3dfb8;
  --mark: rgba(201, 175, 126, .55);
  --break-accent: #d9b26f;
  --break-font: var(--f-display);
}

body { background: var(--letterbox); }
.slide {
  background-color: var(--bg);
  background-image: radial-gradient(1200px 700px at 85% -10%, rgba(201, 175, 126, .16), transparent 60%);
}
.slide[data-tone="dark"] {
  --slide-bg: var(--night);
  --ink: #f6eee2; --ink-2: rgba(246, 238, 226, .74); --ink-3: rgba(246, 238, 226, .5);
  --surface: #33141a; --surface-2: #4a1d25; --line: rgba(246, 238, 226, .16);
  background-color: var(--night);
  background-image: radial-gradient(900px 600px at 15% 110%, rgba(217, 178, 111, .14), transparent 60%);
}
.display, .h1, .h2, .h3 { font-weight: 600; letter-spacing: -.012em; }
.display { font-size: 168px; line-height: .88; }
.h1 { font-size: 104px; line-height: .95; }
.h2 { font-size: 74px; line-height: 1; }
.h3 { font-size: 48px; line-height: 1.08; }
.h4 { font-family: var(--f-body); font-weight: 700; }
.lead { font-size: 34px; }
.eyebrow { color: var(--brass); letter-spacing: .2em; }
.eyebrow { flex-wrap: wrap; row-gap: 6px; }
.eyebrow b { color: var(--accent); }
[data-tone="dark"] .eyebrow { color: var(--brass-soft); }
[data-tone="dark"] .eyebrow b { color: var(--accent-on-dark); }
.it { font-family: var(--f-display); font-style: italic; }
.wine { color: var(--wine); }
.brass { color: var(--brass); }
[data-tone="dark"] .wine { color: var(--accent-on-dark); }
.rule-brass { width: 64px; height: 2px; background: var(--brass); }
code, .code-inline { background: color-mix(in srgb, var(--wine) 8%, transparent); color: inherit; }
[data-tone="dark"] code { background: rgba(255, 255, 255, .1); }

/* chips and buttons in the bistro style */
.chip { font-family: var(--f-body); font-weight: 600; letter-spacing: .01em; border-radius: 999px; padding: 10px 16px; }
.chip.is-wine { background: var(--wine); color: var(--accent-ink); }
.chip.is-good { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.chip.is-bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.chip.big { font-size: 26px; padding: 16px 24px; gap: 12px; }
.chip.big svg { width: 24px; height: 24px; }
.btn { border-radius: 999px; }
.btn.is-wine { background: var(--wine); color: var(--accent-ink); }
.btn.is-brass { background: var(--brass); color: #fff; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1 var(--f-mono); color: var(--wine); background: color-mix(in srgb, var(--wine) 8%, transparent); padding: 7px 11px; border-radius: 8px; white-space: nowrap; }
.file-chip svg { width: 16px; height: 16px; }
[data-tone="dark"] .file-chip { color: var(--accent-on-dark); background: rgba(255, 255, 255, .08); }

/* ---------- cover: Bonjour ---------- */
.cover { display: grid; grid-template-columns: minmax(0, 1fr) 640px; gap: 72px; align-items: center; flex: 1; }
.cover__hello { font: italic 500 64px/1 var(--f-display); color: var(--brass); margin: 0; }
.cover .display { color: var(--wine); }
.cover__meta { display: grid; grid-template-columns: repeat(2, max-content); gap: 20px 64px; margin: 0; }
.cover__meta dt { font: 700 14px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.cover__meta dd { margin: 8px 0 0; font-size: 26px; font-weight: 600; }
.plate { position: relative; width: 600px; height: 600px; justify-self: center; }
.plate__rim { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fffdf8 0 61%, #efe6d4 61.5% 63%, #fffdf8 63.5% 100%); box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(46, 42, 38, .06); }
.plate__food { position: absolute; inset: 70px; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 40px rgba(0, 0, 0, .25); }
.plate__food img { width: 100%; height: 100%; object-fit: cover; }
.plate__tag { position: absolute; right: -24px; bottom: 54px; transform: rotate(-4deg); background: var(--surface); padding: 14px 20px; box-shadow: var(--shadow-1); font: italic 500 26px/1.15 var(--f-display); color: var(--wine); border-radius: 4px; max-width: 330px; }
.plate__tag small { display: block; font: 700 12px/1 var(--f-mono); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }

/* ---------- the agenda as a bistro menu card ---------- */
.menu-card {
  align-self: center; width: 1180px; margin: 0 auto; padding: 46px 70px 40px;
  background: var(--surface); box-shadow: var(--shadow-2); position: relative; border-radius: 4px;
}
.menu-card::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--brass-soft); pointer-events: none; }
.menu-card::after { content: ""; position: absolute; inset: 20px; border: 1px solid color-mix(in srgb, var(--brass-soft) 50%, transparent); pointer-events: none; }
.menu-card__head { text-align: center; margin-bottom: 26px; }
.menu-card__head h2 { font: 600 64px/1 var(--f-display); color: var(--wine); margin: 6px 0 0; }
.menu-card__list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.course { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 22px; align-items: baseline; }
.course__k { font: 700 14px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.course__name { display: flex; align-items: baseline; gap: 14px; font: 600 33px/1.15 var(--f-display); color: var(--ink); }
.course__name::after { content: ""; flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-6px); }
.course__name small { font: 400 19px/1.3 var(--f-body); color: var(--ink-2); }
.course__t { font: 700 20px/1 var(--f-mono); color: var(--wine); }
.course.is-pause .course__name, .course.is-pause .course__t { color: var(--brass); }

/* ---------- the course map: five stops ---------- */
.road { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin-top: 44px; position: relative; }
.road::before { content: ""; position: absolute; left: 4%; right: 4%; top: 193px; height: 2px; background: repeating-linear-gradient(90deg, var(--brass-soft) 0 10px, transparent 10px 18px); }
.stop { display: flex; flex-direction: column; gap: 12px; position: relative; }
.stop__shot { height: 172px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-1); background: var(--surface-2); filter: saturate(.55) opacity(.75); transition: filter .4s ease, transform .4s var(--ease-out); }
.stop__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stop__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--brass-soft); margin: 0 auto; position: relative; z-index: 1; }
.stop.is-now .stop__dot { background: var(--wine); box-shadow: 0 0 0 6px color-mix(in srgb, var(--wine) 18%, transparent); }
.stop__n { font: 700 15px/1 var(--f-mono); letter-spacing: .12em; color: var(--ink-3); margin-top: 6px; }
.stop__t { font: 600 30px/1.05 var(--f-display); }
.stop__d { font-size: 18px; line-height: 1.4; color: var(--ink-2); margin: 0; }
.stop p { margin: 0; }
.stop.is-now .stop__shot { filter: none; transform: translateY(-6px); box-shadow: var(--shadow-2), 0 0 0 3px var(--wine); }
.stop.is-now .stop__t, .stop.is-now .stop__n { color: var(--wine); }
.stop.is-done .stop__shot { filter: none; }
.lane { display: grid; grid-template-columns: 250px repeat(5, minmax(0, 1fr)); gap: 22px; align-items: center; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.lane__k { font: 700 15px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.lane__v { font-size: 19px; line-height: 1.35; color: var(--ink-2); }
.lane__v b { display: block; font: 700 18px/1 var(--f-mono); color: var(--ink); margin-bottom: 6px; }

/* ---------- framed screenshots ---------- */
.shot { margin: 0; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-2); min-width: 0; }
.shot__bar { display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 18px; background: #efe7d8; }
.shot__bar i { width: 12px; height: 12px; border-radius: 50%; background: rgba(46, 42, 38, .16); }
.shot__url { flex: 1; height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 8px; background: var(--surface); font: 500 17px/1 var(--f-mono); color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.shot__url svg { width: 15px; height: 15px; flex: none; }
.shot__url b { color: var(--wine); font-weight: 600; }
.shot__body { position: relative; overflow: hidden; }
.shot__body > img { width: 100%; display: block; }
.facts { display: grid; gap: 18px; margin: 0; }
.facts div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.facts dt { font: 700 14px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.facts dd { margin: 0; font-size: 25px; line-height: 1.35; }

/* ---------- questions ---------- */
.qa { display: grid; grid-template-columns: 700px minmax(0, 1fr); gap: 88px; align-items: center; flex: 1; }
.qa .display { font-size: 132px; color: var(--wine); }
.qa-list { display: flex; flex-direction: column; gap: 16px; }
.qa-card { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 6px 16px; background: var(--surface); box-shadow: var(--shadow-1); padding: 24px 28px; border-radius: var(--card-r); }
.qa-card .n { font: 700 16px/1 var(--f-mono); color: var(--brass); padding-top: 9px; }
.qa-card h3 { font: 600 30px/1.2 var(--f-body); margin: 0; letter-spacing: -.01em; }
.qa-card .reveal-box { grid-column: 2; min-height: 64px; margin-top: 6px; }
.qa-card .reveal-box p { font-size: 22px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.qa-card .reveal-box__cover { justify-content: start; place-items: center start; background: var(--surface); color: var(--wine); border-radius: 0; }

/* ---------- problem slides ---------- */
.problem-cover { display: grid; grid-template-columns: minmax(0, 1fr) 820px; gap: 0; flex: 1; margin: -136px -144px -118px; }
.problem-cover__text { display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 136px 72px 118px 144px; }
.problem-cover__photo { position: relative; overflow: hidden; }
.problem-cover__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.problem-cover__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(36, 9, 13, .35) 22%, rgba(36, 9, 13, 0) 50%); }
.problem-cover .display { font-size: 150px; color: #fbf3e6; }
.problem-cover .lead { color: rgba(246, 238, 226, .78); max-width: 860px; }
.need { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 64px; }
.need .chip { font-size: 28px; padding: 18px 26px; background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); }
.need .chip.is-answer { background: var(--wine); color: var(--accent-ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--wine) 18%, transparent); }
.need .chip.is-answer svg { color: var(--accent-on-dark); }

/* ---------- recipe: the ordered solution (steps on the left, code on the right) ---------- */
.recipe { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 60px; align-items: start; flex: 1; min-height: 0; margin-top: 30px; }
.recipe.wide-steps { grid-template-columns: 680px minmax(0, 1fr); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: st; }
.steps > li {
  counter-increment: st; position: relative; padding: 16px 20px 16px 74px; border-radius: var(--card-r);
  background: var(--surface); box-shadow: var(--shadow-1);
  transition: background-color .35s ease, box-shadow .35s ease, opacity .35s ease, transform .45s var(--ease-out);
}
.steps > li::before {
  content: counter(st); position: absolute; left: 18px; top: 16px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font: 700 17px/1 var(--f-mono); background: var(--surface-2); color: var(--ink-2);
  transition: background-color .35s ease, color .35s ease;
}
.steps > li > b { display: block; font-size: 25px; line-height: 1.25; }
.steps > li > span { display: block; font-size: 19px; line-height: 1.42; color: var(--ink-2); margin-top: 4px; }
.steps > li > .file-chip { margin-top: 10px; }
.steps > li > span.file-chip { display: inline-flex; }
.steps > li.is-now { background: #fff; box-shadow: var(--shadow-2), inset 4px 0 0 var(--wine); transform: translateX(8px); }
.steps > li.is-now::before { background: var(--wine); color: var(--accent-ink); }
.steps > li.is-done::before { content: "✓"; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.steps.is-compact > li { padding: 12px 18px 12px 66px; }
.steps.is-compact > li::before { width: 34px; height: 34px; top: 12px; font-size: 15px; }
.steps.is-compact > li > b { font-size: 22px; }
.steps.is-compact > li > span { font-size: 17px; }
.recipe__right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.recipe .code { --code-size: 19px; }
.code.is-tiny { --code-size: 16px; }
.code-pair { display: grid; gap: 18px; }

/* ---------- live previews (mock Le Bistro UI in the slides) ---------- */
.mock { background: #f6f1e7; color: #2e2a26; border-radius: 12px; box-shadow: var(--shadow-2); overflow: hidden; font-family: var(--f-body); min-width: 0; }
.mock__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; background: #efe7d8; font: 500 15px/1 var(--f-mono); color: #6e645a; }
.mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(46, 42, 38, .16); }
.mock__bar span { flex: 1; background: #fdfaf2; height: 28px; border-radius: 7px; display: flex; align-items: center; padding: 0 12px; }
.mock__page { padding: 22px 26px; min-height: 120px; }
.mhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid #ddd2bf; background: #f6f1e7; }
.mhead__logo { font: 600 30px/1 var(--f-display); color: #5c1a23; }
.mhead__logo small { display: block; font: 700 10px/1 var(--f-body); letter-spacing: .25em; color: #a98545; text-transform: uppercase; margin-top: 4px; }
.mhead nav { display: flex; gap: 18px; align-items: center; font-size: 15px; font-weight: 600; }
.mbtn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #5c1a23; color: #5c1a23; padding: 8px 14px; font: 700 14px/1 var(--f-body); background: transparent; border-radius: 0; }
.mbtn.is-solid { background: #5c1a23; color: #fdfaf2; }
.mbtn[disabled] { opacity: .35; }
.mhero { position: relative; background: #421219; color: #fdfaf2; padding: 34px 28px; overflow: hidden; }
.mhero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.mhero > * { position: relative; }
.mhero h4 { font: 600 40px/1.05 var(--f-display); margin: 6px 0 12px; }
.meyebrow { font: 700 11px/1 var(--f-body); letter-spacing: .25em; text-transform: uppercase; color: #c9af7e; }
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mgrid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mgrid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mcard { background: #fdfaf2; border: 1px solid #ddd2bf; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s ease, transform .3s var(--ease-out), background-color .4s ease; }
.mcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #ece4d3; }
.mcard__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mcard__title { display: flex; align-items: baseline; gap: 8px; font: 600 20px/1.1 var(--f-display); }
.mcard__title::after { content: ""; order: 1; flex: 1; border-bottom: 1.5px dotted #ddd2bf; }
.mcard__title .p { order: 2; color: #5c1a23; }
.mcard__title .p { white-space: nowrap; }
.mcard__desc { font: italic 500 15px/1.3 var(--f-display); color: #6e645a; }
.mcard__badge { font: 700 12px/1 var(--f-body); color: #a93b2c; }
.mcard__foot { margin-top: auto; display: flex; justify-content: flex-end; }
.mcard .mbtn { padding: 6px 10px; font-size: 12px; }
.mcard.is-hot { box-shadow: 0 0 0 3px #a98545; }
.mcard.is-wrong { background: #f8e3df; box-shadow: 0 0 0 3px #a93b2c; }
.mcard.is-right { box-shadow: 0 0 0 3px #47654c; }
.mstep { display: inline-flex; align-items: center; border: 1px solid #ddd2bf; background: #f6f1e7; }
.mstep button { border: 0; background: none; width: 30px; height: 30px; font: 700 16px/1 var(--f-body); color: #2e2a26; }
.mstep button[disabled] { opacity: .3; }
.mstep output { width: 26px; text-align: center; font: 700 15px/1 var(--f-body); }
.mchips { display: flex; gap: 8px; flex-wrap: wrap; }
.mchip { border: 1px solid #ddd2bf; background: #fdfaf2; border-radius: 999px; padding: 7px 13px; font: 600 14px/1 var(--f-body); color: #2e2a26; }
.mchip.is-on { background: #5c1a23; border-color: #5c1a23; color: #fdfaf2; }
.msearch { border: 1px solid #ddd2bf; background: #fdfaf2; border-radius: 999px; padding: 9px 16px; font: 500 15px/1 var(--f-body); color: #2e2a26; width: 240px; }
.msection-title { text-align: center; margin: 4px 0 16px; }
.msection-title h5 { font: 600 34px/1 var(--f-display); color: #5c1a23; margin: 4px 0 0; }

/* fake console / network panels */
.devtools { background: #1d1816; color: #e8dccb; border-radius: 12px; box-shadow: var(--shadow-2); overflow: hidden; font: 500 17px/1.5 var(--f-mono); min-width: 0; }
.devtools__head { display: flex; gap: 18px; padding: 10px 16px; background: #2a2320; font: 700 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #9c8f84; }
.devtools__head b { color: #f3cd83; }
.devtools__body { padding: 12px 16px; min-height: 120px; max-height: 360px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.devtools__line { padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); white-space: pre-wrap; animation: fadeUp .35s var(--ease-out); }
.devtools__line.is-err { color: #ffb4a8; background: rgba(169, 59, 44, .18); padding-left: 8px; }
.devtools__line.is-warn { color: #f3cd83; background: rgba(150, 105, 29, .18); padding-left: 8px; }
.devtools__line.is-ok { color: #b9d89a; }
.devtools__line.is-dim { color: #8b7d70; }
/* a fake Network tab: <div class="netlist"><div class="netrow"><span>GET</span><span>/path</span><span class="st">200</span><span>12 ms</span></div></div> */
.netlist { display: flex; flex-direction: column; gap: 2px; }
.netrow { display: grid; grid-template-columns: 54px minmax(0, 1fr) 104px 90px; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font: 500 15px/1.4 var(--f-mono); color: #e8dccb; animation: fadeUp .3s var(--ease-out); }
.netrow .st { color: #b9d89a; }
.netrow .st.bad { color: #ffb4a8; }
.netrow .st.wait { color: #f3cd83; }
.netrow .st.cx { color: #9c8f84; text-decoration: line-through; }
/* segmented choice: <div class="seg"><button class="is-on">A</button><button>B</button></div> */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { cursor: pointer; border: 0; padding: 12px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-1); font: 700 17px/1 var(--f-body); color: var(--ink); }
.seg button.is-on { background: var(--ink); color: var(--bg); }
/* buttons that show paths or code keep their case: <button class="btn is-ghost no-caps">/menu?category=drinks</button> */
.btn.no-caps { text-transform: none; letter-spacing: 0; }

/* ---------- schemas: boxes and self-drawing wires (track.js draws the wires) ---------- */
.schema { position: relative; flex: none; }
.schema > .wires { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.wires path { fill: none; stroke: var(--brass); stroke-width: 2.5; stroke-linecap: round; }
.wires path.is-wine { stroke: var(--wine); }
.wires path.is-good { stroke: var(--good); }
.wires path.is-bad { stroke: var(--bad); }
.wires path.is-dash { stroke-dasharray: 7 9; }
.wires .wire-head { fill: var(--brass); stroke: none; }
.wires .wire-head.is-wine { fill: var(--wine); }
.wires .wire-head.is-good { fill: var(--good); }
.wires .wire-head.is-bad { fill: var(--bad); }
.wires .wire-head[data-step] { transition-delay: .65s; }
.wires .wire-label { font: 600 15px var(--f-mono); fill: var(--ink-2); letter-spacing: .04em; }
.node {
  position: absolute; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 14px 18px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-1);
  font: 600 22px/1.2 var(--f-mono); color: var(--ink); text-align: center; min-width: 120px;
  transition: background-color .4s ease, color .4s ease, box-shadow .4s ease, transform .6s var(--ease-out), opacity .45s ease;
}
.node small { font: 500 15px/1.3 var(--f-body); color: var(--ink-2); }
.node.is-wine { background: var(--wine); color: var(--accent-ink); }
.node.is-wine small { color: rgba(253, 250, 242, .75); }
.node.is-brass { background: #f3e6c9; }
.node.is-ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.node.is-hot { box-shadow: var(--shadow-2), 0 0 0 4px var(--brass); }
.node.is-bad { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); box-shadow: 0 0 0 3px var(--bad); }
.node.is-good { background: color-mix(in srgb, var(--good) 14%, var(--surface)); box-shadow: 0 0 0 3px var(--good); }
.node.is-dim { opacity: .3; }
.node.lg { font-size: 26px; padding: 18px 22px; }
.node.sm { font-size: 18px; padding: 10px 14px; min-width: 0; }
.node.tag { font: 700 18px/1 var(--f-mono); border-radius: 999px; padding: 10px 16px; min-width: 0; }
.box-label { position: absolute; font: 700 14px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.region { position: absolute; border: 2px dashed var(--brass-soft); border-radius: 16px; z-index: 0; }
.region.is-wine { border-color: color-mix(in srgb, var(--wine) 45%, transparent); background: color-mix(in srgb, var(--wine) 4%, transparent); }
.packet {
  position: absolute; left: 0; top: 0; z-index: 3; offset-rotate: 0deg; offset-distance: 0%;
  padding: 6px 12px; border-radius: 999px; background: var(--brass); color: #fff; font: 700 15px/1 var(--f-mono); white-space: nowrap;
  opacity: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.packet.is-wine { background: var(--wine); }
.packet.is-good { background: var(--good); }
.packet.go { animation: travel var(--dur, 1.8s) cubic-bezier(.45, .05, .35, 1) var(--delay, 0s) forwards; }
.packet.loop { animation: travel var(--dur, 2.4s) cubic-bezier(.45, .05, .35, 1) var(--delay, 0s) infinite; }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* the "idea in one picture" layout: schema left, takeaway right */
.idea { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: center; flex: 1; min-height: 0; }
.idea__side { display: flex; flex-direction: column; gap: 22px; }
.takeaway { padding: 26px 30px; background: var(--surface); border-radius: var(--card-r); box-shadow: var(--shadow-1); border-left: 5px solid var(--wine); }
.takeaway p { margin: 0; font-size: 26px; line-height: 1.4; }
.takeaway p + p { margin-top: 10px; }
.takeaway .k { font: 700 14px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }

/* ---------- anatomy: one line of code with labelled parts ---------- */
.anatomy { margin-top: 48px; }
.anatomy__code { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0; font: 600 56px/1.3 var(--f-mono); padding: 34px 44px; background: var(--code-bg); color: var(--code-fg); border-radius: 18px; box-shadow: var(--shadow-2); white-space: pre; }
.anatomy__code .part { position: relative; border-radius: 6px; transition: background-color .4s ease, color .4s ease; }
.anatomy__code .part.is-on { background: rgba(233, 194, 127, .18); color: #f3cd83; }
.anatomy__notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.anatomy__notes.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.anatomy__notes .card { padding: 22px 24px; }
.anatomy__notes .card code { font-size: 22px; color: var(--wine); background: none; padding: 0; }
.anatomy__notes .card p { font-size: 21px; line-height: 1.42; color: var(--ink-2); margin-top: 8px; }
.anatomy__notes .card .num { font: 700 14px/1 var(--f-mono); color: var(--brass); letter-spacing: .12em; }

/* ---------- mistakes: wrong vs right ---------- */
.mistakes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.mistakes.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mistake { background: var(--surface); border-radius: var(--card-r); box-shadow: var(--shadow-1); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mistake h4 { margin: 0; font: 700 22px/1.25 var(--f-body); }
.mistake .bad, .mistake .good { font: 500 18px/1.45 var(--f-mono); padding: 10px 14px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mistake .bad { background: color-mix(in srgb, var(--bad) 10%, transparent); color: #7d2a1f; }
.mistake .bad::before { content: "✗  "; font-weight: 700; color: var(--bad); }
.mistake .good { background: color-mix(in srgb, var(--good) 12%, transparent); color: #2f4a33; }
.mistake .good::before { content: "✓  "; font-weight: 700; color: var(--good); }
.mistake .err { font: 500 16px/1.45 var(--f-mono); color: var(--ink-2); border-left: 3px solid var(--bad); padding-left: 12px; }
.mistake .why { font-size: 18px; line-height: 1.45; color: var(--ink-2); margin: 0; }

/* ---------- classwork ---------- */
.cw { display: grid; grid-template-columns: minmax(0, 1fr) 540px; gap: 56px; flex: 1; min-height: 0; margin-top: 26px; }
.tiers { display: flex; flex-direction: column; gap: 14px; }
.tier { background: var(--surface); border-radius: var(--card-r); box-shadow: var(--shadow-1); padding: 20px 26px; }
.tier__k { display: flex; justify-content: space-between; font: 700 14px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.tier.base { border-left: 5px solid var(--wine); }
.tier.base .tier__k span:first-child { color: var(--wine); }
.tier h3 { font: 700 26px/1.2 var(--f-body); margin: 0 0 8px; }
.tier ul { margin: 0; padding-left: 22px; font-size: 21px; line-height: 1.45; color: var(--ink-2); }
.tier li + li { margin-top: 4px; }
.cw__side { display: flex; flex-direction: column; gap: 18px; }
.done-when { background: var(--surface); border-radius: var(--card-r); box-shadow: var(--shadow-1); padding: 22px 24px; }
.done-when .k { font: 700 14px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--good); margin-bottom: 12px; }
.hint { background: #f3e6c9; border-radius: var(--card-r); padding: 18px 22px; }
.hint .k { font: 700 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--warn); margin-bottom: 8px; }
.hint p, .hint pre { margin: 0; font-size: 19px; line-height: 1.45; }
.hint pre { font: 500 16px/1.5 var(--f-mono); white-space: pre-wrap; }

/* ---------- the break slide ---------- */
.pause { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 72px; align-items: center; flex: 1; }
.pause .display { color: #fbf3e6; }
.pause__btn { display: inline-flex; align-items: center; gap: 18px; height: 96px; padding: 0 44px 0 34px; border: 0; border-radius: 999px; background: var(--accent-on-dark); color: #2a0d12; font: 700 28px/1 var(--f-body); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transition: transform .25s var(--ease); }
.pause__btn:hover { transform: translateY(-3px) scale(1.02); }
.pause__btn { align-self: flex-start; }
.pause__btn svg { width: 38px; height: 38px; }
.cup { position: relative; width: 460px; height: 460px; justify-self: center; }
.cup__plate { position: absolute; left: 0; right: 0; bottom: 40px; height: 120px; border-radius: 50%; background: radial-gradient(ellipse at center, #f3e9d6 0 55%, #d9c9aa 56% 60%, #f3e9d6 61%); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.cup__body { position: absolute; left: 90px; right: 90px; bottom: 90px; height: 210px; border-radius: 0 0 140px 140px; background: linear-gradient(90deg, #efe4cf, #fffaf0 40%, #e3d4b6); box-shadow: inset 0 -10px 30px rgba(0, 0, 0, .12); }
.cup__coffee { position: absolute; left: 100px; right: 100px; bottom: 268px; height: 40px; border-radius: 50%; background: radial-gradient(ellipse at 40% 40%, #a06a3a, #4a2814 70%); }
.cup__handle { position: absolute; right: 38px; bottom: 170px; width: 90px; height: 100px; border: 22px solid #eadcc0; border-left: 0; border-radius: 0 60px 60px 0; }
.cup__steam { position: absolute; bottom: 300px; width: 16px; height: 120px; border-radius: 10px; background: linear-gradient(transparent, rgba(255, 255, 255, .35)); filter: blur(5px); animation: steam 3.6s ease-in-out infinite; }
.cup__steam:nth-child(1) { left: 170px; }
.cup__steam:nth-child(2) { left: 220px; animation-delay: -1.2s; }
.cup__steam:nth-child(3) { left: 270px; animation-delay: -2.4s; }
@keyframes steam { 0% { transform: translateY(20px) scaleX(1); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-70px) scaleX(1.8); opacity: 0; } }

/* ---------- wrap-up ---------- */
.recap { display: flex; flex-direction: column; gap: 22px; margin-top: 40px; }
.recap__row { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); align-items: stretch; gap: 0; }
.recap__p, .recap__s { padding: 26px 30px; border-radius: var(--card-r); }
.recap__p { background: color-mix(in srgb, var(--bad) 9%, var(--surface)); box-shadow: var(--shadow-1); }
.recap__s { background: var(--surface); box-shadow: var(--shadow-1), inset 5px 0 0 var(--good); }
.recap__p .k, .recap__s .k { font: 700 14px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.recap__p .k { color: var(--bad); }
.recap__s .k { color: var(--good); }
.recap__p p, .recap__s p { margin: 0; font-size: 25px; line-height: 1.4; }
.recap__arrow { display: grid; place-items: center; color: var(--brass); }
.recap__arrow svg { width: 44px; height: 44px; }
.flips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 34px; --flip-h: 230px; }
.flip__face .code { --code-size: 20px; }
.flip__face p { font-size: 22px; line-height: 1.42; margin: 0; }
.hw { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 56px; margin-top: 30px; flex: 1; min-height: 0; }
.merci { display: grid; grid-template-columns: minmax(0, 1fr) 640px; gap: 72px; align-items: center; flex: 1; }
.merci .display { color: #fbf3e6; font-size: 190px; }
.teaser { background: rgba(255, 255, 255, .06); border-radius: 18px; padding: 32px 34px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.teaser .k { font: 700 14px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: 14px; }
.teaser h3 { font: 600 50px/1.05 var(--f-display); margin: 0 0 12px; color: #fbf3e6; }
.teaser p { font-size: 24px; line-height: 1.45; color: rgba(246, 238, 226, .75); margin: 0; }

/* ---------- AI: CRAFT prompts (Classwork 2 and the Masterclass) ----------
   Five parts, one colour each: Context, Role, Action, Format, Target.
   .craft            a dark prompt box; .craft__part rows open one per step; Copy copies "LABEL\ntext" for each part
   .craft--short     the same prompt as one paragraph; .p-c/.p-r/.p-a/.p-f/.p-t spans light up with .show-parts
   .craft-mini       the light five-row template on the classwork slide */
.cr-c { --part: #a98545; --part-light: #e9c27f; }
.cr-r { --part: #8f2f3b; --part-light: #f0a0a6; }
.cr-a { --part: #3f6b4a; --part-light: #a5d491; }
.cr-f { --part: #2f5d7c; --part-light: #92c4e8; }
.cr-t { --part: #74508a; --part-light: #d4a9e6; }
.craft { position: relative; min-width: 0; background: var(--code-bg); color: var(--code-fg); border-radius: 16px; box-shadow: var(--shadow-2); padding: 16px 26px 20px; }
.craft__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font: 600 14px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--code-dim); }
.craft__bar > span { display: inline-flex; align-items: center; gap: 10px; }
.craft__bar svg { width: 18px; height: 18px; }
.craft__part { display: grid; grid-template-columns: 50px 230px minmax(0, 1fr); gap: 18px; align-items: start; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.craft__part:first-of-type { border-top: 0; }
.craft__badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--part); color: #fff; font: 700 24px/1 var(--f-display); }
.craft .craft__badge { background: var(--part-light); color: #1d1816; }
.craft__name { margin: 0; font: 600 24px/1.1 var(--f-display); color: var(--part-light); }
.craft__name small { display: block; margin-top: 6px; font: 500 14px/1.35 var(--f-body); color: var(--code-dim); }
.craft__text { margin: 0; padding-top: 2px; font: 500 var(--craft-size, 17px)/1.48 var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--code-fg); }
.craft--short .craft__short { margin: 0; font: 500 var(--craft-size, 21px)/1.65 var(--f-mono); color: var(--code-fg); }
.craft--short .craft__short span { border-radius: 4px; padding: 1px 0; transition: background-color .5s ease, box-shadow .5s ease, color .5s ease; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.craft--short.show-parts .p-c { background: rgba(233, 194, 127, .14); box-shadow: inset 0 -2px 0 #e9c27f; }
.craft--short.show-parts .p-r { background: rgba(240, 160, 166, .14); box-shadow: inset 0 -2px 0 #f0a0a6; }
.craft--short.show-parts .p-a { background: rgba(165, 212, 145, .14); box-shadow: inset 0 -2px 0 #a5d491; }
.craft--short.show-parts .p-f { background: rgba(146, 196, 232, .14); box-shadow: inset 0 -2px 0 #92c4e8; }
.craft--short.show-parts .p-t { background: rgba(212, 169, 230, .14); box-shadow: inset 0 -2px 0 #d4a9e6; }
.craft__legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); font: 600 15px/1 var(--f-mono); }
.craft__legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--part-light); }
.craft__legend span::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--part-light); }
.craft-mini { background: var(--surface); border-radius: var(--card-r); box-shadow: var(--shadow-1); padding: 16px 22px 12px; }
.craft-mini__k { margin: 0 0 6px; font: 700 14px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.craft-mini__row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.craft-mini__row:first-of-type { border-top: 0; }
.craft-mini .craft__badge { width: 36px; height: 36px; border-radius: 10px; font-size: 20px; }
.craft-mini__row p { margin: 0; font-size: 19px; line-height: 1.38; color: var(--ink-2); }
.craft-mini__row p b { color: var(--part); margin-right: 6px; }
.ai-levels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 20px; line-height: 1.4; color: var(--ink-2); }
.ai-levels b { display: inline-block; min-width: 54px; font: 700 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.ai-levels li:first-child b { color: var(--wine); }
.hint pre.is-prompt { font-size: 14px; line-height: 1.45; }
/* the five CRAFT letters (L27 introduces them) */
.craft-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.craft-card { background: var(--surface); border-radius: var(--card-r); box-shadow: var(--shadow-1); padding: 22px 20px; border-top: 5px solid var(--part); display: flex; flex-direction: column; gap: 10px; }
.craft-card .craft__badge { width: 54px; height: 54px; font-size: 32px; }
.craft-card h3 { margin: 0; font: 600 30px/1.05 var(--f-display); color: var(--part); }
.craft-card .q { margin: 0; font: 700 17px/1.3 var(--f-body); color: var(--ink); }
.craft-card .ex { margin: 0; font: 500 16px/1.45 var(--f-mono); color: var(--ink-2); background: color-mix(in srgb, var(--part) 8%, transparent); border-radius: 8px; padding: 10px 12px; }
/* masterclass: run it, check it */
.mc-run { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; margin-top: 26px; align-items: start; }
.mc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: mc; }
.mc-steps li { position: relative; padding: 16px 20px 16px 72px; background: var(--surface); border-radius: var(--card-r); box-shadow: var(--shadow-1); font-size: 21px; line-height: 1.4; counter-increment: mc; }
.mc-steps li::before { content: counter(mc); position: absolute; left: 20px; top: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: #fdfaf2; font: 700 17px/1 var(--f-mono); }
.mc-steps li span { display: block; margin-top: 4px; font-size: 17px; color: var(--ink-3); }
.mc-check { background: var(--surface); border-radius: var(--card-r); box-shadow: var(--shadow-1); padding: 22px 26px; }
.mc-check .k { margin: 0 0 12px; font: 700 14px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--good); }
.mc-check .checks li { font-size: 21px; }

/* ---------- small utilities ---------- */
.center { text-align: center; }
.gap-s { --gap: 12px; }
.gap-m { --gap: 22px; }
.gap-l { --gap: 40px; }
.w-full { width: 100%; }
.mt-xs { margin-top: 8px; }
.pill-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--wine); color: var(--accent-ink); font: 700 16px/1 var(--f-mono); vertical-align: middle; }
.sticker { display: inline-block; transform: rotate(-3deg); background: var(--wine); color: var(--accent-ink); padding: 8px 14px; font: 700 15px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; border-radius: 4px; }
.say { font: italic 500 30px/1.3 var(--f-display); color: var(--wine); }
.kbd-big { font-size: 28px; }

/* code-like text: no programming ligatures, so => and === look exactly as typed */
code, pre, kbd, samp, .mono, .chip, .file-chip, .node, .cheat td, .devtools, .readout, .anatomy__code,
.mistake .bad, .mistake .good, .mistake .err, .order__item, .term, .prompt__text, .packet, .wire-label,
.obj, .funnel, .hint pre, .keytag, .stage-card .log, .counter-pill, .frame-s code, .arr span { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }
