/* EMBERS: the night. Red on near-black, the flyer's extended type, the red
   vertical bar, the hearth (a tetrahedron of fire in rippling lines).
   Loaded after nts.css. One token set, the night; before the bleed-in
   (arrived from home) the page reads the NTS tokens from nts.css, and the
   rule below undoes the glow and the hearth's night base.
   Contrast at night: cream on night 17:1, ash on night 9.6:1, fire-text on
   night 5.6:1. Fire (#e51d47, 4.4:1) draws shapes, the bar and type at 24px+;
   on the bar, night text at 19px bold. */
[data-world="embers"], :root:where(:has(> body[data-world="embers"])) {
  --w-bg: #0b0709;
  --w-bg-2: #1a0a14;
  --w-fg: #ffe9d0;
  --w-muted: #c9ab9f;
  --w-accent: #e51d47;
  --w-accent-text: #ff2d5a;
  --w-link: #ffe9d0;
  --w-line: rgba(229, 29, 71, 0.28);
  --w-line-strong: rgba(229, 29, 71, 0.55);
  --w-selection: #e51d47;
  --w-selection-fg: #0b0709;
  --w-bar-bg: rgba(11, 7, 9, 0.78);
  --w-bar-fg: #ffe9d0;
  --w-sigil: "embers";
  --w-rim: rgba(255, 233, 208, 0.34);
  --w-cast: rgba(0, 0, 0, 0.7);
  --w-deep: #040102;
  --embers-glow: 0 0 .12em rgba(255, 200, 140, .55), 0 0 .5em rgba(242, 89, 27, .45), 0 0 1.4em rgba(229, 29, 71, .3);
  --hearth-base: rgba(229, 29, 71, 0.3);
  color-scheme: dark;
}
html[data-bleed-state="before"] [data-world="embers"], html[data-bleed-state="in"] .nts-bleed-old {
  --embers-glow: none;
  /* the ink (--pal-ink) at 22%, as a plain colour: a canvas reads it */
  --hearth-base: rgba(20, 19, 18, 0.22);
}

/* the flyer's voice: Archivo at full width, caps, with a restrained glow */
.embers-display {
  font-family: var(--font-flyer);
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .95;
  font-size: clamp(2.6rem, 12vw, 7rem);
  text-shadow: var(--embers-glow);
  color: var(--w-fg);
}
/* The wordmark's Ξ: Archivo has no Greek, so each E of EMBERS stays text (find, copy, readers)
   and is set in a one-glyph font whose E is three bars (tools/gen-xi.py). The bars are
   outlines, so colour, glow and selection are the text's own. Metrics are Archivo's E at
   wdth 125, weight 700: advance .865em, cap height .6875em, stroke .1375em, ink .71em wide
   from .0925em in; the middle bar is shorter than Archivo's own middle arm (.6425em). */
/* xi-font */
@font-face { font-family: "Nts Xi"; font-weight: 100 900; font-display: block; src: url(data:font/woff2;base64,d09GMgABAAAAAAEwAAoAAAAAAnwAAADoAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAANAo0SgE2AiQDBgsGAAQgBVQHJhvXARguCuxm4oiephNmIkII+2aESs5DNfZ7e3uo5j8kCIWK158RlUr1HiiJ6dpoq1RYY8njxlsSV/nP6+IGp000iG8Pag8+D7St44C7jYFDPILibq3qQ6WLMrfKWlTiAE2NwYKF7D/y3AcAoAEKEsNSYFjVQFUFFv65zQJAARWJbvQBKiBrrV3R5xre6vPP954mnh50HQgEfx7c6PPdnvkJ7188MrdKjpWQCgjeunUxtUAAACK3sCpQdEtQAABQTQoQWhGgqFqlqB1Ct86NinajzdubxuLRcF9ounWjYdGRWRdO7SpCtHEAAA==) format("woff2"); }
/* /xi-font */
.xi { font-family: "Nts Xi", var(--font-flyer); }
/* print and forced colours: the title is a plain E */
@media print, (forced-colors: active) {
  .xi { font-family: inherit; }
}
.embers-display .hollow {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--w-accent);
  text-shadow: none;
}
.embers-label { font-family: var(--font-flyer); font-variation-settings: "wdth" 112; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }

/* the red bar, vertical on wide screens, a band on phones */
.embers-bar {
  background: var(--embers-fire); color: #0b0709;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1875rem; letter-spacing: .06em; text-transform: lowercase;
  padding: .55rem var(--gutter);
  display: flex; gap: 1.2rem; align-items: center; justify-content: center;
}
.embers-bar .pipe { display: inline-block; width: 1.4em; height: 2px; background: currentColor; }
@media (min-width: 900px) {
  .embers-hero { position: relative; }
  .embers-bar {
    position: absolute; right: 0; top: 0; bottom: 0; width: 42px; padding: 1.5rem .4rem;
    writing-mode: vertical-rl; transform: rotate(180deg);
    /* over the bleed-in's night copy of the hero: its colours are the same
       by day and by night, so it is never crossed */
    z-index: 3;
  }
  .embers-bar .pipe { width: 2px; height: 1.4em; }
}

/* the hearth */
.nts-hearth { width: 100%; height: 100%; touch-action: pan-y; }
/* the hearth's live canvas, placed and sized by the script over the box */
.nts-hearth-live { position: absolute; pointer-events: none; }
/* the still lines: one line period from the script, repeated; shown over
   the lines' rows only, less the box the live canvas covers. The mask hides
   paint, not the pointer, so a press on the solid still reaches the canvas. */
.nts-hearth.is-split {
  background: var(--hearth-lines) 0 0 / var(--hearth-tile) repeat;
  -webkit-mask: linear-gradient(#000 0 0) var(--hearth-rows) no-repeat, linear-gradient(#000 0 0) var(--hearth-box) no-repeat;
  -webkit-mask-composite: source-out;
  mask: linear-gradient(#000 0 0) var(--hearth-rows) no-repeat, linear-gradient(#000 0 0) var(--hearth-box) no-repeat;
  mask-composite: subtract;
}
.nts-hearth.is-grab { cursor: grab; }
.nts-hearth.is-grabbing { cursor: grabbing; }
.hearth-stage { position: relative; width: 100%; aspect-ratio: 1; max-height: 70svh; }
.hearth-still { position: absolute; inset: 0; display: grid; place-items: center; }
.hearth-still svg { width: 72%; height: auto; }
.js .hearth-still { display: none; }

/* the fragment: a small live hearth for the home page */
[data-nts-fragment="embers"] { position: relative; aspect-ratio: 1; width: 100%; background: var(--frag-bg, #0b0709); border-radius: inherit; overflow: hidden; }
[data-nts-fragment="embers"] canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-nts-fragment="embers"] .still { position: absolute; inset: 0; display: grid; place-items: center; }
[data-nts-fragment="embers"] .still svg { width: 64%; height: auto; }
[data-nts-fragment="embers"].is-live .still { display: none; }

/* genre tags, set like the flyer's bottom-right block */
.genres { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0; padding: 0; list-style: none; }
.genres li { font-family: var(--font-flyer); font-variation-settings: "wdth" 112; font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--w-accent-text); }
.genres li { display: inline-flex; align-items: center; gap: .45em; }
.genres li::before { content: ""; width: .8em; height: .8em; background: var(--w-muted); -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat; }
