/* ==========================================================================
   Palette: kiezburn — purple and rosa
   Selected with Branding:Palette=kiezburn. Loaded after tokens.css and site.css, so it only
   restates the tokens that carry the default parchment-and-gold look. Status, alert, chart
   and gate-verdict colours are shared.
   ========================================================================== */

:root {
  /* ——— Surfaces and ink (the "parchment" and "aged ink" roles) ——— */
  --h-parchment:       #f3dcee;
  --h-parchment-light: #fbf2f9;
  --h-parchment-dark:  #e6c4de;
  --h-aged-ink:        #2e1a3d;
  --h-aged-ink-light:  #4a3360;
  --h-warm-white:      #fefafd;
  --h-vellum:          #f1e1ee;
  --h-border:          #dcc3d8;
  --h-border-light:    #e8d6e5;

  /* ——— Accent (the "gold" role). The dark step carries white button text: 7:1 on white. ——— */
  --h-gold:            #a968c8;
  --h-gold-light:      #c9a0dc;
  --h-gold-dark:       #7b3fa0;

  /* ——— Secondary text (the "sepia" and "umber" roles): 5:1 or better on the light surface ——— */
  --h-sepia:           #7a5c85;
  --h-sepia-light:     #9a80a3;
  --h-umber:           #5c4168;

  /* ——— r, g, b twins of the hex tokens above ——— */
  --h-aged-ink-rgb:    46, 26, 61;
  --h-gold-dark-rgb:   123, 63, 160;
  --h-sepia-rgb:       122, 92, 133;
  --h-vellum-rgb:      241, 225, 238;

  /* ——— Restricted nav link ("Admin") on the ink navbar: rosa, apart from the purple hover ——— */
  --h-nav-restricted:  #f0a3c8;

  /* ——— The "amber" role: warning buttons, the active sort toggle, warning alerts. Rosa here, so the
         brown-gold of the default look does not survive in a purple site. Carries ink text: 6:1. ——— */
  --h-amber:       #e08ab8;
  --h-amber-dark:  #c96a9f;
  --h-amber-light: #eeb0d0;
  --h-amber-rgb:   224, 138, 184;
  --h-alert-warning-bg:   #fbe4ef;
  --h-alert-warning-text: #6b2348;

  /* ——— The "rust" role: danger buttons and alerts. Berry, with a cool tint behind it: the default's
         brick red on beige reads as a leftover of the parchment look. White text on it: 6:1. ——— */
  --h-rust:        #b3305a;
  --h-rust-dark:   #8f2446;
  --h-rust-rgb:    179, 48, 90;
  --h-alert-danger-bg:   #fbe3ea;
  --h-alert-danger-text: #7a1d3a;

  --bs-focus-ring-color: color-mix(in srgb, var(--h-gold) 25%, transparent);

  /* ——— Gate kiosk chrome. Verdict and warning colours stay shared. ——— */
  --h-gate-bg:          var(--h-parchment-light);
  --h-gate-ink:         var(--h-aged-ink);
  --h-gate-slate:       var(--h-aged-ink-light);
  --h-gate-slate-light: var(--h-umber);
  --h-gate-slate-muted: var(--h-sepia);
  --h-gate-deep:        #1c0f26;
  --h-gate-text-muted:  var(--h-sepia);
  --h-gate-border:      var(--h-border);

  /* ——— Tour page (tour.css keeps its own --tour-* tokens) ——— */
  --tour-bg:           var(--h-parchment-light);
  --tour-bg-alt:       var(--h-vellum);
  --tour-text:         var(--h-aged-ink);
  --tour-text-muted:   var(--h-sepia);
  --tour-accent:       var(--h-gold-dark);
  --tour-accent-hover: #65318a;
  --tour-yellow:       var(--h-gold-light);
  --tour-border:       var(--h-border);
  --tour-dark:         #1c0f26;
}

/* The logo is an image file, out of reach of the tokens: turn its gold towards the accent instead of
   shipping a second drawing. The favicon stays as drawn. */
img[src*="/img/logo.svg"] {
  filter: hue-rotate(245deg) saturate(1.15) brightness(1.08);
}
