/* ==========================================================================
   MERALO DIGITAL - BASE & RESET STYLES (EDITORIAL & HERITAGE AESTHETIC)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Syne:wght@500;600;700;800&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle Warm Ambient Cursor Spotlight */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 163, 115, 0.08) 0%, rgba(244, 239, 230, 0.03) 45%, transparent 70%);
  z-index: 1;
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* Architectural Minimal Grid with Subtle Vintage Warmth */
.bg-ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(197, 160, 89, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 75%, rgba(192, 96, 68, 0.04) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 80px 80px, 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
}

.text-italic {
  font-style: italic;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

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

/* Selection Highlight */
::selection {
  background: var(--vintage-gold);
  color: #0A0B0D;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--vintage-gold);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
  position: relative;
  z-index: 2;
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  position: relative;
  z-index: 2;
}

/* Editorial Text Gradients & Colors */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.text-terracotta {
  color: var(--vintage-terracotta);
}

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

.text-sage {
  color: var(--vintage-sage);
}

/* Badge Utilities with Vintage / Archival Accents */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
}

.badge-glow {
  border-color: rgba(197, 160, 89, 0.4);
  background: rgba(197, 160, 89, 0.08);
  color: var(--vintage-ochre);
}

.badge-terracotta {
  border-color: rgba(192, 96, 68, 0.4);
  background: rgba(192, 96, 68, 0.09);
  color: #E2876D;
}

.badge-sage {
  border-color: rgba(94, 113, 99, 0.4);
  background: rgba(94, 113, 99, 0.12);
  color: #9DB4A2;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--vintage-gold);
  box-shadow: 0 0 10px var(--vintage-gold);
  animation: pulse-dot 2.4s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(197, 160, 89, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
  }
}

/* Section Header Shared */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}

.section-header .badge {
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
