html,body{scrollbar-width:none!important;-ms-overflow-style:none!important}html::-webkit-scrollbar,body::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
:root {
  --wine: #66273d;
  --gold: #aa8748;
  --ivory: #f7f0df;
  --ink: #422f2a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 6px;
}

p {
  max-width: 560px;
  margin: 1.2em auto;
}

h1, h2, h3, .signature, .italic {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

h2 {
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.12;
  font-weight: 400;
  margin: 20px 0 30px;
}

h3 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 500;
}

.italic {
  font-size: 27px;
  line-height: 1.35;
  font-style: italic;
}

.signature {
  font-size: 28px;
  font-style: italic;
}

.small {
  font-size: 13px;
  color: #78685a;
}

/* ============================================================
   INTRO / COVER — Full Viewport on Mobile & Desktop
   ============================================================ */
#intro {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100svh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(ellipse at center, #7d354a 0%, #361b29 70%, #200e18 100%);
  color: #e6d1a2;
  padding: 16px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

#intro > .eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  margin-bottom: 8px;
}

.flip {
  background: none;
  border: 0;
  width: min(340px, 78vw);
  max-height: 68svh;
  max-height: 68dvh;
  aspect-ratio: 9/16;
  perspective: 1400px;
  padding: 0;
  display: block;
  margin: 8px auto;
}

.turn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.7s cubic-bezier(.2, .75, .22, 1);
}

.flipped .turn {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 28px 65px #16091188;
  display: block;
}

.face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.front {
  transform: rotateY(180deg);
}

.cover-label {
  position: absolute;
  top: 61%;
  left: 16%;
  right: 16%;
  color: var(--wine);
  text-align: center;
  line-height: 1.2;
}

.cover-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
}

.cover-label b {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  margin: 8px 0 6px;
}

.cover-date {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
}

.front-label {
  position: absolute;
  top: 22%;
  left: 15%;
  right: 15%;
  color: var(--wine);
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
}

.intro-note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  margin-top: 8px;
  color: #e6d1a2;
}

.sound {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 20;
  background: var(--ivory);
  color: var(--wine);
  border: 1px solid var(--gold);
  padding: 10px 15px;
  font-size: 13px;
  border-radius: 30px;
}

/* ============================================================
   HERO SECTION — Desktop default
   ============================================================ */
.hero {
  padding: 40px 20px 30px;
  text-align: center;
  background: #e9dfc9;
  position: relative;
}

.hero-card {
  position: relative;
  width: min(470px, 100%);
  margin: auto;
}

.hero-card > img {
  width: 100%;
  display: block;
}

.hero-copy {
  position: absolute;
  top: 18%;
  left: 14%;
  right: 14%;
  text-align: center;
}

.hero-copy p {
  font-size: 13px;
  line-height: 1.4;
  margin: 6px auto;
}

.hero-copy .eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
}

.hero-copy h1 {
  font-weight: 500;
  color: var(--wine);
  font-size: clamp(38px, 10vw, 58px);
  line-height: .95;
  margin: 10px 0;
}

.hero-copy h1 span {
  display: block;
  font-style: italic;
  font-size: 28px;
  margin: 4px;
  color: var(--gold);
}

.hero-copy .date {
  letter-spacing: .12em;
  font-size: 11px;
  margin-top: 12px;
  font-weight: 500;
}

.scroll {
  display: inline-block;
  color: var(--wine);
  font-size: 13px;
  margin-top: 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 90px 24px;
}

.letter {
  max-width: 1000px;
  margin: auto;
}

.ornament {
  width: 140px;
  display: block;
  margin: 0 auto 28px;
  mix-blend-mode: multiply;
}

.watermark {
  position: absolute;
  pointer-events: none;
  width: 350px;
  opacity: .08;
  mix-blend-mode: multiply;
  right: -100px;
  bottom: 10%;
  z-index: 0;
}

section > *:not(.watermark) {
  position: relative;
  z-index: 1;
}

.watermark.rose {
  width: 450px;
  left: -200px;
  bottom: 0;
}

.countdown {
  background: var(--wine);
  color: #f4e9ce;
  padding: 65px 20px;
}

.clock {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 25px 0;
}

.clock span {
  font-family: 'Cormorant Garamond';
  font-size: 45px;
  line-height: 1;
}

.clock small {
  display: block;
  font-family: 'DM Sans';
  font-size: 12px;
  letter-spacing: .05em;
  margin-top: 12px;
}

.outline, .primary {
  border: 1px solid var(--gold);
  padding: 12px 22px;
  color: inherit;
  background: transparent;
  font-size: 14px;
}

.primary {
  background: var(--wine);
  color: var(--ivory);
  border-color: var(--wine);
}

.venue {
  background: #eee5d3;
}

.venue-art {
  width: min(540px, 100%);
  mix-blend-mode: multiply;
}

.spread {
  background: #f8f3e7;
}

.cards {
  max-width: 1000px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.event-card {
  border: 0;
  padding: 0;
  background: transparent;
  aspect-ratio: 2/3;
  perspective: 1000px;
  color: var(--wine);
  position: relative;
  margin-bottom: 28px;
}

.event-card::after {
  content: 'Turn to discover';
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--wine);
}

.event-turn {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .9s;
}

.event-card[aria-pressed=true] .event-turn {
  transform: rotateY(180deg);
}

.event-face {
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  outline: 1px solid #c9af76;
  outline-offset: -10px;
  background: var(--ivory);
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 25px;
  box-shadow: 0 8px 25px #432b2910;
}

.event-face.full-art {
  padding: 0;
  display: block;
  overflow: hidden;
  outline: 0;
  border: 0;
}

.event-face.full-art > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  mix-blend-mode: normal;
  display: block;
}

.card-numeral {
  position: absolute;
  top: 2%;
  left: 0;
  right: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: #66273d;
}

.card-title {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 88.5%;
  height: 8%;
  color: #66273d;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-face .card-title b {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 2vw, 19px);
  letter-spacing: .04em;
  margin: 0;
  line-height: 1.2;
}

.reverse {
  transform: rotateY(180deg);
  background: var(--wine);
  color: var(--ivory);
  outline: 1px solid #c9af76;
  outline-offset: -10px;
  border: 1px solid var(--gold);
}

.reverse p {
  font-size: 15px;
  line-height: 1.65;
}

.reverse h3 {
  font-size: 32px;
  margin: 18px 0;
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 40px auto;
}

.photos div {
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #e8ddc5;
  border: 1px solid #bc9b63;
  font-family: 'Cormorant Garamond';
  font-size: 25px;
}

.photos small {
  font-family: 'DM Sans';
  font-size: 12px;
  margin-top: 10px;
}

.details {
  background: #eee5d3;
}

details {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  border-bottom: 1px solid #c7b48e;
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-size: 16px;
}

details p {
  font-size: 15px;
}

.rsvp {
  background: #f9f4e8;
}

form {
  max-width: 520px;
  margin: 35px auto;
  text-align: left;
}

label {
  display: block;
  margin: 18px 0;
  font-size: 14px;
}

input, select, textarea {
  display: block;
  width: 100%;
  background: #fffaf0;
  border: 1px solid #c7b48e;
  border-radius: 0;
  padding: 12px;
  color: var(--ink);
  margin-top: 6px;
}

form button {
  width: 100%;
}

#confirmation {
  max-width: 520px;
  margin: 30px auto;
  border: 1px solid var(--gold);
  padding: 25px;
}

footer {
  text-align: center;
  background: var(--wine);
  color: var(--ivory);
  padding: 65px 25px 100px;
}

footer .ornament {
  mix-blend-mode: normal;
  border-radius: 50%;
  width: 80px;
}

footer h2 {
  font-size: 44px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s, transform 1s;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   MOBILE RESPONSIVE — Full-Screen Edge-to-Edge Experience (<600px)
   ============================================================ */
@media (max-width: 650px) {
  section {
    padding: 65px 22px;
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 280px;
    gap: 26px;
  }

  .photos {
    gap: 8px;
  }

  .photos div {
    font-size: 17px;
    padding: 10px;
  }

  .photos small {
    font-size: 12px;
  }

  /* Intro Mobile full bleed */
  #intro {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
    margin: 0;
    padding: 14px 16px;
  }

  .flip {
    width: min(340px, 82vw);
    max-height: 70svh;
    max-height: 70dvh;
  }

  .cover-label {
    top: 60%;
    left: 15%;
    right: 15%;
  }

  .cover-label b {
    font-size: 24px;
    margin: 6px 0 4px;
  }

  /* Hero Section Mobile Full-Screen */
  .hero {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #200e18;
  }

  .hero-card {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    height: 100dvh;
    min-height: 100svh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 320px;
    margin: auto 0;
    padding: 0 20px;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-copy p {
    font-size: 11.5px;
    line-height: 1.35;
    margin: 2px auto;
  }

  .hero-copy .eyebrow {
    font-size: 9px;
    letter-spacing: .22em;
    color: #7a3a4f;
    margin-bottom: 2px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 9.5vw, 44px);
    line-height: 0.95;
    margin: 4px 0;
  }

  .hero-copy h1 span {
    font-size: 22px;
    margin: 2px 0;
  }

  .hero-copy .date {
    letter-spacing: .15em;
    font-size: 10.5px;
    font-weight: 500;
    margin: 4px 0;
    padding: 3px 8px;
    border-block: 1px solid rgba(102, 39, 61, 0.35);
  }

  .scroll {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
  }

  .clock {
    gap: 18px;
  }

  .clock span {
    font-size: 38px;
  }

  .watermark {
    width: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, .turn, .event-turn {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
