:root {
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --ink: #30211f;
  --white: #fffaf5;
  --muted: #76665f;
  --accent: #963f50;
  --gold: #b2864f;
  --green: #344e43;
  --line: rgb(57 39 30 / 14%);
  --panel-sand: #f8f2ea;
  --panel-cream: #fbf7f1;
  --panel-stone: #f3f1eb;
  --panel-wine: #f8eef0;
  --panel-cocoa: #f3ece4;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--panel-sand);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.masthead {
  align-items: center;
  color: var(--ink);
  display: flex;
  inset: 0 0 auto 0;
  justify-content: space-between;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 4vw, 3.5rem);
  pointer-events: none;
  position: fixed;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--white);
  display: flex;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  gap: 0.8rem;
  letter-spacing: 0.05em;
  pointer-events: auto;
  text-shadow: 0 1px 10px rgb(18 13 11 / 32%);
}

.brand-mark {
  align-items: center;
  border: 1px solid rgb(255 250 245 / 48%);
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.65rem;
  color: #f3d3a0;
  font-style: italic;
  height: 2.55rem;
  justify-content: center;
  width: 2.55rem;
}

.counter {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.3em;
}

.page-dots {
  display: grid;
  gap: 0.82rem;
  position: fixed;
  right: clamp(1.25rem, 3vw, 2.25rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
}

.dot {
  background: rgb(62 44 36 / 27%);
  border-radius: 99px;
  height: 0.42rem;
  transition: background 220ms ease, height 220ms ease;
  width: 0.42rem;
}

.dot:hover,
.dot.is-current {
  background: var(--gold);
}

.dot.is-current {
  height: 1.75rem;
}

.slides {
  height: 100svh;
  overscroll-behavior-y: none;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  touch-action: none;
}

.slides::-webkit-scrollbar {
  display: none;
}

.slide {
  display: grid;
  grid-template-columns: minmax(360px, 53.5%) 1fr;
  height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.photo {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

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

.tone-sand .copy {
  background: var(--panel-sand);
}

.tone-cream .copy {
  background: var(--panel-cream);
}

.tone-stone .copy {
  background: var(--panel-stone);
}

.tone-wine .copy {
  background: var(--panel-wine);
}

.tone-cocoa .copy {
  background: var(--panel-cocoa);
}

.copy {
  align-content: center;
  display: grid;
  min-width: 0;
  padding: clamp(5.5rem, 13vh, 8.5rem) clamp(3rem, 7vw, 7.5rem)
    clamp(3.2rem, 8vh, 5.25rem) clamp(2.7rem, 6vw, 6.5rem);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  margin: 0 0 1.65rem;
  text-transform: uppercase;
  -webkit-text-stroke: #130f0d;
  -webkit-text-size-adjust: auto;
  -webkit-text-stroke-width: 0.02rem;
  
  
}

h1,
h2 {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 5.4vw, 5.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.94;
  margin: 0 0 clamp(1.4rem, 4vh, 2.35rem);
  max-width: 9ch;
}

.names {
  max-width: 10ch;
}

.names span {
  color: var(--accent);
  display: block;
  font-size: 0.7em;
  font-style: italic;
  line-height: 0.8;
  margin-left: 0.85em;
}

.lead {
  color: #594c47;
  font-size: clamp(0.94rem, 1.15vw, 1.02rem);
  line-height: 1.8;
  margin: 0 0 clamp(1.7rem, 5vh, 2.6rem);
  max-width: 25rem;
}

.date {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.69rem;
  font-weight: 600;
  gap: 2rem;
  letter-spacing: 0.25em;
  margin: 0;
  max-width: 25rem;
  padding-top: 1.3rem;
  text-transform: uppercase;
}

.date span {
  color: var(--ink);
}

.detail {
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-style: italic;
  margin: 0;
}

.information {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.1rem;
  margin: 0;
  max-width: 25rem;
  padding-top: 1.35rem;
}

.information div {
  display: flex;
  justify-content: space-between;
}

.information dt {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.information dd {
  font-size: 0.9rem;
  margin: 0;
  max-width: 15.5rem;
  text-align: right;
}

.button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--white);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 500;
  justify-content: center;
  letter-spacing: 0.22em;
  margin-top: 0.2rem;
  padding: 1.15rem 2rem;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
  width: fit-content;
}

.button:hover {
  background: transparent;
  color: var(--ink);
}

.signature {
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  margin: clamp(2rem, 5vh, 3.2rem) 0 0;
}

.contacts {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
  max-width: 25rem;
  padding-top: 1.35rem;
}

.contacts a {
  align-items: baseline;
  color: var(--ink);
  display: flex;
  font-size: 1rem;
  gap: 1rem;
}

.contacts span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  min-width: 5.5rem;
  text-transform: uppercase;
}

.gift-details {
  border-top: 1px solid var(--line);
  max-width: 25rem;
  min-width: 0;
  padding-top: 1.35rem;
  width: 100%;
}

.gift-label {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.gift-number {
  color: var(--accent);
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.45rem);
  line-height: 1;
  margin-bottom: 1.1rem;
}

.gift-note {
  color: #594c47;
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.countdown {
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(0.8rem, 2.4vw, 1.55rem);
  grid-template-columns: repeat(4, 1fr);
  max-width: 28rem;
  padding-top: 1.35rem;
}

.countdown div {
  min-width: 0;
}

.countdown span {
  color: var(--accent);
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 3.5vw, 3rem);
  line-height: 1;
}

.countdown small {
  color: var(--muted);
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-top: 0.58rem;
  text-transform: uppercase;
}

.countdown-date {
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.75;
  margin: clamp(1.25rem, 3vh, 1.85rem) 0 0;
  text-transform: uppercase;
}

.countdown-date span {
  color: var(--muted);
  display: block;
}

.scroll-cue {
  align-items: center;
  bottom: clamp(2rem, 5vh, 3.25rem);
  color: var(--muted);
  display: flex;
  font-size: 0.62rem;
  font-weight: 600;
  gap: 0.85rem;
  letter-spacing: 0.29em;
  position: absolute;
  right: clamp(3rem, 7vw, 7.5rem);
  text-transform: uppercase;
}

.scroll-cue i {
  animation: drift 1.8s ease-in-out infinite;
  border-bottom: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  display: block;
  height: 0.55rem;
  transform: rotate(45deg);
  width: 0.55rem;
}

.slide:first-child .copy {
  position: relative;
}

@keyframes drift {
  50% {
    transform: translateY(0.4rem) rotate(45deg);
  }
}

@media (max-width: 760px) {
  body {
    background: #130f0d;
  }

  .masthead {
    color: var(--white);
    mix-blend-mode: difference;
    padding: max(1.25rem, env(safe-area-inset-top)) 1.15rem 0;
  }

  .brand {
    font-size: 1rem;
    gap: 0.65rem;
  }

  .brand-mark {
    border-color: rgb(255 250 245 / 45%);
    font-size: 1.35rem;
    height: 2.2rem;
    width: 2.2rem;
  }

  .counter {
    color: var(--white);
  }

  .page-dots {
    bottom: max(1.4rem, env(safe-area-inset-bottom));
    display: flex;
    gap: 0.6rem;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
  }

  .dot {
    background: rgb(255 250 245 / 42%);
    height: 0.35rem;
    width: 1.2rem;
  }

  .dot.is-current {
    background: var(--white);
    height: 0.35rem;
    width: 2.5rem;
  }

  .slide {
    display: block;
    height: 100svh;
    min-height: 0;
    position: relative;
  }

  .photo {
    inset: 0;
    position: absolute;
  }

  .photo::after {
    background:
      linear-gradient(180deg, rgb(10 8 7 / 15%) 0%, transparent 32%),
      linear-gradient(0deg, rgb(12 9 8 / 84%) 0%, rgb(12 9 8 / 56%) 35%, transparent 67%);
    content: "";
    inset: 0;
    position: absolute;
  }

  .photo img {
    object-position: center center;
  }

  .tone-sand .photo img {
    object-position: 50% center;
  }

  .tone-cream .photo img {
    object-position: center 32%;
  }

  .copy,
  .tone-sand .copy,
  .tone-cream .copy,
  .tone-stone .copy,
  .tone-wine .copy,
  .tone-cocoa .copy {
    align-content: end;
    background: transparent;
    color: var(--white);
    height: 100%;
    padding: 7rem 1.35rem max(4.5rem, calc(env(safe-area-inset-bottom) + 3.4rem));
    position: relative;
    z-index: 1;
  }

  .eyebrow {
    color: #f0c98d;
    margin-bottom: 1.05rem;
  }

  h1,
  h2 {
    color: var(--white);
    font-size: clamp(2.8rem, 14vw, 3.7rem);
    line-height: 0.98;
    margin-bottom: 1.05rem;
    max-width: 9ch;
  }

  .lead {
    color: rgb(255 250 245 / 86%);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.35rem;
    max-width: 21.5rem;
  }

  .date,
  .information {
    border-color: rgb(255 250 245 / 28%);
    max-width: none;
  }

  .date {
    display: grid;
    gap: 0.5rem;
  }

  .information {
    gap: 0.78rem;
    padding-top: 1.1rem;
  }

  .information div {
    align-items: start;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 5.2rem 1fr;
  }

  .date,
  .information dt {
    color: rgb(255 250 245 / 67%);
  }

  .date span,
  .information dd {
    color: var(--white);
  }

  .information dd {
    font-size: 0.84rem;
    max-width: none;
    text-align: left;
  }

  .detail,
  .signature {
    color: #f0c98d;
  }

  .names span {
    color: #f0c98d;
  }

  .contacts {
    border-color: rgb(255 250 245 / 28%);
  }

  .contacts a {
    color: var(--white);
  }

  .contacts span {
    color: rgb(255 250 245 / 67%);
  }

  .gift-details {
    border-color: rgb(255 250 245 / 28%);
  }

  .gift-label {
    color: rgb(255 250 245 / 67%);
  }

  .gift-number {
    color: #f0c98d;
  }

  .gift-note {
    color: rgb(255 250 245 / 86%);
  }

  .countdown {
    border-color: rgb(255 250 245 / 28%);
    gap: 0.72rem;
    max-width: none;
    padding-top: 1.05rem;
  }

  .countdown span {
    color: #f0c98d;
    font-size: clamp(2rem, 11vw, 2.45rem);
  }

  .countdown small {
    color: rgb(255 250 245 / 67%);
    font-size: 0.54rem;
    letter-spacing: 0.13em;
  }

  .countdown-date {
    color: var(--white);
    font-size: 0.65rem;
    margin-top: 1.2rem;
  }

  .countdown-date span {
    color: rgb(255 250 245 / 67%);
  }

  .button {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
  }

  .scroll-cue {
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    color: rgb(255 250 245 / 74%);
    display: none;
    left: 1.35rem;
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* Guestbook form styles */
.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 540px;
  padding: 1.25rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.86));
  box-shadow: 0 10px 30px rgba(18,13,11,0.10);
  border: 1px solid rgba(18,13,11,0.04);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}


.field-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.field-inline .field-label {
  width: 7.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--muted);
}

.guestbook-form input,
.guestbook-form textarea {
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(18,13,11,0.10);
  padding: 0.45rem 0;
  font: inherit;
  flex: 1 1 auto;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.guestbook-form input,
.guestbook-form textarea {
  color: var(--white);
}

.guestbook-form textarea {
  min-height: 4rem;
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
  color: transparent;
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 6px 20px rgba(18,13,11,0.06);
}

.guestbook-form button {
  padding: 0.95rem 1.1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(150,63,80,0.12);
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
  width: fit-content;
  align-self: flex-start;
}

.guestbook-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(150,63,80,0.16);
  opacity: 0.98;
}

@media (max-width:760px) {
  .guestbook-form {
    background: rgba(10,8,7,0.36);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.06);
  }

  .guestbook-form input,
  .guestbook-form textarea {
    background: rgba(255,255,255,0.06);
  }

  .field-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .field-inline .field-label {
    width: auto;
  }

  .guestbook-form button {
    width: 100%;
    align-self: stretch;
    padding: 1rem;
  }
}
