@font-face {
    font-family: "Great Vibes";
    src: url("assets/fonts/great-vibes.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant";
    src: url("assets/fonts/cormorant-regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Gotham Pro";
    src: url("assets/fonts/gothampro-regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gotham Pro";
    src: url("assets/fonts/gothampro-italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --wine: #43040b;
    --wine-deep: #260106;
    --paper: #f9f5eb;
    --script: "Great Vibes", cursive;
    --serif: "Cormorant", Georgia, serif;
    --sans: "Gotham Pro", sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--wine-deep);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    color: var(--wine);
    background: var(--wine-deep);
    font-family: var(--sans);
}

body.is-intro-active {
    overflow: hidden;
}

button {
    font: inherit;
}

img,
video {
    display: block;
    max-width: 100%;
}

.invitation,
.intro__surface {
    container-type: inline-size;
    width: min(100%, 440px);
    margin-inline: auto;
}

.invitation {
    overflow: hidden;
    background: var(--paper);
    box-shadow: 0 0 64px rgba(10, 0, 1, 0.5);
}

.section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.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;
}

.intro {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: start center;
    overflow: hidden;
    background: var(--wine-deep);
    opacity: 1;
    visibility: visible;
    transition: opacity 900ms var(--ease-out), visibility 0s linear 900ms;
}

.intro[hidden] {
    display: none;
}

.intro.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro__surface {
    position: relative;
    height: 100dvh;
    max-height: 956px;
    overflow: hidden;
    background: var(--wine);
    box-shadow: 0 0 64px rgba(10, 0, 1, 0.58);
}

.intro__poster,
.intro__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro__video {
    z-index: 2;
    background: transparent;
}

.intro:not(.has-video) .intro__video {
    opacity: 0;
}

.intro__monogram {
    position: absolute;
    z-index: 1;
    top: 38.7%;
    left: 41.59%;
    width: 17.64%;
}

.intro.has-video .intro__monogram {
    opacity: 0;
}

.intro__skip {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: max(20px, env(safe-area-inset-bottom));
    min-height: 44px;
    padding: 10px 16px;
    color: rgba(249, 245, 235, 0.82);
    background: rgba(44, 0, 6, 0.52);
    border: 1px solid rgba(249, 245, 235, 0.4);
    border-radius: 999px;
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 300ms ease;
    cursor: pointer;
}

.intro__skip:focus-visible,
.intro.show-skip .intro__skip {
    opacity: 1;
}

.cover {
    aspect-ratio: 440 / 784;
    background: var(--paper);
}

.cover__background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.cover__names {
    position: absolute;
    top: 31.6327%;
    left: 36.1364%;
    width: 27.779%;
    height: 36.069%;
    overflow: hidden;
}

.cover__names > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.cover__names h1 {
    position: absolute;
    top: 20.5106%;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.8636cqw;
    width: 25.2273cqw;
    margin: 0;
    font-family: var(--script);
    font-size: 9.0909cqw;
    font-weight: 400;
    line-height: 1.387;
    text-align: center;
}

.cover__names h1 span {
    width: 100%;
    height: 12.5cqw;
}

.cover__names h1 img {
    width: 4.5455cqw;
    height: 4.5455cqw;
    object-fit: contain;
}

.cover__names > .cover__flourish--bottom {
    top: auto;
    bottom: 0;
    transform: rotate(180deg);
}

.welcome {
    aspect-ratio: 440 / 713;
    background: var(--wine);
}

.welcome__background {
    position: absolute;
    top: -4.7686%;
    left: 0;
    width: 100%;
    height: 109.6774%;
    object-fit: cover;
}

.welcome__card {
    position: absolute;
    top: 8.6957%;
    left: 5.4545%;
    width: 88.8636%;
    height: 82.6087%;
}

.welcome__copy {
    position: absolute;
    z-index: 1;
    top: 30.7153%;
    left: 21.8182%;
    display: flex;
    flex-direction: column;
    gap: 1.1364cqw;
    width: 56.1364%;
    text-align: center;
}

.welcome__copy h2 {
    margin: 0;
    font-family: var(--script);
    font-size: 7.2727cqw;
    font-weight: 400;
    line-height: normal;
}

.welcome__copy p {
    margin: 0;
    font-size: 3.1818cqw;
    line-height: 1.387;
}

.welcome__signature {
    position: absolute;
    z-index: 1;
    top: 65.7784%;
    left: 22.5%;
    width: 54.7727%;
    margin: 0;
    font-family: var(--script);
    font-size: 5.4545cqw;
    line-height: 1.387;
    text-align: center;
}

.program {
    background: var(--paper);
}

.program--first {
    aspect-ratio: 440 / 1149;
}

.program--second {
    aspect-ratio: 440 / 1058;
}

.program__paper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.program__script {
    position: absolute;
    z-index: 1;
    top: 0;
}

.program__script--left {
    left: 0;
    width: 43.6364%;
    height: 18.5379%;
}

.program__script--right {
    right: 0;
    width: 45.9091%;
    height: 17.8416%;
}

.program__emblem {
    position: absolute;
    top: 1.1722%;
    left: 41.5909%;
    width: 16.8182%;
    height: 10.0087%;
}

.program__flora,
.program__thread,
.day-two-watch,
.day-two-flora,
.day-two-collage {
    position: absolute;
    z-index: 1;
}

.program__flora--left {
    top: 24.8042%;
    left: 0;
    width: 18.8636%;
    height: 35.6832%;
}

.program__flora--right {
    top: 8.4421%;
    right: 0;
    width: 20.2273%;
    height: 34.7258%;
}

.program__thread {
    top: 44.9956%;
    right: 0;
    width: 17.5%;
    height: 19.4952%;
}

.program__heading {
    position: absolute;
    z-index: 2;
    top: 12.4456%;
    left: 0;
    width: 100%;
    height: 8.267%;
    text-align: center;
}

.program__heading p,
.program__heading h2 {
    margin: 0;
    font-weight: 400;
    white-space: nowrap;
}

.program__heading p {
    height: 6.3636cqw;
    font-family: var(--sans);
    font-size: 4.5455cqw;
    line-height: 1.387;
}

.program__heading h2 {
    height: 15.2273cqw;
    font-family: var(--script);
    font-size: 10.9091cqw;
    line-height: 1.387;
}

.day-card {
    position: absolute;
    z-index: 2;
    top: 22.7154%;
    left: 16.5909%;
    width: 66.84%;
    height: 18.799%;
    text-align: center;
}

.day-pill {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50cqw;
    height: 8.4091cqw;
    transform: translateX(-50%);
}

.day-card h3 {
    position: absolute;
    top: 12.9545cqw;
    left: 50%;
    width: 70cqw;
    height: 10cqw;
    margin: 0;
    overflow: visible;
    font-family: var(--script);
    font-size: 8.1818cqw;
    font-weight: 400;
    line-height: 1.387;
    transform: translateX(-50%);
    white-space: nowrap;
}

.day-card time {
    position: absolute;
    top: 24.7727cqw;
    left: 50%;
    width: 32.2727cqw;
    height: 5cqw;
    font-size: 3.6364cqw;
    font-style: italic;
    line-height: 1.387;
    transform: translateX(-50%);
    white-space: nowrap;
}

.tags {
    position: absolute;
    top: 33.1818cqw;
    left: 50%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.2727cqw;
    width: 56.3636cqw;
    margin: 0;
    padding: 0;
    list-style: none;
    transform: translateX(-50%);
}

.tags li {
    height: 6.8182cqw;
    padding: 0.6818cqw 3.4091cqw;
    border: 1px solid var(--wine);
    border-radius: 10cqw;
    font-size: 3.6364cqw;
    line-height: 1.387;
    white-space: nowrap;
}

.program__divider {
    position: absolute;
    z-index: 2;
    top: 46.3011%;
    left: 28.4984%;
    width: 43.0247%;
    height: 1.7406%;
}

.dress-code {
    position: absolute;
    z-index: 2;
    top: 49.3473%;
    left: 27.8517%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1364cqw;
    width: 44.3182%;
    height: 10.9661%;
    text-align: center;
}

.dress-code p,
.dress-code h3,
.dress-code span {
    display: block;
    margin: 0;
}

.dress-code p {
    font-size: 4.5455cqw;
    line-height: 1.387;
}

.dress-code h3 {
    font-family: var(--script);
    font-size: 7.2727cqw;
    font-weight: 400;
    line-height: 1.387;
    white-space: nowrap;
}

.dress-code span {
    font-size: 3.6364cqw;
    line-height: 1.387;
}

.portrait {
    position: absolute;
    z-index: 2;
    left: 16.5909%;
    width: 67.0455%;
    height: 35.6832%;
    margin: 0;
}

.portrait--first {
    top: 62.0539%;
}

.portrait > img {
    width: 100%;
    height: 100%;
}

.day-two-watch {
    top: 0;
    left: 0;
    width: 23.1818%;
    height: 18.8091%;
}

.day-two-flora {
    top: 49.622%;
    left: 0;
    width: 23.4091%;
    height: 35.4442%;
}

.day-two-collage {
    top: 23.913%;
    right: 0;
    width: 18.8636%;
    height: 20.5104%;
}

.day-card--second {
    top: 9.0737%;
    height: 15.5009%;
}

.day-card--second time {
    top: 12.9545cqw;
}

.tags--second {
    top: 21.3636cqw;
    width: 62.2727cqw;
}

.tags--second li:first-child {
    flex-basis: auto;
}

.program__divider--second {
    top: 29.7732%;
}

.dress-code--second {
    top: 33.0813%;
}

.portrait--second {
    top: 46.8809%;
    height: 38.7524%;
}

.program__lace {
    position: absolute;
    z-index: 3;
    top: 90.2647%;
    left: 0;
    width: 100%;
    height: 9.7353%;
}

.venue {
    aspect-ratio: 440 / 748;
    color: var(--paper);
    background: var(--wine);
}

.venue__card {
    position: absolute;
    z-index: 2;
    top: 9.893%;
    left: 9.7727%;
    width: 80.4545%;
    height: 55.3476%;
    color: var(--wine);
}

.venue__card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.venue__card-inner {
    position: absolute;
    z-index: 1;
    inset: 0;
    text-align: center;
}

.venue__candelabra {
    position: absolute;
    top: 8.4541%;
    left: 44.0678%;
    width: 12.1469%;
    height: 16.6667%;
}

.venue h2 {
    position: absolute;
    top: 28.7439%;
    left: 19.9153%;
    width: 60.452%;
    height: 15.2174%;
    margin: 0;
    overflow: hidden;
    font-family: var(--script);
    font-size: 8.1818cqw;
    font-weight: 400;
    line-height: 1.387;
    text-align: center;
    white-space: nowrap;
}

.venue h2 span {
    display: block;
    height: 5cqw;
    margin-bottom: -0.6818cqw;
    font-family: var(--sans);
    font-size: 3.6364cqw;
    font-weight: 400;
    line-height: 1.387;
}

.venue__address {
    position: absolute;
    top: 46.1353%;
    left: 9.322%;
    width: 81.6384%;
    margin: 0;
    font-size: 3.1818cqw;
    line-height: 1.387;
    white-space: nowrap;
}

.venue__flourish {
    position: absolute;
    top: 54.3478%;
    left: 23.3051%;
    width: 53.6723%;
    height: 4.8309%;
}

.venue__note {
    position: absolute;
    top: 59.4203%;
    left: 15%;
    width: 70%;
    margin: 0;
    font-size: clamp(10px, 2.7273cqw, 12px);
    line-height: 1.25;
    text-align: center;
}

.venue__closing {
    position: absolute;
    z-index: 2;
    top: 72.5936%;
    left: 0;
    width: 100%;
    height: 14.7059%;
    margin: 0;
    font-family: var(--script);
    font-size: 9.0909cqw;
    line-height: 1.387;
    text-align: center;
    white-space: nowrap;
}

.venue__closing-line {
    display: block;
}

.venue__closing-line--first {
    transform: translateX(-4cqw);
}

.venue__ribbon {
    position: absolute;
    z-index: 1;
    top: 75.4011%;
    height: 24.5989%;
}

.venue__ribbon--left {
    left: 0;
    width: 65.9091%;
}

.venue__ribbon--right {
    right: 0;
    width: 69.0909%;
}

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

.music-toggle {
    position: fixed;
    z-index: 30;
    right: max(14px, calc((100vw - 440px) / 2 + 14px));
    bottom: max(14px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0 13px;
    overflow: hidden;
    color: var(--paper);
    background: rgba(67, 4, 11, 0.88);
    border: 1px solid rgba(249, 245, 235, 0.72);
    border-radius: 999px;
    box-shadow: 0 5px 18px rgba(38, 1, 6, 0.22);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: width 260ms var(--ease-out), background-color 200ms ease;
}

.music-toggle[hidden] {
    display: none;
}

.music-toggle.needs-action {
    justify-content: flex-start;
    width: 174px;
}

.music-toggle__icon {
    flex: 0 0 20px;
    font-family: Georgia, serif;
    font-size: 23px;
    line-height: 1;
    text-align: center;
}

.music-toggle__label {
    width: 0;
    margin-left: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transition: width 260ms var(--ease-out), margin-left 260ms var(--ease-out), opacity 180ms ease;
}

.music-toggle.needs-action .music-toggle__label {
    width: 118px;
    margin-left: 8px;
    opacity: 1;
}

.music-toggle:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 3px;
}

@media (min-width: 441px) {
    .intro__surface {
        height: min(100dvh, 956px);
    }

    .invitation {
        border-inline: 1px solid rgba(249, 245, 235, 0.12);
    }
}

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

    .intro {
        transition-duration: 1ms;
    }

}
