/*
 * NorthPoint Spaces: design tokens (from the hand-off's tokens/spaces-tokens.css).
 * The only file in the project that may write a hex value (as in Courts).
 * Source: the NorthPoint Church design system, night scale (tokens/northpoint-design-system-tokens.json).
 * Rules: cream is never a fill; text on teal/mint/orange is --on-fill; orange only for what a person must act on;
 * no shadows (depth is surface step and border); colour is never the only signal.
 */
:root {
  color-scheme: dark;

  /* Grounds */
  --ground: #171412;       /* night-bg: page */
  --band: #1A1715;         /* night-band: headers, tab bar, summary bar, staff sidebar */
  --surface: #1E1A18;      /* night-surface: cards, inputs */
  --surface-2: #211D1A;    /* night-surface-2: two-way control track */
  --raised: #262220;       /* night-raised: blocks in cards, free cells, chips, current nav */
  --segment-on: #35302C;   /* the chosen half of a two-way control */

  /* Lines */
  --line: #2C2724;         /* night-line: hairlines (decorative) */
  --line-strong: #37312D;  /* night-line-strong: stronger borders */
  --edge: #766B63;         /* night-edge: control boundaries (3:1+) */
  --ghost: #5C5550;        /* night-ghost: taken cells' edge; never text */

  /* Text */
  --cream: #FFF9EF;        /* headings, primary text */
  --body: #C9C0B7;         /* stone-body */
  --muted: #9E958C;        /* stone-muted: labels, hints */
  --faint: #918880;        /* stone-faint: placeholders, taken text */
  --sand-body: #D9D0C5;    /* staff sidebar links */
  --sand-muted: #B9AFA4;   /* staff sidebar sub-label */

  /* Brand */
  --teal: #00968F;         /* primary fill; type only for staff sidebar group headings */
  --teal-hover: #0AA59D;
  --mint: #9CDBD9;         /* links, icons, current nav, Request */
  --mint-hover: #C8EEEC;
  --orange: #F68D2E;       /* must act: badges, "steps to do", "needs you" */
  --on-fill: #1B1816;      /* text on teal, mint, orange */
  --white: #FFFFFF;        /* wallet buttons only */

  /* Type */
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
  --font-display: 'Libre Caslon Text', Georgia, serif; /* greeting and typed signature only */

  /* Radius */
  --radius-card: 16px;
  --radius-control: 12px;
  --radius-mark: 8px;
  --radius-cell-grid: 6px;
  --radius-pill: 999px;

  /* Spacing (4 px base) */
  --sp-4: 4px; --sp-6: 6px; --sp-8: 8px; --sp-10: 10px; --sp-12: 12px; --sp-14: 14px;
  --sp-16: 16px; --sp-18: 18px; --sp-20: 20px; --sp-22: 22px; --sp-24: 24px; --sp-28: 28px;
  --sp-32: 32px; --sp-40: 40px;

  /* Sizes */
  --target-min: 44px;
  --btn-h: 52px;
  --btn-h-small: 44px;
  --input-h: 48px;
  --header-h-phone: 62px;
  --header-h-desktop: 72px;
  --tabbar-h: 72px;
  --staff-sidebar-w: 248px;

  /* Patterns: closed time is hatched, never coloured alone (SPEC §1) */
  --hatch-guest: repeating-linear-gradient(135deg, var(--surface) 0 6px, var(--surface-2) 6px 12px);
  --hatch-staff: repeating-linear-gradient(135deg, var(--line-strong) 0 6px, var(--raised) 6px 12px);
}
