/* =====================================================================
   Nialler9 colour and type tokens
   Shared by the homepage and category pages (home.css) and the artist
   pages (artist.css). Loaded before either of them, only on those pages.
   Dark mode follows Maag's own toggle, which sets data-scheme="dark"
   on <body>.
   ===================================================================== */

body:is(.n9h-home, .n9h-cat, .n9a-page) {
  --n9h-blue: #3535FF;        /* bands, tiles, buttons: the same in both schemes */
  --n9h-blue-ink: #3535FF;    /* blue text and links */
  --n9h-bg: #FFFFFF;
  --n9h-surface: #FFFFFF;
  --n9h-surface-2: #F5F5F5;
  --n9h-ink: #1A1A1A;
  --n9h-ink-2: #4A4A4A;
  --n9h-muted: #767676;
  --n9h-rule: #E8E8E8;
  --n9h-rule-2: #D0D0D0;
  --n9h-strong-rule: #1A1A1A;
  --n9h-band-dark: #1A1A1A;
  --n9h-card-dark: #1A1A1A;
  --n9h-card-dark-border: transparent;
  --n9h-btn-bg: #1A1A1A;
  --n9h-btn-ink: #FFFFFF;
  --n9h-img-filter: none;
  --n9h-display: 'Barlow', sans-serif;
  --n9h-cond: 'Barlow Condensed', 'Barlow', sans-serif;
  --n9h-body: 'DM Sans', 'Barlow', sans-serif;
  --n9h-wrap: 1200px;
  --n9h-gutter: 20px;
  --cs-site-background: var(--n9h-bg);
}

body:is(.n9h-home, .n9h-cat, .n9a-page)[data-scheme="dark"] {
  --n9h-blue-ink: #8C8CFF;
  --n9h-bg: #121212;
  --n9h-surface: #1E1E22;
  --n9h-surface-2: #1B1B1F;
  --n9h-ink: #EDEDED;
  --n9h-ink-2: #BDBDBD;
  --n9h-muted: #A0A0A0;
  --n9h-rule: #2E2E33;
  --n9h-rule-2: #3A3A40;
  --n9h-strong-rule: #EDEDED;
  --n9h-band-dark: #16163C;
  --n9h-card-dark: #000000;
  --n9h-card-dark-border: #333333;
  --n9h-btn-bg: #EDEDED;
  --n9h-btn-ink: #121212;
  --n9h-img-filter: brightness(.9);
}

/* Only used if the Customizer's colour scheme is ever set to "System" */
@media (prefers-color-scheme: dark) {
  body:is(.n9h-home, .n9h-cat, .n9a-page)[data-scheme="auto"] {
    --n9h-blue-ink: #8C8CFF;
    --n9h-bg: #121212;
    --n9h-surface: #1E1E22;
    --n9h-surface-2: #1B1B1F;
    --n9h-ink: #EDEDED;
    --n9h-ink-2: #BDBDBD;
    --n9h-muted: #A0A0A0;
    --n9h-rule: #2E2E33;
    --n9h-rule-2: #3A3A40;
    --n9h-strong-rule: #EDEDED;
    --n9h-band-dark: #16163C;
    --n9h-card-dark: #000000;
    --n9h-card-dark-border: #333333;
    --n9h-btn-bg: #EDEDED;
    --n9h-btn-ink: #121212;
    --n9h-img-filter: brightness(.9);
  }
}
