/* ==========================================================================
   CSS Custom Properties
   Welcome Home Properties — warm neutrals, typography-led
   ========================================================================== */

:root {
  /* Colors — warm neutral palette
     ---------------------------------------------------------------------- */
  --color-charcoal: #1E1B18;
  --color-stone:    #6B6560;
  --color-pebble:   #B5AFA6;
  --color-linen:    #F0EDEA;
  --color-cream:    #FAF9F6;
  --color-brass:    #8C7B66;

  /* Functional colors (use only in context) */
  --color-sage:     #6B7F6B;  /* success states only */
  --color-clay:     #9B6B5B;  /* error states only */

  /* Typography
     ---------------------------------------------------------------------- */
  --font-heading: 'freight-text-pro', Charter, 'Bitstream Charter', Cambria, Georgia, serif;
  --font-body:    'freight-sans-pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Type scale — 1.25 modular scale from 16px base */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-md:    1.125rem;   /* 18px */
  --text-lg:    1.375rem;   /* 22px */
  --text-xl:    1.75rem;    /* 28px */
  --text-2xl:   2.25rem;    /* 36px */
  --text-3xl:   2.8rem;     /* ~45px */

  /* Line heights */
  --leading-tight:  1.25;
  --leading-snug:   1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  /* Letter spacing */
  --tracking-tight:  -0.01em;
  --tracking-normal:  0;
  --tracking-wide:    0.02em;
  --tracking-wider:   0.05em;
  --tracking-caps:    0.08em;

  /* Spacing
     ---------------------------------------------------------------------- */
  --space-xs:   0.25rem;   /*  4px */
  --space-sm:   0.5rem;    /*  8px */
  --space-md:   1rem;      /* 16px */
  --space-lg:   1.5rem;    /* 24px */
  --space-xl:   2rem;      /* 32px */
  --space-2xl:  3rem;      /* 48px */
  --space-3xl:  4rem;      /* 64px */
  --space-4xl:  5rem;      /* 80px */

  /* Container */
  --container-max: 1440px;
  --container-padding: var(--space-lg);

  /* Border radius */
  --radius-sm:  2px;
  --radius-md:  4px;
  --radius-lg:  8px;

  /* Transitions
     ---------------------------------------------------------------------- */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Shadows — subtle only
     ---------------------------------------------------------------------- */
  --shadow-sm:  0 1px 2px rgba(30, 27, 24, 0.06);
  --shadow-md:  0 2px 8px rgba(30, 27, 24, 0.08);
  --shadow-lift: 0 4px 12px rgba(30, 27, 24, 0.1);

  /* Short aliases — match the design's colors_and_type.css naming so new
     chrome/footer and page-level CSS can reference short names site-wide. */
  --charcoal: var(--color-charcoal);
  --stone:    var(--color-stone);
  --pebble:   var(--color-pebble);
  --linen:    var(--color-linen);
  --cream:    var(--color-cream);
  --brass:    var(--color-brass);
  --sage:     var(--color-sage);
  --clay:     var(--color-clay);
  --fg:       var(--color-charcoal);

  --font-serif: var(--font-heading);
  --font-sans:  var(--font-body);

  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --radius-input:  4px;
  --radius-button: 6px;
  --radius-card:   8px;

  /* Layout chrome */
  --switcher-h:       36px;
  --header-h-desktop: 72px;
  --header-h-mobile:  64px;

  /* Reading-width caps */
  --measure:      68ch;
  --measure-wide: 80ch;

  /* OpenType numerals */
  --numerals-default:  "lnum", "pnum";
  --numerals-tabular:  "lnum", "tnum";

  /* Motion */
  --dur-fast:  120ms;
  --dur-base:  200ms;
  --dur-slow:  400ms;
}
