/* ─────────────────────────────────────────────────────────────
   Premavista Hub — base.css
   Brand tokens shared by Hub UI and PDFs. The Hub UI (editor.css)
   redefines a handful of these tokens inside `body.editor` to flip
   from PDF cream/dark into a modern light admin surface — see there.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Brand palette (do not change) */
  --navy-900: #1a1f2e;
  --navy-700: #2a3045;
  --navy-500: #3a4055;
  --gold:     #c9a876;
  --gold-soft: #efe1c7;
  --bronze:   #8a7551;
  --cream:    #f7f5f0;
  --cream-soft: #fafaf8;

  /* Neutral / surface tokens (used by Hub UI; PDFs keep their own colours) */
  --surface:        #ffffff;
  --surface-2:      #f6f3ec;
  --surface-3:      #efeae0;
  --border:         #ebe7dc;
  --border-strong:  #d7d1c2;

  /* Text */
  --text-dark:  #1a1f2e;
  --text-muted: #5b6076;
  --text-soft:  #8a8e9c;
  --text-light: #f7f5f0;          /* foreground on dark surfaces (PDF defaults) */
  --danger:     #b04545;
  --success:    #4e7c5e;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Brand wordmark — modern geometric sans (logo only; headlines stay serif). */
  --font-brand:   'Sora', var(--font-body);

  /* 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;

  /* Modern rounded radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Soft layered shadows */
  --shadow-xs: 0 1px 2px rgba(26, 31, 46, 0.04);
  --shadow-sm: 0 2px 6px rgba(26, 31, 46, 0.05), 0 1px 2px rgba(26, 31, 46, 0.04);
  --shadow-md: 0 6px 18px rgba(26, 31, 46, 0.07), 0 1px 3px rgba(26, 31, 46, 0.04);
  --shadow-lg: 0 18px 40px rgba(26, 31, 46, 0.12);

  /* Tracking (used selectively, not all-caps everywhere any more) */
  --tracking-eyebrow: 0.10em;
  --tracking-button:  0.02em;
}

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

html, body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--cream-soft);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* "cv11" = single-storey 'a'; "ss01" = curved-corner alternates. Modernises Inter. */
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
}

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

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

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

/* Eyebrow label — softer, modern small-caps style.
   Used as a category/section label above headings and inside cards. */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-weight: 600;
}

/* Editorial display heading — Fraunces with optical sizing for hospitality warmth. */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30;
}
h1.display, h2.display { letter-spacing: -0.022em; line-height: 1.08; }

/* Tabular numbers — money + counters never jitter when values change. */
.num { font-variant-numeric: tabular-nums; }

/* Honour user preferences. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus ring used across interactive elements (a11y baseline). */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
