/* Revival Night: design tokens.
 *
 * Every colour, font, size and space on the Revival Night pages comes from
 * here. site.css never names a hex value or a font. If a value is not in
 * this file, it is not in the brand.
 *
 * Colours are sampled from the design team's flyer
 * (brand/assets/revival-night/2026-12-02-revival-night-flyer-3375x4500.png),
 * 2 Dec 2026. Fonts are PROVISIONAL until the design team's own files arrive:
 * see brand/DESIGN.md. Where the flyer is silent, the main site's tokens fill
 * in (fire #ee5a17, bone #f4efe6).
 */

:root {
  /* ---- Ground: the smoky near-black ------------------------------------ */
  --rn-ink:        #0b0f0e;  /* deepest ground: flyer corners (#081212, #0a1010) */
  --rn-night:      #121a18;  /* the smoke, mid-flyer (#171e1c), a step darker */
  --rn-smoke:      #1c2522;  /* raised surface on the ground */
  --rn-ash:        #2a3330;  /* hairlines and borders on the ground */

  /* ---- Type colours ----------------------------------------------------- */
  --rn-cream:      #ebdbcb;  /* REVIVAL, 16, names: top of the headline */
  --rn-cream-low:  #cec0b3;  /* REVIVAL, foot of its gradient */
  --rn-steel:      #d2d3d3;  /* the details bar's small capitals */

  /* ---- The oranges ------------------------------------------------------ */
  --rn-ember:      #b5450d;  /* NIGHT, top of its gradient */
  --rn-ember-low:  #86330a;  /* NIGHT, foot of its gradient */
  --rn-flame:      #f7711f;  /* the thin slash and the bar's dividers: the bright one */
  --rn-fire:       #ee5a17;  /* main site "fire": big orange panels */
  --rn-flare:      #c56a31;  /* the glow in the flyer's top right corner */

  /* ---- Paper: where people lean in and type ----------------------------- */
  --rn-bone:       #f4efe6;  /* main site paper */
  --rn-bone-deep:  #e9e1d4;
  --rn-ink-soft:   #3b403e;  /* secondary text on paper (9.9:1 on bone) */
  --rn-error:      #a3260b;  /* errors on paper (6.4:1 on bone) */
  --rn-error-dark: #ff9a73;  /* errors on the ground */
  --rn-white:      #ffffff;  /* form fields: the brightest paper */
  --rn-mask:       #000;     /* alpha only, for CSS masks: never painted */

  /* Semantic */
  --rn-text:        var(--rn-cream);
  --rn-text-muted:  color-mix(in srgb, var(--rn-cream) 80%, transparent);
  --rn-hairline:    color-mix(in srgb, var(--rn-cream) 22%, transparent);
  --rn-focus:       var(--rn-cream);

  /* Gradients taken from the flyer's type */
  --rn-cream-grad:  linear-gradient(180deg, var(--rn-cream) 0%, var(--rn-cream) 35%, var(--rn-cream-low) 100%);
  --rn-ember-grad:  linear-gradient(180deg, #c9521a 0%, var(--rn-ember) 40%, var(--rn-ember-low) 100%);

  /* The ground: near-black with the flyer's flare top right */
  --rn-ground:
    radial-gradient(70% 55% at 100% 0%, color-mix(in srgb, var(--rn-flare) 62%, transparent) 0%, transparent 70%),
    radial-gradient(30% 22% at 96% 2%, color-mix(in srgb, var(--rn-flame) 40%, transparent) 0%, transparent 100%),
    radial-gradient(60% 40% at 0% 40%, color-mix(in srgb, var(--rn-smoke) 80%, transparent) 0%, transparent 100%),
    linear-gradient(180deg, var(--rn-night) 0%, var(--rn-ink) 70%);

  /* ---- Type ------------------------------------------------------------- */
  /* Display: "Revival Display" is Anton squeezed to 80% and slanted 10 degrees
   * to match the flyer (tools/build-fonts.py). Caps only, never a paragraph. */
  --rn-font-display: "Revival Display", "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  /* Body: Montserrat, the main site's face; the flyer's small capitals. */
  --rn-font-body:    "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Sizes: phones first. Body never below 18px: many of these readers are older. */
  --rn-size-body:     18px;
  --rn-size-lede:     20px;
  --rn-size-small:    16px;   /* hints, notes: the floor */
  --rn-size-caps:     14px;   /* tracked capitals, always 600 weight */
  --rn-size-h2:       clamp(44px, 11vw, 88px);
  --rn-size-h3:       clamp(30px, 7vw, 44px);
  --rn-lh-body:       1.6;
  --rn-lh-display:    0.86;
  --rn-track-caps:    0.14em;
  --rn-track-wide:    0.32em; /* the flyer's kicker and tagline */

  /* ---- Space: 8px base -------------------------------------------------- */
  --rn-space-1: 8px;
  --rn-space-2: 16px;
  --rn-space-3: 24px;
  --rn-space-4: 32px;
  --rn-space-5: 40px;
  --rn-space-6: 56px;
  --rn-space-7: 80px;
  --rn-space-8: 120px;

  --rn-radius:   6px;
  --rn-tap:      56px;   /* every control: an older thumb on a phone */

  --rn-shadow-lift: 0 18px 40px -18px color-mix(in srgb, var(--rn-flame) 70%, transparent);
  --rn-glow-cream:  0 0 0.18em color-mix(in srgb, var(--rn-cream) 70%, transparent),
                    0 0 0.55em color-mix(in srgb, var(--rn-cream) 35%, transparent);
}

@media (min-width: 768px) {
  :root {
    --rn-size-body: 19px;
    --rn-size-lede: 22px;
    --rn-size-caps: 15px;
  }
}
