/* Reset Moderno e Base — Estética Monástica */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(201, 162, 75, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
}

/* Ambient Candle Glows */
body::before {
  content: '';
  position: fixed;
  top: 5%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(235, 193, 102, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 5%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(130, 37, 48, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Seleção de Texto */
::selection {
  background-color: var(--gold-dark);
  color: #19120b;
}

/* Scrollbar Sacra */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface-lowest);
}

::-webkit-scrollbar-thumb {
  background: var(--border-gold);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-subtle);
}

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

/* Tipografia Base com Escala Fluida */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-primary);
  letter-spacing: 0.04em;
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: clamp(1.4rem, 4vw, 1.85rem); }
h2 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); }
h3 { font-size: clamp(1.05rem, 3vw, 1.3rem); }

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

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

a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 8px var(--gold-glow);
}

button {
  font-family: var(--font-title);
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}
