:root{
    --forest: #1c3829;
    --forest-deep: #12241a;
    --plum: #5b2540;
    --plum-deep: #3e1a2c;
    --ivory: #f7f2e9;
    --ivory-dim: #ece3d3;
    --gold: #c6a15b;
    --gold-soft: #d8bd8c;
    --text-dark: #1a2620;
    --serif: 'Cormorant Garamond', serif;
    --sans: 'Jost', sans-serif;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background: var(--ivory);
    color: var(--text-dark);
    font-family: var(--sans);
    font-weight:300;
    line-height:1.6;
    overflow-x:hidden;
  }
  img{max-width:100%; display:block;}
  a{color:inherit;}

  .wrap{max-width:900px; margin:0 auto; padding:0 28px;}

  /* ---------- ornamental divider ---------- */
  .flourish{
    display:flex; align-items:center; justify-content:center; gap:14px;
    margin: 22px auto; width: 100%; max-width:360px;
  }
  .flourish svg{flex:0 0 auto;}
  .flourish .line{flex:1; height:1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);}

  /* ---------- HERO ---------- */
  .hero{
    position:relative;
    height:100vh;      /* fallback for older iOS Safari */
    height:100svh;
    min-height:640px;
    overflow:hidden;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    color: var(--ivory);
  }
  .hero-bg{
    position:absolute; inset:0;
  }
  .hero-bg video{
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit:cover;
    opacity:0;
    transition: opacity 1.2s ease;
  }
  .hero-bg video.active{ opacity:1; }
  .hero::before{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(180deg, rgba(18,36,26,.35) 0%, rgba(18,36,26,.35) 35%, rgba(18,36,26,.86) 82%, var(--forest-deep) 100%);
    z-index:1;
  }
  .hero-content{
    position:relative; z-index:2;
    text-align:center;
    padding: 0 24px 64px;
    width:100%;
    max-width:760px;
  }
  .hero-eyebrow{
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--gold-soft);
    margin-bottom: 18px;
    font-weight:400;
  }
  .hero-names{
    font-family: var(--serif);
    font-weight:500;
    font-size: clamp(46px, 9vw, 92px);
    line-height: 1.05;
    letter-spacing: 0.5px;
  }
  .hero-amp{
    display:block;
    font-style:italic;
    color: var(--gold-soft);
    font-size: 0.55em;
    margin: 2px 0;
  }
  .hero-date{
    margin-top: 22px;
    font-family: var(--sans);
    font-size: 16px;
    letter-spacing: 1.5px;
    color: var(--ivory-dim);
  }
  .hero-venue{
    font-size: 14px;
    color: var(--gold-soft);
    margin-top: 4px;
    letter-spacing: 1px;
  }
  .hero-rule{
    width: 70px; height:1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 26px auto 0;
  }
  .scroll-cue{
    position:absolute; bottom: 22px; left:50%; transform:translateX(-50%);
    z-index:2; color: var(--ivory-dim); font-size:11px; letter-spacing:2px;
    display:flex; flex-direction:column; align-items:center; gap:8px;
    opacity:.75;
  }
  .scroll-cue .stem{width:1px; height:26px; background: var(--gold-soft); animation: stemPulse 2.2s ease-in-out infinite;}
  @keyframes stemPulse{ 0%,100%{opacity:.3} 50%{opacity:1} }

  /* ---------- SECTION generic ---------- */
  section{ padding: 84px 0; position:relative; border-top: 1px solid rgba(198,161,91,.4); }
  .hero + section{ border-top: none; }
  .section-forest{ background: var(--forest); color: var(--ivory); }
  .section-ivory{ background: var(--ivory); color: var(--text-dark); }
  .section-plum{ background: var(--plum); color: var(--ivory); }

  .eyebrow{
    font-family: var(--sans);
    font-size: 12.5px;
    letter-spacing: 2.5px;
    color: var(--gold);
    text-align:center;
    margin-bottom: 10px;
    font-weight:500;
  }
  .section-forest .eyebrow, .section-plum .eyebrow{ color: var(--gold-soft); }

  .section-title{
    font-family: var(--serif);
    font-weight:500;
    font-size: clamp(30px, 4.5vw, 44px);
    text-align:center;
    margin-bottom: 8px;
  }
  .section-sub{
    text-align:center;
    max-width:520px;
    margin: 0 auto 46px;
    font-size:15.5px;
    opacity:.85;
  }

  /* ---------- Invitation note ---------- */
  .invite-note{
    text-align:center;
    max-width: 620px;
    margin: 0 auto;
    font-family: var(--serif);
    font-size: clamp(20px, 2.6vw, 26px);
    font-style: italic;
    line-height:1.65;
    color: var(--text-dark);
  }

  /* ---------- Parents ---------- */
  .parents-grid{
    display:grid; grid-template-columns: 1fr auto 1fr;
    gap: 36px; align-items:center; max-width: 720px; margin: 0 auto;
  }
  .parent-block{ text-align:center; }
  .parent-role{ font-size:12.5px; letter-spacing:2px; color: var(--plum); font-weight:500; margin-bottom:10px; }
  .parent-names{ font-family: var(--serif); font-size: clamp(21px,2.6vw,27px); font-weight:500; }
  .parents-divider{
    width:1px; height: 90px; background: linear-gradient(180deg, transparent, var(--gold), transparent);
  }
  @media (max-width:560px){
    .parents-grid{ grid-template-columns: 1fr; gap:22px; }
    .parents-divider{ width:80px; height:1px; margin:0 auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
  }

  /* ---------- Countdown ---------- */
  .countdown{
    display:flex; justify-content:center; gap: 18px; flex-wrap:wrap; margin-top: 40px;
  }
  .cd-box{
    width: 84px; text-align:center;
  }
  .cd-num{
    font-family: var(--serif); font-size: 40px; font-weight:600; color: var(--ivory);
    background: rgba(198,161,91,.14);
    border: 1px solid rgba(198,161,91,.4);
    border-radius: 2px;
    padding: 14px 0 8px;
  }
  .cd-label{ font-size:11px; letter-spacing:1.5px; margin-top:8px; color: var(--gold-soft); }

  /* ---------- Ceremony cards ---------- */
  .ceremony-grid{
    display:grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 800px; margin: 0 auto;
  }
  @media (max-width:640px){ .ceremony-grid{ grid-template-columns: 1fr; } }
  .cer-card{
    border: 1px solid rgba(198,161,91,.5);
    padding: 34px 30px;
    text-align:center;
    position:relative;
  }
  .cer-card .cer-icon{ margin: 0 auto 18px; width:40px; height:40px; }
  .cer-tag{ font-size:12px; letter-spacing:2px; color: var(--gold); margin-bottom:10px; }
  .cer-name{ font-family: var(--serif); font-size:26px; font-weight:500; margin-bottom:10px; }
  .cer-venue{ font-size:15px; margin-bottom:4px; }
  .cer-time{ font-size:14px; color: var(--gold); margin-top:14px; font-style:italic; font-family:var(--serif); font-size:19px;}
  .cer-note{ font-size:12.5px; opacity:.7; margin-top:6px; }

  /* ---------- Dress code ---------- */
  .dress-intro{ text-align:center; max-width:600px; margin: 0 auto 46px; font-size:15.5px; opacity:.85;}
  .palette-row{
    display:flex; justify-content:center; gap: 22px; margin-bottom: 50px; flex-wrap:wrap;
  }
  .swatch{ text-align:center; }
  .swatch-circle{
    width: 74px; height:74px; border-radius:50%;
    margin: 0 auto 10px;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
  }
  .swatch-label{ font-size:12px; letter-spacing:1px; }
  .swatch-sub{ font-size:11px; opacity:.6; }

  .dress-grid{
    display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; max-width: 880px; margin: 0 auto;
  }
  @media (max-width:760px){ .dress-grid{ grid-template-columns: 1fr; } }
  .dress-card{
    background: var(--ivory);
    color: var(--text-dark);
    padding: 30px 26px;
    border-top: 3px solid var(--gold);
  }
  .dress-card h3{
    font-family: var(--serif); font-size:22px; font-weight:600; margin-bottom:12px;
  }
  .dress-card p{ font-size:14px; line-height:1.7; opacity:.85; }
  .dress-note{
    text-align:center; max-width:560px; margin: 40px auto 0; font-size:13px; opacity:.7; font-style:italic;
  }

  /* ---------- Travel ---------- */
  .travel-grid{
    display:grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto 40px;
  }
  @media (max-width:600px){ .travel-grid{ grid-template-columns: 1fr; } }
  .travel-card{
    border: 1px solid var(--ivory-dim);
    padding: 28px 26px;
    text-align:center;
    background: #fff;
  }
  .travel-time{ font-family: var(--serif); font-size:34px; color: var(--plum); font-weight:600; }
  .travel-label{ font-size:12.5px; letter-spacing:1.5px; opacity:.65; margin-top:6px; }
  .travel-route{ font-size:14px; margin-top:12px; opacity:.8; }
  .self-drive{
    max-width:640px; margin: 0 auto 40px; text-align:center;
    padding: 22px 26px; background: var(--ivory-dim); font-size:14.5px; opacity:.9;
  }
  .map-btn-wrap{ text-align:center; }
  .btn{
    display:inline-block;
    font-family: var(--sans);
    font-size: 13.5px;
    letter-spacing: 1.5px;
    padding: 15px 34px;
    border: 1px solid var(--forest);
    color: var(--forest);
    text-decoration:none;
    transition: background .25s ease, color .25s ease;
  }
  .btn:hover{ background: var(--forest); color: var(--ivory); }
  .btn-light{ border-color: var(--gold-soft); color: var(--ivory); }
  .btn-light:hover{ background: var(--gold-soft); color: var(--forest-deep); }

  /* ---------- Share memories ---------- */
  .share-block{
    display:flex; align-items:center; justify-content:center; gap: 48px; flex-wrap:wrap;
    max-width: 760px; margin: 0 auto;
  }
  .qr-frame{
    background: var(--ivory);
    padding: 16px;
    border: 1px solid var(--gold-soft);
  }
  .qr-frame img{ width: 168px; height:168px; display:block; }
  .share-text{ max-width: 320px; }
  .share-text p{ font-size:14.5px; opacity:.85; margin-top: 10px; }

  /* ---------- RSVP ---------- */
  .rsvp-grid{
    display:grid; grid-template-columns:1fr 1fr; gap: 26px; max-width: 640px; margin: 0 auto;
  }
  @media (max-width:560px){ .rsvp-grid{ grid-template-columns:1fr; } }
  .rsvp-card{
    text-align:center; padding: 30px 20px;
    border: 1px solid rgba(198,161,91,.5);
  }
  .rsvp-role{ font-size:12px; letter-spacing:2px; color: var(--gold-soft); margin-bottom:8px; }
  .rsvp-name{ font-family: var(--serif); font-size:24px; margin-bottom:12px; }
  .rsvp-phone{ font-size:15px; letter-spacing:.5px; }
  .rsvp-phone a{ text-decoration:none; border-bottom: 1px solid var(--gold); padding-bottom:2px; }

  /* ---------- Footer ---------- */
  footer{
    background: var(--forest-deep); color: var(--ivory-dim);
    text-align:center; padding: 56px 24px 40px;
  }
  footer .sign{ font-family: var(--serif); font-size: 26px; font-style:italic; color: var(--gold-soft); }
  footer .small{ font-size:12px; opacity:.6; margin-top:18px; letter-spacing:1px; }

  @media (max-width:600px){
    section{ padding: 60px 0; }
    .hero{ min-height:560px; }
  }

  /* ================================================================
     RSVP code entry — added alongside the existing contact cards
     ================================================================ */
  .rsvp-code-form{
    display:flex; justify-content:center; gap:12px; flex-wrap:wrap;
    max-width: 460px; margin: 0 auto 14px;
  }
  .rsvp-code-form input{
    flex:1 1 200px;
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 4px;
    text-align:center;
    text-transform: uppercase;
    padding: 14px 18px;
    color: var(--ivory);
    background: rgba(247,242,233,.06);
    border: 1px solid rgba(198,161,91,.55);
    border-radius: 0;
    -webkit-appearance:none; appearance:none;
  }
  .rsvp-code-form input::placeholder{
    color: rgba(236,227,211,.45); letter-spacing:2px; text-transform:none;
  }
  .rsvp-code-form input:focus{
    outline:none; border-color: var(--gold); background: rgba(247,242,233,.1);
  }
  .btn-gold{
    background: var(--gold);
    border-color: var(--gold);
    color: var(--forest-deep);
    cursor:pointer;
    font-weight:500;
  }
  .btn-gold:hover{ background: var(--gold-soft); border-color: var(--gold-soft); color: var(--forest-deep); }
  .code-help{
    text-align:center; font-size:13.5px; opacity:.75; margin-bottom: 40px;
  }

  /* Visible keyboard focus — the design had none */
  a:focus-visible, button:focus-visible, input:focus-visible{
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }
  .sr-only{
    position:absolute; width:1px; height:1px; padding:0; margin:-1px;
    overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
  }

  /* ================================================================
     Respect reduced-motion: no looping video, no pulsing, no smooth
     scroll. The poster still carries the hero.
     ================================================================ */
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    *, *::before, *::after{
      animation-duration:.01ms !important;
      animation-iteration-count:1 !important;
      transition-duration:.01ms !important;
    }
    .hero-bg video{ opacity:1; transition:none; }
    .scroll-cue .stem{ animation:none; opacity:.6; }
  }

  /* ================================================================
     Hero photographs (replaced the phone clips, 2026-10-18)
     ================================================================ */
  .hero-bg img.hero-photo{
    position:absolute; inset:0; width:100%; height:100%;
    object-fit: cover; object-position: var(--focal, center);
    opacity:0; transition: opacity 1.6s ease;
  }
  .hero-bg img.hero-photo.active{ opacity:1; }

  /* ---------- full-bleed photo band ---------- */
  .photo-band{
    position:relative; padding:0; border-top:none;
    height: 72vh; height: 72svh; min-height: 440px; max-height: 860px;
    overflow:hidden; background: var(--forest-deep);
  }
  .photo-band img{
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; object-position: var(--focal, center);
  }
  .photo-band::before{
    content:""; position:absolute; inset:0; z-index:1;
    background: linear-gradient(180deg, rgba(18,36,26,.28) 0%, rgba(18,36,26,.1) 40%, rgba(18,36,26,.72) 100%);
  }
  .photo-band-caption{
    position:absolute; left:0; right:0; bottom: 44px; z-index:2;
    text-align:center; color: var(--ivory); padding: 0 24px;
  }
  .photo-band-caption .flourish{ margin: 0 auto 10px; max-width: 220px; }
  .photo-band-caption p{
    font-family: var(--serif); font-style: italic; font-weight:400;
    font-size: clamp(22px, 3.2vw, 30px); letter-spacing:.5px;
    color: var(--ivory); text-shadow: 0 1px 18px rgba(0,0,0,.35);
  }
  @media (prefers-reduced-motion: reduce){ .hero-bg img.hero-photo{ transition:none; } }
