/* Edit the variables first; they restyle the whole deck. */
slides {
    --slide-bg: #14161c;
    --slide-fg: #e8e6e1;
    --slide-padding: 3rem 6vw;
    --deck-font: system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono-font: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --accent: #ff6b5e;
    --muted: #9a9890;
    --surface: #1f222b;
    --rule: #3a3d47;

    font-size: clamp(14px, 2vw, 26px);
    line-height: 1.5;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: 3em; }
h2 { font-size: 1.8em; color: var(--accent); }
h3 { font-size: 1.2em; margin-top: 0; }
a { color: var(--accent); }
img, svg, video { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

/* No ligatures: `--` and `=>` must read as typed. */
code, kbd, pre, samp {
    font-family: var(--mono-font);
    font-size: 0.85em;
    font-feature-settings: "liga" 0, "calt" 0;
    font-variant-ligatures: none;
}
pre {
    margin: 0;
    padding: 1em 1.2em;
    overflow-x: auto;
    border-radius: 6px;
    background: var(--surface);
    font-size: 0.78em;
    line-height: 1.45;
}
pre code { font-size: inherit; }
kbd {
    padding: 0.05em 0.4em;
    border: 1px solid var(--rule);
    border-bottom-width: 3px;
    border-radius: 4px;
    background: var(--surface);
}

table { border-collapse: collapse; width: 100%; font-size: 0.9em; }
th, td { padding: 0.45em 0.8em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
th { white-space: nowrap; font-weight: 600; }
td { color: var(--slide-fg); }

.lede { font-size: 1.3em; max-width: 34em; }
.muted { color: var(--muted); }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.card {
    padding: 0.8em 1em;
    border-left: 4px solid var(--accent);
    background: var(--surface);
    max-width: 38em;
}
.steps { margin-top: 1em; }

/* Section dividers: a heading placed above a column's first panel becomes its own panel. */
slide[data-implicit] { border-top: 6px solid var(--accent); }

/* Fragment reveal. Gated on screen and data-ready so print and no-JS show everything. */
@media screen {
    slides[data-ready] [fragment] { transition: opacity 200ms, visibility 200ms; }
    slides[data-ready] [fragment]:not([revealed]) { opacity: 0; }
}

@media (max-width: 700px) {
    .cols { grid-template-columns: 1fr; gap: 1rem; }
}
