/* FAMILY TOKENS for Justice Apex Inc. properties.

   WHAT THIS FILE IS. The small set of shared values that tells a visitor one company stands behind
   justiceapex.ai, theapexengine.net, defintel.net and the HAVEN pages: a base text and ground pair, a link
   color, a focus ring, a spacing scale, a type size set for footers and legal pages, the shape of a booking
   button, and the footer frame. Nothing else lives here.

   WHAT THIS FILE IS NOT. It holds no accent color, no display font, no hero rule, no card rule and no
   component class. Each property keeps its own palette and its own type. Every name starts with fam- so it
   cannot collide with a property's own names (app.css uses --bg, --txt and --tealx; jarvis-theme.css uses
   --bg-primary and --text-primary; corporate-theme.css uses --bg-dark and --text-main).

   HOW A PROPERTY ADOPTS IT. Load this file before the property's own sheet. Then use the fam- names in
   the footer, in the legal pages and in the booking button. The rest of the property stays as it is.

   CONTRAST, WCAG 2.1, measured by script. Every text pair clears 4.5 to 1. The focus ring clears 3 to 1 on
   the ground it is drawn over, which is why it keeps its offset: drawn flush on the action color it would
   read only 1.15 to 1. Links read 1.27 to 1 against quiet text, so they stay underlined.
     text on ground ............................. 16.62 to 1
     text on raised ............................. 15.55 to 1
     quiet text on ground ....................... 9.31 to 1
     quiet text on raised ....................... 8.72 to 1
     link on ground ............................. 11.84 to 1
     link on raised ............................. 11.08 to 1
     link hover on ground ....................... 14.08 to 1
     link hover on raised ....................... 13.17 to 1
     action text on action ground ............... 11.50 to 1
     action text on action hover ground ......... 13.67 to 1
     focus ring on ground ....................... 13.65 to 1
     focus ring on raised ....................... 12.77 to 1
   The rule color is a divider only. No text sits on it and no ratio is claimed for it. */

:root {
  /* Base pair. Ground is the page, raised is the footer and any callout. */
  --fam-ground: #070b14;
  --fam-raised: #0d1422;
  --fam-text: #e8ecf4;
  --fam-text-quiet: #a8b3c7;
  --fam-rule: #34405a;

  /* Links. Always underlined in the footer and the legal pages, so color is never the only signal. */
  --fam-link: #8fd0ff;
  --fam-link-hover: #b3e0ff;

  /* Focus ring. One ring for every property, drawn outside the element on the ground. */
  --fam-focus: #ffd166;
  --fam-focus-width: 3px;
  --fam-focus-offset: 3px;
  --fam-focus-ring: var(--fam-focus-width) solid var(--fam-focus);

  /* Booking button. The label and the route are set per property. The look and the behavior are shared. */
  --fam-action-bg: #8fd0ff;
  --fam-action-bg-hover: #b3e0ff;
  --fam-action-text: #06101c;
  --fam-btn-min-h: 48px;
  --fam-btn-pad-y: 0.75rem;
  --fam-btn-pad-x: 1.25rem;
  --fam-btn-radius: 10px;
  --fam-btn-weight: 700;

  /* Spacing scale. Eight steps, from 4 pixels up to 64 pixels at the default root size. */
  --fam-space-1: 0.25rem;
  --fam-space-2: 0.5rem;
  --fam-space-3: 0.75rem;
  --fam-space-4: 1rem;
  --fam-space-5: 1.5rem;
  --fam-space-6: 2rem;
  --fam-space-7: 3rem;
  --fam-space-8: 4rem;

  /* Layout. */
  --fam-gutter: 1rem;
  --fam-max: 72rem;
  --fam-measure: 68ch;
  --fam-tap: 44px;
  --fam-radius: 10px;

  /* Type for footers and legal pages. A property may keep its own display face everywhere else. */
  --fam-font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fam-fs-fine: 0.875rem;
  --fam-fs-body: 1rem;
  --fam-fs-h3: 1.125rem;
  --fam-fs-h2: 1.375rem;
  --fam-fs-h1: clamp(1.75rem, 4vw, 2.25rem);
  --fam-lh-tight: 1.3;
  --fam-lh-body: 1.7;
  --fam-weight-body: 400;
  --fam-weight-strong: 600;
  --fam-weight-heading: 700;

  /* Motion. Short, and switched off for visitors who ask for less motion. */
  --fam-dur: 150ms;
  --fam-ease: ease-out;
}

/* Phone gutter is 16px. From 600px up it grows to 24px. */
@media (min-width: 600px) {
  :root {
    --fam-gutter: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --fam-dur: 0ms;
  }
}
