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

/* ── Color palette ── */
:root {
  --color-cream:       #F7EDD8;
  --color-parchment:   #EDE0C0;
  --color-ink:         #2A1F14;
  --color-rose:        #C4788A;
  --color-rose-light:  #E8A8B8;
  --color-sage:        #7D9E80;
  --color-sage-light:  #A8C4AA;
  --color-gold:        #C4943A;
  --color-gold-light:  #E8C46A;
  --color-lavender:    #9B8EC4;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-ink);
  min-height: 100vh;
  cursor: none;
  overflow-x: hidden;
}

/* ── Paper grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 9998;
}

/* ── Page border frame ── */
body::after {
  content: '';
  position: fixed;
  inset: 10px;
  border: 1px solid rgba(196, 148, 58, 0.22);
  border-radius: 2px;
  pointer-events: none;
  z-index: 9997;
}

/* ── Custom cursor ── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-6px, -2px);
  will-change: left, top;
  transition: opacity 0.2s;
}

/* ── Sparkle particles ── */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  will-change: transform, opacity;
}

.sparkle svg {
  animation: sparkle-rise 0.85s ease-out forwards;
}

@keyframes sparkle-rise {
  0%   { opacity: 1;   transform: scale(1)   translateY(0)     rotate(0deg); }
  60%  { opacity: 0.7; }
  100% { opacity: 0;   transform: scale(0.2) translateY(-28px) rotate(80deg); }
}

/* ── Global nav ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2.5rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink);
  text-decoration: none;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-gold);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav a:hover {
  color: var(--color-rose);
}

.site-nav a:hover::after {
  width: 100%;
}

/* ── Fade-in utility ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fade-up 0.75s ease forwards;
}

/* ── Responsive nav ── */
@media (max-width: 600px) {
  .site-nav {
    padding: 1rem 1.5rem;
    gap: 1.2rem;
    justify-content: center;
    background: rgba(247, 237, 216, 0.92);
    backdrop-filter: blur(4px);
    flex-wrap: wrap;
  }
}
