:root {
  --paper: #faf5eb;
  --ink: #5b4d3a;
  --accent: #a18047;
  --muted: #817563;
  --line: #ded0b4;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.75;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin-top: 0;
}
h1 {
  font-size: clamp(52px, 7vw, 100px);
}
h2 {
  font-size: clamp(30px, 4vw, 49px);
}
h3 {
  font-size: 23px;
}
p {
  margin: 0 0 22px;
}
a {
  text-decoration: none;
}
button {
  color: inherit;
}
body.closed {
  overflow: hidden;
}
.invitation-content {
  max-width: 100%;
  overflow: hidden;
}
.waiting {
  height: 100dvh;
  overflow: hidden;
}
.scene {
  position: relative;
  padding: 90px 28px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.scene > p,
.scene > h2 {
  max-width: 570px;
  margin-left: auto;
  margin-right: auto;
}
.scene > h2 {
  margin-bottom: 30px;
}
.scene-kicker {
  font-size: 9px;
  letter-spacing: 3px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero-scene {
  min-height: 100dvh;
  padding: 85px 25px 55px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.hero-scene h1 {
  position: relative;
  z-index: 2;
}
.hero-message {
  max-width: 490px;
  font-size: 14px;
  line-height: 1.9;
  margin: 25px auto;
}
.hero-photo {
  object-fit: cover;
  max-height: 620px;
  width: 100%;
  height: 100%;
}
.hero-photo-frame {
  overflow: hidden;
}
.ornament {
  font-size: 25px;
  color: var(--accent);
  margin: 25px auto;
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: center;
}
.ornament:before,
.ornament:after {
  content: "";
  height: 1px;
  width: 55px;
  background: var(--line);
}
.invite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  color: var(--paper);
  background: var(--accent);
  border-radius: 2px;
  padding: 13px 25px;
  font-size: 11px;
  letter-spacing: 1px;
  min-height: 45px;
  gap: 8px;
  transition:
    background 0.25s,
    transform 0.25s;
}
.invite-button:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}
.invite-button.secondary {
  color: var(--accent);
  background: transparent;
}
.line-icon {
  font-size: 42px;
  line-height: 1;
  display: block;
  margin-bottom: 25px;
  color: var(--accent);
}
.date-stamp {
  font-family: var(--serif);
  font-size: 26px;
  margin: 25px 0;
}
.date-stamp small {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 10px;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 40px auto 25px;
  max-width: 480px;
}
.countdown div {
  flex: 1;
  min-width: 0;
}
.countdown b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.2;
}
.countdown span {
  display: block;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}
.countdown i {
  font-style: normal;
  font-size: 23px;
  opacity: 0.5;
}
.countdown-scene > p:not(.scene-kicker) {
  font-size: 12px;
  color: var(--muted);
}
.location-arch {
  max-width: 520px;
  padding: 65px 40px 45px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 50% 50% 4px 4px;
}
.location-arch h2 {
  font-size: 36px;
}
.location-arch h3 {
  font-size: 23px;
  margin-bottom: 15px;
}
.location-arch p {
  font-size: 13px;
}
.time-chip {
  font-size: 11px !important;
  letter-spacing: 2px;
  display: block;
  margin: 25px 0;
}
.story-line {
  max-width: 500px;
  margin: 50px auto 0;
  position: relative;
}
.story-line:before {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  top: 0;
  bottom: 0;
  background: var(--line);
  z-index: -1;
}
.story-moment {
  padding: 0 0 40px;
  position: relative;
}
.story-moment:last-child {
  padding-bottom: 0;
}
.story-dot {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  font-size: 24px;
  line-height: 42px;
}
.story-moment h3,
.story-moment p,
.story-moment small {
  background: var(--paper);
  padding: 5px 18px;
  margin: 0 auto;
  display: block;
}
.story-moment small {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
}
.story-moment h3 {
  margin-top: 8px;
  font-size: 24px;
}
.story-moment p {
  font-size: 13px;
  line-height: 1.9;
  padding-bottom: 18px;
  max-width: 420px;
}
.story-photo {
  max-height: 260px;
  object-fit: cover;
  margin: 15px auto;
  max-width: 320px;
}
.family-names {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.8;
  max-width: 450px !important;
}
.schedule {
  max-width: 520px;
  margin: 40px auto 0;
  text-align: left;
  position: relative;
}
.schedule article {
  display: grid;
  grid-template-columns: 70px 20px 1fr;
  gap: 16px;
  position: relative;
  padding-bottom: 32px;
}
.schedule article:last-child {
  padding-bottom: 0;
}
.schedule article:before {
  content: "";
  position: absolute;
  left: 95px;
  top: 20px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.schedule article:last-child:before {
  display: none;
}
.schedule-time {
  color: var(--accent);
  font-size: 12px;
  padding-top: 4px;
  letter-spacing: 1px;
}
.schedule-mark {
  font-size: 20px;
  line-height: 1.2;
  color: var(--accent);
}
.schedule h3 {
  font-size: 23px;
  margin-bottom: 9px;
}
.schedule p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.photo-gallery {
  max-width: 860px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 40px auto 0;
}
.gallery-photo {
  max-width: 290px;
  flex: 1 1 200px;
  border: 0;
  padding: 10px 10px 30px;
  background: white;
  box-shadow: 0 12px 25px #5b4d3a18;
  transform: rotate(var(--rotation));
  transition: transform 0.5s;
}
.gallery-photo:hover {
  transform: rotate(0) scale(1.03);
}
.gallery-photo img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}
.dress-swatches {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 30px auto 0;
}
.dress-swatches i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #aaae88;
}
.dress-swatches i:nth-child(2) {
  background: #d3bda0;
}
.dress-swatches i:nth-child(3) {
  background: #bea080;
}
.dress-swatches i:nth-child(4) {
  background: #a48b76;
}
.gift-details {
  max-width: 410px;
  margin: 30px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.gift-details summary {
  font-size: 12px;
  cursor: pointer;
}
.gift-details p {
  margin: 18px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.rsvp-scene form {
  max-width: 430px;
  margin: 32px auto 0;
  text-align: left;
}
.form-field {
  margin-bottom: 17px;
}
.form-field label {
  font-size: 11px;
  display: block;
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fffaf477;
  border-radius: 2px;
  font-size: 13px;
  min-height: 44px;
}
.form-field textarea {
  resize: vertical;
  min-height: 85px;
}
.rsvp-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.rsvp-scene .invite-button {
  width: 100%;
  margin-top: 6px;
}
.rsvp-privacy {
  display: block;
  text-align: center;
  font-size: 9px;
  color: var(--muted);
  margin: 16px 8px;
}
.deadline {
  font-size: 11px;
  color: var(--accent);
}
.rsvp-result {
  font-size: 12px;
  color: #386544;
}
.rsvp-result.error {
  color: #a34430;
}
.invitation-footer {
  text-align: center;
  padding: 70px 25px 90px;
  max-width: 680px;
  margin: auto;
}
.invitation-footer h2 {
  font-size: 36px;
  margin: 30px auto;
  max-width: 440px;
}
.invitation-footer > p {
  font-family: var(--serif);
  font-size: 25px;
}
.made-with {
  display: block;
  font-size: 9px;
  letter-spacing: 0.3px;
  color: var(--muted);
  margin-top: 65px;
}
.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  z-index: 40;
  box-shadow: 0 5px 20px #0001;
  font-size: 20px;
}
.music-toggle.playing {
  box-shadow: 0 0 0 5px #b6a07b22;
}
.demo-bar {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  background: #213e35;
  color: #fff;
  padding: 9px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font:
    10px Arial,
    sans-serif;
  height: 38px;
  gap: 8px;
}
.demo-bar span {
  opacity: 0.6;
  font-size: 9px;
}
.invitation-gate {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 90;
  overflow: hidden;
  padding: 60px 22px 30px;
}
.skip-intro {
  position: absolute;
  bottom: 27px;
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 12px;
}
.invitation-gate .gate-kicker {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.gate-title {
  font-size: clamp(30px, 5vw, 50px);
  text-align: center;
  max-width: 480px;
  margin: 0 0 50px;
}
.paper {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
}
#lightbox {
  border: 0;
  background: transparent;
  padding: 35px 10px 10px;
  max-width: 95vw;
  max-height: 95dvh;
  overflow: visible;
}
#lightbox::backdrop {
  background: #18221be6;
}
#lightbox img {
  max-width: 90vw;
  max-height: 85dvh;
  object-fit: contain;
}
.close-lightbox {
  position: absolute;
  right: 6px;
  top: 0;
  border: 0;
  color: white;
  background: none;
  font-size: 30px;
}
#toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 15px);
  background: #253e35;
  color: white;
  max-width: 90vw;
  border-radius: 10px;
  padding: 12px 19px;
  font-size: 12px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 900px) {
  .invitation-content {
    max-width: 1000px;
    margin: auto;
    box-shadow: 0 0 90px #6454390c;
  }
  .scene {
    padding: 110px 60px;
  }
  .hero-scene {
    padding-top: 80px;
  }
  .hero-photo-frame {
    max-width: 420px;
  }
  .hero-scene h1 {
    font-size: 82px;
  }
  .hero-message {
    font-size: 15px;
  }
  .scene-kicker {
    font-size: 10px;
  }
  .scene > p {
    font-size: 15px;
  }
}
@media (max-width: 400px) {
  .scene {
    padding: 70px 23px;
  }
  .countdown {
    gap: 9px;
  }
  .countdown b {
    font-size: 39px;
  }
  .countdown i {
    font-size: 20px;
  }
  .countdown span {
    font-size: 7px;
  }
  .location-arch {
    padding: 55px 22px 35px;
  }
  .location-arch h2 {
    font-size: 30px;
  }
  .location-arch h3 {
    font-size: 21px;
  }
  .schedule article {
    grid-template-columns: 50px 15px 1fr;
    gap: 12px;
  }
  .schedule article:before {
    left: 69px;
  }
  .schedule h3 {
    font-size: 21px;
  }
  .scene h2 {
    font-size: 31px;
  }
  .demo-bar {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .scene [class] {
    opacity: 1;
  }
}
.hero-scene h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.envelope-letter > span {
  overflow-wrap: anywhere;
}
