/* The homepage (mantlevid.com) and its docs. The neutrals are the app's
   (styles/tokens.css, Graphite) under the same names, so the app's themes
   (themes.js, Themes on the page) recolour it; the warm colours are the
   mark's (brand/mark.svg). */

@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url(fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url(fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url(fonts/hanken-grotesk-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-display: swap; src: url(fonts/hanken-grotesk-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 800; font-display: swap; src: url(fonts/hanken-grotesk-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
/* What shows until a font has come, made the size of it, so the swap moves
   nothing: Arial (or what has its metrics), as wide as Hanken Grotesk in each
   weight (size-adjust: the width of the page's text in one over the width in
   the other, at 100px in Chromium) and as tall (ascent and descent: Hanken's
   100% and 30%, its line gap none, over the size-adjust). JetBrains Mono is
   as wide as Courier New (0.6em); its ascent is 102%, its descent 30%. */
@font-face { font-family: 'Hanken Fallback'; font-weight: 400; src: local('Arial'), local('Liberation Sans'), local('Arimo'); size-adjust: 100.6%; ascent-override: 99.4%; descent-override: 29.8%; line-gap-override: 0%; }
@font-face { font-family: 'Hanken Fallback'; font-weight: 500; src: local('Arial'), local('Liberation Sans'), local('Arimo'); size-adjust: 101.1%; ascent-override: 98.9%; descent-override: 29.7%; line-gap-override: 0%; }
@font-face { font-family: 'Hanken Fallback'; font-weight: 600; src: local('Arial'), local('Liberation Sans'), local('Arimo'); size-adjust: 101.6%; ascent-override: 98.4%; descent-override: 29.5%; line-gap-override: 0%; }
@font-face { font-family: 'Hanken Fallback'; font-weight: 700; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold'); size-adjust: 94.8%; ascent-override: 105.5%; descent-override: 31.6%; line-gap-override: 0%; }
@font-face { font-family: 'Hanken Fallback'; font-weight: 800; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold'); size-adjust: 95.3%; ascent-override: 104.9%; descent-override: 31.5%; line-gap-override: 0%; }
@font-face { font-family: 'JetBrains Fallback'; src: local('Courier New'), local('Liberation Mono'), local('Cousine'); size-adjust: 100%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%; }

:root {
  --font: 'Hanken Grotesk', 'Hanken Fallback', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'JetBrains Fallback', ui-monospace, monospace;
  --bg0: #0f0f0f; --bg1: #161616; --bg2: #1e1e1e; --bg3: #292929;
  --line: #2b2b2b; --line2: #3d3d3d;
  --fg0: #f5f5f5; --fg1: #bdbdbd; --fg2: #919191;
  /* The mark's flame, light to deep. */
  --f1: #ffd27e; --f2: #f5935a; --f3: #e0603a; --f4: #b53c2a;
  --flame: linear-gradient(135deg, var(--f1), var(--f2) 45%, var(--f3));
  --ink: #1f0f07;             /* text on the flame */
  --link: #ffb07a;
  /* A theme change eases: the colours are registered as colours (page.html),
     so they transition, and everything made of them with them. */
  transition: --bg0 .4s var(--ease), --bg1 .4s var(--ease), --bg2 .4s var(--ease), --bg3 .4s var(--ease), --line .4s var(--ease), --line2 .4s var(--ease),
    --fg0 .4s var(--ease), --fg1 .4s var(--ease), --fg2 .4s var(--ease), --link .4s var(--ease);
  --wrap: 1280px;
  --gut: clamp(20px, 5vw, 64px);
  --r: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
:root[data-mode=light] { --link: #a8431a; color-scheme: light; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg0); color: var(--fg0); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
/* What can be hovered, focused or pressed eases between its states, one
   rule for all: never a snap. A lifted one (translate, not transform: no
   new stacking context) stays under the pointer. */
a, button, summary, .btn, .chip, .toc a b, .roll dd { transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .3s var(--ease), text-decoration .2s var(--ease), translate .2s var(--ease); }
:focus-visible { outline: 2px solid var(--f2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 20; padding: 8px 14px; border-radius: 8px; background: var(--fg0); color: var(--bg0); }
.skip-link:focus { top: 12px; }

/* The bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: clamp(12px, 3vw, 40px); padding: 14px var(--gut);
  background: color-mix(in srgb, var(--bg0) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg0); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.bar-nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; }
.bar-nav a { color: var(--fg1); text-decoration: none; font-size: 15px; font-weight: 500; }
.bar-nav a:hover, .bar-nav a[aria-current] { color: var(--fg0); }
.btn.bar-open { flex-direction: row; align-items: center; gap: 6px; padding: 8px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Buttons: what each is, and in small what it is like. */
.btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 1px; padding: 12px 20px; min-height: 48px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--line2); color: var(--fg0); text-decoration: none; line-height: 1.2; }
.btn, .chip { position: relative; }
/* Lifted, the pointer on its bottom edge would be off it: the 2px it rose are kept (the border, 1px, is not in what top: 100% means). */
.btn:hover::after, .chip:hover::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 4px; }
.btn b { font-weight: 700; font-size: 16px; }
.btn small { color: var(--fg2); font-size: 13px; }
.btn:hover { translate: 0 -2px; border-color: var(--fg2); }
.btn-flame { background: var(--flame); border-color: transparent; color: var(--ink); box-shadow: 0 10px 40px -12px var(--f3); }
.btn-flame small { color: color-mix(in srgb, var(--ink) 70%, transparent); }
.btn-flame:hover { border-color: transparent; box-shadow: 0 14px 48px -10px var(--f3); }
.btn-quiet { min-height: 0; background: transparent; }

/* The hero: the name, what it is, the downloads; beside it the app turned
   toward you, going through its screens (wiped in, one after another),
   leaning to the pointer and turning flat as the page scrolls. It runs off
   the page's right edge: clipped across, not down, so its light fades out
   into what follows. Behind it, the light of a fire: its glow, which
   flickers, and embers rising. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 4vw, 72px);
  padding: clamp(40px, 6vw, 96px) 0 clamp(88px, 9vw, 140px) max(var(--gut), calc((100% - var(--wrap)) / 2)); overflow-x: clip; }
/* The fire: soft lights (the flame's colours, three, flickering on their own
   unrelated times) and embers (each with its own place, size, speed, sway and
   brightness, set once by the page: custom properties). Only transform and
   opacity move, so the compositor runs it, not the page; script pauses it
   while the hero is off screen or the page hidden. The layer is the hero's
   size and clips to it. Each light fades out before the hero's edge. */
.fire { position: absolute; inset: 0; z-index: -1; overflow: clip; pointer-events: none; container-type: size; opacity: var(--fire, 1); transition: opacity .4s var(--ease); }
:root[data-mode=light] .fire { --fire: .6; --ember-core: var(--f2); --ember-edge: var(--f3); }
.fire-glow, .fire-under, .fire-core { position: absolute; translate: -50% -50%; opacity: .7; animation: flicker 9.3s ease-in-out infinite alternate; }
.fire-glow { left: 70%; top: 50%; width: 110%; height: 100%; background: radial-gradient(closest-side, color-mix(in srgb, var(--f3) 26%, transparent), color-mix(in srgb, var(--f4) 9%, transparent) 55%, transparent); }
.fire-under { left: 66%; top: 78%; width: 84%; height: 44%; background: radial-gradient(closest-side, color-mix(in srgb, var(--f2) 30%, transparent), color-mix(in srgb, var(--f3) 10%, transparent) 60%, transparent); animation-duration: 6.1s; animation-delay: -2.2s; }
.fire-core { left: 72%; top: 62%; width: 44%; height: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--f1) 16%, transparent), transparent); animation-duration: 4.3s; animation-delay: -1.1s; }
@keyframes flicker { 0% { opacity: .55; transform: scale(.97); } 38% { opacity: .85; transform: scale(1.04); } 61% { opacity: .66; transform: scale(1); } 100% { opacity: .78; transform: scale(1.06); } }
.ember { position: absolute; left: var(--x); bottom: 0; width: calc(var(--s) * var(--k, 1)); height: calc(var(--s) * var(--k, 1)); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, var(--ember-core, var(--f1)), var(--ember-edge, var(--f3)) 45%, transparent 72%);
  animation: rise var(--dur) linear var(--delay) infinite, sway calc(var(--dur) / 3) ease-in-out var(--delay) infinite alternate; }
@keyframes rise { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 14% { opacity: var(--peak); } 100% { transform: translate(var(--drift), calc(var(--r) * var(--rk, 1) * -1cqh)) scale(.25); opacity: 0; } }
@keyframes sway { from { translate: calc(-1 * var(--sway)) 0; } to { translate: var(--sway) 0; } }
.fire.paused, .fire.paused * { animation-play-state: paused; }
.wordmark { display: flex; align-items: center; gap: .1em; font-size: clamp(64px, 8.4vw, 132px); font-weight: 800; letter-spacing: -.055em; line-height: .9; margin-left: -.05em; white-space: nowrap; }
.wordmark-mark { width: .8em; height: .8em; flex: none; filter: drop-shadow(0 .05em .18em color-mix(in srgb, var(--f3) 45%, transparent)); }
.lede { margin-top: 24px; max-width: 28em; font-size: clamp(18px, 1.45vw, 20px); line-height: 1.5; color: var(--fg1); }
.get { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { margin-top: 18px; color: var(--fg2); font-size: 15px; }
.hero-meta a { color: var(--fg1); }

.show { --every: 4.5s; position: relative; min-width: 0; perspective: 2400px; perspective-origin: 20% 40%; }
.show-app { position: relative; width: 122%; aspect-ratio: 1440 / 900; transform-origin: 0 50%; transform-style: preserve-3d;
  transform: rotateY(calc(-17deg * var(--flat, 1) + var(--tx, 0) * 5deg)) rotateX(calc(7deg * var(--flat, 1) - var(--ty, 0) * 4deg)) rotateZ(calc(1.5deg * var(--flat, 1)));
  transition: transform .5s var(--ease); border-radius: 14px; background: #0f0f0f;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .1); }
.show-app::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 38%); }
.show-screens { position: absolute; inset: 0; isolation: isolate; border-radius: inherit; }
/* A screen is wiped in by its mask moving across it (a transition, so one
   interrupted goes on, or back, from where it is); script stacks the
   screens, the latest shown on top (z-index). */
.show-screen { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit;
  mask-image: linear-gradient(100deg, #000 42%, transparent 58%); mask-size: 280% 100%; mask-position: 100% 0; transition: mask-position 1.1s var(--ease); }
.show-screen.on { mask-position: 0 0; }
.show-screen.cut { transition: none; }
.show-tabs { list-style: none; margin: 36px 0 0; padding: 0; display: flex; gap: 6px 22px; flex-wrap: wrap; }
.show-tabs button { position: relative; padding: 10px 0 0; border: 0; background: none; color: var(--fg2); font: 500 14px var(--font); cursor: pointer; white-space: nowrap; }
.show-tabs button::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--line2); }
/* The bar is as wide as the tab and scaled across (a transform: the compositor's, not layout's). */
.show-tabs button i { position: absolute; left: 0; top: 0; height: 2px; width: 100%; border-radius: 2px; background: var(--f2); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.show-tabs button:hover, .show-tabs button[aria-current] { color: var(--fg0); }
.show-tabs button[aria-current] i { transform: none; }
/* The cycle is the bar filling: at its end the next screen comes. Held, it
   stops where it is and goes on from there. */
.show.playing .show-tabs button[aria-current] i { animation: fill var(--every) linear; transition: none; }
.show.held .show-tabs button[aria-current] i { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: none; } }

/* Where it runs: the Windows app in its window, the web build in a browser,
   the Android app on phones, each beside its words (as a feature is: kinds,
   below). */
.ways, .together { padding-bottom: clamp(96px, 12vw, 160px); }
.browser { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 12px 12px 0 0; background: var(--bg2); }
.browser i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.browser span { margin-left: 12px; padding: 3px 14px; border-radius: 999px; background: var(--bg1); color: var(--fg2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-frame { margin: 0; }
.browser-frame img { border: 1px solid var(--line2); border-top: 0; border-radius: 0 0 12px 12px; }
.phones figure { margin: 0; min-width: 0; }
.phones figure:last-child { margin-bottom: 8%; }
.phones img { max-width: 100%; border: 1px solid var(--line2); border-radius: 26px; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .9); }
.facts { max-width: var(--wrap); margin: 0 auto clamp(64px, 8vw, 112px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gut); }
.facts dt { color: var(--fg0); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.facts dd { margin: 6px 0 0; color: var(--fg1); }

/* A section's heading */
.sec-head { max-width: var(--wrap); margin: 0 auto clamp(40px, 6vw, 72px); }
.sec-head h2 { font-size: clamp(40px, 6.4vw, 88px); font-weight: 800; letter-spacing: -.045em; line-height: .95; }
.sec-head p { margin-top: 16px; max-width: 40em; color: var(--fg1); font-size: 18px; }
section { padding: 0 var(--gut); }

/* Up close: each a part of the app, large, as it is (on the app's own
   ground), and beside what it does, its screen, small, with the part
   marked on it. A wide part goes under its words. Themes: Home in the one
   picked. */
.features { padding-bottom: clamp(96px, 12vw, 160px); }
.feature-list { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap); display: grid; gap: clamp(88px, 10vw, 136px); }
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-content: start; }
.feature-n { grid-row: span 2; color: var(--f2); font-size: 14px; line-height: 2; }
.feature h3 { font-size: clamp(24px, 2.3vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.feature p { grid-column: 2; color: var(--fg1); max-width: 30em; }
.feature .chips { grid-column: 2; margin-top: 18px; }
.feature-part { margin: 0; padding: clamp(14px, 2.2vw, 30px); border-radius: 18px; background: #0f0f0f; border: 1px solid var(--line2);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); }
.feature-part { display: grid; place-items: center; }
.feature-part img { width: 100%; border-radius: 10px; }
.feature:not(.is-wide):not(.is-themes) .feature-part { width: fit-content; max-width: 100%; justify-self: center; }
.where { grid-column: 2; position: relative; width: min(210px, 100%); margin: 22px 0 0; overflow: hidden; border-radius: 8px; border: 1px solid var(--line2); }
.where img { width: 100%; }
.where i { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: calc(var(--w) * 100%); height: calc(var(--h) * 100%);
  border: 2px solid var(--f2); border-radius: 3px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
.feature.is-wide { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.feature.is-wide .feature-text { order: 0; grid-template-columns: auto minmax(0, 1fr) auto; }
.feature.is-wide .where { grid-column: 3; grid-row: 1 / span 2; margin: 0; width: 180px; }
.themed { position: relative; aspect-ratio: 1440 / 900; padding: 0; overflow: hidden; }
/* The app in a theme: each new picture fades in over the ones under it,
   which stay as they are (script takes them away once it is whole). */
.themed img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: opacity .5s var(--ease); }
.themed img.fresh { opacity: 0; }
.reveal .feature { opacity: 0; translate: 0 36px; }
.reveal.armed .feature { transition: opacity .8s var(--ease), translate .8s var(--ease); }
.reveal .feature.seen { opacity: 1; translate: none; }

/* Plugins, as a film's end credits: what each does, then its names. */
.credits { padding-bottom: clamp(80px, 12vw, 160px); text-align: center; }
.credits .sec-head p { margin-inline: auto; }
.roll { margin: 0 auto; max-width: 860px; }
.roll div { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 10px 0; }
.roll dt { text-align: right; color: var(--fg2); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding-top: .45em; }
.roll dd { margin: 0; color: var(--fg0); background: var(--flame); -webkit-background-clip: text; background-clip: text; text-align: left; font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.roll div:hover dd { color: transparent; }
.credits-more { max-width: 40em; margin: 48px auto 0; color: var(--fg2); }

/* Rows of the features' kind, each with a card of its own (a platform, a part
   of Mantle Together, what a plugin can be): a Stremio addon, its link as it
   is typed in and the line of Lua it becomes; and Lua, a real plugin's source.
   The code is in the page's colours, so a theme recolours it. */
.kinds { text-align: left; }
.credits .kinds { margin-bottom: clamp(88px, 10vw, 136px); }
.kind .feature-text { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.kind .feature-text p { grid-column: 1; max-width: 32em; }
.feature.kind .feature-part.kind-part { display: grid; gap: 16px; align-content: start; place-items: stretch; width: auto; justify-self: stretch; background: var(--bg1); box-shadow: none; }
.kind-shot { justify-self: center; border: 1px solid var(--line2); }
.feature.kind .feature-part.phones { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.feature .becomes { grid-column: 1; max-width: none; display: flex; align-items: center; gap: 14px; margin: 0; color: var(--fg2); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.becomes::before, .becomes::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.becomes span::before { content: '↓'; margin-right: 8px; color: var(--f2); }
.maps { margin: 0; }
.maps div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.maps dt { color: var(--link); }
.maps dd { margin: 0; color: var(--fg1); font-size: 15px; line-height: 1.5; }
.code { position: relative; min-width: 0; margin: 0; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg0); overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line); background: var(--bg2); color: var(--fg1); font-size: 13px; }
.code-bar a { color: var(--fg1); text-decoration: none; overflow-wrap: anywhere; }
.code-bar a:hover { color: var(--fg0); }
.code-lang { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--fg2); font: 600 11px var(--font); }
.code-body { position: relative; margin: 0; padding: 16px 18px; color: var(--fg1); font: 13px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.code-body code { font: inherit; }
.lua-comment { color: var(--fg2); }
.lua-keyword { color: var(--link); }
.lua-string, .lua-number { color: color-mix(in srgb, var(--link) 45%, var(--fg0)); }
.lua-api { color: var(--fg0); }
/* The file is folded to its first part, fading out, under a button that
   opens it: a checkbox, so it works without script. */
.folded .code-body { height: 26rem; overflow: hidden; }
.folded .code-body::after { content: ''; position: absolute; inset: auto 0 0; height: 8rem; background: linear-gradient(transparent, var(--bg0)); pointer-events: none; transition: opacity .4s var(--ease); }
.code-more { position: absolute; opacity: 0; pointer-events: none; }
.code-more:checked ~ .code-body { height: auto; }
.code-more:checked ~ .code-body::after { opacity: 0; }
.code-toggle { display: flex; width: fit-content; flex-direction: row; align-items: center; margin: 4px auto 16px; min-height: 40px; padding: 8px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.code-toggle span:last-child, .code-more:checked ~ .code-toggle span:first-child { display: none; }
.code-more:checked ~ .code-toggle span:last-child { display: inline; }
.code-more:focus-visible ~ .code-toggle { outline: 2px solid var(--f2); outline-offset: 3px; }
.roll-head { margin: 0 auto; font-size: clamp(24px, 2.3vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.roll-sub { max-width: 40em; margin: 12px auto 40px; color: var(--fg1); }

/* Themes: the app's, as chips; one picked recolours the page. */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg1);
  color: var(--fg0); font: 500 15px var(--font); cursor: pointer; }
.chip i { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(var(--c2) 0 25%, var(--c1) 0 50%, var(--c0) 0); box-shadow: 0 0 0 1px rgba(127, 127, 127, .35); }
.chip:hover { translate: 0 -2px; }
.chip[aria-pressed=true] { border-color: var(--f2); box-shadow: 0 0 0 1px var(--f2); }

/* Download */
.download { padding-bottom: clamp(80px, 12vw, 160px); }
.download .sec-head p a { color: var(--fg1); }
/* Each card's heading, words, button and line under it, in rows the three
   share (subgrid), so the buttons line up. */
.dl { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr auto auto; gap: 0 16px; }
.dl-card { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 16px; padding: 28px; border-radius: 18px; background: var(--bg1); border: 1px solid var(--line); }
.dl-card h3 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.dl-card > p { color: var(--fg1); font-size: 15px; }
.dl-card .btn { margin-top: 8px; }
.dl-card .btn b { font-family: var(--mono); font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
.dl-card.is-yours { border-color: color-mix(in srgb, var(--f2) 55%, var(--line)); }
.sum { color: var(--fg2); font-size: 11px; overflow-wrap: anywhere; line-height: 1.5; }
.dl-also { color: var(--fg2); font-size: 14px; }
.older { max-width: var(--wrap); margin: 20px auto 0; border: 1px solid var(--line); border-radius: 18px; background: var(--bg1); }
.older summary { cursor: pointer; padding: 18px 28px; font-weight: 600; list-style-position: inside; }
.older summary .mono { margin-left: 6px; color: var(--fg2); }
.older table { width: 100%; border-collapse: collapse; font-size: 15px; }
.older th, .older td { text-align: left; padding: 10px 28px; border-top: 1px solid var(--line); white-space: nowrap; }
.older thead th { color: var(--fg2); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.older small { color: var(--fg2); }
.older-scroll { overflow-x: auto; }
.build { max-width: var(--wrap); margin: 28px auto 0; color: var(--fg2); }

/* Betas, under the downloads. */
.betas { max-width: var(--wrap); margin: 16px auto 0; padding: 24px 28px; border-radius: 18px; background: var(--bg1); border: 1px solid var(--line); display: grid; gap: 8px; }
.betas h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.betas p { color: var(--fg1); font-size: 15px; }
.betas-get { overflow-wrap: anywhere; }

/* The lists of links in a box that scrolls (the changelog's releases, a doc's
   docs and sections): a link's highlight reaches 10px past its text, on the
   left, and its focus ring a little past that, so the box has room for both
   (its padding), and is drawn out by as much, so the text stays where it is.
   Clipped, they would be cut off. */
.log-nav, .doc-nav, .doc-toc { --hl: 10px; --ring: 6px; overflow: auto; padding: var(--ring) var(--ring) var(--ring) calc(var(--hl) + var(--ring));
  margin: calc(-1 * var(--ring)) calc(-1 * var(--ring)) calc(-1 * var(--ring)) calc(-1 * (var(--hl) + var(--ring))); }
.log-nav a, .doc-nav a, .doc-toc a { margin-left: calc(-1 * var(--hl)); }

/* The changelog: the releases beside their notes. */
.log { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); max-width: 1180px; margin: 0 auto; padding: 48px var(--gut) 96px; }
.log-nav { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); }
.log-nav h1 { font-size: 36px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 20px; }
.log-nav ol { list-style: none; margin: 0; padding: 0; }
.log-nav a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--fg1); text-decoration: none; }
.log-nav a:hover { background: var(--bg1); color: var(--fg0); }
.release { padding: 44px 0; border-top: 1px solid var(--line); }
.release:first-child { padding-top: 0; border-top: 0; }
.release h2 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.release h2 .mono { font-size: 1em; letter-spacing: -.02em; }
.release header p { margin: 8px 0 22px; color: var(--fg2); font-size: 15px; }
.release header a { color: var(--fg1); }
.release details summary { cursor: pointer; color: var(--fg1); font-weight: 600; }
.release details .notes { padding-top: 16px; }
.tag { padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line2); color: var(--fg2); font: 600 11px var(--font); letter-spacing: 0; vertical-align: middle; }

/* Docs, on the homepage */
.docs-index { padding-bottom: clamp(80px, 12vw, 160px); }
.toc { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px var(--gut); }
.toc h3 { color: var(--fg2); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: doc; }
.toc li { counter-increment: doc; border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 2.4em 1fr; gap: 2px 8px; padding: 16px 0; text-decoration: none; color: var(--fg0); }
.toc a::before { content: counter(doc, decimal-leading-zero); grid-row: span 2; color: var(--f2); font: 14px/1.9 var(--mono); }
.toc a b { font-size: 19px; font-weight: 700; }
.toc a span { color: var(--fg2); font-size: 15px; line-height: 1.45; }
.toc a:hover b { color: var(--link); }

/* The foot */
.foot { border-top: 1px solid var(--line); padding: 40px var(--gut) 56px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
.foot nav a { color: var(--fg1); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--fg0); }
.foot p { grid-column: 1 / -1; color: var(--fg2); font-size: 14px; }
.foot p a { color: var(--fg1); }

/* A doc's page: the docs beside it, its sections after it. */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr) 210px; gap: clamp(24px, 4vw, 64px); max-width: 1360px; margin: 0 auto; padding: 40px var(--gut) 96px; }
.doc-nav, .doc-toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); font-size: 15px; }
.doc-nav summary { display: none; }
.doc-nav h2, .doc-toc h2 { margin: 22px 0 8px; color: var(--fg2); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.doc-nav ul, .doc-toc ul { list-style: none; margin: 0; padding: 0; }
.doc-nav a, .doc-toc a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--fg1); text-decoration: none; line-height: 1.35; }
.doc-nav a:hover, .doc-toc a:hover { color: var(--fg0); background: var(--bg1); }
.doc-nav a[aria-current] { color: var(--fg0); background: var(--bg2); font-weight: 600; }
.doc-toc a { font-size: 14px; color: var(--fg2); }
.doc-body { max-width: 760px; min-width: 0; overflow-wrap: break-word; }
.doc-body :not(pre) > code { overflow-wrap: anywhere; }
.doc-body h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 800; letter-spacing: -.045em; margin-bottom: 24px; }
.doc-body h2 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 56px 0 16px; padding-top: 8px; }
.doc-body h3 { font-size: 21px; font-weight: 700; margin: 36px 0 10px; }
.doc-body h4 { font-size: 17px; margin: 28px 0 8px; }
.doc-body p, .doc-body ul, .doc-body ol, .doc-body table, .doc-body pre, .doc-body blockquote { margin: 0 0 18px; }
.doc-body li { margin: 4px 0; }
.doc-body li > p { margin: 0; }
.doc-body code { font: .86em var(--mono); padding: .12em .4em; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); }
.doc-body pre { padding: 18px 20px; border-radius: 12px; background: var(--bg1); border: 1px solid var(--line); overflow-x: auto; }
.doc-body pre code { padding: 0; border: 0; background: none; font-size: 14px; }
.doc-body table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc-body th { color: var(--fg2); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.doc-body img { border-radius: var(--r); border: 1px solid var(--line2); margin: 8px 0; }
.doc-body blockquote { padding: 4px 0 4px 18px; border-left: 3px solid var(--f2); color: var(--fg1); }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.doc-step { display: flex; gap: 16px; margin-top: 64px; }
.doc-step a { flex: 1; display: flex; flex-direction: column; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--fg0); text-decoration: none; font-weight: 700; }
.doc-step a small { color: var(--fg2); font-weight: 500; font-size: 13px; }
.doc-step .next { text-align: right; margin-left: auto; }
.doc-step a:hover { border-color: var(--fg2); }
.doc-edit { margin-top: 28px; color: var(--fg2); font-size: 14px; }
/* A text of its own (the privacy notice): a doc's body, without the docs beside it. */
.doc-solo { grid-template-columns: minmax(0, 760px) 210px; justify-content: center; }
.doc-updated { margin: -8px 0 32px; color: var(--fg2); font-size: 15px; }

/* Narrower */
@media (max-width: 1180px) {
  .doc { grid-template-columns: 210px minmax(0, 1fr); }
  .doc-solo { grid-template-columns: minmax(0, 760px); }
  .doc-toc { display: none; }
  .bar-nav { gap: 18px; }
}
@media (max-width: 1000px) {
  /* The app under the words, turned less, the whole of it shown. */
  .hero { grid-template-columns: minmax(0, 1fr); padding-right: var(--gut); }
  /* The app is under the words: the light is too, and the embers stay low. */
  .fire-glow { left: 50%; top: 68%; height: 70%; }
  .fire-under { left: 50%; top: 86%; height: 28%; width: 100%; }
  .fire-core { left: 50%; top: 74%; }
  .ember { left: calc(var(--x) * .6 + 20%); --rk: .6; }
  .show { perspective: 1600px; }
  .show-app { width: 100%; }
  .feature, .feature:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .log { grid-template-columns: minmax(0, 1fr); }
  .log-nav { position: static; max-height: none; }
  .log-nav ol { display: flex; flex-wrap: wrap; gap: 4px 18px; }
}
@media (max-width: 900px) {
  .bar-nav { display: none; }
  .bar-open { margin-left: auto; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .dl { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 16px; }
  .dl-card { grid-row: auto; grid-template-rows: none; }
  .roll div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .roll dt, .roll dd { text-align: center; }
  .doc { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .doc-nav { position: static; max-height: none; }
  .doc-nav summary { display: list-item; cursor: pointer; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
  .doc-nav-fold:not([open]) > :not(summary) { display: none; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot nav { justify-content: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .ember { --k: .7; }
  .ember:nth-child(even) { display: none; }
  .get .btn { flex: 1 1 100%; }
  .show-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); }
  /* A part as wide as a desktop window, too small to read at a phone's
     width: its start, readable, fading out at the card's edge. Where on its
     screen it is goes unsaid. */
  .feature.is-wide .feature-text { grid-template-columns: auto minmax(0, 1fr); }
  .where { display: none; }
  /* A crop of the app as wide as a window, too small to read here: its left
     part, larger, fading out at the card's edge (as a wide part is above). */
  .feature.kind .feature-part.wide { overflow: hidden; place-items: start; mask-image: linear-gradient(90deg, #000 76%, transparent); }
  .feature.kind .feature-part.wide img { width: 175%; max-width: none !important; }
  /* The link row, as wide as a desktop window's, too small to read: its right
     part, the link typed and Install, a little larger than it is. (It alone:
     the Windows window beside it shows whole.) */
  .addon-shot { width: 100%; max-width: none !important; height: 64px; object-fit: cover; object-position: 100% 50%; mask-image: linear-gradient(90deg, transparent, #000 14%); }
  .feature.is-wide .feature-part { place-items: start; overflow: hidden; mask-image: linear-gradient(90deg, #000 72%, transparent); }
  .feature.is-wide .feature-part img { width: 190%; max-width: none !important; }
  .chips { gap: 8px; }
  .chip { padding: 7px 12px 7px 7px; font-size: 14px; gap: 8px; }
  .chip i { width: 22px; height: 22px; }
  .older th, .older td { padding: 10px 16px; }
  .dl-card { padding: 22px; }
}

/* Folds open and close by easing their height (where the browser can: where
   not, they are instant). Not the docs' own fold, which script closes on a
   phone as the page loads. */
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .older, .release details, .code { interpolate-size: allow-keywords; }
    .code-body { transition: height .5s var(--ease); }
    .older::details-content, .release details::details-content { block-size: 0; overflow-y: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
    .older[open]::details-content, .release details[open]::details-content { block-size: auto; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .show-app { transition: none; }
  .show-screen { transition: none; }
  .show.playing .show-tabs button[aria-current] i { animation: none; }
  .reveal .feature { opacity: 1; translate: none; transition: none; }
  .fire-glow, .fire-under, .fire-core { animation: none; }
  .ember { display: none; }
}
