/* ============================================================
   FAENA v4 — Design tokens. Light/cream everywhere.
   ============================================================ */

@font-face {
  font-family: 'Exposure Italic';
  src: url('../assets/exposure-italic.ttf') format('truetype');
  font-weight: normal; font-style: italic; font-display: swap;
}

:root {
  /* ---------- Palette (light only) ---------- */
  --bg:           #FAFAF7;
  --surface:      #FFFFFF;
  --surface-2:    #F4F2EB;
  --surface-3:    #ECE9DF;
  --surface-4:    #E4E0D6;
  --ink:          #1A1A1A;
  --ink-2:        #3D3A36;
  --muted:        #6E6A65;
  --muted-2:      #9A958D;
  --border:       #E4E0D6;
  --border-2:     #D2CDC1;
  --accent:       #BE1E06;
  --accent-2:     #9A1804;
  --accent-soft:  #F6E5E1;
  --accent-text:  #7C1303;
  --success:      #4F7A2E;
  --success-soft: #E7F0DD;
  --warning:      #B45D17;
  --warning-soft: #F5E5D2;
  --danger:       #BE1E06;
  --danger-soft:  #F6E5E1;

  /* ---------- Shadows ---------- */
  --shadow-sm:    0 1px 2px rgba(20,18,14,0.04), 0 1px 3px rgba(20,18,14,0.04);
  --shadow-md:    0 4px 14px rgba(20,18,14,0.06);
  --shadow-lg:    0 20px 60px rgba(20,18,14,0.12);

  /* ---------- Radii ---------- */
  --r-sm: 4px;
  --r:    6px;
  --r-lg: 10px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* ---------- Spacing ---------- */
  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-5: 24px;
  --gap-6: 32px;

  /* ---------- Type ---------- */
  --t-serif:  'Instrument Serif', Georgia, serif;
  --t-display:'Exposure Italic', 'Instrument Serif', Georgia, serif;
  --t-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --t-mono:   'JetBrains Mono', Menlo, Consolas, monospace;

  /* ---------- Layout ---------- */
  --max-w: 1240px;
  --topbar-h: 56px;
  --bottomnav-h: 64px;
}

/* Safe-area aware bottom inset for iOS standalone */
@supports (padding: max(0px)) {
  :root { --bottomnav-h-safe: calc(64px + env(safe-area-inset-bottom)); }
}
