/* REbuilder platform default palette — the "engineered instrument panel".
   Deliberately quiet so tenant themes carry personality.
   Tenants override these token VALUES; components never hardcode color. */

:root {
  /* ---- Structural surfaces ---- */
  --ink: #111827;            /* primary text / deepest structural near-black blue */
  --paper: #FCFCFA;          /* app / page background — warm-cool near-white */
  --surface: #FFFFFF;        /* card / raised background */
  --surface-sunken: #F4F5F3; /* inset / recessed background */
  --border: #E4E6E2;         /* hairline & divider color */
  --muted: #6B7280;          /* secondary text */

  /* ---- Brand action ---- */
  --accent: #1F4E79;         /* blueprint blue — trustworthy, instrument-like */
  --accent-fg: #FFFFFF;      /* text / icon on accent */
  --accent-hover: #1A4368;   /* accent, pressed/hover */
  --accent-soft: #EAF0F6;    /* tinted accent surface (info banners, active pills) */

  /* ---- Premium ---- */
  --premium: #A57B2E;        /* brass — premium moments only, NEVER a primary action */
  --premium-soft: #F4ECDD;   /* brass tint for luxury badges */

  /* ---- Semantic states (muted, used small) ---- */
  --success: #2E7D5B;
  --success-soft: #E6F1EC;
  --warning: #B7791F;
  --warning-soft: #F6EEDD;
  --danger: #B4402F;
  --danger-soft: #F7E7E3;
  --info: #2C6E9B;
  --info-soft: #E6F0F6;

  /* ---- Neutral ramp (cool gray) ---- */
  --n-50:  #F7F8F7;
  --n-100: #EEF0EE;
  --n-200: #E0E3E0;
  --n-300: #C9CDC9;
  --n-400: #9CA29C;
  --n-500: #6B716B;
  --n-600: #4B504B;
  --n-700: #353935;
  --n-800: #232623;
  --n-900: #141614;
}
/* REbuilder type system.
   Three roles. Display serif only above ~28px and only in front of house / page titles.
   Tabular figures wherever numbers must align. */

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ---- Type scale (rem) ---- */
  --text-xs:   0.75rem;   /* 12 */
  --text-sm:   0.875rem;  /* 14 — back-of-house body floor */
  --text-base: 1rem;      /* 16 */
  --text-md:   1.125rem;  /* 18 */
  --text-lg:   1.25rem;   /* 20 */
  --text-xl:   1.5rem;    /* 24 */
  --text-2xl:  1.875rem;  /* 30 */
  --text-3xl:  2.25rem;   /* 36 */
  --text-4xl:  3rem;      /* 48 */
  --text-5xl:  3.75rem;   /* 60 — front-of-house hero */

  /* ---- Weights (max two per view) ---- */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---- Line-height ---- */
  --leading-display: 1.15;
  --leading-tight: 1.25;
  --leading-body: 1.5;

  /* ---- Letter-spacing ---- */
  --tracking-display: -0.02em; /* large display */
  --tracking-normal: 0;
  --tracking-eyebrow: 0.08em;  /* small all-caps eyebrows */

  /* ---- Tabular figures helper ---- */
  --numeric-tabular: tabular-nums; /* @kind other */
}
/* REbuilder spacing, radius, elevation, motion.
   4px base. Most surfaces defined by hairlines + sunken fills, NOT drop shadows. */

:root {
  /* ---- Space (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;
  --space-32: 128px;

  /* ---- Radius ----
     front of house may use lg on hero/media; back of house stays sm–base */
  --radius-sm: 6px;
  --radius: 10px;   /* base */
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* ---- Elevation ----
     appears only when something genuinely floats */
  --e1: 0 1px 2px rgba(17, 24, 39, 0.06);
  --e2: 0 2px 8px rgba(17, 24, 39, 0.08);
  --e3: 0 8px 28px rgba(17, 24, 39, 0.12); /* modals, popovers only */

  /* ---- Motion ----
     transform/opacity only; respect prefers-reduced-motion */
  --motion-micro: 150ms ease-out; /* @kind other */
  --motion-entrance: 220ms ease-out; /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-micro: 1ms linear; /* @kind other */
    --motion-entrance: 1ms linear; /* @kind other */
  }
}
/* REbuilder base layer — resets, focus, and a few token-driven utilities.
   Kept minimal: the system is tokens + components, not a utility framework. */

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Visible keyboard focus on every interactive element (quality floor §6) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Display face: headlines / front-of-house / page titles only, above ~28px */
.rb-display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-semibold);
}

/* Tabular figures — prices, tables, counts, deed records */
.rb-numeric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Small all-caps eyebrow */
.rb-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}

::selection {
  background: var(--accent-soft);
}
