/* ==========================================================================
   RAQI — Design Tokens, Reset & Typography
   ========================================================================== */

/* ---------- Custom Properties (Design Tokens) ---------- */
:root {
  /* Colors — Light Luxury Palette */
  --ivory:        #FDFBF7;
  --cream:        #F7F3ED;
  --warm-white:   #FAF8F5;
  --beige:        #EDE8E0;
  --beige-dark:   #DDD6C8;
  --champagne:    #C9A96E;
  --champagne-light: #D4BC8E;
  --gold-dark:    #A8893A;
  --charcoal:     #2C2C2C;
  --graphite:     #4A4A4A;
  --mist:         #8A8A8A;
  --light-mist:   #B0A898;
  --teal-brand:   #2B5B5B;
  --white:        #FFFFFF;
  --black:        #000000;
  --overlay-light: rgba(253, 251, 247, 0.95);
  --overlay-dark:  rgba(44, 44, 44, 0.5);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Montserrat', 'Helvetica Neue', sans-serif;
  --font-accent:  'Cormorant', 'Georgia', serif;

  /* Font Sizes (clamp for fluid) */
  --fs-hero:      clamp(3rem, 8vw, 7rem);
  --fs-hero-sub:  clamp(1rem, 2vw, 1.5rem);
  --fs-display:   clamp(2.5rem, 5vw, 5rem);
  --fs-h1:        clamp(2rem, 4vw, 3.5rem);
  --fs-h2:        clamp(1.75rem, 3vw, 2.75rem);
  --fs-h3:        clamp(1.25rem, 2vw, 1.75rem);
  --fs-h4:        clamp(1.1rem, 1.5vw, 1.35rem);
  --fs-body:      clamp(0.95rem, 1.1vw, 1.1rem);
  --fs-body-lg:   clamp(1rem, 1.3vw, 1.25rem);
  --fs-small:     clamp(0.8rem, 0.9vw, 0.9rem);
  --fs-caption:   clamp(0.7rem, 0.8vw, 0.8rem);
  --fs-overline:  clamp(0.7rem, 0.8vw, 0.85rem);

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

  /* Layout */
  --max-width:      1400px;
  --max-width-narrow: 900px;
  --max-width-text:  720px;
  --nav-height:     80px;
  --border-radius:  2px;

  /* Transitions */
  --ease-out:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out:    cubic-bezier(0.42, 0, 0.58, 1);
  --ease-luxe:      cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast:  0.3s;
  --duration-med:   0.6s;
  --duration-slow:  1s;
  --duration-glacial: 1.5s;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg:    0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-nav:   0 1px 0 rgba(0, 0, 0, 0.06);
}


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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--ivory);
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

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

/* Remove default focus outline, add custom */
:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  color: var(--charcoal);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  margin-bottom: 1em;
  color: var(--graphite);
}

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

.display-text {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-text {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.overline {
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
}

.caption {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

.body-large {
  font-size: var(--fs-body-lg);
  line-height: 1.8;
}

.text-champagne { color: var(--champagne); }
.text-charcoal  { color: var(--charcoal); }
.text-mist      { color: var(--mist); }
.text-white     { color: var(--white); }

.italic {
  font-family: var(--font-display);
  font-style: italic;
}

/* Decorative line */
.line-accent {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--champagne);
  vertical-align: middle;
}

.line-accent--long {
  width: 100px;
}

/* Selection */
::selection {
  background-color: var(--champagne);
  color: var(--white);
}
