@font-face {
  font-family: Deco;
  src: url("../assets/fonts/poiret-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Jost;
  src: url("../assets/fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Marcellus;
  src: url("../assets/fonts/marcellus-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f9f1e5;
  --ink: #581d2d;
  --muted: #7c5058;
  --accent: #742e42;
  --line: #c5a49a;
  --surface: #efdfd4;
  --font: Jost, "Trebuchet MS", Arial, sans-serif;
  --display: Deco, "Century Gothic", sans-serif;
  --classic: Marcellus, Georgia, serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 20px;
  background: var(--ink);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 1400px;
  margin: auto;
  background: var(--paper);
  position: relative;
  isolation: isolate;
  padding: 40px 30px 0;
}
main::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 5px;
  pointer-events: none;
  z-index: -1;
}
main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/paper.webp") repeat;
  opacity: 0.028;
  pointer-events: none;
  z-index: -1;
}
p,
h1,
h2,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2 {
  font-weight: 400;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: #e4c9c4;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.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;
}
.deco-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 190px;
  height: 22px;
  margin: 0 auto;
}
.deco-ornament span {
  width: 66px;
  height: 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.deco-ornament i {
  display: block;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  position: relative;
}
.deco-ornament i::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--accent);
}
.invitation {
  max-width: 1120px;
  margin: auto;
  padding: 54px 45px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 84px;
}
.portrait-column {
  min-width: 0;
}
.couple-photo {
  position: relative;
  isolation: isolate;
  max-width: 430px;
  width: 100%;
  padding-top: 55px;
  margin: auto;
}
.portrait-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0 7px 0;
  background: var(--surface);
  clip-path: polygon(
    14% 0,
    86% 0,
    86% 5%,
    94% 5%,
    94% 12%,
    100% 12%,
    100% 100%,
    0 100%,
    0 12%,
    6% 12%,
    6% 5%,
    14% 5%
  );
}
.portrait-backdrop::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 6px;
}
.couple-photo picture {
  display: block;
  mask-image: linear-gradient(#000 91%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 91%, transparent 100%);
}
.couple-photo img {
  width: 100%;
  height: auto;
}
.save-date {
  text-align: center;
  margin-top: 24px;
  font-family: var(--classic);
  font-size: clamp(21px, 1.8vw, 27px);
  letter-spacing: 0.015em;
  color: var(--muted);
}
.invitation-copy {
  text-align: center;
}
.invitation-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 25px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(58px, 5.8vw, 82px);
  line-height: 1.03;
  text-transform: uppercase;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 15px;
  row-gap: 9px;
  letter-spacing: 0.025em;
}
h1 .ampersand {
  font-size: 0.55em;
}
h1 .name:last-child {
  grid-column: 1/-1;
}
.invitation-message {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 24px;
}
.event-details {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  column-gap: 23px;
  margin-top: 30px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.event-details dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}
#event-date {
  display: flex;
  align-items: center;
  gap: 12px;
}
.date-number {
  font-family: var(--display);
  font-size: 47px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.date-text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.55;
}
#event-time {
  font-size: 25px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.time-zone {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.event-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
  margin: 25px auto 0;
  width: fit-content;
  position: relative;
  z-index: 10;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
  font-size: 13px;
  color: var(--accent);
  transition: border-color 0.2s;
}
.text-link:hover {
  border-color: var(--accent);
}
.text-link span[aria-hidden] {
  font-size: 17px;
  transition: transform 0.2s;
}
.text-link:hover span[aria-hidden] {
  transform: translate(2px, -2px);
}
.venue-section {
  max-width: 980px;
  margin: auto;
  padding: 48px 0 0;
  border-top: 1px solid var(--line);
}
.venue-heading {
  text-align: center;
  padding: 42px 38px;
  align-self: center;
}
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 28px;
  text-align: center;
}
#event-venue {
  font-family: var(--classic);
  font-size: 42px;
  line-height: 1.22;
  text-wrap: balance;
  max-width: 410px;
  margin: auto;
}
.venue-heading .text-link {
  margin-top: 26px;
  position: relative;
  z-index: 10;
}
.venue-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 62px;
  padding: 34px;
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -10px;
  background: color-mix(in srgb, var(--surface) 56%, var(--paper));
}
.venue-photo {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 48% 48% 2px 2px;
  background: var(--paper);
}
.venue-photo::before {
  content: "";
  position: absolute;
  inset: -9px 13px 13px -9px;
  border: 1px solid var(--line);
  border-radius: 48% 48% 2px 2px;
  pointer-events: none;
}
.venue-photo picture {
  display: block;
  overflow: hidden;
  border-radius: 48% 48% 1px 1px;
  aspect-ratio: 2 / 3;
}
.venue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) sepia(0.07) contrast(0.97);
}
.venue-kicker {
  font-family: var(--classic);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 20px;
}
.roman-rule {
  display: block;
  width: 46px;
  height: 12px;
  margin: 24px auto 19px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.closing {
  text-align: center;
  padding: 65px 24px 85px;
}
.closing .deco-ornament {
  margin-bottom: 30px;
}
.closing-quote {
  font-family: var(--classic);
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1.3;
}
.closing-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 22px;
}
.signature {
  font-size: 12px;
  margin-top: 28px;
  color: var(--muted);
}
.signature span {
  display: block;
  color: var(--ink);
  font-size: 17px;
  margin-top: 4px;
}

.music-player {
  position: fixed;
  left: max(22px, env(safe-area-inset-left));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border: 1px solid var(--line);
  outline: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  outline-offset: 3px;
  box-shadow: 0 10px 28px rgb(55 17 28 / 0.14);
  transition:
    width 0.3s ease,
    border-radius 0.3s ease;
}
.music-toggle,
.music-close {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.music-toggle {
  min-width: 0;
  min-height: 48px;
  padding: 6px 10px 6px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
}
.music-glyph {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  transform: rotate(45deg);
}
.music-glyph::before {
  content: "♪";
  font-family: var(--classic);
  font-size: 14px;
  line-height: 1;
  transform: rotate(-45deg);
}
.music-player.is-playing .music-glyph::before {
  content: "Ⅱ";
  font-family: var(--font);
  font-size: 9px;
  letter-spacing: -0.12em;
}
.music-meta {
  min-width: 112px;
  line-height: 1.15;
}
.music-meta strong,
.music-meta small {
  display: block;
  white-space: nowrap;
}
.music-meta strong {
  font: 400 12px var(--classic);
  letter-spacing: 0.035em;
}
.music-meta small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.music-close {
  width: 44px;
  height: 44px;
  margin-left: 1px;
  color: var(--muted);
  font: 300 21px/1 var(--font);
  transition: color 0.2s ease;
}
.music-close:hover {
  color: var(--ink);
}
.music-player.is-collapsed {
  border-radius: 50%;
}
.music-player.is-collapsed .music-toggle {
  width: 48px;
  padding: 11px;
}
.music-player.is-collapsed .music-meta,
.music-player.is-collapsed .music-close {
  display: none;
}

.typo-visual {
  display: inline-flex;
  gap: 0.25em;
}
.typo-word {
  position: relative;
  display: inline-grid;
  text-align: left;
}
.typo-slip,
.typo-final {
  grid-area: 1/1;
}
.typo-slip {
  opacity: 0;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.typo-moment .typo-slip {
  animation: typo-slip 3.8s both;
}
.typo-moment .typo-final {
  animation: typo-final 3.8s both;
}
@keyframes typo-slip {
  0%,
  54% {
    opacity: 1;
    text-decoration-color: transparent;
  }
  62%,
  70% {
    opacity: 1;
    text-decoration-color: currentColor;
  }
  80%,
  100% {
    opacity: 0;
  }
}
@keyframes typo-final {
  0%,
  72% {
    opacity: 0;
  }
  84%,
  100% {
    opacity: 1;
  }
}

.petal-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9;
  contain: strict;
}
.falling-petal {
  position: absolute;
  top: -90px;
  left: var(--left);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  animation: petal-fall var(--duration) var(--delay) linear infinite;
  will-change: transform;
}
.falling-petal img {
  width: var(--size);
  height: var(--size);
  pointer-events: none;
  object-fit: contain;
  animation: petal-turn var(--turn-duration) ease-in-out infinite alternate;
}
.petals-paused .falling-petal,
.petals-paused .falling-petal img {
  animation-play-state: paused;
}
.falling-petal.is-released {
  animation: petal-release var(--drop-duration) linear forwards;
}
.petals-paused .falling-petal.is-released {
  animation-play-state: paused;
}
.falling-petal.is-dragging {
  animation: none;
  cursor: grabbing;
  z-index: 1;
}
.falling-petal.is-dragging img {
  animation-play-state: paused;
}
@keyframes petal-release {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--drift), var(--drop-distance), 0);
  }
}
@keyframes petal-fall {
  0% {
    transform: translate3d(0, -5vh, 0);
  }
  50% {
    transform: translate3d(var(--drift), 55vh, 0);
  }
  100% {
    transform: translate3d(0, 115vh, 0);
  }
}
@keyframes petal-turn {
  from {
    transform: rotateY(0deg) rotate(-20deg);
  }
  to {
    transform: rotateY(65deg) rotate(30deg);
  }
}

@media (max-width: 1199px) {
  .invitation {
    padding-inline: 30px;
    gap: 55px;
  }
  h1 {
    font-size: 63px;
  }
  .venue-section {
    margin-inline: 30px;
  }
}
@media (max-width: 1023px) {
  body {
    padding: 14px;
  }
  main {
    padding-inline: 22px;
  }
  .invitation {
    padding: 43px 20px 60px;
    gap: 35px;
  }
  h1 {
    font-size: 49px;
  }
  .invitation-label {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .invitation-message {
    font-size: 13px;
  }
  .couple-photo {
    padding-top: 40px;
  }
  .event-details {
    column-gap: 17px;
    grid-template-columns: 1.5fr 1fr;
  }
  .date-number {
    font-size: 38px;
  }
  .date-text {
    font-size: 11px;
  }
  #event-time {
    font-size: 20px;
  }
  .venue-section {
    margin-inline: 20px;
  }
  .venue-card {
    gap: 34px;
    padding: 28px;
  }
  .venue-heading {
    padding-inline: 15px;
  }
  #event-venue {
    font-size: 35px;
  }
}
@media (max-width: 767px) {
  body {
    padding: 10px;
  }
  main {
    padding: 29px 20px 0;
  }
  .music-player {
    left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  main::before {
    inset: 7px;
    outline-offset: 3px;
  }
  .deco-ornament {
    transform: scale(0.8);
  }
  .invitation {
    display: flex;
    flex-direction: column;
    padding: 24px 6px 37px;
    gap: 0;
  }
  .invitation-copy {
    display: contents;
  }
  .invitation-label {
    order: 0;
    font-size: 9px;
    letter-spacing: 0.13em;
    margin-bottom: 18px;
  }
  h1 {
    order: 1;
    font-size: 49px;
    column-gap: 12px;
    row-gap: 4px;
  }
  .portrait-column {
    order: 2;
    width: 240px;
    margin: 24px auto 0;
  }
  .couple-photo {
    padding-top: 28px;
  }
  .save-date {
    margin-top: 14px;
    font-size: 19px;
  }
  .invitation-message {
    order: 3;
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
  }
  .event-details {
    order: 4;
    width: 100%;
    max-width: 360px;
    margin-top: 24px;
    padding-top: 21px;
    column-gap: 21px;
  }
  .event-details dt {
    font-size: 9px;
  }
  .date-number {
    font-size: 43px;
  }
  .date-text {
    font-size: 12px;
  }
  #event-time {
    font-size: 23px;
  }
  .time-zone {
    font-size: 10px;
  }
  .event-links {
    order: 5;
    margin-top: 20px;
  }
  .text-link {
    font-size: 12px;
  }
  .venue-section {
    margin-inline: 6px;
    padding-top: 30px;
  }
  .section-label {
    font-size: 10px;
    margin-bottom: 20px;
  }
  #event-venue {
    font-size: 31px;
  }
  .venue-heading {
    padding: 8px 5px 16px;
  }
  .venue-heading .text-link {
    margin-top: 19px;
  }
  .venue-card {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 23px;
  }
  .venue-photo {
    width: min(100%, 330px);
    justify-self: center;
  }
  .closing {
    padding: 46px 5px 73px;
  }
  .closing-quote {
    font-size: 28px;
  }
  .closing-note {
    font-size: 12px;
  }
}
@media (max-width: 359px) {
  h1 {
    font-size: 42px;
  }
  .portrait-column {
    width: 215px;
  }
  .event-details {
    column-gap: 14px;
  }
  .date-number {
    font-size: 36px;
  }
  .date-text {
    font-size: 10px;
  }
  #event-date {
    gap: 8px;
  }
  #event-time {
    font-size: 20px;
  }
  #event-venue {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .petal-field,
  .typo-slip {
    display: none;
  }
  .typo-final {
    opacity: 1;
  }
}
