/* === SANELLE DESIGN SYSTEM === */
:root {
  /* Colors */
  --ink: #0F0E0C;
  --ink-soft: #1A1815;
  --ink-line: #2A2622;
  --cream: #F5F1EB;
  --cream-warm: #EDE6DB;
  --paper: #FAF7F2;
  --brass: #B8924A;
  --brass-light: #D4B574;
  --taupe: #8B7355;
  --taupe-soft: #C9B79C;
  --muted: #8A8278;
  --line: rgba(15, 14, 12, 0.12);
  --line-dark: rgba(245, 241, 235, 0.14);

  /* Type */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv01';
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* Typographic primitives */
.serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Layout primitives */
.container { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.container-tight { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-light); transform: translateY(-1px); }
.btn-ghost-dark { background: transparent; color: var(--cream); border: 1px solid var(--line-dark); }
.btn-ghost-dark:hover { background: rgba(245,241,235,0.08); border-color: rgba(245,241,235,0.4); }
.btn-ghost-light { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost-light:hover { background: rgba(15,14,12,0.04); border-color: rgba(15,14,12,0.4); }
.btn-arrow {
  display: inline-block;
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1);
}
.btn-arrow::after {
  content: ''; position: absolute; right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2,0.8,0.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.75s; }

@media (max-width: 900px) {
  .container, .container-tight { padding: 0 24px; }
}

/* Section divider */
.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}
.divider-dark { background: var(--line-dark); }

/* Inputs */
.field {
  display: flex; flex-direction: column; gap: 8px;
}
.field label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 14px;
  font-size: 17px;
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--brass);
}
.field.dark input, .field.dark textarea, .field.dark select {
  color: var(--cream);
  border-bottom-color: var(--line-dark);
}
.field.dark label { color: rgba(245,241,235,0.55); }
.field.dark input:focus, .field.dark textarea:focus { border-bottom-color: var(--brass-light); }
.field .err { font-size: 12px; color: #c5524a; min-height: 16px; }
