/* ==========================================================================
   Harmony House · Brand tokens. THE single source of colour for every surface:
   the Mac and Windows app (src/ui/brand.css) and the Studio B team app on phones,
   iPads and browsers (server/public/brand.css). The two files must stay identical;
   a test fails if they drift. Change a colour here, in both, and nowhere else.
   ========================================================================== */
:root {
  /* night harbour: surfaces */
  --hh-night: #05070c;      /* page */
  --hh-deep: #080b11;       /* app background */
  --hh-raise: #0e121a;      /* solid panels, sheets */
  --hh-raise2: #151a24;     /* hover on solid panels */
  --hh-glass: rgba(255, 255, 255, .045);
  --hh-glass2: rgba(255, 255, 255, .075);
  --hh-line: rgba(255, 255, 255, .08);
  --hh-line2: rgba(255, 255, 255, .14);
  /* type */
  --hh-ink: #eef0f4;
  --hh-ink2: #a3a9b6;
  --hh-ink3: #7d8494;      /* v2.50: lifted from #6c7383 to pass 4.5:1 on every surface (scripts/contrast.js) */
  /* brass: the brand accent. Selection, primary buttons, the active place */
  --hh-brass: #d9b26f;
  --hh-brass-hi: #f1d39a;
  --hh-brass-ink: #140e05;
  --hh-brass-glow: rgba(217, 178, 111, .28);
  /* go: Sal and “talk / start” only. Never used for decoration */
  --hh-go: #22d877;
  --hh-go-hi: #9bffc4;
  --hh-go-deep: #0a6b3b;
  --hh-go-ink: #04210f;
  --hh-go-glow: rgba(34, 216, 119, .35);
  /* status: the same four meanings everywhere */
  --hh-ok: #4fd79a;
  --hh-info: #63c7e8;
  --hh-warn: #f0b54e;
  --hh-bad: #f26d6d;
  /* the Sal orb, as one reusable paint */
  --hh-orb: radial-gradient(circle at 34% 28%, var(--hh-go-hi) 0%, var(--hh-go) 40%, var(--hh-go-deep) 100%);
  /* type families */
  --hh-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --hh-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --hh-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
  /* ---- v2.50 design system (Visual 10X phase 4): one scale for type, space, radius, depth and motion, on every device ---- */
  --hh-fs-xs: 11px; --hh-fs-sm: 12.5px; --hh-fs-md: 14px; --hh-fs-lg: 16px; --hh-fs-xl: 20px; --hh-fs-2xl: 26px; --hh-fs-3xl: 34px;
  --hh-fw-reg: 450; --hh-fw-med: 560; --hh-fw-bold: 680; --hh-lh: 1.45; --hh-lh-tight: 1.15; --hh-caps: .1em;
  --hh-sp-1: 4px; --hh-sp-2: 8px; --hh-sp-3: 12px; --hh-sp-4: 16px; --hh-sp-5: 20px; --hh-sp-6: 24px; --hh-sp-7: 32px; --hh-sp-8: 48px;
  --hh-r-sm: 8px; --hh-r-md: 12px; --hh-r-lg: 16px; --hh-r-xl: 22px; --hh-r-pill: 999px;
  /* surfaces: frosted command-center glass over the city */
  --hh-panel: rgba(13, 17, 25, .66); --hh-panel-solid: #0d1119; --hh-panel-line: rgba(255, 255, 255, .09); --hh-panel-hi: rgba(255, 255, 255, .16);
  --hh-panel-sheen: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 38%);
  --hh-blur: blur(22px) saturate(150%);
  --hh-elev-1: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 4px 14px -6px rgba(0, 0, 0, .5);
  --hh-elev-2: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 40px -18px rgba(0, 0, 0, .7);
  --hh-elev-3: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 30px 70px -24px rgba(0, 0, 0, .8);
  /* motion: 150 to 250 ms, eased; reduced motion turns it off (below) */
  --hh-ease: cubic-bezier(.2, .8, .2, 1); --hh-ease-in: cubic-bezier(.4, 0, 1, 1);
  --hh-dur-1: 150ms; --hh-dur-2: 200ms; --hh-dur-3: 250ms;
}
@media (prefers-reduced-motion: reduce) {
  :root { --hh-dur-1: 0ms; --hh-dur-2: 0ms; --hh-dur-3: 0ms; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* v3.0 Direction A (Riviera Resort): cream paper-glass, warm ink, terracotta and turquoise, a serif display face. Set by data-style="riviera". */
:root[data-style="riviera"] {
  --hh-night: #efe5d3; --hh-raise: #fbf6ec; --hh-raise2: #f3e9d7; --hh-glass: rgba(255, 250, 241, .72); --hh-glass2: rgba(255, 250, 241, .86); --hh-line: rgba(90, 60, 30, .14); --hh-line2: rgba(90, 60, 30, .24);   /* the page itself is paper (glass.css maps every surface to these) */
  --hh-deep: #efe5d3; --hh-ink: #2a1d14; --hh-ink2: #5b4636; --hh-ink3: #6e5846; --hh-brass: #8f4329; --hh-brass-hi: #9d4a2c; --hh-brass-glow: rgba(154, 74, 46, .14); --hh-brass-ink: #fff8ee;
  --hh-ok: #2f7a4a; --hh-info: #1f6f73; --hh-warn: #9a6200; --hh-bad: #b23a2a;
  --hh-panel: rgba(251, 246, 236, .86); --hh-panel-solid: #fbf6ec; --hh-panel-line: rgba(90, 60, 30, .16); --hh-panel-hi: rgba(154, 74, 46, .4);
  --hh-panel-sheen: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 40%);
  --hh-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --hh-elev-2: 0 10px 30px rgba(90, 60, 30, .14); --hh-elev-3: 0 18px 50px rgba(90, 60, 30, .2);
}
