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

:root {
  --bg: #0a0805;
  --bg-surface: rgba(20, 15, 10, 0.72);
  --bg-surface-light: rgba(32, 24, 14, 0.85);
  --bg-card: rgba(18, 13, 8, 0.8);
  --text: #f4ead5;
  --text-muted: rgba(244, 234, 213, 0.62);
  --text-subtle: rgba(244, 234, 213, 0.35);
  --gold: #c9a961;
  --gold-light: #e8d098;
  --gold-dim: rgba(201, 169, 97, 0.12);
  --gold-border: rgba(201, 169, 97, 0.22);
  --gold-border-strong: rgba(201, 169, 97, 0.45);
  --cream: #f4ead5;
  --dark-warm: #1a120a;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --border: 1px solid var(--gold-border);

  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(201, 169, 97, 0.18);
  --shadow-glow-strong: 0 0 40px rgba(201, 169, 97, 0.32);

  --ease-out: cubic-bezier(0.2, 0.9, 0.3, 1);
  --transition-fast: 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
  --transition-base: 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);

  --z-canvas: -1;
  --z-base: 1;
  --z-nav: 100;
  --z-toast: 200;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--gold);
}

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

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

ul, ol {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

p {
  color: var(--text-muted);
}

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