/* ===========================================================================
   THEME - Blast Shield  (site_id "blastshield")
   QF-CORE/1.1.0 · authored 2026-09-25 · LOCAL BUILD, NOTHING DEPLOYED

   Brand source of truth: Jake Godfrey's own mark, downloaded 2026-09-25 -
   a gold heraldic shield on black. The gold is sampled from that file, not
   guessed: the wordmark fill measures rgb(208,169,51) = #d0a933, and the
   shield's highlight gold #d7bc6d. That is within a hair of the QryptoTrust
   cube gold #c9a84c, which is why the two brands sit together without
   either being forced onto the other. His black stays black; no navy is
   imposed over it.

   THE ONE DANGEROUS COLOUR ON THIS SITE
   -------------------------------------
   #d0a933 on #ffffff measures 2.23:1. It fails AA at every size and it is
   the single most likely way this theme could have shipped broken, because
   gold looks "obviously legible" to an author and is not. So the gold is
   split into two tokens with two jobs:

     --qf-accent  #d0a933   RULES, FILLS, 3px EDGES, BUTTON GROUNDS. Never text.
     --qf-signal  #63490d   the ACCENT-AS-TEXT on a light ground (8.4:1 on
                            white, 7.6:1 on the page, 6.8:1 on the panel).

   On dark grounds the gold is text and is excellent: --qf-signal-dark and
   --qf-link-dark are #e4c46a, 11.2:1 on #101012.

   Every pair below was computed before it was written, and then RENDERED and
   pixel-probed - the core's own note about gradients is the reason the second
   step is not optional.

   TOKENS ONLY - one `:root`, inside `qf.theme`. No component is defined here.
   =========================================================================== */
@layer qf.theme {
  :root {
    /* --- grounds ------------------------------------------------------- */
    --qf-page:            #f5f3ef;   /* warm off-white, not a blue grey     */
    --qf-panel:           #eae7e1;
    --qf-panel-2:         #dfdbd3;
    --qf-surface:         #ffffff;
    --qf-dark:            #101012;   /* his shield ground                   */
    --qf-dark-2:          #08080a;
    --qf-dark-3:          #1d1e22;

    /* --- ink ----------------------------------------------------------- */
    --qf-ink:             #15161a;
    --qf-muted:           #4b4a47;   /* 8.0:1 on page, 7.2:1 on panel       */
    --qf-on-dark:         #ffffff;
    --qf-muted-dark:      #bfc0c4;   /* 10.5:1 on #101012                   */
    --qf-lead-dark:       #e2e2e4;   /* 15.2:1                              */

    /* --- rules --------------------------------------------------------- */
    --qf-line:            #cfcbc3;
    --qf-line-soft:       #e4e0d9;
    --qf-line-dark:       #2c2d31;

    /* --- link + accent, PAIRED TO A GROUND ------------------------------ */
    --qf-link:            #6b5312;   /* deep bronze. 7.3:1 white, 5.9 panel */
    --qf-link-hover:      #47370b;
    --qf-link-dark:       #e4c46a;   /* light gold. 11.2:1 on #101012       */
    --qf-link-dark-hover: #ffffff;
    --qf-accent:          #d0a933;   /* HIS GOLD. rules/fills/edges ONLY    */
    --qf-accent-pale:     #f5eeda;
    --qf-on-accent-pale:  #3a2e08;
    --qf-signal:          #63490d;   /* the gold, made legible on light     */
    --qf-signal-dark:     #e4c46a;
    --qf-signal-pale:     #faf4e6;
    --qf-on-signal-pale:  #4a3a0a;

    /* --- SHIELD RED — SECONDARY SIGNAL (owner, 2026-10-23) ---------------- */
    /* Amber is the identity; red is the ALERT. One source colour, #C0392B,
       with contrast-checked derivatives so each lands on a known ground.
       Change --bs-red to re-tint every red on the site in one edit. Red is
       used as a SIGNAL (edges, left-borders, chips, icon strokes) and for
       critical-infra / C-class alerts — never sprayed across the page.
       Every pair below was computed, not eyeballed:
         --bs-red        #C0392B  4.91:1 on #f5f3ef (page) · 3.54:1 on #101012
                                  → edges/rules/borders/marks; text only on the
                                  light PAGE at >=normal size; NOT text on dark.
         --bs-red-text   #9a2a1e  7.7:1 white · 7.0:1 page · 6.3:1 panel (text)
         --bs-red-on-dark #f0917f 8.3:1 on #101012 (red as text on his black)
         --bs-red-ground #7a1c15 + --bs-red-on-ground #ffe3df = 10.5:1 (banner)
         --bs-red-pale   #f8e5e2 + --bs-red-on-pale  #6e1d14 = 9.3:1 (note) */
    --bs-red:             #C0392B;   /* THE signal. edges/fills/marks only  */
    --bs-red-strong:      #a82f22;   /* pressed/hover edge                  */
    --bs-red-text:        #9a2a1e;   /* red AS TEXT on any light ground     */
    --bs-red-on-dark:     #f0917f;   /* red AS TEXT on #101012              */
    --bs-red-ground:      #7a1c15;   /* dark-red banner ground              */
    --bs-red-on-ground:   #ffe3df;   /* text on the dark-red banner         */
    --bs-red-pale:        #f8e5e2;   /* pale-red note / alert ground        */
    --bs-red-on-pale:     #6e1d14;   /* text on the pale-red note           */
    --bs-red-chip-bg:     #f4dedc;
    --bs-red-chip-fg:     #672422;

    /* --- ACTION TOKEN PAIR - both or neither ---------------------------- */
    /* Gold ground with near-black ink is HIS signature and it measures
       7.65:1. White on that gold would measure 2.23:1, which is exactly the
       failure this pair exists to make impossible. */
    --qf-action:          #d0a933;
    --qf-action-hover:    #dfbb55;
    --qf-on-action:       #231b02;
    --qf-on-action-hover: #231b02;
    --qf-action-border:   #a98421;
    --qf-ghost-border:    #15161a;

    /* --- header / nav --------------------------------------------------- */
    --qf-header-bg:       #0c0c0e;
    --qf-header-fg:       #ffffff;
    --qf-header-link:     #dad8d4;   /* 13.7:1                              */
    --qf-header-link-hover: #ffffff;
    --qf-header-sub:      #d0a933;   /* 8.8:1 on the header ground          */
    --qf-header-border:   3px solid #d0a933;
    --qf-header-position: static;
    --qf-header-toggle-border: #6a6b70;
    --qf-nav-underline:   #d0a933;
    --qf-nav-active-underline: #d0a933;
    --qf-nav-active-fg:   #ffffff;
    --qf-nav-hover-bg:    #1d1e22;
    --qf-nav-gap:         2px;
    --qf-nav-link-pad:    9px 11px;
    --qf-nav-drawer-bg:   #08080a;
    --qf-nav-drawer-line: #24252a;
    --qf-nav-h:           78px;

    /* --- hero: SOLID and IMAGE kept separate, never a shorthand --------- */
    --qf-hero-bg:         #0b0b0d;
    --qf-hero-image:
      linear-gradient(112deg, rgba(208,169,51,.13) 0%, rgba(208,169,51,0) 52%),
      linear-gradient(180deg, #141418 0%, #0b0b0d 100%);
    --qf-hero-border:     3px solid #d0a933;
    --qf-hero-field-opacity: .42;
    --qf-hero-art-w:      430px;

    /* --- footer ---------------------------------------------------------- */
    --qf-footer-bg:       #08080a;
    --qf-footer-link:     #d8d6d2;
    --qf-footer-border:   3px solid #d0a933;
    --qf-footer-rule:     #232428;
    --qf-footer-meta:     #9a9894;   /* 6.95:1                              */

    /* --- CTA band -------------------------------------------------------- */
    /* The CTA ground is DARK, not gold. A gold CTA band would force white
       text onto 2.23:1. The gold stays where it belongs: on the button. */
    --qf-cta-bg:          #1d1e22;
    --qf-cta-image:       none;
    --qf-cta-muted:       #d8d6d2;
    --qf-cta-link:        #e4c46a;
    --qf-cta-accent:      #e4c46a;
    --qf-cta-action:      #d0a933;
    --qf-on-cta-action:   #231b02;
    --qf-cta-action-hover: #dfbb55;
    --qf-on-cta-action-hover: #231b02;

    /* --- page ground ------------------------------------------------------ */
    --qf-page-image:      none;
    --qf-graph-line:      rgba(90, 74, 30, .07);

    /* --- brand mark part hooks -------------------------------------------- */
    --qf-mark-1:          #d0a933;
    --qf-mark-2:          #a98421;
    --qf-mark-3:          #e4c46a;

    /* --- COMPONENT SHAPE TOKENS ------------------------------------------- */
    /* A gold hairline across the top of every card: the shield's edge,
       repeated at component scale. It is an EDGE, never a text colour. */
    --qf-card-border-top: 3px solid #d0a933;
    --qf-card-flat-edge:  3px solid #d0a933;
    --qf-card-flat-bg:    #eae7e1;
    --qf-card-tick-w:     0;
    --qf-step-bg:         #d0a933;
    --qf-step-fg:         #231b02;
    --qf-step-border:     1px solid #a98421;
    --qf-step-w:          38px;
    --qf-chip-radius:     2px;
    --qf-input-line:      #8e8a82;
    --qf-label-tracking:  .015em;
    /* His wordmark is Roman serif caps. The body face on his live site is
       Inter Tight. Both are honoured: a serif wordmark beside a sans page.
       No web font is fetched - style-src/font-src 'self' on the deploy host
       drops anything external, so the stacks degrade to what is installed. */
    --qf-wordmark-font:   Georgia, "Times New Roman", "Liberation Serif", serif;
    --qf-wordmark-transform: uppercase;
    --qf-wordmark-tracking: .065em;
    --qf-brand-mark-size: 46px;
    --qf-footer-mark-size: 42px;

    /* --- geometry ---------------------------------------------------------- */
    --qf-wrap:            1160px;
    --qf-wrap-narrow:     840px;
    --qf-radius:          2px;
    --qf-border:          1px;
    --qf-border-accent:   3px;
    --qf-section-y:       70px;
    --qf-section-y-tight: 46px;
    --qf-grid-gap:        22px;
    --qf-split-gap:       48px;

    /* --- type ---------------------------------------------------------------- */
    --qf-sans: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --qf-head: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --qf-body-size:       17px;
    --qf-body-size-sm:    16px;
    --qf-line-height:     1.62;
    --qf-h1:              2.5rem;
    --qf-h2:              1.82rem;
    --qf-h3:              1.14rem;
    --qf-head-weight:     700;
    --qf-head-tracking:   -.018em;
    --qf-btn-weight:      700;
    --qf-btn-tracking:    .02em;
    --qf-btn-pad:         13px 22px;
  }
}
