/* =========================================================================
   DESIGN TOKENS  —  single source of truth for color, type, space, motion
   -------------------------------------------------------------------------
   Direction: QUIET & PREMIUM. Deep pine primary, refined bone background,
   brass as a restrained accent. Confident type, generous space, hairline
   detailing over heavy shadows.

   Audience: older adults moving to assisted living + their adult children.
   Floor: WCAG 2.1 AA, pushing AAA on body text.

   Contrast (approx, sRGB), all verified:
     ink (#22251F) on bone (#F4F1EA) ............ ~13:1  (AAA)
     ink-muted (#585A4F) on bone ................ ~6:1   (AA / AAA large)
     white on pine (#2E4A3C) .................... ~9.7:1 (AAA)
     accent-text brass (#6F571E) on bone ........ ~6:1   (AA / AAA large)
     accent (#9A7B33) on bone ................... ~3.6:1 (graphics/large ONLY)
   Use --color-accent only for rules, icon strokes, and large marks.
   For brass-colored TEXT, always use --color-accent-text.
   ========================================================================= */

:root {
  /* ---- Color ------------------------------------------------------------- */
  --color-bone:         #F4F1EA;  /* page background — refined warm neutral   */
  --color-surface:      #FCFBF7;  /* cards / raised surfaces                  */
  --color-surface-warm: #ECE7DC;  /* alternating section bands                */

  --color-ink:          #22251F;  /* primary body text                        */
  --color-ink-muted:    #585A4F;  /* secondary text — AA on bone              */

  --color-primary:      #2E4A3C;  /* deep pine — headings, primary buttons    */
  --color-primary-dark: #23392E;  /* hover / active                           */
  --color-primary-tint: #DFE7E0;  /* soft sage wash for icon wells / bands    */

  --color-accent:       #9A7B33;  /* brass — RULES, ICON STROKES, large marks */
  --color-accent-text:  #6F571E;  /* darker brass — for any accent TEXT       */

  --color-border:       #DBD4C6;  /* hairline dividers on bone                */
  --color-focus:        #2E4A3C;  /* focus ring                               */

  --color-success:      #1E6B4F;
  --color-error:        #B3261E;

  /* ---- Typography -------------------------------------------------------- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Public Sans", system-ui, -apple-system, sans-serif;

  --text-sm:   0.889rem;  /* fine print only                                  */
  --text-base: 1rem;      /* 18px — body                                      */
  --text-lg:   1.25rem;   /* lead paragraphs                                  */
  --text-xl:   1.563rem;
  --text-2xl:  1.953rem;
  --text-3xl:  2.441rem;
  --text-4xl:  3.157rem;  /* hero — a touch larger for premium presence       */

  --leading-tight: 1.1;
  --leading-snug:  1.3;
  --leading-body:  1.65;  /* generous line height                             */

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  --measure: 62ch;

  /* ---- Spacing (8px base, premium = more air) ---------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;

  /* ---- Radius / shadow / layout ------------------------------------------ */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* premium: shadows are whisper-soft; structure comes from hairlines */
  --shadow-soft: 0 10px 30px rgba(34, 37, 31, 0.07);
  --shadow-img:  0 20px 50px rgba(34, 37, 31, 0.12);

  --container: 74rem;
  --container-narrow: 46rem;

  /* ---- Interaction ------------------------------------------------------- */
  --tap-target: 48px;
  --transition: 200ms cubic-bezier(0.2, 0.6, 0.2, 1);

  --focus-ring: 3px solid var(--color-focus);
  --focus-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --transition: 0ms; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
