@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../vendor/plex/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url("../vendor/plex/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Darcula. js/scene.js reads these too, so the 3D map follows any change here. */
  --bg: #2b2b2b;
  --panel: #1e1f22;
  --raised: #3c3f41;
  --ink: #1e1f22; /* text on bright fills */
  --page: #f2f3f5; /* websites shown inside a browser frame */
  --paper: #e4e7eb;
  --muted: #a9b7c6;
  --wire: #808a94;
  --dot: #414446;
  --packet: #ffc66d;
  --reply: #f28ca6;
  --client: #a5c261;
  --server: #e39a5b;
  --data: #b9a0d6;
  --dev: #7fb3d9;
  --html: #e9622f;
  --css: #2b8fe0;
  --js: #f7df1e;
  --sans: "Bricolage Grotesque Variable", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

html, body { margin: 0; height: 100%; background: var(--bg); }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.reveal { position: fixed; inset: 0; z-index: 1; background: transparent; color: var(--paper); font-family: var(--sans); font-size: 30px; line-height: 1.4; }
.reveal-viewport { background: var(--bg); }
.reveal .backgrounds { display: none; }

.reveal .slides { text-align: left; }
.reveal .slides > section { box-sizing: border-box; width: 1600px; height: 900px; padding: 64px 84px 112px; }

.reveal h1, .reveal h2, .reveal h3, .reveal p, .reveal ul, .reveal ol { margin: 0; font-family: inherit; }
.reveal h1 { font-size: 96px; line-height: 1.02; font-weight: 800; font-stretch: 85%; letter-spacing: -0.02em; }
.reveal h2 { font-size: 62px; line-height: 1.08; font-weight: 800; font-stretch: 85%; letter-spacing: -0.015em; margin-bottom: 28px; }
.reveal p + p { margin-top: 18px; }
.reveal .lede { color: var(--muted); font-size: 32px; max-width: 26em; }
.reveal .fineprint { color: var(--muted); font-size: 25px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 4px solid var(--packet); outline-offset: 3px; }

/* The route: which topic we're on. Click a stop to jump to it. Stops with no slides yet stay disabled. */
#route { position: fixed; z-index: 2; left: 50%; bottom: clamp(10px, 2.2vh, 24px); transform: translateX(-50%); display: flex; align-items: center; gap: clamp(2px, .4vw, 6px); margin: 0; padding: 0; list-style: none; }
#route button { display: flex; align-items: center; justify-content: center; gap: .4em; min-width: clamp(26px, 2.8vw, 46px); height: clamp(26px, 2.8vw, 46px); padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 clamp(14px, 1.45vw, 24px) var(--sans); cursor: pointer; }
#route button:hover:not(:disabled) { background: var(--raised); }
#route button:disabled { color: #55595c; cursor: default; }
#route .done button:not(:disabled) { color: var(--paper); }
#route .now button, #route .now button:hover:not(:disabled) { padding: 0 .8em; background: var(--packet); color: var(--ink); }
#route .name { display: none; font-size: .78em; white-space: nowrap; }
#route .now .name { display: inline; }

/* Previous and next */
#deck-nav { position: fixed; z-index: 2; right: clamp(8px, 1.6vw, 28px); bottom: clamp(10px, 2.2vh, 24px); display: flex; align-items: center; gap: clamp(4px, .5vw, 8px); color: var(--muted); font: 600 clamp(13px, 1.1vw, 19px) var(--sans); }
#deck-nav button { display: grid; place-items: center; width: clamp(32px, 2.8vw, 46px); height: clamp(32px, 2.8vw, 46px); padding: 0; border: 0; border-radius: 50%; background: var(--raised); color: var(--paper); font-size: clamp(18px, 1.5vw, 26px); cursor: pointer; }
#deck-nav button:hover:not(:disabled) { background: #4e5254; }
#deck-nav button:disabled { background: transparent; color: #55595c; cursor: default; }
#slide-count { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  #route { left: 8px; transform: none; }
  #route .now button { padding: 0; }
  #route .now .name, #slide-count { display: none; }
}

/* Left column used on map slides, where the 3D picture fills the right side. */
.reveal .side { width: 610px; }

.reveal i.devicon-html5-plain { color: var(--html); }
.reveal i.devicon-css3-plain { color: var(--css); }
.reveal i.devicon-javascript-plain { color: var(--js); }

/* Opening */
.hero .deck-name { font-size: 28px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.reveal .hero .side { width: 640px; }
.reveal .hero h1 { margin-bottom: 24px; font-size: 70px; }

/* The shop: a small storefront, so the Buy button reads as part of a real site. */
.shop-page { padding: 16px 24px 20px; background: var(--page); color: #1e1f22; }
.shop-head { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 2px solid #dcdee1; font-size: 24px; }
.shop-head b { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.shop-head b i { font-size: 30px; }
.shop-crumb { color: #5b6066; }
.shop-head > i { margin-left: auto; font-size: 30px; }
.product { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding-top: 14px; }
.product-photo { display: grid; place-items: center; height: 160px; border-radius: 12px; background: #dfe2e6; color: #3c3f41; font-size: 104px; }
.reveal .product h3 { margin: 0 0 2px; font-size: 32px; font-weight: 800; line-height: 1.12; }
.reveal .product .price { margin: 0 0 12px; font-size: 30px; font-weight: 600; }
.buy { display: inline-flex; align-items: center; gap: 10px; padding: 11px 28px; border: 0; border-radius: 10px; background: var(--packet); color: var(--ink); font: 700 28px var(--sans); cursor: pointer; transition: transform .1s; }
.buy:active { transform: translateY(2px); }
.buy:disabled { cursor: progress; opacity: .75; }
.reveal .shop-result { min-height: 34px; margin: 10px 0 0; color: #2f6b1f; font-size: 25px; font-weight: 700; line-height: 34px; }
.reveal .status { min-height: 74px; margin-top: 16px; font-size: 27px; line-height: 1.35; color: var(--paper); }

/* Tour */
.reveal .steps { list-style: none; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; font-size: 29px; line-height: 1.3; }
.steps i { font-size: 46px; line-height: 1; color: var(--packet); }
.steps b { display: block; font-weight: 700; }
.steps span { color: var(--muted); }
.steps li.reply-step i { color: var(--reply); }

/* The three languages */
.reveal .layers { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 26px; }
.layers li { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 20px; }
.layers i { font-size: 64px; color: var(--client); }
.layers b { display: block; font-size: 34px; line-height: 1.15; }
.layers span { font-size: 27px; color: var(--muted); }

/* Code */
.reveal pre { margin: 0; width: 100%; font-size: 25px; line-height: 1.45; box-shadow: none; text-align: left; }
.reveal pre code { display: block; box-sizing: border-box; padding: 26px 30px; max-height: none; border-radius: 16px; background: var(--panel); color: var(--paper); font-family: var(--mono); overflow: hidden; }
.hljs-keyword, .hljs-built_in, .hljs-type { color: var(--server); }
.hljs-string, .hljs-attr, .hljs-attribute { color: var(--client); }
.hljs-title, .hljs-title.function_, .hljs-function .hljs-title, .hljs-section { color: var(--packet); }
.hljs-number, .hljs-literal { color: var(--dev); }
.hljs-selector-tag, .hljs-name, .hljs-tag { color: var(--packet); }
.hljs-comment { color: #8c8c8c; }

/* Take the button apart */
#demo { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 44px; align-items: start; }
.toggles { display: flex; gap: 12px; margin-bottom: 20px; }
.toggle { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; border: 3px solid transparent; border-radius: 14px; background: var(--panel); color: var(--muted); font: 600 25px var(--sans); cursor: pointer; }
.toggle i { font-size: 30px; }
.toggle[aria-pressed="true"] { color: var(--ink); }
.toggle[data-layer="html"][aria-pressed="true"] { background: var(--html); }
.toggle[data-layer="css"][aria-pressed="true"] { background: var(--css); }
.toggle[data-layer="js"][aria-pressed="true"] { background: var(--js); }
.reveal .toggle i { color: inherit; }
.toggle .state::after { content: "off"; font-weight: 400; }
.toggle[aria-pressed="true"] .state::after { content: "on"; }
.toggle.viewing { border-color: var(--paper); }
.toggle.next { border-color: var(--packet); color: var(--paper); animation: toggle-next 1.6s ease-in-out infinite; }
@keyframes toggle-next { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--packet) 30%, transparent); } }
@media (prefers-reduced-motion: reduce) { .toggle.next { animation: none; } }

.browser { border-radius: 16px; overflow: hidden; background: var(--page); color: #000; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #cfd2d6; color: #3c3f41; font: 400 22px var(--mono); }
.browser-bar i { font-size: 26px; }
.page { height: 348px; box-sizing: border-box; padding: 24px; display: grid; place-items: center; background: var(--page); }
.page-empty { color: #5b6066; font: 400 24px var(--sans); }
.page-content { width: 100%; }
.page [hidden] { display: none !important; }

/* Plain browser defaults when CSS is off: this is the point of the demo. */
.page:not(.css-on) .page-content, .page:not(.css-on) .page-content * { all: revert; }
.page:not(.css-on) { display: block; place-items: normal; padding: 8px; font: 16px "Times New Roman", serif; color: #000; }

.page.css-on article { padding: 28px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, .2); font-family: var(--sans); text-align: center; }
.page.css-on h3 { margin: 0 0 6px; color: var(--ink); font-size: 36px; font-weight: 800; }
.page.css-on p { margin: 0 0 20px; color: #5b6066; font-size: 30px; }
.page.css-on button { padding: 14px 44px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font: 700 28px var(--sans); cursor: pointer; }
.page.css-on button:disabled { opacity: .7; }

.code-side [data-pane] pre code { height: 628px; }
.code-side [data-pane][hidden] { display: none; }
.code-empty { display: grid; place-content: center; justify-items: center; gap: 12px; height: 628px; box-sizing: border-box; padding: 24px; border-radius: 14px; background: var(--raised); color: var(--muted); text-align: center; }
.code-empty i { font-size: 56px; }
.reveal .code-empty p { margin: 0; font-size: 26px; }
.code-side pre { font-size: 22px; }
.log { min-height: 128px; box-sizing: border-box; margin-top: 16px; padding: 14px 22px; border-radius: 14px; background: var(--raised); font: 400 23px/1.5 var(--mono); }
.log .out { color: var(--packet); }
.log .out::before { content: "↑ "; }
.log .in { color: var(--reply); }
.log .in::before { content: "↓ "; }
.log .warn { color: var(--server); }

/* C next to JavaScript */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.reveal .two pre { font-size: 30px; }
.reveal .two + .points { margin-top: 44px; gap: 26px; }
.reveal .two + .points li { font-size: 33px; }
.two h3 { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 32px; font-weight: 700; }
.two h3 i { font-size: 42px; color: var(--client); }
.reveal .points { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; font-size: 30px; }
.points i { font-size: 36px; color: var(--packet); position: relative; top: 5px; }

/* Compiled and runtime lanes */
.lane { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; padding: 34px 0; }
.lane + .lane { border-top: 2px solid #4a4d50; }
.lane-title { font-size: 33px; font-weight: 800; line-height: 1.12; }
.flow { display: flex; align-items: stretch; gap: 14px; margin-bottom: 20px; }
.flow > div { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px 22px; border-radius: 12px; background: var(--panel); font-size: 27px; line-height: 1.2; }
.flow > div > i { font-size: 34px; color: var(--client); }
.flow code { font: 400 25px var(--mono); }
.flow > i { align-self: center; font-size: 34px; color: var(--packet); }
.lane p { font-size: 26px; color: var(--muted); }
.langs { display: inline-flex; gap: 14px; margin-right: 18px; color: var(--paper); font-size: 36px; vertical-align: -6px; }

/* React */
.split { display: grid; grid-template-columns: 860px minmax(0, 1fr); gap: 44px; }
.reveal .split pre { font-size: 23px; line-height: 1.38; }
.reveal .split .points { margin-top: 0; align-self: end; }
.reveal .split .points li { font-size: 27px; line-height: 1.3; }
.reveal .lede.wide { max-width: none; font-size: 30px; }

.side pre { font-size: 22px; margin-top: 8px; }

/* Mobile: the in-between column sits between the two operating systems. */
.mobile-cols { display: grid; grid-template-columns: 1fr 1.45fr 1fr; gap: 24px; margin-top: 6px; }
.mobile-cols > div { padding: 30px 30px 34px; border-radius: 16px; background: var(--raised); }
.mobile-cols .between { background: var(--panel); }
.reveal .mobile-cols h3 { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-size: 34px; font-weight: 800; line-height: 1.1; }
.mobile-cols h3 i { font-size: 44px; }
.mobile-cols h3 .devicon-android-plain { color: #3ddc84; }
.reveal .mobile-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.mobile-cols li { display: grid; grid-template-columns: 52px 1fr; align-items: start; font-size: 29px; line-height: 1.25; }
.mobile-cols li > i { font-size: 38px; }
.mobile-cols li > i:not(.colored) { color: var(--muted); }
.mobile-cols li b { display: block; font-weight: 700; }
.mobile-cols li span { color: var(--muted); }
.reveal .mobile-end { display: flex; align-items: center; gap: 16px; margin-top: 36px; font-size: 34px; font-weight: 600; }
.mobile-end i { font-size: 40px; color: var(--server); }

/* Full-color logos that aren't in the icon fonts */
.mobile-cols li > .logo { width: 38px; height: 38px; }

.reveal i.request-icon { color: var(--packet); }
.reveal i.reply-icon { color: var(--reply); }

/* These brand colors are too dark to read on the dark theme. */
.reveal i.devicon-csharp-plain.colored { color: #b57edc; }
.reveal i.devicon-visualstudio-plain.colored { color: #a98be8; }
.reveal i.devicon-electron-original.colored { color: #8fd3e0; }
.reveal i.devicon-postgresql-plain.colored { color: #6ea3cf; }
.reveal .two.small pre { font-size: 21px; }
.reveal .callout { display: flex; align-items: center; gap: 16px; margin-top: 30px; font-size: 30px; font-weight: 600; }
.callout > i { font-size: 38px; color: var(--packet); }
.callout .langs { margin-right: 4px; font-size: 42px; vertical-align: 0; }

/* Live HTTP demo */
#http-demo { display: grid; grid-template-columns: 500px minmax(0, 1fr); gap: 40px; }
.demo-actions { display: grid; align-content: start; gap: 14px; }
.case { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 0; border-radius: 12px; background: var(--raised); color: var(--paper); font: 600 27px var(--sans); text-align: left; cursor: pointer; }
.case:hover { background: #4e5254; }
.case i { font-size: 32px; color: var(--packet); }
.reveal .verdict { min-height: 80px; margin: 8px 0 0; font-size: 27px; font-weight: 600; line-height: 1.3; }
.verdict.good { color: var(--client); }
.verdict.bad { color: var(--server); }
.demo-actions .fineprint i { color: var(--packet); }
.reveal .exchange h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 26px; font-weight: 700; }
.exchange pre + h3 { margin-top: 16px !important; }
.reveal pre.raw { font-size: 22px; }
.reveal pre.raw code { min-height: 200px; white-space: pre-wrap; }

/* Tables */
.reveal .vocab { width: 100%; border-collapse: collapse; font-size: 29px; }
.reveal .vocab caption { padding-bottom: 14px; font-size: 32px; font-weight: 700; text-align: left; }
.reveal .vocab th, .reveal .vocab td { padding: 14px 16px; border: 0; border-bottom: 2px solid #4a4d50; text-align: left; vertical-align: top; }
.reveal .vocab th { width: 190px; font: 600 27px var(--mono); white-space: nowrap; }
.reveal .vocab td { color: var(--muted); }
.reveal .vocab .ok { color: var(--client); }
.reveal .vocab .warn { color: var(--packet); }
.reveal .vocab .err { color: var(--reply); }
.reveal .compare th { width: auto; font: 700 27px var(--sans); }
.reveal .compare td:first-child { color: var(--paper); }
.reveal .vocab td.clash { color: var(--reply); font-weight: 700; }
.reveal .side .compare + .points { margin-top: 28px; }

.rows-layout { display: grid; grid-template-columns: 730px minmax(0, 1fr); gap: 32px; }
.reveal .rows-layout pre { font-size: 23px; }
.tables { display: grid; align-content: start; gap: 16px; }
.reveal .data { width: 100%; border-collapse: collapse; font: 400 22px var(--mono); }
.reveal .data caption { padding-bottom: 6px; color: var(--data); font: 700 25px var(--mono); text-align: left; }
.reveal .data th, .reveal .data td { padding: 8px 12px; border: 2px solid #4a4d50; text-align: left; }
.reveal .data th { background: var(--raised); color: var(--muted); font-weight: 600; }
.reveal pre.query { font-size: 27px; }
.reveal .data.result { margin-top: 18px; font-size: 25px; }
.reveal .points code, .pipeline code { font: 400 .9em var(--mono); color: var(--packet); }

/* Code on the left, reasons on the right */
.reveal .split.wide-code { grid-template-columns: 960px minmax(0, 1fr); }
.reveal .split.wide-code pre { font-size: 22px; line-height: 1.34; }
.reveal .split.wide-code .points { align-self: start; }
.reveal .split.past { grid-template-columns: 720px minmax(0, 1fr); }
.reveal .split.past pre { font-size: 25px; line-height: 1.5; }
.reveal .split.past .points { align-self: start; }
.reveal .code-steps code { display: block; color: var(--packet); font: 400 24px var(--mono); }
.reveal .code-steps .reply-step code { color: var(--reply); }

/* Terminal */
.term { box-sizing: border-box; padding: 22px 26px; border-radius: 14px; background: var(--panel); font: 400 24px/1.5 var(--mono); }
.term .fragment { display: block; }
.term .fragment:not(:first-child), .term .term-line + .term-line { margin-top: 6px; }
.term-line { color: var(--paper); overflow-wrap: anywhere; }
.term-out { color: var(--muted); white-space: pre; }
.prompt { color: var(--client); font-weight: 600; }
.prompt.remote { color: var(--server); }
.reveal .split.term-split { grid-template-columns: 860px minmax(0, 1fr); }
.reveal .split.term-split .term { font-size: 27px; }
.reveal .split.term-split .points { margin-top: 0; align-self: start; }
.reveal .side .term { font-size: 22px; margin-top: 4px; }
.reveal .side .term + .points { margin-top: 26px; }
.term.big { font-size: 27px; }

/* Linux */
.reveal .split.linux-split { grid-template-columns: 860px minmax(0, 1fr); }
.reveal .split.linux-split .points { margin-top: 0; align-self: start; }
.stack { display: grid; gap: 12px; }
.layer { padding: 24px 28px 28px; border-radius: 14px; background: var(--raised); }
.layer-kernel { background: var(--panel); outline: 2px solid var(--packet); outline-offset: -2px; }
.layer-name { margin-bottom: 12px; color: var(--muted); font-size: 25px; }
.layer-kernel .layer-name { color: var(--packet); font-weight: 700; }
.layer-items { display: flex; flex-wrap: wrap; gap: 12px 36px; font-size: 32px; font-weight: 600; }
.layer-items span { display: inline-flex; align-items: center; gap: 12px; }
.layer-items i { font-size: 40px; }
.reveal .split.term-split.linux-term { grid-template-columns: 880px minmax(0, 1fr); }
.reveal .split.term-split.linux-term .term { font-size: 24px; }
.term .term-next { margin-top: 18px !important; }
.reveal .split.nginx-split { grid-template-columns: 700px minmax(0, 1fr); margin-top: 10px; }
.reveal .split.nginx-split pre { font-size: 22px; line-height: 1.32; }
.reveal .split.nginx-split .points li { font-size: 26px; line-height: 1.25; }

.layer .logo, .flow .logo { display: block; width: 40px; height: 40px; }
.layer-items .logo { display: inline-block; }

/* Docker */
.docker-lane { padding: 14px 0; }
.reveal .docker-lane .flow { margin-bottom: 0; }
.reveal .split.docker-split { grid-template-columns: 720px minmax(0, 1fr); margin-top: 24px; }
.reveal .split.docker-split pre { font-size: 23px; }
.reveal .split.docker-split .points { align-self: start; margin-top: 0; }
.reveal .split.compose-split { grid-template-columns: 900px minmax(0, 1fr); }
.reveal .split.compose-split pre { font-size: 21px; line-height: 1.32; }
.reveal .split.compose-split .points { margin-top: 26px; align-self: start; }

/* Git */
.git-layout { display: grid; grid-template-columns: 640px minmax(0, 1fr); gap: 36px; align-items: center; }
.git-graph { display: block; width: 100%; }
.git-graph path { fill: none; stroke-width: 6; }
.edge-main { stroke: var(--muted); }
.edge-branch { stroke: var(--client); }
.commit-main circle { fill: var(--muted); }
.commit-branch circle { fill: var(--client); }
.git-graph text { font: 600 26px var(--mono); }
.label-main { fill: var(--muted); text-anchor: middle; }
.label-branch { fill: var(--client); text-anchor: middle; }
.reveal .git-layout .term { font-size: 24px; }
.reveal .pipeline { gap: 14px; }
.reveal .pipeline li { font-size: 27px; line-height: 1.22; }
.reveal .pipeline i { font-size: 40px; }

.reveal .habits { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; }
.habits li { display: grid; grid-template-columns: 62px 1fr; align-items: start; font-size: 29px; line-height: 1.3; }
.habits i { font-size: 44px; color: var(--packet); }
.habits b { display: block; font-size: 32px; font-weight: 700; }
.habits span { color: var(--muted); }

/* Where you fit: colors match the tiers on the map. */
.reveal .roles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.roles li { display: grid; gap: 6px; padding: 26px 28px; border-radius: 16px; background: var(--raised); font-size: 28px; line-height: 1.28; }
.roles i { display: block; height: 58px; font-size: 52px; line-height: 58px; }
.roles b { font-size: 33px; font-weight: 800; }
.roles span { color: var(--muted); }
.tier-client i { color: var(--client); }
.tier-server i { color: var(--server); }
.tier-data i { color: var(--data); }
.tier-dev i { color: var(--dev); }
.reveal .closing h1 { margin-bottom: 26px; font-size: 76px; }

/* What you'll learn */
.reveal .habits.learn { gap: 40px 56px; }
.reveal .habits.learn + .callout { margin-top: 48px; }

/* The Go to quiz button sits next to the deck's name, so Buy stays the main thing to press. */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.reveal .hero-top .deck-name { margin-bottom: 0; }
.to-quiz { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 2px solid var(--wire); border-radius: 999px; background: transparent; color: var(--paper); font: 600 23px var(--sans); cursor: pointer; }
.to-quiz:hover { border-color: var(--packet); color: var(--packet); }
.printing .to-quiz { display: none; }

/* Quiz */
.reveal .quiz-count { margin-bottom: 10px; color: var(--muted); font-size: 26px; font-weight: 600; }
.reveal .quiz h2 { font-size: 50px; line-height: 1.14; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.quiz-option { display: grid; grid-template-columns: 48px 1fr 36px; align-items: center; gap: 10px; min-height: 100px; padding: 14px 20px; border: 3px solid transparent; border-radius: 14px; background: var(--raised); color: var(--paper); font: 500 28px/1.25 var(--sans); text-align: left; cursor: pointer; }
.quiz-option:hover:not(:disabled) { border-color: var(--packet); }
.quiz-option:disabled { cursor: default; color: var(--muted); }
.quiz-letter { color: var(--packet); font: 600 28px var(--mono); }
.quiz-mark { font-size: 32px; }
.quiz-option.right { border-color: var(--client); color: var(--paper); }
.quiz-option.right .quiz-mark { color: var(--client); }
.quiz-option.wrong { border-color: var(--reply); color: var(--paper); }
.quiz-option.wrong .quiz-mark { color: var(--reply); }
.quiz-feedback[hidden], .quiz-button[hidden], .quiz-actions[hidden] { display: none; }
.quiz-feedback { margin-top: 22px; }
.reveal .quiz-verdict { display: inline; color: var(--reply); font-size: 29px; font-weight: 700; }
.reveal .quiz-verdict.right { color: var(--client); }
.reveal .quiz-why { display: inline; margin-left: 10px; color: var(--paper); font-size: 29px; line-height: 1.3; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.quiz-missed:empty { display: none; }
.quiz-button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 0; border-radius: 12px; background: var(--raised); color: var(--paper); font: 600 26px var(--sans); cursor: pointer; }
.quiz-button:hover { background: #4e5254; }
.quiz-button.primary { background: var(--packet); color: var(--ink); }
.quiz-button.primary:hover { background: #ffd58f; }
.reveal .quiz > .lede { margin-top: 18px; }
.reveal .quiz.quiz-result h2 { font-size: 76px; }

/* Where it runs */
.deploy-flow { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 8px; }
.deploy-flow figure { margin: 0; align-self: start; }
.reveal .deploy-flow img { display: block; width: 100%; height: 330px; margin: 0; object-fit: cover; object-position: center 85%; border-radius: 14px; }
.deploy-flow figcaption { margin-top: 18px; font-size: 27px; line-height: 1.3; }
.deploy-flow figcaption b { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 34px; }
.deploy-flow figcaption b i { color: var(--packet); font-size: 38px; }
.deploy-flow figcaption span { color: var(--muted); }
.reveal i.deploy-arrow { align-self: start; margin-top: 130px; color: var(--packet); font-size: 72px; text-align: center; }
.reveal .photo-credit { margin-top: 16px; font-size: 20px; }
.reveal .split.rent-split { grid-template-columns: 640px minmax(0, 1fr); align-items: start; }
.reveal .split.rent-split .points { margin-top: 0; align-self: start; gap: 24px; }
.host { padding: 22px 24px 24px; border: 2px solid var(--wire); border-radius: 14px; }
.host-name { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--muted); font-size: 26px; }
.host-name i { font-size: 34px; }
.vms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vm { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 8px; border-radius: 10px; background: var(--raised); color: var(--muted); font-size: 23px; text-align: center; }
.vm.yours { background: var(--packet); color: var(--ink); font-size: 26px; font-weight: 700; }
.reveal .rent-kinds { display: grid; gap: 14px; margin: 22px 0 0; }
.rent-kinds > div { display: grid; grid-template-columns: 112px 1fr; align-items: start; padding: 16px 20px; border-radius: 14px; background: var(--raised); }
.rent-kinds dt { font-size: 30px; font-weight: 700; }
.rent-kinds dd { margin: 0; color: var(--muted); font-size: 25px; line-height: 1.3; }
.rent-logos { display: flex; gap: 18px; margin-top: 10px; font-size: 40px; }
.reveal .split.term-split .term.vm-term { font-size: 34px; padding: 36px 36px 44px; line-height: 1.6; }
.term-cursor { display: inline-block; width: .6em; height: 1.05em; vertical-align: text-bottom; background: var(--paper); }

/* The mind map */
.mindmap { position: relative; display: grid; grid-template-columns: 570px minmax(0, 1fr) 570px; height: 612px; margin-top: 54px; }
.mm-lines { position: absolute; top: 0; left: 570px; width: calc(100% - 1140px); height: 100%; overflow: visible; }
.mm-lines path { fill: none; stroke: var(--wire); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.mm-col { position: relative; display: grid; grid-auto-rows: minmax(0, 1fr); gap: 10px; }
.reveal .mm-col h3 { position: absolute; bottom: 100%; left: 0; margin: 0 0 10px; color: var(--muted); font-size: 25px; font-weight: 600; }
.mm-branch { display: block; width: 100%; padding: 10px 20px; border: 0; border-radius: 12px; background: var(--panel); color: var(--paper); font: 400 22px var(--sans); text-align: left; cursor: pointer; }
.mm-branch:hover { background: var(--raised); }
.mm-branch b { display: block; margin-bottom: 4px; font-size: 28px; line-height: 1.2; }
.mm-branch.tier-client b { color: var(--client); }
.mm-branch.tier-server b { color: var(--server); }
.mm-branch.tier-data b { color: var(--data); }
.mm-branch.tier-dev b { color: var(--dev); }
.mm-leaves { display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--muted); }
.mm-leaves span { display: inline-flex; align-items: center; gap: 7px; }
.mm-leaves i { font-size: 26px; }
.reveal .mm-leaves .logo { display: inline-block; width: 26px; height: 26px; margin: 0; }
.mm-center { position: relative; z-index: 1; align-self: center; justify-self: center; display: grid; justify-items: center; gap: 6px; width: 190px; padding: 22px 12px; border-radius: 18px; background: var(--packet); color: var(--ink); font-size: 28px; line-height: 1.15; text-align: center; }
.reveal .mm-center i { color: var(--ink); font-size: 52px; }

/* PDF handouts: no WebGL, so the slides stand on their own. */
.printing #scene, .printing #route, .printing #deck-nav { display: none; }
.printing .reveal { position: static; }
.reveal .print-map { display: none; }
html.reveal-print .reveal .slides section { width: 1600px !important; height: 900px !important; padding: 64px 84px 40px !important; }
.printing .reveal .print-map { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; margin: 0; }
html.printing, .printing body { height: auto; overflow: visible; }
.printing, .printing body { background: var(--bg); -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Portrait phones: one scrolling column, with a thumb-sized bar along the bottom. */
html.phone #scene { display: none; }
html.phone .reveal { bottom: 64px; height: auto; }
html.phone .reveal, html.phone .reveal .slides, html.phone .reveal .slides > section { touch-action: pan-y pinch-zoom; }
html.phone .reveal pre, html.phone .reveal .term, html.phone .reveal table { touch-action: pan-x pan-y pinch-zoom; }
html.phone .reveal .slides > section { width: 100%; height: 100%; padding: 30px 28px 40px; overflow: hidden auto; }
html.phone .reveal h1, html.phone .reveal .hero h1, html.phone .reveal .closing h1 { font-size: 58px; }
html.phone .reveal h2, html.phone .reveal .quiz h2 { font-size: 44px; }
html.phone .reveal .quiz.quiz-result h2 { font-size: 66px; }
html.phone .reveal .side, html.phone .reveal .hero .side { width: auto; }
html.phone .reveal .lede { max-width: none; }

html.phone .split, html.phone .two, html.phone #demo, html.phone #http-demo, html.phone .rows-layout, html.phone .git-layout,
html.phone .mobile-cols, html.phone .reveal .habits, html.phone .reveal .roles, html.phone .lane, html.phone .quiz-options {
  grid-template-columns: minmax(0, 1fr) !important;
}
html.phone .split, html.phone .two, html.phone #demo, html.phone #http-demo, html.phone .rows-layout, html.phone .git-layout { gap: 28px; }
html.phone .reveal .split .points { margin-top: 0; align-self: start; }
html.phone .lane { gap: 14px; padding: 24px 0; }
html.phone .flow { flex-wrap: wrap; }
html.phone .flow > div { flex: 1 1 28%; min-width: 0; padding: 14px 16px; }
html.phone .quiz-option { min-height: 84px; }

/* Keep code readable: long lines scroll sideways rather than shrinking. */
html.phone .reveal pre { font-size: 23px !important; line-height: 1.4 !important; }
html.phone .reveal pre code { overflow-x: auto; height: auto !important; }
html.phone .code-empty { height: auto; padding: 40px 24px; }
html.phone .deploy-flow { grid-template-columns: minmax(0, 1fr); }
html.phone .reveal .deploy-flow img { height: 240px; }
html.phone .reveal i.deploy-arrow { margin: 0; transform: rotate(90deg); }
html.phone .reveal .split.rent-split { grid-template-columns: minmax(0, 1fr); }
html.phone .mindmap { display: flex; flex-direction: column; gap: 18px; height: auto; margin-top: 12px; }
html.phone .mm-lines { display: none; }
html.phone .mm-center { order: -1; width: 100%; box-sizing: border-box; }
html.phone .mm-col { grid-auto-rows: auto; }
html.phone .reveal .mm-col h3 { position: static; margin: 8px 0 0; }
html.phone .reveal .term, html.phone .reveal .split.term-split.linux-term .term, html.phone .reveal .split.term-split .term { font-size: 23px; overflow-x: auto; padding: 18px 20px; }
html.phone .reveal .term-line { overflow-wrap: normal; white-space: pre; }
html.phone .reveal .data, html.phone .reveal .vocab { display: block; overflow-x: auto; }
html.phone .reveal .vocab th { white-space: normal; }

/* The 3D map is off here, so slides that need it show the picture. */
html.phone .reveal .print-map { display: block; width: 100%; height: auto; margin: 0 0 24px; border-radius: 12px; }

html.phone #route { left: 0; right: 112px; bottom: 0; height: 64px; box-sizing: border-box; transform: none; gap: 2px; padding: 0 8px; overflow-x: auto; background: var(--panel); scrollbar-width: none; }
html.phone #route::-webkit-scrollbar { display: none; }
html.phone #route li { flex: none; }
html.phone #route button { min-width: 44px; height: 44px; font-size: 20px; }
html.phone #route .now button { padding: 0 14px; }
html.phone #route .now .name { display: inline; font-size: 15px; }
html.phone #deck-nav { right: 0; bottom: 0; width: 112px; height: 64px; box-sizing: border-box; justify-content: flex-end; gap: 4px; padding-right: 8px; background: var(--panel); }
html.phone #deck-nav button { width: 48px; height: 48px; font-size: 24px; }

@media (prefers-reduced-motion: reduce) {
  .buy { transition: none; }
}
