/* front15.css: Coat on the Door, kit round 15 (Kit-Ask 6). Colour tokens, the four local faces and the classes of the front's
   live words. Sizes are in texels (--tx: css px a texel; 3 at 1440 css width), so the words scale with the view.
   Pairings (pick one, set on the front's root): .f15-A own pixel display glyphs (front15.js pixText) + Pixelify Sans;
   .f15-B Mystery Quest + Delius; .f15-C Grandstander throughout. All four faces SIL Open Font License 1.1, local Latin subsets.
   No orange anywhere [choice: the coat's orange is kept for the Key Image, GDD section 3]. */
@font-face { font-family: 'Cotd Pixel'; src: url('../fonts/cotd-pixel-var.woff2') format('woff2'); font-weight: 400 700; font-display: block; }
@font-face { font-family: 'Cotd Quest'; src: url('../fonts/cotd-quest-400.woff2') format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Cotd Hand'; src: url('../fonts/cotd-hand-400.woff2') format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Cotd Stand'; src: url('../fonts/cotd-stand-var.woff2') format('woff2'); font-weight: 100 900; font-display: block; }

:root {
  --tx: 3px;
  --f15-handoff: #141925;   /* round 14 fades to it; the loading starts from it and the title fades up from it */
  --f15-fog-1: #1a2133; --f15-fog-2: #29324a; --f15-fog-3: #323b53;
  --f15-beam: #cfdcff;
  --f15-ink: #221e19; --f15-cream: #f2e8d2; --f15-cream-dim: #b8b4a6; --f15-cream-lit: #fffaf0;
  --f15-pip: #fff2c8; --f15-pip-edge: #d8b878;
  --f15-glow: #d8f4c8; --f15-glow-halo: #9ee0a8; --f15-glow-dark: #0d1119;
  --f15-slip: #ece2c6; --f15-slip-ink: #3a342c;
  --f15-off: #6e7282;
}
.f15-A { --f15-title: 'Cotd Pixel', monospace; --f15-body: 'Cotd Pixel', monospace; --f15-tw: 700; --f15-bw: 500; --f15-track: 0.02em; }
.f15-B { --f15-title: 'Cotd Quest', serif; --f15-body: 'Cotd Hand', sans-serif; --f15-tw: 400; --f15-bw: 400; --f15-track: 0.01em; }
.f15-C { --f15-title: 'Cotd Stand', sans-serif; --f15-body: 'Cotd Stand', sans-serif; --f15-tw: 800; --f15-bw: 500; --f15-track: 0; }

/* every live word: cream with a 1-texel ink edge and a 1-texel drop, the pixel lettering's own outline */
.f15-words { position: absolute; inset: 0; pointer-events: none; font-family: var(--f15-body); font-weight: var(--f15-bw); letter-spacing: var(--f15-track); }
.f15-t { position: absolute; white-space: pre; color: var(--f15-cream); line-height: 1.1;
  text-shadow: calc(var(--tx) * -0.34) 0 var(--f15-ink), calc(var(--tx) * 0.34) 0 var(--f15-ink), 0 calc(var(--tx) * -0.34) var(--f15-ink), 0 calc(var(--tx) * 0.34) var(--f15-ink), 0 calc(var(--tx) * 1) var(--f15-ink); }
.f15-h1 { font-family: var(--f15-title); font-weight: var(--f15-tw); font-size: calc(var(--tx) * 24); line-height: 1; }
.f15-h2 { font-family: var(--f15-title); font-weight: var(--f15-tw); font-size: calc(var(--tx) * 15); line-height: 1; }
.f15-sub { font-size: calc(var(--tx) * 9); color: var(--f15-cream); }
.f15-start { font-size: calc(var(--tx) * 11); color: var(--f15-cream-lit); }
.f15-small { font-size: calc(var(--tx) * 7); color: var(--f15-cream-dim); }
.f15-item { font-family: var(--f15-title); font-weight: var(--f15-tw); font-size: calc(var(--tx) * 10); color: var(--f15-cream-dim); }
.f15-item.is-lit { color: var(--f15-cream-lit); }
.f15-item.is-pressed { transform: translateY(var(--tx)); }
.f15-word { font-size: calc(var(--tx) * 11); }
.f15-controls { font-size: calc(var(--tx) * 6.5); color: var(--f15-cream-dim); line-height: 1.32; }
.f15-controls.is-lit { color: var(--f15-cream-lit); }
.f15-controls-wide { columns: 2; column-gap: calc(var(--tx) * 14); width: calc(var(--tx) * 170); }
.f15-row { font-size: calc(var(--tx) * 8.5); }
.f15-row.is-lit { color: var(--f15-cream-lit); }
.f15-knob { font-size: calc(var(--tx) * 10); color: var(--f15-ink); text-shadow: none; font-weight: 700; }
.f15-slip { font-size: calc(var(--tx) * 8); color: var(--f15-slip-ink); text-shadow: none; font-weight: 700; }
.f15-credits { font-size: calc(var(--tx) * 7); line-height: 1.55; text-align: center; }
.f15-notice { font-size: calc(var(--tx) * 10); color: var(--f15-cream-lit); }
.f15-glowtext { color: var(--f15-glow); text-shadow: 0 0 calc(var(--tx) * 2) rgba(158, 224, 168, 0.55), 0 calc(var(--tx) * 0.67) var(--f15-glow-dark); }
.f15-on-glow { color: var(--f15-glow-dark); text-shadow: none; }
.f15-on-wood { color: var(--f15-cream-dim); }
.f15-on-wood.is-lit { color: var(--f15-cream-lit); }
.is-off { color: var(--f15-off) !important; }
/* the view: hard texel edges */
.f15-view canvas { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }

/* the first paint, before any script or font: the inline PNG of option A's first frame, filling the view; the scripted
   screen draws over it on the same texels, so nothing jumps */
.f15-first { position: fixed; inset: 0; background: var(--f15-handoff) var(--f15-first-png, none) center / contain no-repeat; image-rendering: pixelated; }
