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

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

:root {
  --olive: #758952;
  --sage: #B5C49A;
  --sage-light: #d2ddbf;
  --dusty-pink: #E8C0C5;
  --pale-pink: #F4E2E4;
  --ivory: #F6F7EC;
  --cream: #faf9f4;
  --deep-green: #4a6741;
  --forest: #3d5535;
  --gold: #c4a96a;
  --text: #3a3a32;
  --text-muted: #6b6b5e;
  --white: #ffffff;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── Trellis background pattern ─── */
.trellis-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23758952' stroke-width='1.5'%3E%3Cpath d='M0 20 L20 0 M0 60 L60 0 M20 80 L80 20 M60 80 L80 60'/%3E%3Cpath d='M0 20 L20 40 L0 60 M20 0 L40 20 L60 0 M20 80 L40 60 L60 80 M80 20 L60 40 L80 60'/%3E%3Cpath d='M20 40 L40 20 L60 40 L40 60Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ─── Utility ─── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.mono {
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--olive);
}

.script {
  font-family: 'Pinyon Script', cursive;
}

/* ─── Scalloped divider ─── */
.scallop-divider {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.scallop-divider svg {
  width: 200px;
  height: 16px;
}

/* ─── Floral accent SVGs ─── */
.floral-accent {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sage-light);
  transition: transform 0.3s ease;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

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

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-border {
  position: absolute;
  inset: 1.5rem;
  border: 1px solid var(--sage);
  border-radius: 2px;
  pointer-events: none;
}

.hero-border-inner {
  position: absolute;
  inset: 0.5rem;
  border: 1px solid var(--sage-light);
  border-radius: 2px;
}

.hero .kicker {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--olive);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s ease forwards;
}

.hero .names {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--deep-green);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 1.2s 0.6s ease forwards;
}

.hero .ampersand {
  display: block;
  font-size: 0.5em;
  color: var(--dusty-pink);
  margin: -0.1em 0;
}

.hero .date-line {
  font-family: 'DM Mono', monospace;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 1.1s ease forwards;
}

.hero .date-line .sep {
  color: var(--sage);
  margin: 0 0.3em;
}

.hero .venue-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 1.4s ease forwards;
}

.hero .scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 1s 2s ease forwards;
}

.hero .scroll-hint svg {
  width: 20px;
  height: 30px;
  animation: bobDown 2s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bobDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ─── Floral corner decorations for hero ─── */
.hero-floral {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
}

.hero-floral.top-left {
  top: 2rem;
  left: 2rem;
  transform: rotate(0deg);
}

.hero-floral.top-right {
  top: 2rem;
  right: 2rem;
  transform: scaleX(-1);
}

.hero-floral.bottom-left {
  bottom: 2rem;
  left: 2rem;
  transform: scaleY(-1);
}

.hero-floral.bottom-right {
  bottom: 2rem;
  right: 2rem;
  transform: scale(-1);
}

/* ─── Card style sections ─── */
.card {
  background: var(--white);
  border: 1px solid var(--sage-light);
  padding: 3rem;
  position: relative;
}

.card-scallop {
  border-radius: 0;
  background:
    radial-gradient(circle at 12px -4px, transparent 12px, var(--white) 12.5px) top left / 24px 16px repeat-x,
    radial-gradient(circle at 12px calc(100% + 4px), transparent 12px, var(--white) 12.5px) bottom left / 24px 16px repeat-x;
  border: none;
  padding: 3.5rem 3rem;
  box-shadow: 0 1px 4px rgba(74, 103, 65, 0.06);
}

/* ─── Section headings ─── */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading .label {
  display: block;
  margin-bottom: 0.75rem;
}

.section-heading h2 {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--deep-green);
  line-height: 1.2;
}

.section-heading .underline {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--sage);
  margin: 1rem auto 0;
}

/* ─── Our Story ─── */
#story {
  background: var(--ivory);
}

.story-content {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.story-content p {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.story-content p:last-child {
  margin-bottom: 0;
}

.story-quote {
  font-family: 'Pinyon Script', cursive;
  font-size: 1.8rem;
  color: var(--dusty-pink);
  margin: 2rem 0;
  line-height: 1.4;
}

/* ─── Details ─── */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.detail-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--sage-light);
  position: relative;
}

.detail-card .detail-icon {
  display: block;
  margin: 0 auto 1.2rem;
}

.detail-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--olive);
  margin-bottom: 1rem;
}

.detail-card .detail-name {
  font-family: 'Pinyon Script', cursive;
  font-size: 2rem;
  color: var(--deep-green);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.detail-card .detail-info {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  line-height: 1.8;
}

/* ─── Schedule ─── */
#schedule {
  background: var(--ivory);
}

.timeline {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--sage-light);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-time {
  text-align: right;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1px var(--sage);
  position: relative;
  z-index: 1;
}

.timeline-event {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
}

/* ─── Travel ─── */
.travel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.travel-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--sage-light);
  text-align: center;
}

.travel-card h3 {
  font-family: 'Pinyon Script', cursive;
  font-size: 1.6rem;
  color: var(--deep-green);
  margin-bottom: 0.75rem;
}

.travel-card p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.travel-card .travel-detail {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ─── Registry ─── */
#registry {
  background: var(--pale-pink);
}

.registry-content {
  text-align: center;
  max-width: 550px;
  margin: 0 auto;
}

.registry-content p {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2rem;
}

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

.registry-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--deep-green);
  border: 1px solid var(--sage);
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.registry-link:hover {
  background: var(--deep-green);
  color: var(--ivory);
  border-color: var(--deep-green);
}

/* ─── RSVP ─── */
.rsvp-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.rsvp-content p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.rsvp-btn {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  background: var(--deep-green);
  padding: 1rem 3rem;
  transition: all 0.3s ease;
}

.rsvp-btn:hover {
  background: var(--olive);
}

/* ─── FAQ ─── */
#faq {
  background: var(--ivory);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.faq-item {
  padding: 1.5rem;
}

.faq-item h3 {
  font-family: 'Cormorant', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--deep-green);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.faq-item p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--deep-green);
  color: var(--sage-light);
  position: relative;
  z-index: 1;
}

.footer .names-footer {
  font-family: 'Pinyon Script', cursive;
  font-size: 2.5rem;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}

.footer .date-footer {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--sage);
}

.footer .monogram {
  margin-top: 2rem;
  opacity: 0.3;
}

/* ─── Section pink band ─── */
.pink-band {
  background: var(--pale-pink);
  position: relative;
  z-index: 1;
}

.green-band {
  background: var(--ivory);
  position: relative;
  z-index: 1;
}

/* ─── Responsive ─── */
@media (max-width: 700px) {
  .details-grid,
  .travel-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    gap: 1rem;
    padding: 0.6rem 1rem;
  }

  .nav a {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .card, .card-scallop {
    padding: 2rem 1.5rem;
  }

  .hero-border {
    inset: 0.75rem;
  }

  .hero-floral {
    display: none;
  }

  .timeline-item {
    gap: 1rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    gap: 0.6rem;
  }

  .nav a {
    font-size: 0.55rem;
  }
}
