/* FDE Skool — presentation theme (tokens from landing-page/assets/styles.css) */
:root {
  --bg: #0A0B0D;
  --bg-raised: #111317;
  --ink: #ECE9E3;
  --ink-2: #C9C6BF;
  --muted: #9C9A94;
  --rule: #1F2227;
  --line: #2E3137;
  --accent: #FF6A2B;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- stage: 1920x1080 canvas scaled to fit ---------- */
.deck {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
}
.slide {
  position: absolute; inset: 0; display: none;
  flex-direction: column; justify-content: center; gap: 40px;
  padding: 120px var(--gutter);
  background: var(--bg); overflow: hidden;
}
.slide.active { display: flex; }
.slide.raised { background: var(--bg-raised); }
.slide.end { justify-content: flex-end; padding-bottom: 140px; }

/* chrome: brand top-left, page number bottom-right */
.slide::before {
  content: "FDE SKOOL"; position: absolute; left: var(--gutter); top: 56px;
  font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: 0.06em;
}
.slide::after {
  content: attr(data-page); position: absolute; right: var(--gutter); bottom: 48px;
  font-family: var(--mono); font-size: 20px; letter-spacing: 0.08em; color: var(--muted);
}

/* ---------- type ---------- */
.eyebrow {
  margin: 0; font-family: var(--mono); font-size: 20px; letter-spacing: 0.16em;
  color: var(--accent); text-transform: uppercase;
}
.display {
  margin: 0; font-family: var(--display); font-weight: 800;
  line-height: 0.92; text-transform: uppercase; text-wrap: balance;
}
.h1 { font-size: 200px; line-height: 0.86; }
.h2 { font-size: 128px; }
.h3 { font-size: 80px; }
.lede { margin: 0; max-width: 1300px; font-size: 40px; line-height: 1.4; }
.body { margin: 0; max-width: 1200px; font-size: 32px; line-height: 1.55; color: var(--ink-2); }
.mono { font-family: var(--mono); letter-spacing: 0.14em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.big-number { font-family: var(--display); font-weight: 800; color: var(--accent); font-size: 320px; line-height: 0.85; }

/* ---------- layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.cols-3 > * { padding: 40px 40px 0 0; border-right: 1px solid var(--rule); }
.cols-3 > * + * { padding-left: 40px; }
.cols-3 > *:last-child { border-right: 0; }
.cols-3 h3 { margin: 0 0 16px; font-family: var(--display); font-weight: 700; font-size: 56px; text-transform: uppercase; line-height: 1; }
.cols-3 p { margin: 0; font-size: 26px; line-height: 1.5; color: var(--ink-2); }

.list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.list li {
  display: grid; grid-template-columns: 100px 1fr; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--rule); font-size: 36px;
}
.list li span { font-family: var(--mono); font-size: 20px; letter-spacing: 0.14em; color: var(--accent); }

.quote { margin: 0; font-family: var(--display); font-weight: 700; font-size: 104px; line-height: 1; text-transform: uppercase; }
.quote cite { display: block; margin-top: 40px; font-family: var(--mono); font-style: normal; font-size: 20px; letter-spacing: 0.16em; color: var(--muted); }

/* ---------- two and four columns (same look as .cols-3) ---------- */
.cols-2, .cols-4 { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 > *, .cols-4 > * { padding: 40px 40px 0 0; border-right: 1px solid var(--rule); }
.cols-2 > * + *, .cols-4 > * + * { padding-left: 40px; }
.cols-2 > *:last-child, .cols-4 > *:last-child { border-right: 0; }
.cols-2 h3, .cols-4 h3 { margin: 0 0 16px; font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; text-transform: uppercase; }
.cols-2 p, .cols-4 p { margin: 0; font-size: 26px; line-height: 1.5; color: var(--ink-2); }
:is(.cols-2, .cols-3, .cols-4, .flow) .label { display: block; margin-bottom: 20px; font-family: var(--mono); font-size: 20px; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; }

/* ---------- code: a listing with a few token colours ---------- */
.code {
  margin: 0; padding: 40px 48px; background: var(--bg-raised); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  font-family: var(--mono); font-size: 24px; line-height: 1.55; color: var(--ink-2); white-space: pre; overflow: hidden;
}
.code .k { color: var(--ink); font-weight: 500; } /* keyword, key */
.code .s { color: var(--accent); }                  /* string, value */
.code .c { color: var(--muted); }                   /* comment */
code { font-family: var(--mono); font-size: 0.85em; color: var(--accent); }

/* ---------- table ---------- */
.table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); font-size: 30px; }
.table th, .table td { padding: 24px 32px 24px 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--rule); }
.table th { font-family: var(--mono); font-size: 18px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.table td { color: var(--ink-2); }
.table td:first-child { color: var(--ink); }
.table .hit { color: var(--accent); }

/* ---------- sheet: a printed document on the slide (a contract, a customer email) ---------- */
.sheet { padding: 40px 48px; background: var(--bg-raised); border: 1px solid var(--line); }
.sheet .label { display: block; margin-bottom: 24px; font-family: var(--mono); font-size: 18px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.sheet p { margin: 0 0 14px; font-size: 26px; line-height: 1.45; color: var(--ink-2); }
.sheet p b { color: var(--ink); font-weight: 600; }
.sheet p:has(.cl) { padding-left: 88px; text-indent: -88px; }
.sheet .cl { display: inline-block; width: 88px; text-indent: 0; font-family: var(--mono); font-size: 20px; color: var(--accent); }

/* ---------- tree: a trace, one span per row ---------- */
.tree { border-top: 1px solid var(--line); font-family: var(--mono); font-size: 26px; }
.tree > div { display: grid; grid-template-columns: 1fr 160px 160px; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.tree > div > :not(:first-child) { text-align: right; color: var(--muted); }
.tree .head { font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tree .bad, .tree .bad > :first-child { color: var(--accent); }
.tree .i1 { padding-left: 48px; } .tree .i2 { padding-left: 96px; }

/* ---------- stack: layers around a core ---------- */
.stack { border-top: 1px solid var(--line); }
.stack > div { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); font-size: 32px; }
.stack > div > :last-child { font-family: var(--mono); font-size: 20px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stack .core { padding: 20px 24px; background: var(--accent); color: var(--bg); border-bottom: 0; }
.stack .core > :last-child { color: var(--bg); }

/* ---------- blank: a line to fill in on paper ---------- */
.blank, .list li .blank { display: inline-block; min-width: 260px; border-bottom: 1px dashed var(--muted); font-family: var(--sans); font-size: inherit; letter-spacing: 0; color: var(--muted); }

/* ---------- speaker notes: data-notes on a slide, toggled with n ---------- */
.notes {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; max-height: 34vh; overflow: auto;
  padding: 20px 32px 32px; background: var(--bg-raised); border-top: 1px solid var(--accent);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink); display: none;
}
.notes.show { display: block; }
.notes b { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* ---------- flow: steps joined by a line, a pulse runs along it ---------- */
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 24px; border-top: 1px solid var(--line); position: relative; }
.flow > div { padding: 40px 40px 0 0; position: relative; }
.flow > div + div { padding-left: 40px; border-left: 1px solid var(--rule); }
.flow > div::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 13px; height: 13px;
  background: var(--bg); border: 1px solid var(--accent);
}
.flow > div + div::before { left: -7px; }
.flow span { display: block; font-family: var(--mono); font-size: 20px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 20px; }
.flow h3 { margin: 0 0 16px; font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; text-transform: uppercase; }
.flow p { margin: 0; font-size: 26px; line-height: 1.5; color: var(--ink-2); }
.flow::after {
  content: ""; position: absolute; top: -2px; left: 0; width: 120px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent));
  animation: flow-pulse 3.2s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes flow-pulse { from { left: 0; opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 120px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flow::after { animation: none; display: none; } }

/* ---------- stage: the point on the left, the real thing on the right ---------- */
.stage { display: grid; grid-template-columns: 640px 1fr; gap: 96px; align-items: center; }
.stage > :first-child { display: flex; flex-direction: column; gap: 32px; }
.stage.wide { grid-template-columns: 520px 1fr; }

/* verbs: a short stacked list of one-word moves with a line of detail */
.verbs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.verbs li { display: grid; grid-template-columns: 200px 1fr; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.verbs b { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; text-transform: uppercase; }
.verbs span { font-size: 24px; line-height: 1.4; color: var(--ink-2); }

/* ---------- window: a piece of real interface (terminal, ticket, notebook, dashboard) ---------- */
.window { background: var(--bg-raised); border: 1px solid var(--line); font-size: 24px; }
.window > header {
  display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 18px; letter-spacing: 0.08em; color: var(--muted);
}
.window > header img { width: 24px; height: 24px; object-fit: contain; }
.window > header .right { margin-left: auto; }
.window .pad { padding: 28px 32px; }
.window .row { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 16px 32px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.window .row:last-child { border-bottom: 0; }
.window .row > :last-child { font-family: var(--mono); color: var(--muted); }
.window .row.hot, .window .row.hot > :last-child { color: var(--accent); }
.window .stat { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.window .stat > div { padding: 24px 32px; border-right: 1px solid var(--rule); }
.window .stat > div:last-child { border-right: 0; }
.window .stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 72px; line-height: 1; }
.window .stat span { font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* terminal lines inside a window */
.term { margin: 0; padding: 28px 32px; font-family: var(--mono); font-size: 22px; line-height: 1.7; color: var(--ink-2); white-space: pre; }
.term .p { color: var(--muted); }   /* prompt */
.term .ok { color: var(--ink); }
.term .hl { color: var(--accent); }

/* a message, as in a helpdesk thread */
.msg { padding: 24px 32px; border-bottom: 1px solid var(--rule); }
.msg:last-child { border-bottom: 0; }
.msg .who { display: flex; justify-content: space-between; margin-bottom: 10px; font-family: var(--mono); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.msg p { margin: 0; font-size: 24px; line-height: 1.5; color: var(--ink); }
.msg.agent { background: var(--bg); }
.msg.agent .who { color: var(--accent); }

/* ---------- tools: real logos of the tools a slide names ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tools span { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border: 1px solid var(--line); font-family: var(--mono); font-size: 16px; letter-spacing: 0.06em; color: var(--ink-2); }
.tools img { width: 28px; height: 28px; object-fit: contain; }

/* ---------- mega: one word set as large as the slide allows ---------- */
.mega { margin: 0; font-family: var(--display); font-weight: 800; font-size: 360px; line-height: 0.8; text-transform: uppercase; letter-spacing: -0.01em; }

/* ---------- entrance: the active slide's blocks rise in once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .slide.active > :not(.grid-bg):not(.glow) { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .slide.active > :nth-child(2) { animation-delay: .06s; }
  .slide.active > :nth-child(3) { animation-delay: .14s; }
  .slide.active > :nth-child(4) { animation-delay: .22s; }
  .slide.active > :nth-child(5) { animation-delay: .30s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- hero background (grid + glow from the site) ---------- */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 96px 96px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 80% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 80% 20%, #000 10%, transparent 75%);
}
.glow {
  position: absolute; right: -10%; top: -20%; width: 70%; aspect-ratio: 1; z-index: 0;
  background: radial-gradient(circle, rgba(255,106,43,.18), transparent 60%); pointer-events: none;
}
.slide > :not(.grid-bg):not(.glow) { position: relative; z-index: 1; }

/* ---------- progress bar ---------- */
.progress { position: fixed; left: 0; bottom: 0; height: 4px; background: var(--accent); transition: width .2s ease; z-index: 5; }

/* black marks (data-ic="ink" from icons.mjs) take the ink colour on the dark ground */
img.ink { filter: invert(1) hue-rotate(180deg); }

/* pillars: .cols-3 at full scale, for a slide that is only the three columns */
.cols-3.pillars > * { padding-top: 56px; }
.cols-3.pillars h3 { font-size: 96px; margin-bottom: 24px; }
.cols-3.pillars p { font-size: 30px; }
.cols-3.pillars .tools { margin-top: 48px; }
.cols-3.pillars .tools span { font-size: 18px; padding: 12px 18px; }
.cols-3.pillars .tools img { width: 36px; height: 36px; }

/* file icons inside a window row sit on the text line */
.window .row img { width: 28px; height: 28px; margin-right: 12px; vertical-align: -6px; }

/* ---------- pair: two windows side by side (before / after, A / B) ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* listings, tables and traces sitting inside a window */
.window > .code { border: 0; background: none; padding: 28px 32px; }
.window > .table, .window > .tree { border-top: 0; }
.window > .table :is(th, td):first-child { padding-left: 32px; }
.window > .tree > div { padding-left: 32px; padding-right: 32px; }
.window .pad p { margin: 0 0 14px; font-size: 24px; line-height: 1.5; color: var(--ink-2); }
.window .pad p:last-child { margin-bottom: 0; }
.window .row img { width: 32px; height: 32px; object-fit: contain; vertical-align: middle; margin-right: 16px; }

/* divider: a section number set huge, its name and the question it answers */
.divider { display: block; }
.divider .mega { color: var(--accent); }
.divider .lede { margin-top: 24px; color: var(--ink-2); }

/* a .list without number spans is a plain ruled list */
.list li:not(:has(> span)) { grid-template-columns: 1fr; }
.divider .h2 { font-size: 240px; line-height: 0.85; }
.divider .lede { margin-top: 40px; }

/* ---------- venn: three overlapping circles, center is the point ---------- */
.venn { width: 100%; height: auto; max-height: 780px; overflow: visible; }
.venn circle { fill: none; stroke: var(--line); stroke-width: 2; }
.venn circle.on { stroke: var(--accent); }
.venn text { font-family: var(--mono); font-size: 22px; letter-spacing: 0.12em; fill: var(--muted); text-anchor: middle; text-transform: uppercase; }
.venn text.set { font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: 0.02em; fill: var(--ink); }
.venn text.core { font-family: var(--display); font-size: 72px; font-weight: 800; fill: var(--accent); letter-spacing: 0.02em; }

/* verbs.stacked: label above its line, for long labels */
.verbs.stacked li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
.verbs.stacked b { font-size: 44px; }
.verbs.stacked span { font-size: 26px; }
/* .tag: muted right-hand marker inside a .term line */
.term .tag { color: var(--muted); }

/* ---------- diagram: boxes and labelled arrows in an svg ---------- */
.diagram { width: 100%; height: auto; max-height: 700px; overflow: visible; }
.diagram rect { fill: var(--bg-raised); stroke: var(--line); stroke-width: 2; }
.diagram rect.on { stroke: var(--accent); }
.diagram line, .diagram path { fill: none; stroke: var(--line); stroke-width: 2; }
.diagram line.on, .diagram path.on { stroke: var(--accent); }
.diagram marker path { fill: var(--muted); stroke: none; }
.diagram text { font-family: var(--mono); font-size: 22px; letter-spacing: 0.08em; fill: var(--muted); text-anchor: middle; }
.diagram text.box { font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: 0.02em; fill: var(--ink); text-transform: uppercase; }
.diagram text.on { fill: var(--accent); }

/* verbs under a headline inside a split need room */
.split .verbs { margin-top: 40px; }
