/* kton deck theme: deep water, teal, the two whales. No company theme. Font: Space Grotesk (OFL), bundled. */
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/space-grotesk-1.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/space-grotesk-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/space-grotesk-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --kton-bg: #08131c; --kton-fg: #e4ecef; --kton-muted: #8aa3ad; --kton-teal: #39b8a6; --kton-gold: #c9a96a;
  --r-background-color: var(--kton-bg); --r-main-color: var(--kton-fg); --r-heading-color: var(--kton-fg);
  --r-link-color: var(--kton-teal); --r-main-font: "Space Grotesk", system-ui, sans-serif;
  --r-heading-font: "Space Grotesk", system-ui, sans-serif; --r-main-font-size: 34px;
}
.reveal-viewport { background: radial-gradient(ellipse at 70% 20%, #0f2a36 0%, var(--kton-bg) 60%); }
.reveal .slides { text-align: left; }
.reveal h1, .reveal h2 { text-transform: none; font-weight: 500; letter-spacing: .01em; }
.reveal h2 { font-size: 1.9em; margin-bottom: .7em; }
.reveal p.onslide { font-size: 1.05em; line-height: 1.45; max-width: 26em; }
.reveal p.open { color: var(--kton-muted); font-style: italic; }
.reveal .kton-corner { position: absolute; top: -10px; right: 0; width: 64px; height: 50px;
  background: url("kton-logo.png") center/contain no-repeat; filter: invert(1); opacity: .55; }
.reveal .kton-mark { width: 300px; height: 230px; margin: 0 auto .6em;
  background: url("kton-logo.png") center/contain no-repeat; filter: invert(1); opacity: .9; }
.reveal .title-slide, .reveal .part-slide { text-align: center; }
.reveal section.title-slide { display: flex !important; flex-direction: column; justify-content: center; align-items: center; height: 100%; }
.reveal .title-slide .kton-mark { width: 420px; height: 320px; }
.reveal .title-slide h1 { font-size: 1.3em; font-weight: 400; letter-spacing: .12em; color: var(--kton-muted); margin: 0; }
.reveal .part-slide h2 { font-size: 2.2em; color: var(--kton-gold); }
.reveal .demo-slide h2::before { content: "▶ "; color: var(--kton-teal); }
.reveal .demo-slide { border-left: 4px solid var(--kton-teal); padding-left: 1em; }
.reveal img { border: 0; box-shadow: 0 0 40px rgba(57,184,166,.15); max-height: 480px; }
.reveal .slide-number { background: transparent; color: var(--kton-muted); }
/* a "world" slide: a logo above the question, a whale half as the visual cue (one whale = one of the pair) */
.reveal section:has(.world-logo) { display: flex !important; flex-direction: column; justify-content: center; height: 100%; }
.reveal section:has(.world-logo) h2 { font-size: 2.4em; margin: .4em 0 .5em; max-width: 14em; }
.reveal img.world-logo { height: 64px; width: auto; box-shadow: none; margin: 0; align-self: flex-start; }
.reveal img.whale-cue { position: absolute; right: 30px; bottom: 40px; width: 300px; height: auto; box-shadow: none; margin: 0; }
.reveal section:has(.world-logo) .kton-corner { display: none; }
.reveal section:has(.world-logo) > :has(> .world-logo), .reveal section:has(.world-logo) > img.world-logo { order: -1; }
.reveal section:has(.world-logo) p.onslide { color: var(--kton-muted); }
.reveal section:has(.whale-cue) .kton-corner { display: none; }
.reveal section:has(.whale-cue) { height: 100%; }

/* a stack of layers: one line per layer, top = closest to people */
.reveal .layers { display: flex; flex-direction: column; gap: .35em; margin-top: .6em; max-width: 30em; }
.reveal .layer { border: 1px solid rgba(138,163,173,.35); border-left: 6px solid var(--kton-teal); border-radius: 8px;
  padding: .45em .8em; text-align: left; font-size: .82em; line-height: 1.35; }
.reveal .layer b { display: block; font-size: 1.15em; }
.reveal .layer span { color: var(--kton-muted); }
.reveal .layer.l2 { border-left-color: var(--kton-gold); }
.reveal .layer.l3 { border-left-color: var(--kton-fg); }

/* a file listing: paths in mono, explanation muted */
.reveal pre.files { font: 0.62em/1.5 ui-monospace, Menlo, monospace; color: var(--kton-muted); background: none;
  box-shadow: none; border-left: 4px solid var(--kton-teal); padding: .3em 0 .3em .9em; margin: .5em 0 .8em; width: auto; white-space: pre; }
.reveal pre.files b { color: var(--kton-fg); font-weight: 600; }

/* the claim of each Michael, as a footer */
.reveal p.claim-foot { position: absolute; left: 0; bottom: 18px; margin: 0; font-size: .62em; font-style: italic; color: var(--kton-gold); }

/* diagrams: inline svg drawn with these tokens */
.reveal svg.dia { width: 100%; height: auto; max-height: 52vh; margin-top: .4em; }
.reveal svg.dia text { fill: var(--kton-fg); font: 22px "Space Grotesk", system-ui, sans-serif; text-anchor: middle; }
.reveal svg.dia text.lbl { fill: var(--kton-muted); font-size: 18px; text-anchor: start; }
.reveal svg.dia text.lbl.mid { text-anchor: middle; }
.reveal svg.dia text.hash { font: 19px ui-monospace, Menlo, monospace; fill: var(--kton-gold); text-anchor: start; }
.reveal svg.dia .box { fill: rgba(57,184,166,.08); stroke: var(--kton-teal); stroke-width: 2; }
.reveal svg.dia .box.seed { stroke: var(--kton-gold); fill: rgba(201,169,106,.08); }
.reveal svg.dia .box.hi { stroke-width: 3; }
.reveal svg.dia .reg { fill: none; stroke: var(--kton-muted); stroke-width: 1.5; stroke-dasharray: 6 5; }
.reveal svg.dia .prev, .reveal svg.dia .flow { stroke: var(--kton-muted); stroke-width: 2; fill: none; marker-end: url(#arr); }
.reveal svg.dia .prev { marker-end: none; marker-start: none; }
.reveal svg.dia .link { stroke: var(--kton-gold); stroke-width: 2.5; stroke-dasharray: 5 5; fill: none; }

/* two columns with the half whales */
.reveal .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; margin-top: .3em; }
.reveal .cols > div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.reveal .cols img.half { height: 190px; width: auto; margin: 0 0 .3em; box-shadow: none; background: none; }
.reveal .cols b { font-size: 1.1em; }
.reveal .cols span { font-size: .72em; color: var(--kton-muted); line-height: 1.4; }
.reveal .cols span:first-of-type { color: var(--kton-fg); }

/* a folder listing as a grid: path | what it is */
.reveal .tree { display: grid; grid-template-columns: max-content 1fr; column-gap: 1.4em; row-gap: .25em;
  border-left: 4px solid var(--kton-teal); padding: .3em 0 .3em .9em; margin: .5em 0 .8em; font-size: .6em; text-align: left; }
.reveal .tree code { font: 1em ui-monospace, Menlo, monospace; color: var(--kton-muted); background: none; }
.reveal .tree code b { color: var(--kton-fg); }
.reveal .tree span { color: var(--kton-fg); }
.reveal .tree .foot { grid-column: 1 / -1; margin-top: .4em; color: var(--kton-gold); font-weight: 600; }
.reveal svg.dia text.head { fill: var(--kton-fg); font-size: 24px; font-weight: 600; text-anchor: start; }

/* reproduction levels: badge | meaning | the sea example */
.reveal .levels { display: grid; grid-template-columns: max-content 1fr; column-gap: 1em; row-gap: .1em; margin: .4em 0 .7em; text-align: left; font-size: .72em; }
.reveal .levels b { grid-row: span 2; align-self: start; color: var(--kton-bg); background: var(--kton-teal); border-radius: 6px; padding: .05em .45em; font-size: .9em; margin-top: .1em; }
.reveal .levels span { color: var(--kton-fg); line-height: 1.3; }
.reveal .levels em { color: var(--kton-gold); font-size: .85em; margin-bottom: .55em; }

/* four cards in a 2x2 grid */
.reveal .cards { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; margin: .4em 0 .8em; text-align: left; }
.reveal .cards > div { border: 1px solid rgba(138,163,173,.35); border-top: 4px solid var(--kton-teal); border-radius: 8px; padding: .45em .7em; }
.reveal .cards b { display: block; font-size: .8em; }
.reveal .cards span { display: block; font-size: .62em; color: var(--kton-muted); line-height: 1.35; }
.reveal .cards.three { grid-template-columns: 1fr 1fr 1fr; }
.reveal .cards.three span { font-size: .6em; }

/* a part heading: centred, logo above */
.reveal section.part-slide { display: flex !important; flex-direction: column; justify-content: center; align-items: center; height: 100%; }
