/* COSMO PIXEL PUP on social.boyslop.dev — boyslop's shared theme (package aurora/cosmo-pup; Drake 2026-11-19).
   This is the instance's admin Custom CSS (Setting custom_css). Apply = apply-custom-css.sh (rails runner; no
   persona sign-in). Fonts come from /cosmo/ (social-caddy, ./cosmo, vendor_cosmo.py) — same origin for the CSP.
   Mastodon 4.7 themes through semantic variables; this remaps the DARK scheme's (the default, and what logged-out
   visitors get). A user who picks the light scheme keeps Mastodon's own light theme — usable first.
   Meaning colours keep their jobs: success = Alien Mint, warning/favourite = Solar Gold, error/bookmark = Red Giant;
   the solid error/warning/success BUTTON grounds stay Mastodon's (white text on them already passes). */
@font-face{font-family:"Nunito";font-weight:200 1000;font-display:swap;src:url("/cosmo/nunito-latin-variable.woff2") format("woff2")}
@font-face{font-family:"Pixelify Sans";font-weight:700;font-display:swap;src:url("/cosmo/pixelify-sans-latin-700.woff2") format("woff2")}
@font-face{font-family:"Space Mono";font-weight:400;font-display:swap;src:url("/cosmo/space-mono-latin-400.woff2") format("woff2")}

:root{
  --font-body:"Nunito",mastodon-font-sans-serif,system-ui,sans-serif;
  --cp-pixel:"Pixelify Sans",ui-monospace,Menlo,monospace;
  --cp-mono:"Space Mono",ui-monospace,Menlo,monospace;
  --cp-void:#0d0a1c;
}
html:is([data-color-scheme=dark],:not([data-color-scheme])){
  --color-text-primary:#f2eafe;          /* Moonlight */
  --color-text-secondary:#b9a9de;        /* Faint Star */
  --color-text-tertiary:#9a8fc4;         /* muted→line mix, 4.7:1 on Night Panel 2 */
  --color-text-inverted:#17132b;
  --color-text-brand:#d5bfff;            /* Dream Lavender: links + brand text (Nebula fails 4.5:1 on panel2) */
  --color-text-brand-on-inverted:#4a2a86;
  --color-text-on-brand-base:#17132b;    /* ink on the gold button */
  --color-text-status-links:#d5bfff;
  --color-text-error:#ff5a5f;            /* Red Giant */
  --color-text-warning:#ffd477;          /* Solar Gold */
  --color-text-success:#83e6c1;          /* Alien Mint */
  --color-text-disabled:#7a6fae;
  --color-bg-primary:#17132b;            /* Deep Space */
  --color-bg-secondary:#241d45;          /* Night Panel */
  --color-bg-tertiary:#2e2558;           /* Night Panel 2 */
  --color-bg-disabled:#463a7e;
  --color-bg-brand-base:#ffd477;         /* the gold arcade button */
  --color-bg-brand-base-hover:#ffe39f;
  --color-bg-brand-soft:#3a2f6e;
  --color-bg-brand-softest:#2a2150;
  --color-border-primary:#463a7e;        /* Orbit Line */
  --color-border-strong:#f2eafe;
  --color-border-brand-soft:#7046a8;     /* Cosmic Violet — a fill/edge, never text */
  --rich-text-container-color:#33204f;
  --rich-text-text-color:#f49acb;        /* Stardust Pink */
  --rich-text-decorations-color:#6b3a78;
}

/* Deep Space with pixel stars behind the columns */
html:is([data-color-scheme=dark],:not([data-color-scheme])) body{
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='260' shape-rendering='crispEdges' opacity='.45'%3E%3Crect x='20' y='30' width='2' height='2' fill='%23f2eafe'/%3E%3Crect x='140' y='90' width='2' height='2' fill='%23d5bfff'/%3E%3Crect x='260' y='160' width='2' height='2' fill='%23f2eafe'/%3E%3Crect x='330' y='40' width='2' height='2' fill='%23b9a9de'/%3E%3Crect x='90' y='220' width='2' height='2' fill='%23f49acb'/%3E%3Crect x='205' y='120' width='2' height='2' fill='%23b9a9de'/%3E%3C/svg%3E") 0 0/380px 260px,
    radial-gradient(1000px 520px at 85% -10%,rgba(112,70,168,.30),transparent 62%),#17132b;
  background-attachment:fixed;
}

/* the gold arcade button: a hard shadow the press eats (primary buttons only) */
html:is([data-color-scheme=dark],:not([data-color-scheme])) .button:not(.button-secondary,.button--plain,.button--destructive,.button-tertiary,:disabled){
  border:2px solid var(--cp-void);box-shadow:3px 3px 0 var(--cp-void);transition:transform .05s,box-shadow .05s}
html:is([data-color-scheme=dark],:not([data-color-scheme])) .button:not(.button-secondary,.button--plain,.button--destructive,.button-tertiary,:disabled):active{
  transform:translate(2px,2px);box-shadow:1px 1px 0 var(--cp-void)}

/* pixel face only where it is big: profile names, the about page's title */
/* 4.7 uses CSS-module classes (_comp_account_header__name …): matched by substring so a prefix change can't break it */
[class*=account_header__name] h1,.account__header__tabs__name h1,.about__header h1{font-family:var(--cp-pixel);font-weight:700;letter-spacing:.02em}
/* numbers: counters and relative times */
[class*=number_fields__item] a,.account__header__extra__links strong,.status__action-bar__counter__label,.status__relative-time,
.detailed-status__meta time,.server-banner__stats strong{font-family:var(--cp-mono);font-variant-numeric:tabular-nums}


