:root {
  --ivory: #f7f3ea;
  --ivory-light: #fdfbf7;
  --ink: #4a4038;
  --ink-soft: #7a7166;
  --gold: #c9a66b;
  --blue: #c7d3e0;
  --rose: #e3c9c2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  cursor: default;
  overflow-x: hidden;
}

h1, h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ambient light glow behind everything */
.glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140vw;
  height: 70vh;
  background: radial-gradient(closest-side, var(--ivory-light), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

header {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.5rem 1rem;
}

nav {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0.5rem 2rem;
  border-radius: 999px;
  background: var(--ivory-light);
  box-shadow: 0 1px 0 rgba(74, 64, 56, 0.06) inset, 0 6px 20px rgba(201, 166, 107, 0.12);
}

.nav-link {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  padding: 0.2rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--ink);
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

main {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  text-align: center;
}

.page {
  display: none;
}

.page.is-active {
  display: block;
  animation: fade-in 0.6s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

#home {
  padding-top: 2rem;
}

.halo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.5;
  position: relative;
}

.halo::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid var(--rose);
  opacity: 0.6;
}

#home h1 {
  font-size: 2.6rem;
  margin: 0 0 0.6rem;
}

.tagline {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0;
}

#about h2,
#gallery h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.panel {
  background: var(--ivory-light);
  border-radius: 32px;
  padding: 2.2rem 2rem;
  box-shadow: 0 10px 30px rgba(201, 166, 107, 0.1);
  text-align: left;
}

.panel p {
  margin: 0;
  color: var(--ink-soft);
}

.gallery-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.frames {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.frame {
  width: 130px;
  height: 130px;
  background: var(--ivory-light);
  border: 1px dashed var(--blue);
  opacity: 0.8;
}

.frame--circle {
  border-radius: 50%;
}

.frame--arch {
  border-radius: 50% 50% 8px 8px / 60% 60% 8px 8px;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

/* wing cursor trail */
.wing-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 999;
  opacity: 0.85;
  animation: wing-drift 0.9s ease-out forwards;
}

@keyframes wing-drift {
  from {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1) rotate(var(--rot, 0deg));
  }
  to {
    opacity: 0;
    transform: translate(-50%, -85%) scale(0.6) rotate(var(--rot, 0deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page.is-active {
    animation: none;
  }
  .wing-trail {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1.2rem;
    padding: 0.5rem 1.2rem;
  }
  #home h1 {
    font-size: 2.1rem;
  }
  .frame {
    width: 100px;
    height: 100px;
  }
}
