/* ==========================================================================
   TOKENS
========================================================================== */
:root {
  --ivory: #FBF7F1;
  --paper: #F6F1E8;
  --ink: #2A2622;
  --pine: #2F3E30;
  --pine-deep: #1F2A20;
  --rose: #C98A93;
  --gold: #A8834A;
  --gold-soft: #D9C6A3;

  --display: 'Cormorant Garamond', serif;
  --body: 'Jost', sans-serif;

  --max-w: 720px;
  --section-pad: clamp(64px, 12vw, 128px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

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

/* ==========================================================================
   NAV
========================================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(251, 247, 241, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(42, 38, 34, 0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--pine);
}

.nav-mark .amp {
  color: var(--rose);
  font-style: italic;
  margin: 0 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--pine);
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-bottom: 1px solid rgba(42, 38, 34, 0.08);
  }
  .nav-links.is-open { max-height: 320px; }
  .nav-links a {
    padding: 16px 24px;
    border-top: 1px solid rgba(42, 38, 34, 0.06);
  }
}

/* ==========================================================================
   HERO
========================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(169, 131, 74, 0.08), transparent 60%),
    var(--ivory);
}

.sprig--hero {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 460px);
  transform: translate(-50%, -50%);
  opacity: 0.55;
  pointer-events: none;
}

.sprig-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.sprig-dot {
  fill: var(--rose);
}

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}

.hero-names {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 11vw, 108px);
  line-height: 1;
  margin: 0;
  color: var(--pine);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 3vw, 28px);
}

.amp-lg {
  font-style: italic;
  color: var(--rose);
  font-size: 0.65em;
}

.hero-sub {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--ink);
  margin: 18px 0 0;
  position: relative;
  z-index: 1;
}

.hero-meta {
  margin: 36px 0 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine);
  position: relative;
  z-index: 1;
}

.hero-date {
  font-weight: 500;
}

.hero-divider {
  margin: 0 10px;
  color: var(--gold);
}

.hero-place {
  color: rgba(42, 38, 34, 0.65);
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: rgba(42, 38, 34, 0.2);
}

.scroll-cue span {
  position: absolute;
  top: 0; left: -2px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: cue-move 2.2s ease-in-out infinite;
}

@keyframes cue-move {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 44px; opacity: 0; }
}

/* ==========================================================================
   BUTTONS
========================================================================== */
.btn {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 40px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  position: relative;
  z-index: 1;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--ghost {
  border: 1px solid var(--pine);
  color: var(--pine);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--pine);
  color: var(--ivory);
}

.btn--solid {
  background: var(--pine);
  color: var(--ivory);
  border: 1px solid var(--pine);
}

.btn--solid:hover {
  background: var(--pine-deep);
  border-color: var(--pine-deep);
}

/* ==========================================================================
   SECTIONS (shared)
========================================================================== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) 24px;
  text-align: center;
}

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--pine);
  margin: 0 0 32px;
}

.divider {
  width: 200px;
  margin: 0 auto 8px;
  opacity: 0.8;
}

/* ==========================================================================
   STORY
========================================================================== */
.section--story {
  background: var(--paper);
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.story-copy {
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
  color: rgba(42, 38, 34, 0.85);
}

.story-copy code {
  background: rgba(169, 131, 74, 0.12);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* ==========================================================================
   DETAILS
========================================================================== */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .details-grid { grid-template-columns: 1fr; }
}

.detail-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 36px 24px;
  border: 1px solid rgba(169, 131, 74, 0.3);
}

.detail-label {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--rose);
  margin-bottom: 6px;
}

.detail-time {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
}

.detail-venue {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  margin-top: 8px;
}

.detail-address {
  font-size: 14px;
  color: rgba(42, 38, 34, 0.6);
}

.details-note {
  margin-top: 40px;
  font-size: 14px;
  font-style: italic;
  color: rgba(42, 38, 34, 0.55);
}

/* ==========================================================================
   PARTY
========================================================================== */
.party-note {
  color: rgba(42, 38, 34, 0.65);
}

/* ==========================================================================
   RSVP / REGISTRY
========================================================================== */
.section--rsvp {
  background: var(--pine);
  max-width: 100%;
  color: var(--ivory);
}

.section--rsvp .eyebrow { color: var(--gold-soft); }
.section--rsvp .section-title { color: var(--ivory); }
.section--rsvp .rsvp-copy {
  max-width: 520px;
  margin: 0 auto;
  color: rgba(251, 247, 241, 0.8);
}

.section--rsvp .btn--solid {
  background: var(--ivory);
  color: var(--pine);
  border-color: var(--ivory);
}

.section--rsvp .btn--solid:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.registry-copy {
  max-width: 520px;
  margin: 0 auto;
  color: rgba(42, 38, 34, 0.7);
}

/* ==========================================================================
   FOOTER
========================================================================== */
.site-footer {
  background: var(--pine-deep);
  color: rgba(251, 247, 241, 0.7);
  text-align: center;
  padding: 48px 24px;
}

.footer-mark {
  font-family: var(--display);
  font-size: 26px;
  color: var(--ivory);
  margin-bottom: 8px;
}

.footer-mark .amp {
  font-style: italic;
  color: var(--rose);
}

.footer-date {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
}

/* ==========================================================================
   REVEAL ON LOAD
========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-in 0.9s ease forwards;
}

.hero-names.reveal { animation-delay: 0.1s; }
.hero-sub.reveal { animation-delay: 0.35s; }
.hero-meta.reveal { animation-delay: 0.55s; }
.btn.reveal { animation-delay: 0.75s; }

@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}
