/* ==================================================
   BASE LAYOUT — GLOBAL FOUNDATION
   This file defines the design system and defaults
   ================================================== */

/* ==================================================
   01. RESET & NORMALIZATION
   ================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  
}

/* Media */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Forms */
input, button, textarea, select {
  font: inherit;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Lists */
ul, ol {
  list-style: none;
  padding: 0;
}

/* ==================================================
   02. DESIGN TOKENS (THE SYSTEM)
   ================================================== */

:root {
  /* Colors */
  --color-black: #000;
  --color-white: #fff;
  --color-text-primary: #111;
  --color-text-secondary: #333;
  --color-muted: #666;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --transition-fast: 0.25s ease;
  --transition-base: 0.4s ease;
}

/* ==================================================
   03. BASE DOCUMENT
   ================================================== */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-primary);

  /* Global cinematic background */
  background:
    radial-gradient(
      circle at -30% 70%,
      lab(69.49% 2.9 35.56 / 0.67),
      transparent 45%
    ),
    linear-gradient(135deg, #0b0b0b, #070707 70%);

  min-height: 100vh;
  overflow-x: hidden;
}


body::after {
  content: "";
  position: fixed;
  inset: -40%;
  pointer-events: none;
  z-index: -2;

  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(196,166,104,0.12),
      transparent 65%
    );

  animation: ambientLightDriftAlt 30s ease-in-out infinite;
}



@keyframes ambientLightDriftAlt {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(10%, -6%) scale(1.15); }
  100% { transform: translate(0,0) scale(1); }
}

@media (max-width: 768px) {
  body::before,
  body::after {
    animation-duration: 40s;
    opacity: 0.25;
  }
}




/* ==================================================
   04. TYPOGRAPHY SYSTEM
   ================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  color: #fff);
}

strong {
  font-weight: 600;
}

small {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ==================================================
   05. BASE ELEMENTS
   ================================================== */

hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: var(--space-lg) 0;
}

blockquote {
  padding-left: var(--space-md);
  border-left: 3px solid rgba(0,0,0,0.2);
  color: var(--color-text-secondary);
}

/* ==================================================
   06. GLOBAL UTILITIES
   ================================================== */

.container {
  max-width: 1800px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

.hidden {
  display: none !important;
}

/* ==================================================
   07. GLOBAL MOTION & ANIMATIONS
   ================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ==================================================
   08. RESPONSIVE BASELINE
   ================================================== */

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
}
