/* ============ DESIGN TOKENS — BLACK & GOLD LUXURY ============ */
:root,
[data-theme="light"] {
  /* Surfaces — Porcelain cream com toque de preto */
  --color-bg: #f5f2ea;
  --color-bg-alt: #ebe6d8;
  --color-surface: #ffffff;
  --color-surface-2: #f0ebdd;
  --color-surface-offset: #e4ddc8;
  --color-surface-dynamic: #d2c9ae;
  --color-divider: #dcd3bc;
  --color-border: #c9bf9f;

  /* Text — Preto absoluto */
  --color-text: #1a1814;
  --color-text-strong: #0a0906;
  --color-text-muted: #56524a;
  --color-text-faint: #8a8578;
  --color-text-inverse: #faf6ea;

  /* Primary — Preto Ônix */
  --color-primary: #0a0906;
  --color-primary-hover: #1a1814;
  --color-primary-active: #000000;
  --color-primary-highlight: #e8e1cf;
  --color-primary-soft: #2a2620;

  /* Accent — Dourado Rico (Champagne → Antique) */
  --color-gold: #c9a961;
  --color-gold-hover: #b89548;
  --color-gold-active: #9c7d35;
  --color-gold-light: #e8d494;
  --color-gold-pale: #f4e8c8;
  --color-gold-deep: #7d6028;
  --color-gold-highlight: #f1e8cc;

  /* Support */
  --color-success: #2d6a4f;
  --color-success-highlight: #d4e8dc;
  --color-error: #a12c3a;

  /* Radius */
  --radius-xs: 0.125rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.625rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-refined: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --transition-fast: 200ms var(--ease-refined);
  --transition-base: 350ms var(--ease-refined);
  --transition-slow: 700ms var(--ease-expo);

  /* Shadows — Profundas e dramáticas */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 40px 96px rgba(0, 0, 0, 0.28), 0 16px 40px rgba(0, 0, 0, 0.14);
  --shadow-gold: 0 12px 32px rgba(201, 169, 97, 0.32), 0 4px 12px rgba(201, 169, 97, 0.18);
  --shadow-gold-lg: 0 20px 48px rgba(201, 169, 97, 0.4), 0 8px 20px rgba(201, 169, 97, 0.22);

  /* Widths */
  --content-narrow: 640px;
  --content-default: 1120px;
  --content-wide: 1320px;

  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --text-3xl: clamp(2.75rem, 1.5rem + 4.5vw, 5rem);
  --text-hero: clamp(3rem, 1.5rem + 6vw, 6rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Pattern */
  --pattern-grain: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.15) 1px, transparent 0);

  /* Gold gradient signature */
  --gradient-gold: linear-gradient(135deg, #e8d494 0%, #c9a961 45%, #9c7d35 100%);
  --gradient-gold-shine: linear-gradient(105deg,
    #9c7d35 0%,
    #c9a961 25%,
    #f4e8c8 45%,
    #e8d494 55%,
    #c9a961 75%,
    #9c7d35 100%);
  --gradient-black: linear-gradient(135deg, #1a1814 0%, #0a0906 50%, #000000 100%);
}

[data-theme="dark"] {
  /* Dark — Puro preto e dourado */
  --color-bg: #0a0906;
  --color-bg-alt: #100e0a;
  --color-surface: #13110d;
  --color-surface-2: #1a1814;
  --color-surface-offset: #221f18;
  --color-surface-dynamic: #2e2a20;
  --color-divider: #1f1c15;
  --color-border: #2e2a20;

  --color-text: #e8e1cc;
  --color-text-strong: #faf6ea;
  --color-text-muted: #9a9480;
  --color-text-faint: #5e594c;
  --color-text-inverse: #0a0906;

  --color-primary: #c9a961;
  --color-primary-hover: #e8d494;
  --color-primary-active: #f4e8c8;
  --color-primary-highlight: #1f1a0f;
  --color-primary-soft: #3a331f;

  --color-gold: #d4b56e;
  --color-gold-hover: #e8d494;
  --color-gold-active: #f4e8c8;
  --color-gold-light: #e8d494;
  --color-gold-pale: #3a331f;
  --color-gold-deep: #b89548;
  --color-gold-highlight: #2a2418;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 40px 96px rgba(0, 0, 0, 0.8);
  --shadow-gold: 0 12px 32px rgba(212, 181, 110, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0a0906;
    --color-surface: #13110d;
    --color-surface-2: #1a1814;
    --color-text: #e8e1cc;
    --color-text-strong: #faf6ea;
    --color-text-muted: #9a9480;
    --color-primary: #c9a961;
    --color-gold: #d4b56e;
    --color-divider: #1f1c15;
    --color-border: #2e2a20;
  }
}

/* ============ BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'], ol[role='list'] {
  list-style: none;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-text-strong);
  text-wrap: balance;
  font-feature-settings: 'liga', 'dlig';
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 70ch;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-gold); }

::selection {
  background: var(--color-gold);
  color: #0a0906;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@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;
  }
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 0;
  background: var(--color-primary);
  color: var(--color-gold-light);
  padding: var(--space-3) var(--space-4);
  z-index: 9999;
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (min-width: 768px) { .container { padding: 0 var(--space-8); } }
@media (min-width: 1200px) { .container { padding: 0 var(--space-10); } }
