/* ============================================
   THE SIMPLICITY TRAP — Design Tokens
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500;1,700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* ── Primary ── */
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dark:   #8B6914;
  --gold-subtle: rgba(201, 168, 76, 0.15);

  /* ── Backgrounds ── */
  --deep-navy:   #0A0E1A;
  --charcoal:    #111827;
  --dark-card:   #1A2035;
  --dark-card-hover: #222b45;

  /* ── Book Pages ── */
  --cream:       #F5EFE0;
  --cream-dark:  #EDE3CC;
  --ink:         #1C1C1E;
  --ink-light:   #3A3A3C;
  --ink-muted:   #6B6B6E;

  /* ── Accents ── */
  --crimson:     #8B1A1A;
  --silver:      #C0C0C0;
  --silver-muted: #8a8a8a;
  --success:     #2ecc71;
  --error:       #e74c3c;
  --error-bg:    rgba(231,76,60,0.1);

  /* ── Gradients ── */
  --hero-gradient: linear-gradient(135deg, #0A0E1A 0%, #1A2035 50%, #0D1117 100%);
  --gold-gradient: linear-gradient(90deg, #8B6914, #C9A84C, #E8C97A, #C9A84C, #8B6914);
  --card-gradient: linear-gradient(145deg, rgba(26,32,53,0.95), rgba(10,14,26,0.95));

  /* ── Typography ── */
  --font-display:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-heading:  'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-book:     'EB Garamond', 'Cormorant Garamond', Georgia, serif;

  /* ── Sizes ── */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* ── Spacing ── */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* ── Border Radius ── */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.2);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-xl:   0 16px 48px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 40px rgba(201,168,76,0.15);
  --shadow-glow: 0 0 60px rgba(201,168,76,0.08);

  /* ── Transitions ── */
  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;

  /* ── Z-Index ── */
  --z-base:     1;
  --z-dropdown: 10;
  --z-sticky:   20;
  --z-overlay:  50;
  --z-modal:    100;
  --z-curtain:  999;
}

/* ── Global Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: #e0e0e0;
  background: var(--deep-navy);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--gold-light);
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input {
  font-family: var(--font-body);
  outline: none;
  border: none;
}

::selection {
  background: var(--gold);
  color: var(--deep-navy);
}

/* ── Utility Classes ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.gold-text {
  color: var(--gold);
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--deep-navy);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}
