/* ============================================================
   SHARED DESIGN TOKENS  —  hub-v1 foundation
   ------------------------------------------------------------
   Base layer for every member hub. Theme-neutral.
   Each user overrides the --accent-* contract and --bg-base
   in their own theme.css; component CSS never hardcodes a
   brand color, it only reads these variables.

   Derived from Sami's original homescreen.html :root.
   Do NOT add per-user colors here — put those in <user>/theme.css.
============================================================ */
:root {
    /* ---- Surface ---- */
    --bg-base:        #08080f;
    --bg-card:        #101018;
    --bg-card-hover:  #13131e;
    --bg-glass:       rgba(16, 16, 28, 0.72);
    --bg-inset:       rgba(255, 255, 255, 0.02);

    /* ---- Border ---- */
    --border-subtle:  #1e1e2e;
    --border-muted:   #2a2a3e;
    --border-active:  #3a3a5a;

    /* ---- Accent contract --------------------------------------
       The single accent a theme repaints. Components reference
       ONLY these (never --gold / --violet directly), so a new
       theme = override these four lines.
    ----------------------------------------------------------- */
    --accent:         #d4af37;                      /* primary brand accent     */
    --accent-bright:  #f0c84a;                      /* hover / active highlight  */
    --accent-muted:   #a88a26;                      /* labels, secondary accent  */
    --accent-dim:     #6b5818;                      /* faint accent / gradients  */
    --accent-glow:    rgba(212, 175, 55, 0.18);     /* glows & soft shadows      */
    --accent-contrast:#08080f;                      /* text on a filled accent   */

    /* ---- Secondary data accent (charts, deltas) ---- */
    --data:           #7c6dfa;
    --data-muted:     #5548c4;
    --data-glow:      rgba(124, 109, 250, 0.18);

    /* ---- Semantic ---- */
    --success:        #3ecf8e;
    --danger:         #fa5c5c;
    --warning:        #f59e0b;

    /* ---- Text ---- */
    --text-primary:   #e8e8f0;
    --text-secondary: #9090a8;
    --text-muted:     #52526a;

    /* ---- Spacing scale ---- */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;

    /* ---- Radius ---- */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --radius-xl:  20px;

    /* ---- Type ---- */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;

    /* ---- Motion ---- */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast:     0.18s;
    --t-med:      0.25s;
    --t-slow:     0.42s;

    /* ---- Sticky note paper (shared/sticky-notes.js — The Sticky Layer) ----
       A note is a real-world object riding on top of a themed page, so it
       tints PER MEMBER (Sami, 2026-07-10) rather than reskinning fully —
       three paper variants, rotated by nth-child. Base values here are
       JP's original proven palette (the feature's precedent); members
       override in their own theme.css, same contract as --accent. */
    --sticky-1-bg:     #fff7d6; --sticky-1-border: #f3e6a8;   /* v1 */
    --sticky-2-bg:     #ffe9e0; --sticky-2-border: #f6cdbe;   /* v2 */
    --sticky-3-bg:     #f5ead9; --sticky-3-border: #e0c9a0;   /* v3 */
    --sticky-ink:      #3a3324;

    /* ---- Member identity colors (Community Hub, COMMUNITY_HUB_SPEC.md §2) ----
       The cross-member vocabulary for SHARED surfaces (pinboard notes, forum
       author dots, group-goal task groups): content tints by its AUTHOR's
       color, keyed to the real member account — stable across gamertag
       renames. This is deliberately NOT a per-user theme color (the header
       rule stands): a member's own theme.css is never loaded on another
       member's hub, so shared surfaces need this one canonical map. Values
       grounded in each member's REAL theme.css --accent as of 2026-07-11,
       EXCEPT Austin (CP-W8, 2026-07-13): his cross-member color is forest
       green, not his page's rose-magenta --accent contrast-highlight — his
       real IDENTITY color, same distinction austin/theme.css's own Report
       Room ink already draws. An accent retune in a member theme must
       update this map too (Austin now excepted from that rule on purpose).
       -soft = translucent wash for tinted backgrounds (washes need tokens
       too — theme-warden). */
    --member-sami:        #19a7c4;  --member-sami-soft:   rgba(25, 167, 196, 0.14);
    --member-austin:      #2f8f43;  --member-austin-soft: rgba(47, 143, 67, 0.14);
    --member-jerry:       #3355d8;  --member-jerry-soft:  rgba(51, 85, 216, 0.14);
    --member-jp:          #ff6b00;  --member-jp-soft:     rgba(255, 107, 0, 0.14);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    padding: var(--space-xl) var(--space-xl) 110px;   /* bottom pad clears the dock */
}

/* ---- Global scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-muted); border-radius: 3px; }

a { color: inherit; }
