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

:root {
  /* Palette — Editorial Luxury */
  --ivory: #FDFBF7;
  --ivory-dark: #F5F0E8;
  --espresso: #1A1814;
  --espresso-soft: #2A2722;
  --stone: #6B6560;
  --stone-light: #9C9690;
  --gold: #C4A77D;
  --gold-light: #D4C4A8;
  --gold-dark: #A88B63;
  --white: #FFFFFF;
  --black: #0D0C0A;

  /* Typography */
  --font-headline: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  /* Font scale */
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4rem;
  --text-7xl: 5rem;

  /* Spacing */
  --section-py: clamp(5rem, 10vw, 8rem);
  --content-max: 1200px;
  --content-wide: 1400px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --header-h: 80px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 700ms;

  /* Z-index */
  --z-header: 100;
  --z-overlay: 200;
  --z-grain: 300;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 24, 20, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 24, 20, 0.06);
  --shadow-lg: 0 8px 32px rgba(26, 24, 20, 0.08);
  --shadow-xl: 0 16px 48px rgba(26, 24, 20, 0.1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-light) var(--ivory-dark);
}

/* WebKit (Chrome, Safari, Edge) */
html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: var(--ivory-dark);
}

html::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 4px;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--espresso);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ---------- GRAIN OVERLAY ---------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 512px 512px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 500;
  line-height: 1.1;
  color: var(--espresso);
}

.headline-xl {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 500;
  line-height: 1.1;
}

.headline-md {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 500;
  line-height: 1.15;
}

.headline-sm {
  font-size: clamp(var(--text-xl), 2vw, var(--text-2xl));
  font-weight: 600;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  margin-right: 12px;
  vertical-align: middle;
}

.body-large {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--stone);
}

.body-default {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--stone);
}

.body-small {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--stone-light);
}

/* ---------- CONTAINERS ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- SECTION ---------- */
.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out-expo);
  white-space: nowrap;
}

.btn-primary {
  padding: 12px 24px;
  background: var(--espresso);
  color: var(--white);
  border-radius: var(--radius-full);
}

.btn-primary:hover {
  background: var(--espresso-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  padding: 12px 0;
  color: var(--espresso);
  position: relative;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--espresso);
  transition: width var(--duration-base) var(--ease-out-expo);
}

.btn-secondary:hover::after {
  width: 100%;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(26, 24, 20, 0.06);
  transition: all var(--duration-base) var(--ease-out-expo);
}

.btn-primary .btn-icon {
  background: rgba(255, 255, 255, 0.12);
}

.btn-primary:hover .btn-icon {
  transform: translateX(2px) translateY(-1px);
}

/* ---------- ENTRY ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- DIVIDER ---------- */
.rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light), transparent);
}

/* ---------- UTILITY ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 5rem;
  }
}
