/* DESIGN SYSTEM VARIABLES */
:root {
  /* Colors */
  --primary: #173C7B;         /* Deep Cyanotype Blue */
  --secondary: #F8F6F2;       /* Natural Ivory */
  --tertiary: #A9B89A;        /* Sage / Soft Green */
  --neutral: #2C2C2C;         /* Body Text Primary */
  --background: #FCFBF8;      /* Primary Warm Background */
  --surface: #FFFFFF;         /* Card Surface */
  --surface-alt: #F3F1EB;     /* Alternate Card Surface */
  --text-primary: #1D1D1D;    /* Intense Dark Neutral */
  --text-secondary: #666666;  /* Soft Dark Neutral */
  --border: #E6E2D9;          /* Separation Line Ivory */
  --accent: #2F6DB3;          /* Interactive Hover Blue */
  --accent-earth: #9C7A52;    /* Wood / Earth Details */
  --accent-forest: #556B4E;   /* Forest / Sage Highlights */
  --success: #668B63;
  --warning: #C49B42;

  /* Font Families */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;

  /* Spacing Scale */
  --spacing-base: 8px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  --spacing-xxxl: 96px;

  /* Layout Spacers */
  --section-padding: 120px;
  --container-padding: 80px;
  --card-padding: 40px;
  --grid-gap: 32px;
  --content-width: 1320px;
  --max-width: 1440px;

  /* Rounded Corners */
  --rounded-xs: 6px;
  --rounded-sm: 10px;
  --rounded-md: 16px;
  --rounded-lg: 24px;
  --rounded-xl: 32px;

  /* Shadows */
  --shadow-soft: 0px 10px 40px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0px 15px 50px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-medium: 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition-slow: 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition-duration-extra: 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--neutral);
  background-color: var(--background);
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.15;
}

.display-xl {
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.display-lg {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.heading-xl {
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.2;
}

.heading-lg {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.25;
}

.heading-md {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.3;
}

.body-lg {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.8;
  color: var(--neutral);
}

.body-md {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
}

.body-sm {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.label-md {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

p {
  margin-bottom: var(--spacing-sm);
}

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

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

/* UTILITY LAYOUT CLASSES */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section-half {
  padding-top: calc(var(--section-padding) / 2);
  padding-bottom: calc(var(--section-padding) / 2);
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

/* Grid Utilities */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Spacing Helpers */
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.m-bottom-xs { margin-bottom: var(--spacing-xs); }
.m-bottom-sm { margin-bottom: var(--spacing-sm); }
.m-bottom-md { margin-bottom: var(--spacing-md); }
.m-bottom-lg { margin-bottom: var(--spacing-lg); }
.m-bottom-xl { margin-bottom: var(--spacing-xl); }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* Visual Motif Items */
.divider {
  height: 1px;
  background-color: var(--border);
  width: 100%;
  margin: var(--spacing-xl) 0;
}

.museum-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  border-left: 2px solid var(--primary);
  padding-left: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

/* Animation utilities */
.reveal-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-fade.active {
  opacity: 1;
  transform: translateY(0);
}
