:root {
  color-scheme: light;
  --green: #30421f;
  --cream: #fffbe9;
  --paper: #f3e9c9;
}

* { box-sizing: border-box; }
html { background: #e9e3d0; }
body { margin: 0; font-family: "Raleway", Arial, sans-serif; }

.invitation {
  width: min(100%, 393px);
  margin: 0 auto;
  overflow: hidden;
  container-type: inline-size;
  box-shadow: 0 0 35px #272c1b2a;
}
.panel { position: relative; isolation: isolate; overflow: hidden; }
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.hero, .rsvp { background: #657b50; color: #fcfaed; }
.celebration, .accommodation { background: var(--paper); color: var(--green); }
.hero { aspect-ratio: 393 / 861; }
.celebration { aspect-ratio: 393 / 902; }
.accommodation { aspect-ratio: 393 / 881; }
.rsvp { aspect-ratio: 393 / 888; }

h1, h2, p, dl { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #ba7540; outline-offset: 3px; }

.hero-names {
  position: absolute; z-index: 1; top: 3.5%; left: 0; width: 100%;
  text-align: center; font: 700 16.5cqw/.91 "Amatic SC", cursive;
  white-space: normal; max-width: 100%; padding: 0 26cqw;
}
.hero-names span { display: block; font-size: .8em; line-height: .78; }
.hero-couple { position: absolute; top: 35%; left: 1%; width: 98%; }
.hero-date {
  position: absolute; top: 80%; width: 100%; text-align: center;
  font: 700 13.2cqw/1 "Amatic SC", cursive;
  letter-spacing: .02em;
}
.hero-married {
  position: absolute; top: 88.5%; width: 100%; text-align: center;
  font: 700 7.7cqw/1 "Amatic SC", cursive;
}

.intro {
  position: absolute; top: 3.3%; left: 4%; width: 92%; text-align: center;
  font-size: 5.05cqw; line-height: 1.9; color: #25261d;
}
.intro strong { font-weight: 800; }
.paper-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 11.5cqw; padding: 0 2.5cqw;
  border: 1px dashed #b7bd98; border-radius: 4px;
  background: var(--cream); color: var(--green);
  font: 600 4.25cqw/1.1 "Raleway", Arial, sans-serif;
  text-decoration: none; text-align: center; white-space: nowrap;
  box-shadow: 0 2px 2px #4f4b2c1c;
  cursor: pointer;
}
.paper-button:hover:not(:disabled) { background: #fff7d4; transform: translateY(-1px); }
.paper-button:disabled { cursor: not-allowed; opacity: .9; }
.directions { position: absolute; z-index: 2; top: 24%; left: 29.5%; width: 41%; }
.venue-art { position: absolute; top: 28.5%; left: 0; width: 100%; }
.schedule { position: absolute; top: 66.4%; left: 4.4%; width: 91.3%; height: 26.6%; }
.schedule > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.schedule dl {
  position: absolute; top: 21%; left: 14%; width: 72%;
  display: grid; gap: 1.5cqw; color: var(--green);
  font-size: 3.7cqw; font-weight: 700;
}
.schedule dl > div { display: grid; grid-template-columns: 25% 75%; }
.schedule dt, .schedule dd { margin: 0; }
.schedule dd { text-align: right; }
.weather-note {
  position: absolute; bottom: 1.4%; left: 5%; width: 90%;
  text-align: center; color: #27281c; font-size: 3.8cqw; line-height: 1.25;
}

.little-heading { position: absolute; top: 2.8%; left: 5%; font: 500 8.2cqw/1 "Raleway", sans-serif; }
.accommodation h2 {
  position: absolute; top: 6.5%; left: 5%; width: 90%;
  font: 900 13.8cqw/1 "Raleway", sans-serif;
  letter-spacing: -.06em;
}
.castle-art { position: absolute; top: 11.5%; left: -2%; width: 76%; }
.hotels-intro { position: absolute; top: 51.5%; left: 7%; width: 86%; font-size: 4.3cqw; line-height: 1.45; }
.hotel-links { position: absolute; inset: 0; pointer-events: none; }
.hotel-links a { position: absolute; pointer-events: auto; }
.hotel { min-height: 10.8cqw; font-size: 3.8cqw; }
.temple { top: 60%; left: 30.5%; width: 39%; }
.plaza { top: 68.5%; left: 8.5%; width: 33%; }
.aroi { top: 68.5%; right: 8.5%; width: 33%; }
.home-message { position: absolute; top: 80.3%; left: 4.7%; font-size: 5cqw; line-height: 1.3; z-index: 1; }
.home-message span { font-size: 7.1cqw; font-weight: 500; }
.dog-art { position: absolute; top: 80.5%; right: -1%; width: 51%; z-index: 1; }
.grass-art { position: absolute; bottom: 1.5%; left: -4%; width: 108%; max-width: none; }

.birds-art { position: absolute; top: 6%; right: -3%; width: 42%; }
.rsvp-pretitle { position: absolute; top: 11%; left: 6%; font-size: 8.1cqw; }
.rsvp h2 { position: absolute; top: 15.2%; left: 6%; font: 900 14.5cqw/1 "Raleway", sans-serif; letter-spacing: -.06em; }
.rsvp-portrait { position: absolute; top: 24.5%; left: 15%; width: 70%; height: 41%; }
.rsvp-portrait .portrait { position: absolute; top: 5%; left: 10%; width: 80%; }
.rsvp-portrait .illustrated-couple { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rsvp-action { position: absolute; top: 68.7%; left: 12%; width: 76%; text-align: center; }
.confirm { min-width: 52%; min-height: 12cqw; border: 0; font-weight: 900; }
.rsvp-action p { margin-top: 1.6cqw; font-size: 3.2cqw; line-height: 1.2; }
.contacts { position: absolute; top: 77.3%; left: 9%; width: 82%; text-align: center; font-size: 4.5cqw; line-height: 1.2; }
.contacts a { text-decoration: none; }
.gift-note { position: absolute; top: 85.5%; left: 8%; width: 84%; text-align: center; font-size: 3.55cqw; line-height: 1.18; }

@media (prefers-reduced-motion: no-preference) {
  .paper-button { transition: background-color .15s ease, transform .15s ease; }
}
