/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --cream:        #FBF8F2;
  --cream-deep:   #F6EAE6;
  --sage-deep:    #3F5C33;
  --sage:         #6E8F52;
  --sage-pale:    #D7E0C4;
  --ink:          #33322C;
  --gold:         #DFA83F;

  --font-display: 'Cormorant Garamond', serif;
  --font-script:  'Parisienne', cursive;
  --font-body:    'Jost', sans-serif;

  --max-width: 1120px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--sage-deep);
  font-weight: 500;
  margin: 0;
}

a { color: var(--sage-deep); }

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

.muted { color: #6B6A5F; }
.center { text-align: center; }

.small-note { font-size: 0.85rem; margin-top: 2rem; }

/* ==========================================================================
   Decorative mountain ridge dividers
   ========================================================================== */
.ridge-wrap {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.ridge-wrap svg {
  width: 100%;
  display: block;
}
.ridge-path {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}
.ridge-top { height: clamp(70px, 12vw, 130px); }
.ridge-divider { height: clamp(50px, 8vw, 90px); background: transparent; }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--sage-deep);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; }

.nav-links a.nav-rsvp {
  color: var(--sage-deep);
  opacity: 1;
  border: 1px solid var(--sage-deep);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--sage-deep);
  display: block;
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--sage-pale);
  }
  .nav-links.open { max-height: 480px; }
  .nav-links a {
    width: 100%;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--sage-pale);
    opacity: 1;
  }
  .nav-links a.nav-rsvp { border-radius: 0; border-left: none; border-right: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage);
  margin: 0 0 1rem;
}

.hero-names {
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: 0.02em;
  line-height: 1;
}
.hero-names .amp {
  font-family: var(--font-script);
  font-size: 0.6em;
  color: var(--gold);
  padding: 0 0.15em;
}

.hero-script {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--sage);
  margin: 0.75rem 0 0.5rem;
}

.hero-date {
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0 0 2rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--sage-deep);
  color: var(--cream);
}
.btn-primary:hover { background: var(--sage); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}
.btn-outline:hover { background: var(--sage-deep); color: var(--cream); }

.scroll-cue {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
}
.scroll-cue span {
  width: 1px;
  height: 28px;
  background: var(--sage);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   Sections (generic)
   ========================================================================== */
.section { padding: var(--section-pad) 1.5rem; }
.section.alt { background: var(--cream-deep); }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-inner.narrow { max-width: 640px; }

.section-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin-bottom: 2.5rem;
}

.section-intro {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: #55544A;
}

/* ==========================================================================
   Timeline (Schedule)
   ========================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1px 1fr;
  gap: 2rem;
  align-items: start;
}

.timeline-day {
  display: flex;
  flex-direction: column;
  text-align: right;
  padding-top: 0.2rem;
}
.timeline-day-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.timeline-date {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--sage-deep);
}

.timeline-item::after {
  content: "";
  grid-column: 2;
  width: 1px;
  height: 100%;
  background: var(--sage-pale);
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.timeline-time, .timeline-venue {
  margin: 0.15rem 0;
  font-size: 0.92rem;
}
.timeline-venue { color: var(--sage); font-style: italic; }
.timeline-desc { margin-top: 0.6rem; color: #55544A; }

@media (max-width: 620px) {
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline-day { flex-direction: row; gap: 0.6rem; text-align: left; }
  .timeline-item::after { display: none; }
}

/* ==========================================================================
   Travel / Activities / Wedding party grids
   ========================================================================== */
.travel-grid, .activity-grid, .party-grid {
  display: grid;
  gap: 2rem;
}
.travel-grid { grid-template-columns: repeat(3, 1fr); }
.activity-grid { grid-template-columns: repeat(3, 1fr); }
.party-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .travel-grid, .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .party-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .travel-grid, .activity-grid, .party-grid { grid-template-columns: 1fr; }
}

.travel-card, .activity-card {
  background: var(--cream);
  border: 1px solid var(--sage-pale);
  border-radius: 4px;
  padding: 1.8rem;
}
.section.alt .travel-card { background: var(--cream); }

.travel-card h3, .activity-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.travel-card p, .activity-card p { margin: 0.4rem 0; font-size: 0.94rem; }

.party-card { text-align: center; }
.party-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--sage-pale);
  border-radius: 4px;
  margin-bottom: 1rem;
}
.party-card h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }

/* ==========================================================================
   Registry
   ========================================================================== */
.registry-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.gallery-item {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--sage-pale), var(--cream-deep));
  border-radius: 4px;
}
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   RSVP form
   ========================================================================== */
.rsvp-section { background: var(--cream); }

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hidden-field { position: absolute; left: -9999px; }

.field label, fieldset.field legend {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-deep);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

fieldset.field {
  border: none;
  padding: 0;
  margin: 0;
}

input[type="text"], input[type="email"], input[type="number"],
select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream-deep);
  border: 1px solid var(--sage-pale);
  border-radius: 4px;
  padding: 0.8rem 1rem;
}
textarea { resize: vertical; }

.radio-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  color: var(--ink);
}

.attending-only { transition: opacity 0.2s ease; }
.attending-only.is-hidden { display: none; }

.rsvp-submit { align-self: center; margin-top: 0.5rem; }

.form-status {
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.4em;
  color: var(--sage-deep);
}
.form-status.error { color: #A24A3F; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border-bottom: 1px solid var(--sage-pale);
  padding: 1rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sage-deep);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--font-body);
  color: var(--gold);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0.8rem 0 0; color: #55544A; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  background: var(--sage-deep);
  color: var(--cream);
}
.footer-names {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.4rem;
  color: var(--cream);
}
.footer-names .amp { font-family: var(--font-script); color: var(--gold); }
.footer-date { margin: 0 0 1rem; opacity: 0.85; font-size: 0.9rem; }
.footer-contact { font-size: 0.85rem; opacity: 0.85; }
.footer-contact a { color: var(--cream); text-decoration: underline; }
