/* Frostshot: what the site adds to the shared kit in assets/site/kit (which is left as it is).
   1. the dark theme: the kit's palette with its two sides swapped, chosen by the system or by the theme button
      (data-theme on <html>, stored as "theme", the same key the older pages use);
   2. the few parts the kit has no class for: the theme and language controls, the film's pause button,
      the launch email form, the key chips;
   3. the documentation pages (guide, FAQ): their own markup, drawn with the kit's tokens. */

/* 0. type: Inter (SIL Open Font License 1.1, fonts/Inter-OFL-1.1.txt), served from this site: the pages carry no third-party fonts */
@font-face { font-family: "Inter"; src: url(/assets/site/fonts/inter-latin.woff) format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* 1. dark: the icon's own night side. Every value is measured on assets/img/icon-512.png:
      #0d131b the tile's foot, #1c2531 its middle, #2a3645 its top, #4d5c6c its upper rim, #f4f8fc the brackets,
      #e9f7fe the lens highlight, #73c5ef the lens centre, #83b7da the lens rim, #2072ad the lens's darkest blue. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --p-bg: #0d131b; --p-surface: #1c2531; --p-ink: #f4f8fc; --p-muted: #83b7da;
    --p-accent: #73c5ef; --p-accent-ink: #0d131b; --p-action: #73c5ef; --p-action-ink: #0d131b;
    --p-inv-bg: #f4f8fc; --p-inv-surface: #e9f7fe; --p-inv-ink: #0d131b; --p-inv-muted: #4d5c6c;
    --p-inv-accent: #2072ad; --p-inv-accent-ink: #f4f8fc; --p-inv-action: #2072ad; --p-inv-action-ink: #f4f8fc;
    --fs-glass: rgba(28, 37, 49, .62); --fs-glass-edge: rgba(244, 248, 252, .16); --fs-glass-top: rgba(244, 248, 252, .28);
    --fs-shade: 0 1px 1px rgba(0, 0, 0, .3), 0 24px 48px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --p-bg: #0d131b; --p-surface: #1c2531; --p-ink: #f4f8fc; --p-muted: #83b7da;
  --p-accent: #73c5ef; --p-accent-ink: #0d131b; --p-action: #73c5ef; --p-action-ink: #0d131b;
  --p-inv-bg: #f4f8fc; --p-inv-surface: #e9f7fe; --p-inv-ink: #0d131b; --p-inv-muted: #4d5c6c;
  --p-inv-accent: #2072ad; --p-inv-accent-ink: #f4f8fc; --p-inv-action: #2072ad; --p-inv-action-ink: #f4f8fc;
  --fs-glass: rgba(28, 37, 49, .62); --fs-glass-edge: rgba(244, 248, 252, .16); --fs-glass-top: rgba(244, 248, 252, .28);
  --fs-shade: 0 1px 1px rgba(0, 0, 0, .3), 0 24px 48px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root { --fs-glass: rgba(244, 248, 252, .7); --fs-glass-edge: rgba(13, 19, 27, .1); --fs-glass-top: rgba(255, 255, 255, .95);
  --fs-shade: 0 1px 1px rgba(13, 19, 27, .04), 0 22px 44px -24px rgba(32, 114, 173, .38); --fs-select: #73c5ef; }

/* 1b. glass, the product's own material (the island and the icon): a translucent body over a blur, a bright upper
       edge, a quiet lower one. The menu bar, the words on the film, the cards and the fields are made of it. */
.fs-glass, .nav, .card:not(.card--open), .guide__toc, .notify__email, .fs-theme {
  background: var(--fs-glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--fs-glass-top), inset 0 0 0 1px var(--fs-glass-edge);
}
.nav { box-shadow: inset 0 -1px 0 var(--fs-glass-edge); }
/* a recording keeps its own backdrop: it is what was on the screen, so it sits in a frame drawn like a
   Frostshot selection (the ice line, a lit edge) with the page's cold shade under it */
.fs-clip, .fs-shot, .card > .panel:has(> img.frame__img) {
  outline: 1.5px solid var(--fs-select); outline-offset: -1.5px;
  box-shadow: var(--fs-shade);
}

/* 2. parts */
.nav__logo > img { width: 28px; height: 28px; border-radius: 7px; }
.fs-tools { display: inline-flex; align-items: center; gap: var(--s-2); }
.fs-theme { display: inline-grid; place-items: center; width: var(--btn-h); height: var(--btn-h); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-btn, var(--r-sm)); background: var(--bg); color: var(--ink); cursor: pointer; }
.fs-theme svg { width: 18px; height: 18px; }
.fs-theme .fs-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fs-theme .fs-sun { display: none; } :root:not([data-theme="light"]) .fs-theme .fs-moon { display: block; } }
:root[data-theme="dark"] .fs-theme .fs-sun { display: none; }
:root[data-theme="dark"] .fs-theme .fs-moon { display: block; }
kbd, .fs-key { font: 500 .88em/1 var(--font-text); white-space: nowrap; padding: .28em .46em; border-radius: 6px; background: color-mix(in oklab, var(--ink) 8%, var(--bg)); color: var(--ink); }

/* the hero's film: the whole recording in its frame beside the words, nothing on it; the control under it pauses it */
.fs-stage { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; width: 100%; }
@media (min-width: 1024px) { .hero-split > .fs-stage { align-self: start; height: auto; } }
@media (max-width: 1023px) { .hero-split > .fs-stage { flex: none; } #pins .fs-shot { flex: none; height: auto; min-height: 0; aspect-ratio: 16 / 9; } }
.fs-stage > .frame { aspect-ratio: 16 / 9; height: auto; min-height: 0; background: #05080d; }
.fs-film { align-self: flex-end; display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; border: 0; background: none; padding: 0; color: var(--ink); font: 500 var(--t-body)/1.2 var(--font-text); cursor: pointer; text-align: left; }
.fs-film small { font-size: var(--t-small); font-weight: 400; color: var(--muted); margin-left: var(--s-2); }
.fs-film__disc { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; color: var(--ink); background: var(--fs-glass); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: inset 0 1px 0 var(--fs-glass-top), inset 0 0 0 1px var(--fs-glass-edge); }
.fs-film__disc svg { width: 16px; height: 16px; }
.fs-film [data-when="paused"], .fs-film.is-paused [data-when="playing"] { display: none; }
.fs-film.is-paused [data-when="paused"] { display: inline; }
.fs-film.is-paused svg[data-when="paused"] { display: block; margin-left: 2px; }
/* a recording inside a section's frame keeps the island in view when the frame is wider than 16:9 */
.fs-clip > .frame__img { object-position: 50% 78%; }

/* the launch email form, as the site has always sent it: one field, one button, the answer under them */
.notify { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-3); align-items: end; max-width: 520px; }
.notify > .field { grid-column: 1; }
.notify > .btn { grid-column: 2; }
.notify__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notify__msg { grid-column: 1 / -1; margin: 0; font-size: var(--t-small); font-weight: 500; }
.notify__msg:empty { display: none; }
.notify.is-done > .field, .notify.is-done > .btn { display: none; }
.fs-follow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4) var(--gutter); align-items: end; }
.fs-follow > .notify { grid-column: 1 / span 6; max-width: none; }
.fs-follow > p { grid-column: 8 / -1; margin: 0; }
@media (max-width: 1023px) { .fs-follow > .notify, .fs-follow > p { grid-column: 1 / -1; } }
@media (max-width: 479px) { .notify { grid-template-columns: minmax(0, 1fr); } .notify > .btn { grid-column: 1; width: 100%; } }
.footer__legal { flex-wrap: wrap; }
.footer__legal .fs-marks { flex-basis: 100%; color: var(--muted); }
#keyboard .rows__value { text-align: left; min-width: 112px; }
@media (min-width: 1024px) { #features .card--row > p { min-height: 3lh; } }
@media (max-width: 639px) { #features .card > .panel { --p-h: 140px; } }
#how .fs-clip { margin-top: var(--s-7); }
main > section.section > .wrap > .fs-island.fill { flex: none; aspect-ratio: 1680 / 340; margin-top: var(--s-7); }
.close__word { padding-top: .12em; }
@media (max-width: 639px) { main > section.section > .wrap > .fs-island.fill { aspect-ratio: 4 / 3; } }
@media (max-width: 639px) { .fs-stage { gap: var(--s-2); } .fs-film { align-self: flex-start; } .fs-film small { display: none; } .hero-split > .hero-copy > * + * { margin-top: var(--s-4); } }
