@font-face {
    font-family: "Marianna";
    src: url("marianna.ttf") format("truetype");
    font-display: swap;
}

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

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #fdfaf5;
    color: #2b2b2b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.invitation-header {
    width: 100%;
    padding: 95px 20px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    user-select: none;
    transition: opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.is-state-3-active > .invitation-header {
    opacity: 0;
    pointer-events: none;
}

.title-tenor {
    font-family: "Tenor Sans", serif;
    letter-spacing: 0%;
    font-size: 38px;
    text-transform: uppercase;
}

.title-marianna {
    font-family: "Marianna", serif;
    font-size: 76px;
    line-height: 20%;
    -webkit-text-stroke: 1px #ffffff;
    paint-order: stroke fill;
}

.stage {
    position: relative;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px 32px;
}

.state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px 32px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transition:
        opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
        visibility 0s linear 700ms;
    pointer-events: none;
}

.state.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
    transition:
        opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
        visibility 0s linear 0s;
}

.state--1 {
    display: flex;
    flex-direction: column;
}

.state--1 .state-image {
    filter: drop-shadow(5px 5px 6px rgba(0, 0, 0, 0.25));
}

.state--3 {
    position: fixed;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    gap: 80px;
    padding-top: 0;
    padding-bottom: 80px;
}

.state--3 > .invitation-header {
    flex: none;
}

.info-block {
    position: relative;
    width: 100%;
    max-width: min(720px, 92vw);
}

.info-block-bg {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(5px 5px 6px rgba(0, 0, 0, 0.25));
}

.info-block-text {
    position: absolute;
    top: 94px;
    left: 0;
    right: 0;
    padding: 0 50px;
    text-align: center;
}

.info-block-greeting {
    font-family: "Tenor Sans", serif;
    font-size: 22px;
    margin: 0 0 16px;
}

.info-block-body {
    font-family: "Tenor Sans", serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    user-select: none;
}

.section-title__tenor {
    font-family: "Tenor Sans", serif;
    font-size: 38px;
    text-transform: uppercase;
}

.section-title__marianna {
    font-family: "Marianna", serif;
    font-size: 60px;
    line-height: 20%;
    -webkit-text-stroke: 1px #ffffff;
    paint-order: stroke fill;
}

.info-block-text--timing {
    top: 50%;
    transform: translateY(-50%);
    font-family: "Tenor Sans", serif;
    font-size: 20px;
    line-height: 20px;
}

.info-section--location > .location-address {
    margin-top: 20px;
}

.location-link {
    position: relative;
    display: block;
    width: 233px;
    height: 285px;
    text-decoration: none;
    color: inherit;
    transition: transform 350ms ease;
}

.location-link:hover {
    transform: translateY(-2px);
}

.location-link:active {
    transform: scale(0.985);
}

.location-image {
    display: block;
    width: 233px;
    height: 285px;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.25));
}

.location-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    margin: 0;
    font-family: "Tenor Sans", serif;
    font-size: 10px;
    text-align: center;
    text-transform: uppercase;
}

.location-address {
    font-family: "Tenor Sans", serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.location-name {
    font-size: 22px;
}

.info-section--dresscode {
    gap: 0;
}

.info-section--dresscode > .dresscode-text {
    margin-top: 20px;
}

.info-section--dresscode > .dresscode-image,
.info-section--dresscode > .dresscode-link {
    margin-top: 30px;
}

.dresscode-text {
    margin: 0;
    padding: 0 32px;
    font-family: "Tenor Sans", serif;
    font-size: 14px;
    line-height: 16px;
    text-align: justify;
}

.dresscode-image {
    display: block;
    width: 100%;
    max-width: 290px;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.dresscode-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    padding: 0 30px;
}

.dresscode-link-icon {
    flex: none;
}

.dresscode-link-text {
    font-family: "Tenor Sans", serif;
    font-size: 14px;
}

.info-section--wishlist {
    gap: 0;
}

.info-section--wishlist > .wishlist-text,
.info-section--wishlist > .wishlist-image {
    margin-top: 30px;
}

.wishlist-text {
    margin: 0;
    padding: 0 32px;
    font-family: "Tenor Sans", serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.wishlist-image {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(4px 4px 5px rgba(0, 0, 0, 0.25));
}

.info-section--contacts {
    gap: 20px;
}

.contacts-image {
    display: block;
    width: 100%;
    max-width: 290px;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(4px 4px 5px rgba(0, 0, 0, 0.25));
}

.contacts-text {
    margin: 0;
    padding: 0 32px;
    font-family: "Tenor Sans", serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 400px;
    padding: 0 32px;
    row-gap: 12px;
    align-items: center;
}

.contacts-name {
    font-family: "Tenor Sans", serif;
    font-size: 16px;
    text-align: left;
}

.contacts-phone {
    font-family: "Tenor Sans", serif;
    font-size: 16px;
    text-align: right;
    text-decoration: none;
    color: inherit;
}

.info-section--countdown {
    gap: 0;
}

.info-section--countdown > .countdown {
    margin-top: 30px;
}

.info-section--countdown > .end-image {
    margin-top: 60px;
}

.countdown {
    font-family: "Tenor Sans", serif;
    font-size: 35px;
    text-align: center;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

.end-image {
    display: block;
    width: 100%;
    max-width: 290px;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.25));
}

.state.is-leaving {
    opacity: 0;
    transform: scale(1.02);
    visibility: visible;
    pointer-events: none;
}

.state-trigger {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: block;
    transition: transform 350ms ease;
}

.state-trigger:hover {
    transform: translateY(-2px);
}

.state-trigger:active {
    transform: scale(0.985);
}

.state-image {
    display: block;
    max-width: min(560px, 88vw);
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.state-image--info {
    max-width: min(720px, 92vw);
    max-height: none;
}

@media (max-width: 600px) {
    .invitation-header {
        padding-top: 95px;
    }

    .state-image {
        max-width: 86vw;
    }
}

.state--1--info {
    font-family: "Tenor Sans";
    font-size: 20px;
}
