/* ==========================================================================
   Neribo Weddings — design tokens
   ========================================================================== */
:root{
  --wine: #5C1A2B;
  --wine-soft: #7a2a3d;
  --blush: #E8C4C4;
  --blush-soft: #f0dbdb;
  --gold: #B98B3E;
  --gold-soft: #cca458;
  --sage: #6B7960;
  --ivory: #F7EFEA;
  --ink: #2B1B20;
  --ink-soft: #6b5a5c;
  --white: #ffffff;
  --line: rgba(43,27,32,0.14);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1100px;
  --radius: 3px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--wine);
  margin: 0 0 0.4em;
  line-height: 1.1;
  font-weight: 500;
}
p{ margin: 0 0 1em; max-width: 60ch; color: var(--ink-soft); }
a{ color: inherit; }
img{ max-width: 100%; display: block; }
dt, dd{ margin: 0; }

.skip-link{
  position: absolute; left: -999px; top: auto;
  background: var(--wine); color: var(--white);
  padding: 0.75em 1.25em; z-index: 200;
}
.skip-link:focus{ left: 1rem; top: 1rem; }
:focus-visible{ outline: 3px solid var(--gold); outline-offset: 2px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary{ background: var(--wine); color: var(--white); }
.btn-primary:hover{ background: var(--wine-soft); }
.icon-wa{ width: 18px; height: 18px; fill: currentColor; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9em 1.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
}
.logo{ display: flex; align-items: center; gap: 0.6em; text-decoration: none; color: var(--wine); }
.logo-mark{
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--wine);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 6px;
}
.logo-mark img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-text{ font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; }
.logo-sub{
  display: block; font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.main-nav{ display: flex; gap: 1.7em; }
.main-nav a{
  text-decoration: none; font-weight: 500; font-size: 0.92rem;
  color: var(--ink); position: relative; padding: 0.25em 0;
}
.main-nav a:hover{ color: var(--wine); }
.main-nav a::after{
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.15s ease;
}
.main-nav a:hover::after{ width: 100%; }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: transparent;
  border: 1.5px solid var(--wine); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span{ display: block; height: 2px; margin: 0 8px; background: var(--wine); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{ padding: clamp(3em, 7vw, 5.5em) 1.5em clamp(3.5em, 8vw, 6em); }
.hero-inner{
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2em, 5vw, 4em);
  align-items: center;
}
.hero-monogram{ color: var(--gold); }
.monogram-svg{ width: 100%; max-width: 240px; height: auto; }
.mono-letter{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 58px;
  fill: var(--wine);
}
.mono-amp{
  font-family: var(--font-display);
  font-size: 22px;
  fill: var(--gold);
}
.hero-kicker{
  font-family: var(--font-body); font-weight: 600;
  color: var(--sage); font-size: 0.92rem;
  margin-bottom: 0.8em; max-width: none;
}
.hero-copy h1{ font-size: clamp(3rem, 7vw, 4.6rem); margin-bottom: 0.25em; }
.hero-lede{ font-size: 1.08rem; max-width: 48ch; }

.countdown{
  display: flex;
  gap: clamp(0.8em, 2vw, 1.6em);
  margin-top: 1.8em;
}
.countdown-unit{
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 0.7em 0.4em;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.countdown-number{
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--wine);
  font-weight: 600;
  line-height: 1;
}
.countdown-label{
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.35em;
  font-weight: 500;
}
.wedding-date-line{
  margin-top: 1.4em;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  font-style: italic;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section{ padding: clamp(3em, 7vw, 5.5em) 1.5em; }
.section-wine{ background: var(--wine); }
.section-blush{ background: var(--blush-soft); }
.section-inner{ max-width: var(--max); margin: 0 auto; }
.section-head{ max-width: 620px; margin-bottom: clamp(2em, 5vw, 3em); }
.section-head h2{ font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.section-head p{ font-size: 1.02rem; }
.section-head-light h2{ color: var(--ivory); }
.section-head-light p{ color: rgba(247,239,234,0.75); }

/* Our story */
.story-inner{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2em, 5vw, 3.5em);
  align-items: center;
}
.story-photo{
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, #5C1A2B 0%, #B98B3E 130%);
}
.story-photo img{ width: 100%; height: 100%; object-fit: cover; }
.story-copy h2{ font-size: clamp(1.8rem, 3.2vw, 2.3rem); }
.story-copy p{ font-size: 1.05rem; }

/* Event details */
.event-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5em;
}
.event-card{
  border-top: 1px solid rgba(247,239,234,0.25);
  padding-top: 1.6em;
}
.event-card h3{ color: var(--gold-soft); font-size: 1.5rem; }
.event-meta{ margin: 1em 0; }
.event-meta > div{
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.55em 0;
  border-bottom: 1px dotted rgba(247,239,234,0.2);
  font-size: 0.92rem;
}
.event-meta dt{ color: rgba(247,239,234,0.55); font-weight: 500; }
.event-meta dd{ color: var(--ivory); text-align: right; }
.event-note{ font-size: 0.9rem; color: rgba(247,239,234,0.65); margin-bottom: 0; }

/* RSVP */
.rsvp-inner{ max-width: 720px; }
.rsvp-options{ margin-bottom: 2em; }
.rsvp-or{ font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.9em; margin-bottom: 0; }
.form-placeholder{
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2.5em 1.5em;
  text-align: center;
  background: var(--white);
}
.form-placeholder p{ margin: 0 auto; font-size: 0.92rem; max-width: 40ch; }

/* Gifts */
.gifts-inner{ max-width: 720px; }
.gift-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.6em, 4vw, 2.4em);
  border-left: 3px solid var(--gold);
}
.gift-meta > div{
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.6em 0;
  border-bottom: 1px dotted var(--line);
  font-size: 0.95rem;
}
.gift-meta dt{ color: var(--ink-soft); font-weight: 500; }
.gift-meta dd{ color: var(--wine); font-weight: 600; text-align: right; }
.gift-note{ font-size: 0.88rem; margin-top: 1.2em; margin-bottom: 0; }

/* Gallery */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 1em;
}
.gallery-item{
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #5C1A2B 0%, #B98B3E 130%);
}
.gallery-item-tall{ grid-row: span 2; }
.gallery-item img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--wine); color: rgba(247,239,234,0.85); }
.footer-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.6em 1.5em;
  text-align: center;
}
.footer-love{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ivory);
  margin-bottom: 0.6em;
}
.footer-credit{ font-size: 0.88rem; margin-bottom: 0.6em; }
.footer-credit a{ color: var(--gold-soft); text-decoration: none; }
.footer-credit a:hover{ text-decoration: underline; }
.footer-copy{ font-size: 0.78rem; color: rgba(247,239,234,0.5); margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; text-align: left; }
  .hero-monogram{ max-width: 140px; }
  .story-inner{ grid-template-columns: 1fr; }
  .event-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px){
  .main-nav{
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0;
    padding: 0.5em 1.5em 1em; display: none;
  }
  .main-nav.open{ display: flex; }
  .main-nav a{ padding: 0.7em 0; border-bottom: 1px solid var(--line); }
  .nav-toggle{ display: flex; }
}

@media (max-width: 560px){
  .countdown{ gap: 0.6em; }
  .countdown-unit{ min-width: 54px; }
  .gallery-grid{ grid-auto-rows: 150px; }
}
