/* ============================================================================
   RESOLUTE PROPERTY PARTNERS — Foundations
   Colour + Type tokens. Import this file into any artifact:
       <link rel="stylesheet" href="colors_and_type.css">
   Fonts load from Google Fonts (EB Garamond — the brand wordmark face — and
   Libre Franklin for UI/labels). See README "VISUAL FOUNDATIONS".
   ========================================================================== */


:root {
  /* ---------------------------------------------------------------------- */
  /* BRAND CORE — the three canonical tokens (from the logo pack)            */
  /* ---------------------------------------------------------------------- */
  --navy:  #090F1D;   /* primary ink / dark ground                          */
  --gold:  #C9A961;   /* accent — the chief of the shield                   */
  --ivory: #F5F1E7;   /* warm paper / reversed wordmark                     */

  /* ---------------------------------------------------------------------- */
  /* NAVY SCALE — the dark ground and the surfaces built on it              */
  /* ---------------------------------------------------------------------- */
  --navy-900: #060A14;  /* deepest — footers, overlays                      */
  --navy-850: #090F1D;  /* = --navy. Canonical brand navy                   */
  --navy-800: #0D1422;  /* raised panel on navy                            */
  --navy-700: #141D31;  /* card surface on navy                            */
  --navy-600: #1E2942;  /* hairline / divider on navy                      */
  --navy-500: #2B3950;  /* stronger border on navy                         */
  --navy-400: #3A4A66;  /* strongest border / icon stroke on navy          */
  --navy-tint-text: #9AA6BC; /* muted body text on navy                    */
  --navy-tint-faint: #6A788F;/* faint captions on navy                     */

  /* ---------------------------------------------------------------------- */
  /* GOLD SCALE — accent. Use sparingly; never as a large fill.             */
  /* ---------------------------------------------------------------------- */
  --gold-200: #EBDDBE;  /* tint — fills, washes on navy                     */
  --gold-300: #DFC994;
  --gold-400: #D4B97B;
  --gold-500: #C9A961;  /* = --gold. Base accent                           */
  --gold-600: #B5934B;  /* hover                                           */
  --gold-700: #98793A;  /* press / gold text on light for legibility       */
  --gold-800: #6E561F;  /* deep — gold text small on ivory (AA)            */

  /* ---------------------------------------------------------------------- */
  /* STONE — warm neutral scale for light surfaces                          */
  /* ---------------------------------------------------------------------- */
  --stone-50:  #FBFAF5;  /* page — the lightest warm white                  */
  --stone-100: #F5F1E7;  /* = --ivory. Section fill                         */
  --stone-200: #EDE8DB;  /* alt surface / table stripe                      */
  --stone-300: #DED7C7;  /* card border on light                           */
  --stone-400: #C4BBA7;  /* strong divider                                  */
  --stone-500: #9A917E;  /* disabled / faint text                          */
  --stone-600: #6F6757;  /* — */

  /* ---------------------------------------------------------------------- */
  /* INK — text neutrals on light grounds                                   */
  /* ---------------------------------------------------------------------- */
  --ink-1: #090F1D;  /* primary text (navy)                                */
  --ink-2: #3C434F;  /* secondary text                                     */
  --ink-3: #6B7280;  /* muted / captions                                   */
  --ink-4: #97A0AB;  /* faint / placeholder                                */

  /* ---------------------------------------------------------------------- */
  /* FUNCTIONAL — deep, desaturated. Institutional, never neon.             */
  /* ---------------------------------------------------------------------- */
  --positive:   #3E6B52;  /* gains, confirmed                              */
  --positive-bg:#E7EEE8;
  --negative:   #9B3B36;  /* losses, errors — a muted claret              */
  --negative-bg:#F2E4E2;
  --caution:    #E3B71B;  /* attention — a true amber-yellow              */
  --caution-bg: #FAF1C6;
  --info:       #3F5B73;  /* neutral steel blue                            */
  --info-bg:    #E5EAEF;

  /* ---------------------------------------------------------------------- */
  /* SEMANTIC SURFACE ROLES (light mode default)                            */
  /* ---------------------------------------------------------------------- */
  --bg-page:      var(--stone-50);
  --bg-surface:   #FFFFFF;
  --bg-subtle:    var(--ivory);
  --bg-inverse:   var(--navy);
  --border-hair:  var(--stone-300);
  --border-strong:var(--stone-400);
  --fg:           var(--ink-1);
  --fg-muted:     var(--ink-3);
  --accent:       var(--gold);
  --accent-ink:   var(--gold-800);   /* gold-as-text on light               */

  /* ---------------------------------------------------------------------- */
  /* TYPE FAMILIES                                                          */
  /* ---------------------------------------------------------------------- */
  --font-display: 'EB Garamond', 'Hoefler Text', Garamond, 'Times New Roman', serif;
  --font-serif:   'EB Garamond', 'Hoefler Text', Garamond, 'Times New Roman', serif;
  --font-sans:    'Libre Franklin', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-mono:    'SF Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;

  /* Fluid display sizes (clamp: min, preferred, max) ---------------------- */
  --fs-display:  clamp(3rem, 1.5rem + 6vw, 6rem);     /* hero               */
  --fs-h1:       clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  --fs-h2:       clamp(1.75rem, 1.2rem + 2.1vw, 2.75rem);
  --fs-h3:       clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  --fs-h4:       1.375rem;
  --fs-lead:     1.3125rem;   /* standfirst / intro                         */
  --fs-body:     1.0625rem;
  --fs-body-sm:  0.9375rem;
  --fs-caption:  0.8125rem;
  --fs-eyebrow:  0.75rem;

  /* Weights --------------------------------------------------------------- */
  --w-light: 300; --w-regular: 400; --w-medium: 500; --w-semibold: 600; --w-bold: 700;

  /* Letter-spacing — the brand's signature wide caps ---------------------- */
  --ls-eyebrow: 0.22em;   /* matches "PROPERTY PARTNERS"                     */
  --ls-caps:    0.14em;
  --ls-tight:   -0.01em;  /* large serif display                            */

  /* Line-heights ---------------------------------------------------------- */
  --lh-tight: 1.08;
  --lh-snug:  1.2;
  --lh-body:  1.62;

  /* ---------------------------------------------------------------------- */
  /* SPACING — 4px base scale                                              */
  /* ---------------------------------------------------------------------- */
  --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;

  /* RADII — restrained. The brand reads square-ish & solid.               */
  --r-xs: 2px; --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-pill: 999px;

  /* BORDERS */
  --bw-hair: 1px; --bw-rule: 2px;

  /* SHADOWS — soft, low, never coloured. Permanence over flash.           */
  --shadow-sm: 0 1px 2px rgba(9,15,29,0.06), 0 1px 1px rgba(9,15,29,0.04);
  --shadow-md: 0 4px 14px rgba(9,15,29,0.08), 0 1px 3px rgba(9,15,29,0.05);
  --shadow-lg: 0 18px 48px rgba(9,15,29,0.14), 0 4px 12px rgba(9,15,29,0.08);

  /* MOTION — measured. No bounce. */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 140ms; --dur: 240ms; --dur-slow: 420ms;

  /* LAYOUT */
  --measure: 68ch;          /* readable line length                        */
  --container: 1200px;      /* site content max-width                      */
  --container-wide: 1360px;
}

/* ==========================================================================
   SEMANTIC ELEMENT STYLES — opt-in via the .rpp scope so importing files
   don't get their resets clobbered. Wrap content in <body class="rpp"> or
   any <div class="rpp"> to inherit the brand defaults.
   ========================================================================== */
.rpp {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rpp h1, .rpp h2, .rpp h3, .rpp h4,
.rpp .display { font-family: var(--font-display); font-weight: var(--w-regular); color: var(--ink-1); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); }

.rpp .display { font-size: var(--fs-display); }
.rpp h1 { font-size: var(--fs-h1); }
.rpp h2 { font-size: var(--fs-h2); }
.rpp h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
.rpp h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }

/* The brand's signature label — wide letterspaced sans caps */
.rpp .eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--accent-ink);
}

.rpp .lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); font-family: var(--font-serif); }
.rpp p { max-width: var(--measure); }
.rpp .caption { font-size: var(--fs-caption); color: var(--ink-3); }
.rpp .serif { font-family: var(--font-serif); }
.rpp .tnum { font-variant-numeric: tabular-nums; }

.rpp a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

/* A hairline rule, like the one under the wordmark */
.rpp .brand-rule { width: 64px; height: 2px; background: var(--gold); border: 0; margin: var(--space-4) 0; }
