/* Complex-numbers recap. Same manner as the Goldberg deck: cool paper ground, navy ink, Source Serif titles, Source Sans body. */
:root {
  --paper: #f3f6fa; --ink: #14213d; --muted: #4a5870; --line: #c9d2df; --faint: #dde3ec;
  --blue: #1d5fc4; --teal: #0f7b6c; --orange: #d9580f; --soft-orange: #fce8db; --gray: #8a95a8;
  --display: 'Source Serif 4', Georgia, serif;
  --body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}
@font-face { font-family: 'Source Serif 4'; src: url(fonts/source-serif-4-latin-wght-normal.woff2) format('woff2'); font-weight: 200 900; }
@font-face { font-family: 'Source Sans 3'; src: url(fonts/source-sans-3-latin-wght-normal.woff2) format('woff2'); font-weight: 200 900; }
@font-face { font-family: 'Source Sans 3'; src: url(fonts/source-sans-3-latin-wght-italic.woff2) format('woff2'); font-weight: 200 900; font-style: italic; }

html, body { height: 100%; margin: 0; background: var(--paper); }
.reveal { height: 100%; width: 100%; font-family: var(--body); font-size: 27px; color: var(--ink); background: var(--paper); }
.reveal .slides { text-align: left; }
.reveal .slides > section { height: 720px; width: 1280px; padding: 0; box-sizing: border-box; }
.reveal h2 { position: absolute; left: 32px; top: 18px; margin: 0; font-family: var(--display); font-size: 42px; font-weight: 500;
  line-height: 1.12; text-transform: none; color: inherit; letter-spacing: 0; }
.reveal b { font-weight: 700; }
.reveal .katex { font-size: 1.06em; }

/* Left: the text. Right third: the figure for the current item. */
.reveal .text { position: absolute; left: 32px; top: 96px; width: 760px; line-height: 1.3; }
.reveal .text .head { font-weight: 700; margin: 0.5em 0 0.15em; }
.reveal .text .head:first-child { margin-top: 0; }
.reveal .it { position: relative; margin: 0 0 0.42em; padding: 0.08em 0 0.08em 18px; border-left: 5px solid transparent; }
.reveal .it.sub { margin-left: 42px; font-size: 0.92em; }
.reveal .it.now { border-left-color: var(--orange); background: linear-gradient(90deg, var(--soft-orange), rgba(252,232,219,0) 85%); }
.reveal .it .note { color: var(--muted); }

.reveal .panel { position: absolute; left: 818px; top: 84px; width: 440px; height: 616px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.reveal .fig { position: absolute; left: 5px; top: 6px; width: 430px; height: 470px; }
.reveal .fig svg { position: absolute; left: 0; top: 0; overflow: visible; }
.reveal .fig .lab { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: 22px; line-height: 1; pointer-events: none;
  background: rgba(255,255,255,0.78); padding: 1px 3px; border-radius: 3px; }
.reveal .fig .lab.x { color: var(--blue); } .reveal .fig .lab.y { color: var(--teal); }
.reveal .fig .lab.res { color: var(--orange); } .reveal .fig .lab.old { color: var(--gray); } .reveal .fig .lab.ax { color: var(--muted); font-size: 17px; background: none; }
.reveal .cap { position: absolute; left: 16px; right: 16px; top: 488px; bottom: 10px; font-size: 21px; line-height: 1.35; color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; text-align: center; }
.reveal .nctl { position: absolute; right: 10px; top: 10px; font-size: 20px; display: none; align-items: center; gap: 6px; z-index: 5; }
.reveal .nctl button { font: inherit; font-size: 20px; width: 34px; height: 34px; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; cursor: pointer; color: var(--ink); }

/* SVG strokes */
.reveal svg .grid { stroke: var(--faint); stroke-width: 1; }
.reveal svg .axis { stroke: var(--muted); stroke-width: 1.5; }
.reveal svg .tick { fill: var(--muted); font-size: 15px; font-family: var(--body); }
.reveal svg .unit { stroke: var(--gray); stroke-width: 1.5; fill: none; stroke-dasharray: 5 4; }
.reveal svg .unit.res { stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: none; fill: none; }
.reveal svg .aux { stroke: var(--gray); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.reveal svg .poly { stroke: var(--orange); stroke-width: 1.5; fill: rgba(217,88,15,0.06); }
.reveal svg .v { stroke-width: 3; fill: none; }
.reveal svg .x { stroke: var(--blue); fill: var(--blue); }
.reveal svg .y { stroke: var(--teal); fill: var(--teal); }
.reveal svg .res { stroke: var(--orange); fill: var(--orange); }
.reveal svg .old { stroke: var(--gray); fill: var(--gray); }
.reveal svg .arc { fill: none; stroke-width: 2.5; }
.reveal svg .dot { stroke: #fff; stroke-width: 2; }
