/* ─────────────────────────────────────────────────────────────
   Premavista Hub — base.css
   Design tokens, resets, typography. Lifted from the Premavista
   Proposal & Monthly Report templates so Hub UI and PDF outputs
   share one visual language.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Brand palette */
  --navy-900: #1a1f2e;
  --navy-700: #2a3045;
  --navy-500: #3a4055;
  --gold:     #c9a876;
  --bronze:   #8a7551;
  --cream:    #f7f5f0;
  --cream-soft: #fafaf8;
  --border-gray: #e3e2de;
  --text-dark:  #1a1f2e;
  --text-muted: #4a5068;
  --text-light: #f7f5f0;
  --danger:     #b04545;

  /* Type scale */
  /* Hub UI fonts. PDF templates keep Cormorant + Inter (already approved). */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rhythm */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 3px;
  --radius-md: 6px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);

  /* Letterspacing accents (small caps gold labels) */
  --tracking-eyebrow: 0.2em;
  --tracking-button:  0.15em;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--cream-soft);
  letter-spacing: -0.005em;          /* Inter modern default — slightly tighter */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* "cv11" = single-storey 'a' (more geometric, modern feel); "ss01" = the
     curved-corner alternate. Both small touches that make Inter look 2026. */
  font-feature-settings: "cv11", "ss01";
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--bronze); }

button { font-family: inherit; cursor: pointer; }

img { max-width: 100%; display: block; }

/* Eyebrow label (gold uppercase, tracked) — used liberally in editor + docs */
.eyebrow {
  font-size: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-weight: 600;
}

/* Display heading — Fraunces with optical sizing and gentle "SOFT" axis
   (Fraunces ranges 0–100; ~30 gives a softer, hospitality-warm feel without
   becoming wonky). The variable `wght` is set per-use via inline styles. */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.012em;          /* Fraunces sits slightly wider than Cormorant */
  font-optical-sizing: auto;          /* picks the right opsz cut per rendered size */
  font-variation-settings: "SOFT" 30; /* a touch softer than default */
}

/* Tighter tracking on larger sizes — Fraunces benefits more than Cormorant did. */
h1.display, h2.display, .display[style*="font-size: 32"], .display[style*="font-size: 36"], .display[style*="font-size: 56"] {
  letter-spacing: -0.02em;
}

/* Tabular numbers — for money columns */
.num { font-variant-numeric: tabular-nums; }
