/* ==========================================================================
   RentLens — Foundations
   Type: Inter Tight (display + UI) / Instrument Serif (editorial accents) /
         JetBrains Mono (numbers + data)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---------- Color: Neutrals (warm paper) ---------- */
  --paper:       #F7F4ED;   /* page bg — off-white with a warm tint */
  --paper-2:     #EFEAE0;   /* raised surface / subtle card bg */
  --surface:     #FFFFFF;   /* pure card surface */
  --ink:         #14201A;   /* primary text — near-black with green undertone */
  --ink-2:       #3B4A42;   /* secondary text */
  --ink-3:       #6B7A72;   /* tertiary / muted text */
  --ink-4:       #A3AEA7;   /* placeholder / disabled */
  --hairline:    #E4DED1;   /* divider on paper */
  --hairline-2:  #D8D1C0;   /* stronger divider */

  /* ---------- Color: Primary (forest / money) ---------- */
  --brand-50:    #EEF5EF;
  --brand-100:   #D6E7D8;
  --brand-200:   #A7CCAC;
  --brand-300:   #73AE7B;
  --brand-400:   #4C9156;
  --brand-500:   #2F7238;   /* primary */
  --brand-600:   #235A2B;
  --brand-700:   #1A4420;
  --brand-800:   #123016;
  --brand-900:   #0B1F0E;

  /* ---------- Color: Accent (amber / opportunity) ---------- */
  --amber-50:    #FBF3E2;
  --amber-100:   #F5E3B8;
  --amber-300:   #E9BE5F;
  --amber-500:   #D69A2C;   /* accent */
  --amber-700:   #8F6316;

  /* ---------- Color: Semantic ---------- */
  --good:        #2F7238;   /* positive cashflow, green metrics */
  --good-bg:     #E7F0E7;
  --warn:        #D69A2C;   /* medium risk */
  --warn-bg:     #FBF0DB;
  --bad:         #B83A2E;   /* negative cashflow, high risk */
  --bad-bg:      #F6E3DF;
  --info:        #2B5D8A;
  --info-bg:     #E1EBF3;

  /* ---------- Type: Families ---------- */
  --font-sans:   'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif:  'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-mono:   'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---------- Type: Scale ---------- */
  --text-xs:     12px;
  --text-sm:     13px;
  --text-base:   15px;
  --text-md:     17px;
  --text-lg:     20px;
  --text-xl:     24px;
  --text-2xl:    32px;
  --text-3xl:    44px;
  --text-4xl:    60px;
  --text-5xl:    80px;

  /* ---------- Spacing (4px base) ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---------- Radii ---------- */
  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-xs: 0 1px 0 rgba(20, 32, 26, 0.04);
  --shadow-sm: 0 1px 2px rgba(20, 32, 26, 0.06), 0 1px 1px rgba(20, 32, 26, 0.04);
  --shadow-md: 0 4px 10px -2px rgba(20, 32, 26, 0.08), 0 2px 4px rgba(20, 32, 26, 0.04);
  --shadow-lg: 0 12px 30px -8px rgba(20, 32, 26, 0.14), 0 4px 8px -2px rgba(20, 32, 26, 0.06);
  --shadow-xl: 0 24px 60px -12px rgba(20, 32, 26, 0.18), 0 8px 16px -4px rgba(20, 32, 26, 0.08);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(20,32,26,0.04);

  /* ---------- Motion ---------- */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img,
svg {
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

section[id],
div[id],
main[id],
aside[id] {
  scroll-margin-top: 88px;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  section[id],
  div[id],
  main[id],
  aside[id] {
    scroll-margin-top: 128px;
  }
}

/* ==========================================================================
   Semantic type classes — use these, not raw vars, inside components
   ========================================================================== */

.rl-display {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-4xl);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.rl-display-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-4xl);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.rl-h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-3xl);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.rl-h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.rl-h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.rl-h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.25;
  letter-spacing: -0.008em;
  color: var(--ink);
}

.rl-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink-2);
}

.rl-body-md {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--ink-2);
}

.rl-small {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--ink-3);
}

.rl-eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-xs);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rl-metric {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-3xl);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.rl-metric-sm {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.rl-mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.rl-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.3;
  color: var(--ink);
}

/* Base reset for body */
body.rl {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
