/* Crew's token layer over /fift.css (FIFT 8.1.0). Link it right after /fift.css.
   Background lock (RAVEN-DECISIONS, 6 Oct; Crew decisions.md 6 Oct "Claude palette"): every Crew surface (the app and
   crewbyfift.com, including /join /checkout /account) sits on page #FAF9F5 with #FFFFFF cards by day; at night the FIFT plum-black #0E0B12 (Sunny D9, 8 Oct).
   The night surface steps are the same palette's #1F1E1D and #262624. Only the grounds and surfaces move; text, hairline,
   fill, cherry and every other role still come from /fift.css. FIFT ID (id.fift.studio) keeps its own ground for now: the
   mismatch is listed for its phase 2. When fift-design grows a Crew world, these lines move into the token source. */
:root {
  /* fift-rules: allow colour-raw - Crew background lock (RAVEN-DECISIONS 6 Oct), not yet in the fift-design token source */
  --fift-ground: #FAF9F5; --fift-ground-base: #FAF9F5; --fift-inset: #FAF9F5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* fift-rules: allow colour-raw - Crew night = the FIFT plum-black (Sunny D9, 8 Oct): fift.css --fift-ground-base night + its surface steps */
    --fift-ground: #0E0B12; --fift-ground-base: #0E0B12; --fift-surface: #1C1822; --fift-card: #1C1822; --fift-surface-hi: #26212D; --fift-raised: #26212D;
  }
}
:root[data-theme="dark"] {
  /* fift-rules: allow colour-raw - Crew night = the FIFT plum-black (Sunny D9, 8 Oct): fift.css --fift-ground-base night + its surface steps */
  --fift-ground: #0E0B12; --fift-ground-base: #0E0B12; --fift-surface: #1C1822; --fift-card: #1C1822; --fift-surface-hi: #26212D; --fift-raised: #26212D;
}

/* TYPE (fift-design RULES §3, audit 7 Oct): the site uses exactly six sizes and two weights. Every page reads them here;
   the older web steps and the 500/700 weights are aliased onto them, so no page can grow a seventh size. */
:root {
  --t-hero: var(--fift-type-web-hero); --t-display: var(--fift-type-web-display); --t-figure: var(--fift-type-size-figure);
  --t-question: var(--fift-type-size-question); --t-body: var(--fift-type-size-body); --t-note: var(--fift-type-size-note);
  --fift-type-web-title: var(--t-figure); --fift-type-web-lede: var(--t-question); --fift-type-label: var(--t-note);
  --fift-type-size-large-title: var(--t-display); --fift-type-size-hero-pushed: var(--t-hero);
  --fift-type-weight-medium: 600; --fift-type-weight-bold: 600;
}
