:root {
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #FDF9F4;
  color: #4A3540;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.font-display { letter-spacing: -0.02em; }
.tracking-display { letter-spacing: -0.03em; }

.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.btn-spring {
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 280ms ease, background-color 240ms ease;
}
.btn-spring:hover { transform: translateY(-2px); }
.btn-spring:active { transform: translateY(0); }

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}
.no-js .fade-up,
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; }
}

.image-treat {
  position: relative;
  overflow: hidden;
}
.image-treat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 26, 36, 0.45) 0%, rgba(42, 26, 36, 0.05) 45%, transparent 80%);
  pointer-events: none;
}

.surface-base { background: #FFFFFF; }
.surface-elevated {
  background: #FFFFFF;
  border: 1px solid rgba(74, 53, 64, 0.06);
  box-shadow: 0 1px 2px rgba(74, 53, 64, 0.04), 0 12px 28px -10px rgba(184, 66, 94, 0.10);
}
.surface-floating {
  background: #FFFFFF;
  border: 1px solid rgba(74, 53, 64, 0.06);
  box-shadow: 0 4px 8px rgba(74, 53, 64, 0.06), 0 32px 64px -16px rgba(184, 66, 94, 0.18);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  background: #B8425E;
  color: #FDF9F4;
  font-weight: 500;
  font-size: 0.9375rem;
  box-shadow: 0 1px 2px rgba(74, 53, 64, 0.10), 0 8px 24px -8px rgba(184, 66, 94, 0.45);
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 280ms, background 240ms;
}
.btn-primary:hover {
  background: #962F47;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(74, 53, 64, 0.12), 0 20px 40px -12px rgba(184, 66, 94, 0.55);
}
.btn-primary:focus-visible { outline: 2px solid #B8425E; outline-offset: 3px; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  background: transparent;
  color: #2A1A24;
  font-weight: 500;
  font-size: 0.9375rem;
  border: 1px solid rgba(42, 26, 36, 0.18);
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), border-color 240ms, background 240ms;
}
.btn-ghost:hover {
  border-color: #B8425E;
  background: rgba(184, 66, 94, 0.06);
  transform: translateY(-2px);
}

.input-base {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border-radius: 0.875rem;
  background: #FFFFFF;
  border: 1px solid rgba(74, 53, 64, 0.14);
  color: #2A1A24;
  font-size: 0.9375rem;
  transition: border-color 200ms, box-shadow 200ms, background 200ms;
}
.input-base:focus {
  outline: none;
  border-color: #B8425E;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(184, 66, 94, 0.12);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6F7C61;
}
.section-eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: #C9A66B;
}

::selection {
  background: rgba(184, 66, 94, 0.25);
  color: #2A1A24;
}

.scroll-fade {
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
