/* ==========================================================================
   blok.mu — Design Tokens
   Colors + Typography + Spacing + Elevation
   ========================================================================== */

/* ---------- Fonts ----------
   Display/serif → Libre Baskerville (brand font, shipped locally in /fonts).
     Transitional serif with strong vertical stress and a screen-optimized
     x-height. Carries institutional/real-estate weight — right tone for
     land co-ownership. Use at display scales (28px+).
   UI/sans → Geist (Google Fonts, OFL). Neutral, modern, legal-quality.
   Mono → JetBrains Mono, used for numerical data + share counts. */
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-MediumItalic.ttf') format('truetype');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-BoldItalic.ttf') format('truetype');
  font-weight: 700; font-style: italic; font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ======================================================================
     COLORS — Palette
     ====================================================================== */

  /* Forest — primary brand. The deep green of the logo plate. */
  --forest-950: #0f1a12;   /* near-black, reserved for text on cream */
  --forest-900: #1a2a1f;
  --forest-800: #223328;   /* logo plate color, primary surface */
  --forest-700: #2b3a2e;
  --forest-600: #3a4d3f;
  --forest-500: #4c6152;
  --forest-400: #728874;
  --forest-300: #9fb0a0;
  --forest-200: #cad4cb;
  --forest-100: #e4ebe4;
  --forest-50:  #f2f6f2;

  /* Sand — warm neutral surfaces, off-white / paper */
  --sand-900: #3d342a;
  --sand-800: #5a4d3e;
  --sand-700: #7a6a57;
  --sand-500: #b8a789;
  --sand-300: #ddd1bd;
  --sand-200: #ece3d3;
  --sand-100: #f5efe3;
  --sand-50:  #faf6ee;    /* primary cream background */

  /* Stone — cool neutral, borders / dividers / secondary text */
  --stone-900: #1c1d1a;
  --stone-700: #4a4a45;
  --stone-500: #8a8a82;
  --stone-300: #c9c8c0;
  --stone-200: #e2e1d9;
  --stone-100: #efeee8;
  --stone-50:  #f6f5ef;

  /* Amber — investment accent. Muted, not neon. Think brass, not gold. */
  --amber-900: #5a3f15;
  --amber-700: #8a6220;
  --amber-500: #b5832c;    /* primary accent */
  --amber-400: #caa052;
  --amber-300: #dcc084;
  --amber-100: #f1e5c6;
  --amber-50:  #f9f2e0;

  /* Semantic status */
  --status-success: #4c7a4f;
  --status-success-bg: #e4efe2;
  --status-warning: #b07423;
  --status-warning-bg: #f6e9cf;
  --status-danger:  #9e3a2a;
  --status-danger-bg: #f3dcd5;
  --status-info:    #3a5a7a;
  --status-info-bg: #dde6ee;

  /* Pure */
  --white: #ffffff;
  --black: #0a0a0a;

  /* ======================================================================
     COLORS — Semantic
     ====================================================================== */

  /* Backgrounds */
  --bg-page: var(--sand-50);          /* warm cream, default page bg */
  --bg-surface: var(--white);         /* cards, panels */
  --bg-surface-raised: var(--white);
  --bg-surface-sunken: var(--sand-100);
  --bg-inverse: var(--forest-800);    /* dark hero sections, footer */
  --bg-subtle: var(--sand-100);       /* subtle blocks, muted panels */
  --bg-accent: var(--amber-50);

  /* Foregrounds */
  --fg1: var(--forest-950);           /* primary text */
  --fg2: var(--forest-600);           /* secondary text */
  --fg3: var(--stone-500);            /* tertiary / meta text */
  --fg-muted: var(--stone-500);
  --fg-inverse: var(--sand-50);       /* text on dark surfaces */
  --fg-inverse-2: var(--forest-200);  /* secondary text on dark */
  --fg-accent: var(--amber-700);
  --fg-link: var(--forest-700);

  /* Borders */
  --border: var(--stone-200);
  --border-strong: var(--stone-300);
  --border-subtle: var(--stone-100);
  --border-inverse: var(--forest-700);

  /* Brand primitives */
  --brand-primary: var(--forest-800);
  --brand-primary-hover: var(--forest-700);
  --brand-primary-press: var(--forest-900);
  --brand-on-primary: var(--sand-50);
  --brand-accent: var(--amber-500);
  --brand-accent-hover: var(--amber-400);
  --brand-accent-press: var(--amber-700);

  /* ======================================================================
     TYPOGRAPHY — Families
     ====================================================================== */
  --font-serif: 'Libre Baskerville', 'Iowan Old Style', 'Palatino Linotype',
                Georgia, serif;
  --font-sans:  'Geist', ui-sans-serif, system-ui, -apple-system,
                'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ======================================================================
     TYPOGRAPHY — Scale
     Type scale is 1.200 (minor third) for UI + hand-tuned display.
     ====================================================================== */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  30px;
  --text-3xl:  38px;
  --text-4xl:  52px;
  --text-5xl:  72px;
  --text-6xl:  104px;

  /* ======================================================================
     SPACING — 4px base
     ====================================================================== */
  --space-0:  0;
  --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;
  --space-32: 128px;

  /* ======================================================================
     RADII
     Tight. Real-estate/fintech mood, not bubbly SaaS.
     ====================================================================== */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ======================================================================
     ELEVATION / SHADOW
     Soft, warm-tinted shadows that sit on sand backgrounds cleanly.
     ====================================================================== */
  --shadow-xs: 0 1px 2px rgba(34, 51, 40, 0.04);
  --shadow-sm: 0 1px 2px rgba(34, 51, 40, 0.05),
               0 1px 1px rgba(34, 51, 40, 0.03);
  --shadow-md: 0 4px 10px -2px rgba(34, 51, 40, 0.08),
               0 2px 4px -2px rgba(34, 51, 40, 0.04);
  --shadow-lg: 0 12px 28px -6px rgba(34, 51, 40, 0.12),
               0 4px 10px -4px rgba(34, 51, 40, 0.06);
  --shadow-xl: 0 28px 60px -12px rgba(34, 51, 40, 0.18);
  --shadow-inset: inset 0 1px 2px rgba(34, 51, 40, 0.06);

  /* Focus ring — amber on a translucent halo, works on dark + light */
  --focus-ring: 0 0 0 3px rgba(181, 131, 44, 0.35);

  /* ======================================================================
     MOTION
     Calm, confidence-building. No bounces. No long-delay micro-animations.
     ====================================================================== */
  --ease-out: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* ======================================================================
     LAYOUT
     ====================================================================== */
  --page-max: 1240px;
  --container-pad-mobile: 20px;
  --container-pad-desktop: 40px;
}

/* ==========================================================================
   Global base
   ========================================================================== */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bg-page);
  color: var(--fg1);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
}

/* ==========================================================================
   Semantic Type Styles
   ========================================================================== */

/* Display — reserved for hero + headline moments. Serif, tight tracking.
   Libre Baskerville has a large x-height, pronounced vertical stress, and
   generous ink — so we pull line-height a touch tighter and drop the
   display scale one notch compared to Lora. Use Regular (400) for hero
   weight; Bold (700) for mid-scale emphasis. */
.display-xl,
.display-lg,
.display-md,
h1.display, h2.display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--fg1);
}
.display-xl { font-size: var(--text-6xl); }
.display-lg { font-size: var(--text-5xl); }
.display-md { font-size: var(--text-4xl); line-height: 1.1; }

/* Headings — sans, controlled weights */
h1, .h1 {
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--fg1);
}
h2, .h2 {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  line-height: 1.2;
  letter-spacing: -0.005em;
  font-weight: 600;
  color: var(--fg1);
}
h3, .h3 {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  line-height: 1.3;
  font-weight: 600;
  color: var(--fg1);
}
h4, .h4 {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.35;
  font-weight: 600;
  color: var(--fg1);
}

/* Body */
.body-lg { font-size: var(--text-md); line-height: 1.55; color: var(--fg1); }
.body    { font-size: var(--text-base); line-height: 1.55; color: var(--fg1); }
.body-sm { font-size: var(--text-sm); line-height: 1.5; color: var(--fg2); }

/* Eyebrow — small uppercase label above titles. Land-registry feeling. */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg2);
}

/* Meta / caption */
.meta {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--fg3);
}

/* Numeric — always mono for investment data, prices, shares */
.numeric,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Quote / editorial serif italic for testimonials */
.serif-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1.4;
  color: var(--fg1);
}
