/* =========================================================
   Anna & Blake — Wedding Site
   Aesthetic: light & airy minimal · editorial · natural
   ========================================================= */

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

/* ---- Tokens ---- */
:root {
  --cream:      #FBF7EF;
  --cream-deep: #F3ECDF;
  --paper:      #FFFFFF;
  --ink:        #3B362E;
  --ink-soft:   #6E665A;
  --sage:       #8C9A80;
  --sage-deep:  #5C6952;
  --clay:       #C7A98D;
  --line:       rgba(59, 54, 46, 0.16);
  --shadow:     0 24px 60px -28px rgba(59, 54, 46, 0.34);

  --display: 'Cormorant Garamond', Georgia, serif;
  --script:  'Pinyon Script', cursive;
  --body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---- Typographic helpers ---- */
.kicker {
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; }

/* ---- Sprig divider ---- */
.sprig {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
}
.sprig::before, .sprig::after {
  content: "";
  height: 1px;
  width: clamp(40px, 14vw, 110px);
  background: var(--line);
}
.sprig svg { width: 30px; height: 30px; color: var(--sage); flex: none; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 5vw, 3.4rem);
  background: rgba(251, 247, 239, 0);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.solid {
  background: rgba(251, 247, 239, 0.96);
  box-shadow: 0 1px 0 var(--line);
}
/* The mobile menu is a full-screen fixed overlay nested inside .nav.
   We deliberately keep NO backdrop-filter on .nav: a filter would make
   .nav the containing block for the overlay and clip it to the nav bar,
   leaving the menu's lower links visible even when it's closed. */
.nav.open {
  background: var(--cream);
  box-shadow: none;
}
.nav__mark {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
}
.nav__mark span { font-family: var(--script); font-size: 1.7rem; margin: 0 0.12em; color: var(--sage-deep); }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.4rem);
  list-style: none;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__links a:hover { border-color: var(--sage); }
.nav__links a.active { border-color: var(--ink); }
.nav__rsvp {
  border: 1px solid var(--ink) !important;
  border-radius: 100px;
  padding: 0.5rem 1.3rem !important;
}
.nav__rsvp:hover { background: var(--ink); color: var(--cream); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav.open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  color: var(--ink);
  padding: 0 1.4rem 6vh;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(251,247,239,0.94) 0%, rgba(251,247,239,0.5) 32%, rgba(251,247,239,0) 65%);
}
.hero__inner > * {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1.1s var(--ease) forwards;
}
.hero__inner > *:nth-child(1) { animation-delay: 0.15s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.35s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.6s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.85s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero .kicker { color: rgba(255,255,255,0.85); }
.hero__names {
  font-family: var(--script);
  font-size: clamp(4.2rem, 16vw, 11rem);
  font-weight: 400;
  margin: 0.1em 0 0.05em;
  text-shadow: 0 2px 26px rgba(251,247,239,0.9);
}
.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  font-family: var(--display);
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__meta i { font-style: normal; opacity: 0.6; }
.hero__scroll {
  margin-top: 2.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,0.8);
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { 0%,100% { opacity:0.3; transform: scaleY(0.6); } 50% { opacity:1; transform: scaleY(1);} }

/* ---- Page header (interior pages) ---- */
.pagehead {
  position: relative;
  min-height: 64svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 8rem 1.4rem 4rem;
  overflow: hidden;
}
.pagehead__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
  z-index: -2;
}
.pagehead::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(40,36,30,0.42);
}
.pagehead .kicker { color: rgba(255,255,255,0.85); }
.pagehead h1 {
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 300;
  margin-top: 0.2em;
}
.pagehead p { max-width: 30rem; margin: 1rem auto 0; opacity: 0.9; }

/* =========================================================
   Layout sections
   ========================================================= */
.section { padding: clamp(4.5rem, 11vw, 9rem) clamp(1.4rem, 6vw, 3rem); }
.wrap { max-width: 1140px; margin: 0 auto; }
.narrow { max-width: 720px; margin: 0 auto; }
.alt { background: var(--cream-deep); }
.section__head { text-align: center; margin-bottom: clamp(2.6rem, 6vw, 4.4rem); }
.section__head h2 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 300;
  margin: 0.5rem 0 1.4rem;
}

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   Our Story
   ========================================================= */
.story__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 8vw, 6rem);
}
.story__row:last-child { margin-bottom: 0; }
.story__row.flip .story__media { order: 2; }
.story__media {
  position: relative;
}
.story__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.story__media.wide img { aspect-ratio: 3 / 2; }
.story__media figcaption {
  position: absolute;
  bottom: -0.9rem; left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  padding: 0.2rem 1.1rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.alt .story__media figcaption { background: var(--cream-deep); }
.story__text .yr {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sage-deep);
  display: block;
  margin-bottom: 0.5rem;
}
.story__text h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 300; margin-bottom: 1rem; }
.story__text p { color: var(--ink-soft); }
.story__text p + p { margin-top: 1rem; }

/* =========================================================
   Countdown
   ========================================================= */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1.4rem, 6vw, 4rem);
  margin-top: 2.6rem;
}
.countdown div { text-align: center; }
.countdown .num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}
.countdown .lbl {
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* =========================================================
   RSVP
   ========================================================= */
.rsvp { text-align: center; }
.rsvp .narrow p { color: var(--ink-soft); margin-bottom: 0.4rem; }
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  background: var(--ink);
  padding: 1.15rem 3rem;
  border-radius: 100px;
  margin-top: 1.8rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.btn:hover { background: var(--sage-deep); transform: translateY(-3px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.rsvp__date {
  margin-top: 1.5rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* =========================================================
   Schedule / timeline (Details page)
   ========================================================= */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  top: 6px; bottom: 6px; left: 19px;
  width: 1px;
  background: var(--line);
}
.event {
  position: relative;
  padding: 0 0 3rem 4rem;
}
.event:last-child { padding-bottom: 0; }
.event::before {
  content: "";
  position: absolute; left: 12px; top: 8px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--sage);
}
.alt .event::before { background: var(--cream-deep); }
.event .time {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--sage-deep);
}
.event h3 { font-size: 1.7rem; font-weight: 400; margin: 0.15rem 0 0.3rem; }
.event .venue { font-weight: 400; }
.event .addr { color: var(--ink-soft); font-size: 0.94rem; }
.event .map {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.event .map:hover { border-color: var(--sage); }

/* =========================================================
   Cards (Travel / generic)
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.4rem 2rem;
}
.card .ic {
  width: 34px; height: 34px;
  color: var(--sage);
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 0.2rem; }
.card .sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.9rem;
}
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card p + p { margin-top: 0.7rem; }

/* ---- featured travel block ---- */
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}
.feature img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.feature__body { padding: clamp(2rem, 4vw, 3.2rem); }
.feature__body .sub {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage-deep); margin-bottom: 0.5rem;
}
.feature__body h3 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 300; margin-bottom: 0.8rem; }
.feature__body p { color: var(--ink-soft); }
.feature__body p + p { margin-top: 0.7rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 760px; margin: 0 auto; }
.qa {
  border-bottom: 1px solid var(--line);
}
.qa:first-child { border-top: 1px solid var(--line); }
.qa button {
  width: 100%;
  background: none; border: 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0.4rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 400;
  color: var(--ink);
}
.qa .plus {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
}
.qa .plus::before, .qa .plus::after {
  content: ""; position: absolute;
  background: var(--sage-deep);
  transition: transform 0.3s var(--ease);
}
.qa .plus::before { left: 0; top: 10px; width: 22px; height: 1.5px; }
.qa .plus::after  { top: 0; left: 10px; height: 22px; width: 1.5px; }
.qa.open .plus::after { transform: scaleY(0); }
.qa__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.qa__a p {
  padding: 0 0.4rem 1.6rem;
  color: var(--ink-soft);
}

/* ---- editable placeholder marker ---- */
.todo {
  background: rgba(140, 154, 128, 0.16);
  border-bottom: 1px dashed var(--sage);
  padding: 0 0.18em;
  font-style: italic;
}

/* =========================================================
   Footer
   ========================================================= */
.foot {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: clamp(3.4rem, 8vw, 5.5rem) 1.4rem;
}
.foot .script { color: var(--cream); font-size: clamp(2.8rem, 8vw, 4.4rem); }
.foot .meta {
  font-family: var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: 0.6rem;
  color: rgba(251,247,239,0.7);
}
.foot__links {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}
.foot__links a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(251,247,239,0.7);
  transition: color 0.3s var(--ease);
}
.foot__links a:hover { color: var(--cream); }
.foot small {
  display: block;
  margin-top: 2rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(251,247,239,0.4);
}
.foot .sprig { margin-bottom: 2rem; }
.foot .sprig::before, .foot .sprig::after { background: rgba(251,247,239,0.25); }
.foot .sprig svg { color: var(--clay); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 820px) {
  .nav__burger { display: flex; z-index: 70; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: var(--cream);
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease);
  }
  .nav.open .nav__links { transform: translateY(0); }
  .nav__links a { font-size: 1rem; }
  .nav__rsvp { padding: 0.7rem 1.8rem !important; }

  .story__row { grid-template-columns: 1fr; gap: 2.4rem; }
  .story__row.flip .story__media { order: 0; }
  .story__media img, .story__media.wide img { aspect-ratio: 4 / 5; }

  .feature { grid-template-columns: 1fr; }
  .feature img { min-height: 240px; }
  .btn { padding: 1.05rem 2rem; }
  .feature__body .btn { display: block; width: fit-content; margin-left: auto; margin-right: auto; }

  .hero__names { font-size: clamp(2.2rem, 11vw, 4.4rem); white-space: nowrap; }
  .hero__meta {
    flex-direction: column;
    gap: 0.4rem;
    font-size: clamp(0.6rem, 3vw, 1rem);
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
  .hero__meta i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* FAQ hero: faces sit high in this photo — raise the crop on desktop only
   so they're visible. Mobile keeps the default 38% crop, which already works. */
@media (min-width: 821px) {
  .pagehead__img--faq { object-position: 50% 18%; }
}
