/* ==========================================================================
   PRANA SANCTUARY - BASE STYLES & TYPOGRAPHY
   ========================================================================== */

*, *::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;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(44, 94, 71, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(184, 142, 61, 0.05) 0%, transparent 50%);
  transform: translateZ(0);
}

/* Selection Styling */
::selection {
  background-color: var(--color-gold);
  color: var(--text-light);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-sage);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-forest);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-forest);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-hero);
  font-weight: 300;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  font-weight: 300;
}

h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 400;
}

h4 {
  font-size: var(--text-xl);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.01em;
}

p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.text-serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

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

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

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

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

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
}

/* Container & Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section-padding {
  padding-top: clamp(3rem, 5.5vw, 5rem);
  padding-bottom: clamp(3rem, 5.5vw, 5rem);
}

.section-padding-sm {
  padding-top: clamp(2rem, 3.5vw, 3.5rem);
  padding-bottom: clamp(2rem, 3.5vw, 3.5rem);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem) auto;
  position: relative;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-tag {
  display: none !important;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: var(--space-4);
}

/* Dark Section Inversion */
.theme-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3 {
  color: var(--text-light);
}

.theme-dark p {
  color: var(--text-light-secondary);
}

.theme-dark .section-subtitle {
  color: var(--text-light-muted);
}

/* Decorative Divider */
.zen-divider {
  display: none !important;
}
