/* ════════════════════════════════════════════════════════════
   ROSEMARY & RUDY · REDESIGN 2026
   Warm Ivory · Deep Ivy · Brass · Paper & Ink
════════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --paper:     #F6F2EB;
  --paper-dk:  #EDE8DC;
  --ivy:       #384238;
  --ivy-lt:    #4D5E4D;
  --olive:     #72765F;
  --taupe:     #A89A8D;
  --charcoal:  #4A4642;
  --brass:     #B7955D;
  --brass-lt:  #CDB07A;

  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-names:   'Great Vibes', 'Cormorant Garamond', cursive;
  --f-headers: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-stamp:   'Bevan', serif;

  --nav-h: 62px;
  --max:   860px;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

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

body {
  background-color: var(--paper);
  color: var(--charcoal);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── PAPER TEXTURE (SVG noise overlay, fixed, non-interactive) ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' 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");
  background-repeat: repeat;
  background-size: 220px 220px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ivy);
}
h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
p  { line-height: 1.75; }
a  { color: var(--ivy); }

.eyebrow {
  display: block;
  font-family: var(--f-body);
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.8rem;
}

.stamp-label {
  font-family: var(--f-stamp);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── LETTERPRESS TEXT TREATMENT ── */
.letterpress {
  text-shadow:
    0  1px 0 rgba(255,255,255,0.65),
    0 -1px 0 rgba(0,0,0,0.20),
    1px 0 0  rgba(255,255,255,0.30),
   -1px 0 0  rgba(0,0,0,0.10),
    0  2px 8px rgba(0,0,0,0.07);
}

/* image letterpress: makes ink illus look pressed into paper */
.letterpress-img {
  filter:
    drop-shadow(0 2px 4px rgba(0,0,0,0.14))
    drop-shadow(0 -1px 0 rgba(0,0,0,0.06))
    sepia(0.18)
    contrast(1.08);
  mix-blend-mode: multiply;
}

/* ── NAV ── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
  background: rgba(246,242,235,0);
  border-bottom: 1px solid rgba(56,66,56,0);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
#main-nav.scrolled {
  background: rgba(246,242,235,0.95);
  border-bottom-color: rgba(56,66,56,0.1);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#main-nav.dark-hero {
  background: transparent;
  border-color: transparent;
}
#main-nav.dark-hero .nav-logo,
#main-nav.dark-hero .nav-links a { color: var(--paper); }
#main-nav.dark-hero.scrolled .nav-logo,
#main-nav.dark-hero.scrolled .nav-links a { color: var(--ivy); }

.nav-logo {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ivy);
  text-decoration: none;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: color 0.3s;
}
.nav-logo em { font-style: italic; font-weight: 300; }

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
}
.nav-links a {
  font-family: var(--f-stamp);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--ivy); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.35rem; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ivy); margin: 5px 0;
  transition: 0.28s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-links {
    display: none; position: fixed;
    top: 0; right: 0; bottom: 0; width: 230px;
    background: var(--paper); padding: 5.5rem 2rem 2rem;
    flex-direction: column; gap: 2.2rem;
    box-shadow: -6px 0 28px rgba(0,0,0,0.1);
    border-left: 1px solid rgba(56,66,56,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.72rem; opacity: 0.8; }
  .nav-toggle { display: block; }
}

/* ── FOOTER ── */
footer {
  position: relative;
  background: var(--ivy) url('https://d8j0ntlcm91z4.cloudfront.net/user_36Ybcir0OY3CxfQjhGpYllPvK1B/hf_20260723_043604_385fca72-d873-4b84-8463-16e86b42752d.png') center 30% / cover no-repeat;
  color: rgba(246,242,235,0.65);
  text-align: center;
  padding: 3.8rem 2rem 3rem;
}
footer::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,26,20,0.82) 0%, rgba(20,26,20,0.9) 100%);
}
footer > * { position: relative; z-index: 1; }
.footer-names {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 300;
  color: var(--paper);
  margin-bottom: 0.35rem;
}
.footer-date {
  font-family: var(--f-stamp);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.6rem;
}
.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.footer-links a {
  font-family: var(--f-stamp);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246,242,235,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--brass); }
.footer-tag {
  font-family: var(--f-body);
  font-size: 0.7rem;
  color: rgba(246,242,235,0.25);
  letter-spacing: 0.04em;
  margin-top: 1.6rem;
}

/* ── SECTIONS ── */
.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1.4rem, 5vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
}
.section-wide {
  padding: clamp(4rem, 9vw, 7rem) clamp(1.4rem, 5vw, 3rem);
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.2rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(168,154,141,0.32);
}
.divider-mark {
  font-family: var(--f-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--taupe);
  opacity: 0.7;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--f-stamp);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--olive);
  border: 1.5px solid var(--olive);
  padding: 0.78rem 2.4rem;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-style: normal;
  -webkit-appearance: none;
}
.btn:hover { background: var(--ivy); border-color: var(--ivy); color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--ivy);
  border-color: rgba(56,66,56,0.35);
}
.btn-ghost:hover { background: var(--ivy); color: var(--paper); border-color: var(--ivy); }

.btn-sm { font-size: 0.55rem; padding: 0.6rem 1.6rem; }

/* ── MICRO-INTERACTIONS (from wedding-animations.css, adapted to this site's classes) ── */
.btn, .venue-card, .hotel-card {
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover, .venue-card:hover, .hotel-card:hover { transform: scale(1.025); }

.nav-links a { position: relative; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%; height: 1px;
  background: var(--brass);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Invalid-field shake (RSVP validation) */
.rsvp-input.error, .attendance-options.error {
  border-color: #b5544a !important;
  animation: rr-shake 0.4s ease;
}
@keyframes rr-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Success mark pop-in */
.success-mark.pop {
  display: inline-block;
  animation: rr-pop-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}
@keyframes rr-pop-in {
  0% { opacity: 0; transform: scale(0.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.32s; }
.reveal-d4 { transition-delay: 0.46s; }

/* ── VENUE CARDS ── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
  margin-top: 1.2rem;
}
.venue-card {
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(168,154,141,0.22);
  border-radius: 2px;
  padding: 1.2rem 1.3rem 1.1rem;
}
.venue-name {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ivy);
  line-height: 1.2;
}
.venue-addr {
  font-size: 0.7rem;
  color: var(--taupe);
  margin: 0.15rem 0 0.5rem;
  letter-spacing: 0.01em;
}
.venue-desc {
  font-size: 0.83rem;
  color: var(--charcoal);
  line-height: 1.62;
}
.venue-tag {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--f-stamp);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ── CATEGORY LABELS ── */
.cat-label {
  display: block;
  font-family: var(--f-stamp);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 2.4rem 0 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(168,154,141,0.22);
}

/* ── AUDIO PLAYER ── */
.audio-btn {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 400;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(56,66,56,0.85);
  border: 1px solid rgba(183,149,93,0.35);
  color: var(--brass-lt);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.audio-btn:hover { background: var(--ivy); transform: scale(1.06); }

/* ── RSVP MATCH HINT ── */
.match-hint {
  font-family: var(--f-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--taupe);
  text-transform: none;
}

/* ── HIGGSFIELD INK ART (shared) ── */
.spot-illo {
  display: block;
  margin: 0 auto 1rem;
  mix-blend-mode: multiply;   /* melts the ivory art bg into the paper */
}
.ivy-rule {
  display: block;
  width: clamp(170px, 34vw, 280px);
  height: auto;
  margin: 2.6rem auto;
  opacity: 0.92;
  mix-blend-mode: multiply;
}
.crest {
  display: block;
  width: clamp(72px, 14vw, 104px);
  height: auto;
  margin: 0 auto 1.2rem;
  mix-blend-mode: multiply;
}
.explore-spot {
  width: clamp(96px, 15vw, 130px);
  height: auto;
  vertical-align: middle;
  margin-right: 0.7rem;
  mix-blend-mode: multiply;
}

/* ── VIDEO BG UTILITY ── */
.vid-wrap {
  position: relative;
  overflow: hidden;
}
.vid-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.vid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(246,242,235,0.55);
}
.vid-content {
  position: relative;
  z-index: 2;
}


/* ══════════════════════════════════════════
   TYPOGRAPHY PASS — from the editz references
   Names: Lotto-style script (Great Vibes)
   Headers: Aurellia-style vintage display (Playfair)
══════════════════════════════════════════ */
.footer-names {
  font-family: var(--f-names);
  font-style: normal;
  font-size: 1.9rem;
}
.hero-name-line {
  font-family: var(--f-names) !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  line-height: 1.12 !important;
}
.rr-splash-names {
  font-family: var(--f-names) !important;
  font-style: normal !important;
}
.hero-title,
.nyc-title,
.venue-name-lg,
.success-title,
.highlight-card-title {
  font-family: var(--f-headers) !important;
}


/* ════════════════════════════════════════════════════════════
   CANVA COHESION PASS · invitation-layout language
   High-contrast italic display headers · calligraphic script
   for romantic copy · tracked serif eyebrows + nav · warm ivory
════════════════════════════════════════════════════════════ */
:root {
  --f-script: 'Pinyon Script', 'Great Vibes', cursive;
  --ink:      #3a382f;   /* warm charcoal ink used across the layouts */
}

/* — Section titles → high-contrast italic display, spaced caps — */
h2.letterpress {
  font-family: var(--f-headers) !important;
  font-style: italic;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--ink);
  line-height: 1.06;
}

/* venue "Bottino" — same italic display, wide spaced caps */
.venue-name-lg {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-style: italic;
  font-weight: 500;
}

/* — Eyebrows → delicate tracked serif small-caps — */
.eyebrow,
.welcome-eyebrow,
.attire-label-small,
.cat-label,
.hero-chapter,
.nyc-chapter {
  font-family: var(--f-display) !important;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* — Nav → refined tracked serif (matches the page-number nav) — */
.nav-links a,
.nav-links a.stamp-label {
  font-family: var(--f-headers);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: none;
  font-weight: 400;
}
.nav-logo { font-family: var(--f-headers); letter-spacing: 0.08em; }

/* — Page-1 wordmark → high-contrast didone, spaced title-case — */
.hero-name-line {
  font-family: var(--f-headers) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: var(--ink) !important;
}
.footer-names { font-family: var(--f-headers); font-style: italic; }

/* — Page-1 date stack → script day + tracked serif date — */
.hero-date-day {
  font-family: var(--f-script) !important;
  font-style: normal;
  font-size: clamp(1.3rem, 3vw, 1.8rem) !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: var(--olive) !important;
}
.hero-date-full {
  font-family: var(--f-headers) !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  font-weight: 500 !important;
  color: var(--ink) !important;
}

/* — Calligraphic romantic copy — Canva source: welcome box text is a
   compact, legible script, NOT an oversized display headline —
   Canva's actual font here is "Amoresa" (a premium script not available
   via Google Fonts); Petit Formal Script is the closest free match to
   its thin, flourished, italic-calligraphic letterforms. */
.welcome-text {
  font-family: 'Petit Formal Script', var(--f-script) !important;
  font-style: normal !important;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.55;
  color: var(--olive);
}
.welcome-text .wr-o, .welcome-text .wr-i { overflow: visible; }

/* Section intro lines — Canva source shows these as plain small italic
   serif copy, matching the body descriptions below them (not script) */
.travel-intro,
.stay-intro,
.explore-intro {
  font-family: var(--f-display) !important;
  font-style: italic !important;
  font-weight: 300;
  color: var(--taupe);
}

/* schedule of events → script event names, italic-serif times */
.sched-event {
  font-family: var(--f-script) !important;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  color: var(--ink);
  line-height: 1.05;
}
.sched-time {
  font-family: var(--f-headers) !important;
  font-style: italic;
  font-weight: 400;
  color: var(--taupe);
}

/* — Script venue buttons (open in maps / add to calendar) — */
.venue-actions .btn {
  font-family: var(--f-script) !important;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 1.2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* — Page-1 ampersand → large didone, and city label tracked serif — */
.hero-amp-line {
  font-family: var(--f-headers) !important;
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.6rem) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ink) !important;
  opacity: 0.9;
  margin: 0.1rem 0 !important;
}
.hero-city {
  font-family: var(--f-display) !important;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--taupe);
}

/* — Travel sub-headings → tracked uppercase serif (BY CAR / BY TRAIN …) — */
.travel-heading {
  font-family: var(--f-display) !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(0.98rem, 2vw, 1.15rem);
}

/* — Body descriptions: Canva source shows these as plain, legible serif
   copy (NOT script) — script is reserved for hotel/venue names & accents — */
.travel-desc,
.hotel-desc,
.explore-desc {
  font-family: var(--f-display) !important;
  font-style: normal !important;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  color: var(--charcoal);
}
.travel-desc strong,
.hotel-desc strong,
.explore-desc strong {
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.hotel-name a,
.explore-name {
  font-family: var(--f-names) !important;
  font-style: normal;
}

/* — Schedule of Events → styled text title (matches Canva pg 3) — */
.schedule-title-text {
  display: block;
  font-family: var(--f-headers);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  color: var(--taupe);
  text-align: center;
  margin: 0 auto 2.8rem;
}
