@import url('fonts.css');

:root {
  /* --- Surfaces & Backgrounds --- */
  --bg-canvas: #09090B;
  --bg-surface: #111114;
  --bg-surface-2: #18181C;
  --bg-surface-elevated: #202026;
  --bg-surface-glass: rgba(17, 17, 20, 0.85);

  /* --- Backward Compatible Aliases --- */
  --primary: #09090B;
  --secondary: #111114;
  --bg-primary: #09090B;
  --bg-secondary: #111114;
  --bg-elevated: #202026;
  --accent: #C9A24B;
  --accent-hover: #C9A24B;

  /* Warm Product Media Tile (Ensures white-background photos blend gracefully) */
  --tile-product-media: #ECE8DF;
  --tile-product-media-subtle: #E2DDD3;

  /* --- Borders (Precision 1px Hairlines) --- */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-muted: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-gold: rgba(201, 162, 75, 0.35);
  --border-gold-hover: rgba(201, 162, 75, 0.70);
  --border-gold-focus: #C9A24B;

  /* --- Typography & Text Colors --- */
  --text-primary: #F4F1EA;
  --text-secondary: #B3AEA3;
  --text-muted: #736E65;
  --text-inverse: #0B0B0C;
  --text-on-gold: #0B0B0C;

  /* --- Champagne Gold Accent (Strictly Flat — Zero Gaudy Gradients/Glows) --- */
  --gold-primary: #C9A24B;
  --gold-hover: #C9A24B;
  --gold-pressed: #B38E3D;
  --gold-subtle-bg: rgba(201, 162, 75, 0.08);
  --gold-subtle-bg-hover: rgba(201, 162, 75, 0.14);

  /* --- Functional Status Colors --- */
  --status-success: #3FB27F;
  --status-success-bg: rgba(63, 178, 127, 0.12);
  --status-error: #E5484D;
  --status-error-bg: rgba(229, 72, 77, 0.12);
  --status-warning: #F5A623;
  --status-warning-bg: rgba(245, 166, 35, 0.12);
  --status-info: #3A82EE;

  /* --- Type Families (Strict 2 Families + 1 Utility Mono) --- */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  /* --- Fluid Typography Scales --- */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md: 1.125rem;    /* 18px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 2rem;       /* 32px */
  --text-3xl: 2.5rem;     /* 40px */
  --text-hero: clamp(2.25rem, 5.5vw, 4.25rem);

  /* --- Spacing System (4px / 8px Modular Scale) --- */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */

  /* --- Radii --- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* --- Shadows (Restrained Natural Depth, No Neon Halos) --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.50);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.55);

  /* --- Transitions --- */
  --motion-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --motion-normal: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --motion-slow: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Touch Targets --- */
  --touch-target-min: 44px;
  --touch-target-hero: 54px;

  /* --- Header & Layout Heights --- */
  --header-height-desktop: 58px;
  --header-height-mobile: 56px;
  --bottom-nav-height: 64px;
}

/* Base Accessibility Reset */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Remove default link underlines universally on buttons and UI components */
a, button {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* Strict keyboard focus visibility */
:focus-visible {
  outline: 2px solid var(--gold-primary) !important;
  outline-offset: 3px !important;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}
