/* ============================================================================
   FENLAND PROPERTY HOLDINGS — Colour & Type Foundations
   ----------------------------------------------------------------------------
   Single source of truth for colour, typography, spacing, radii and elevation.
   Import this file first; everything else builds on these custom properties.

   Fonts are loaded from Google Fonts (see fonts/README.md). If you self-host,
   swap the @import below for local @font-face rules pointing at fonts/.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Hanken+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ---------------------------------------------------------------------- */
  /* 1. CORE PALETTE                                                        */
  /* ---------------------------------------------------------------------- */

  /* Ink — deep institutional navy. The primary brand colour.              */
  --navy-950: #0A1622;
  --navy-900: #0E1F30;
  --navy-800: #13293F;   /* PRIMARY — hero surfaces, headings on light     */
  --navy-700: #1B3A57;
  --navy-600: #27506F;
  --navy-500: #3C6790;
  --navy-400: #6E93B4;
  --navy-300: #A7C0D6;
  --navy-200: #D2E0EC;
  --navy-100: #E9F0F6;

  /* Brass — warm refined accent. Fen brick, harvest, the gilded datum.     */
  --brass-700: #8A6432;
  --brass-600: #9F7740;
  --brass-500: #B68A4E;  /* PRIMARY ACCENT                                  */
  --brass-400: #C9A368;
  --brass-300: #DCC192;
  --brass-200: #ECDDBF;
  --brass-100: #F6EFDF;

  /* Stone — warm neutral greys. Backgrounds, borders, body text.           */
  --stone-50:  #FAF8F4;  /* page background (light)                         */
  --stone-100: #F4F1EA;  /* raised surface / cards on tinted bg             */
  --stone-200: #E7E2D8;  /* hairline borders                                */
  --stone-300: #D5CEC1;
  --stone-400: #B3AA9A;
  --stone-500: #8A8070;  /* muted / disabled text                           */
  --stone-600: #645C4F;  /* secondary text                                  */
  --stone-700: #463F35;
  --stone-800: #2C271F;
  --white:     #FFFFFF;

  /* ---------------------------------------------------------------------- */
  /* 2. SEMANTIC COLOUR (earthy, muted — never neon)                        */
  /* ---------------------------------------------------------------------- */
  --success: #2E7D5B;   --success-soft: #E2F0E9;   --success-ink: #1C4F3A;
  --warning: #B8862F;   --warning-soft: #F8EED6;   --warning-ink: #7A5715;
  --danger:  #B5483D;   --danger-soft:  #F6E2DF;   --danger-ink:  #7A2A22;
  --info:    #3C6790;   --info-soft:    #E4ECF4;   --info-ink:    #244763;

  /* ---------------------------------------------------------------------- */
  /* 3. SEMANTIC SURFACE / TEXT ROLES                                       */
  /* ---------------------------------------------------------------------- */
  --bg:           var(--stone-50);   /* app/page background                 */
  --surface:      var(--white);      /* default card / panel                */
  --surface-sunk: var(--stone-100);  /* inset / tinted panel                */
  --surface-ink:  var(--navy-800);   /* dark hero / inverted section        */

  --fg1: var(--navy-900);   /* primary text & headings                      */
  --fg2: var(--stone-600);  /* secondary / body-supporting text             */
  --fg3: var(--stone-500);  /* muted, captions, meta                        */
  --fg-on-ink:  #EEF2F6;    /* primary text on navy                         */
  --fg2-on-ink: #A7C0D6;    /* secondary text on navy                       */

  --border:      var(--stone-200);   /* default hairline                    */
  --border-strong: var(--stone-300);
  --border-on-ink: rgba(255,255,255,0.14);

  --accent:        var(--brass-500);
  --accent-hover:  var(--brass-600);
  --accent-press:  var(--brass-700);
  --link:          var(--navy-600);

  /* ---------------------------------------------------------------------- */
  /* 4. TYPOGRAPHY — FAMILIES                                               */
  /* ---------------------------------------------------------------------- */
  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* ---------------------------------------------------------------------- */
  /* 5. TYPE SCALE  (1.250 major-third, rem-based, 16px root)               */
  /* ---------------------------------------------------------------------- */
  --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.875rem;  /* 46px */
  --text-4xl:  3.75rem;   /* 60px */
  --text-5xl:  4.75rem;   /* 76px */

  --leading-tight:   1.08;
  --leading-snug:    1.25;
  --leading-normal:  1.55;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide:  0.08em;
  --tracking-eyebrow: 0.18em;  /* mono eyebrows / labels                    */

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

  /* ---------------------------------------------------------------------- */
  /* 6. SPACING  (4px base grid)                                            */
  /* ---------------------------------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* ---------------------------------------------------------------------- */
  /* 7. RADII                                                               */
  /* ---------------------------------------------------------------------- */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;   /* default for cards, inputs                         */
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ---------------------------------------------------------------------- */
  /* 8. ELEVATION  (soft, low-contrast, warm-tinted shadows)                */
  /* ---------------------------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(20, 35, 55, 0.06);
  --shadow-sm: 0 1px 3px rgba(20, 35, 55, 0.08), 0 1px 2px rgba(20, 35, 55, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 35, 55, 0.08), 0 2px 4px rgba(20, 35, 55, 0.05);
  --shadow-lg: 0 12px 28px rgba(14, 31, 48, 0.12), 0 4px 10px rgba(14, 31, 48, 0.06);
  --shadow-xl: 0 28px 60px rgba(14, 31, 48, 0.18), 0 10px 20px rgba(14, 31, 48, 0.08);
  --ring-accent: 0 0 0 3px rgba(182, 138, 78, 0.30);
  --ring-focus:  0 0 0 3px rgba(60, 103, 144, 0.35);

  /* ---------------------------------------------------------------------- */
  /* 9. MOTION                                                              */
  /* ---------------------------------------------------------------------- */
  --ease-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;

  /* Container */
  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 64px);
}

/* ==========================================================================
   SEMANTIC TYPE CLASSES  — apply directly, or copy the rules into components.
   ========================================================================== */

.fph-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}

.fph-display {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg1);
}

.fph-h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg1);
}

.fph-h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg1);
}

.fph-h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--fg1);
}

.fph-h4 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg1);
}

.fph-lead {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--fg2);
}

.fph-body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--fg2);
}

.fph-small {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--fg3);
}

.fph-label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
  color: var(--fg1);
}

/* Data / metrics — tabular figures for prices, yields, percentages */
.fph-data {
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
  color: var(--fg1);
}
