@font-face {
    font-family: 'Felidae';
    src: url('../fonts/Felidae.ttf') format('truetype');
}

@font-face {
    font-family: 'miamanueva';
    src: url('../fonts/miamanueva.ttf') format('truetype');
}

@font-face {
    font-family: 'PoiretOne-Regular';
    src: url('../fonts/PoiretOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Allura-Regular';
    src: url('../fonts/Allura-Regular.ttf') format('truetype');
}

/*.hero-section__names {
    font-family: 'Felidae', serif;
}*/
:root {
    --page-bg: #e8dbc9;
    --paper: #f8eee3;
    --paper-strong: #f2e4d2;
    --ink: #4e3a2d;
    --ink-soft: #8d7767;
    --line: rgba(120, 92, 63, 0.28);
    --accent: #927159;
    --accent-soft: #bea186;
    --success-bg: rgba(151, 117, 91, 0.14);
    --error: #9a5f52;
    --shadow: 0 24px 60px rgba(117, 88, 60, 0.15);
    --hero-side-rule-width: 86px;
    --hero-side-rule-gap: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body.invitation-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(255, 252, 246, 0.72), transparent 28%),
        linear-gradient(180deg, #efe5d8 0%, var(--page-bg) 100%);
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
}

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

.invitation-shell {
    padding: 0 12px;
}

.invitation-card {
    position: relative;
    width: min(100%, 430px);
    margin: 0 auto;
    overflow: hidden;
    background-color: var(--paper);
    background-image: url('../images/invitation/decor/background.png');
    background-position: center top;
    background-repeat: repeat-y;
    background-size: 100% auto;
    box-shadow: var(--shadow);
    z-index: 1000000000000000000000000000000;
}

.invitation-card::before {
    content: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        radial-gradient(circle at 20% 25%, rgba(190, 161, 134, 0.32) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 42%, rgba(190, 161, 134, 0.24) 0 1px, transparent 1px),
        radial-gradient(circle at 38% 75%, rgba(190, 161, 134, 0.24) 0 1px, transparent 1px);
    background-size: 18px 18px, 24px 24px, 16px 16px;
}

.flash-banner {
    position: relative;
    z-index: 3;
    margin: 18px 18px 0;
    border: 1px solid rgba(146, 113, 89, 0.2);
    border-radius: 18px;
    padding: 12px 14px;
    background: var(--success-bg);
    color: var(--ink);
    font-size: 0.9rem;
    text-align: center;
}

.flash-banner--inline {
    margin: 0 0 12px;
    scroll-margin-top: 24px;
}

.flash-banner--autohide {
    overflow: hidden;
    animation: flash-banner-autohide 4.6s ease forwards;
}

.flash-banner--error {
    border-color: rgba(154, 95, 82, 0.28);
    background: rgba(154, 95, 82, 0.12);
    color: #7a4438;
}

@keyframes flash-banner-autohide {
    0%,
    65% {
        opacity: 1;
        max-height: 120px;
        margin-bottom: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
        border-width: 1px;
    }

    100% {
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }
}

.section {
    position: relative;
    z-index: 1;
    padding: 0 22px;
}

.hero-section {
    padding-top: 44px;
    padding-bottom: 8px;
    text-align: center;
}

.hero-section__corner {
    position: absolute;
    top: 0;
    width: 108px;
    opacity: 0.95;
    pointer-events: none;
}

.hero-section__corner--left {
    left: -12px;
    transform: scaleX(-1) rotate(6deg);
}

.hero-section__corner--right {
    right: -10px;
    transform: rotate(-6deg);
}

.hero-section__watermark {
    position: absolute;
    left: 50%;
    color: #745A4733;
    transform: translateX(-50%);
    pointer-events: none;
    font-family: 'Allura-Regular', serif;
    font-weight: 400;
    font-size: 71.49px;
    line-height: 100%;
    letter-spacing: 0;
    width: 100%;

}

.hero-section__watermark--1 {
    top: 83px;
}

.hero-section__watermark--2 {
    top: 416px;
}


.hero-section__label {
    position: relative;
    display: grid;
    grid-template-columns: var(--hero-side-rule-width) auto var(--hero-side-rule-width);
    align-items: center;
    column-gap: var(--hero-side-rule-gap);
    justify-content: center;
    margin: 81px 0 65px;
    font-family: 'miamanueva', serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 100%;
    letter-spacing: 0;
    color: #745A47;
    white-space: nowrap;
}

.hero-section__label::before,
.hero-section__label::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #745A47;
    transform: translateY(-6px);
}

.hero-section__label::before {
    grid-column: 1;
    justify-self: end;
}

.hero-section__label::after {
    grid-column: 3;
    justify-self: start;
}

.hero-section__label span {
    grid-column: 2;
}

.hero-section__names {
    position: relative;
    display: grid;
   /* gap: 25px;*/
    margin: 0;
    font-family: 'Felidae', serif;
    font-weight: 400;
    font-size: 67.3px;
    line-height: 100%;
    letter-spacing: 4%;

}

.hero-section__name {
    display: inline-flex;
    align-items: baseline;
    justify-self: center;
    line-height: 0.82;
}

.hero-section__name-initial {
    font-size: 112.41px;
    line-height: 0.82;
}

.hero-section__name:last-of-type {
    margin-top: -4px;
}

.hero-section__ampersand {
    margin: -10px auto -4px;
    color: rgba(160, 135, 114, 0.64);
    position: absolute;
    right: 39%;
    top: 42%;
}

.hero-section__save-the-date {
    position: relative;
    margin-top: 60px;
    display: grid;
    grid-template-columns: var(--hero-side-rule-width) auto var(--hero-side-rule-width);
    column-gap: var(--hero-side-rule-gap);
    row-gap: 4px;
    align-items: center;
    justify-content: center;
}

.hero-section__save-the-date::before,
.hero-section__save-the-date::after {
    content: '';
    display: block;
    height: 1px;
    width: 100%;
    background: #745A47;
    transform: translateY(17px);
}

.hero-section__save-the-date::before {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
}

.hero-section__save-the-date::after {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
}


.hero-section__save-the-date span {

    font-family: 'miamanueva', serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 100%;
    letter-spacing: 0;
    color: #745A47;
    white-space: nowrap;
    justify-self: center;
    font-style: italic;
}

.hero-section__save-the-date span:first-of-type {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 22px;
}

.hero-section__save-the-date span:last-of-type {
    grid-column: 1 / -1;
    grid-row: 2;
}


.hero-section__quote {
    margin: 53px auto 0;
    display: inline-grid;
    gap: 8px;
}

.hero-section__quote span {
    justify-self: center;
    padding: 8px 14px;
    border-radius: 9px;
    background: rgba(171, 142, 109, 0.22);
    box-shadow: 0 12px 18px rgba(117, 88, 60, 0.08);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    color: var(--ink);
}

.section-divider {
    width: 1px;
    height: 76px;
    margin: 25px auto 40px;
    background:#745A47;
}

.section-script,
.section-title {
    margin: 0;
    text-align: center;
    color: var(--ink);
}

.section-script {
    font-family: 'Marck Script', cursive;
    font-size: clamp(2.4rem, 10vw, 3.2rem);
    line-height: 1.05;
}

.section-script--small {
    font-family: 'miamanueva', medium;
    font-weight: 400;
    font-size: 23px;
    line-height: 39.43px;
    letter-spacing: 0;
    text-align: center;
    color: #34271D;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.2rem, 14vw, 4.6rem);
    font-weight: 300;
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.intro-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-section h2{
    font-family: 'miamanueva', serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 40px;
    letter-spacing: 0;
    text-align: center;
    color: #34271D;
    max-width: 90%;
    margin-bottom: 41px;
}

.invitation-prose {
    display: grid;
    gap: 16px;
    color: #34271D;
    font-family: 'PoiretOne-Regular', regular;
    font-weight: 400;
    font-size: 24px;
    line-height: 26px;
    letter-spacing: 0%;
    text-align: center;

}

.invitation-prose p {
    text-align: center;
    margin: 0;
}

.invitation-prose span,
.details-card__text span {
    font-family: 'miamanueva', medium;
}

.story-section {
    margin-top: 26px;
    min-height: 586px;
    display: flex;
    justify-content: center;
    padding: 0;
    position: relative;
}

.photo-frame {
    margin: 0;
    overflow: hidden;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-frame--story {
    width: 382px;
    height: 573px;
    min-height: 0;
    flex: 0 0 382px;

}

.photo-frame--story img {
    object-position: center top;
}

.photo-frame-story-livery{
    position: absolute;
    width: 430px;
    z-index: 100000;
    bottom: -106px;
}

.timeline-section {
    margin-top: 87px;
    margin-bottom: 5px;
}

.timeline-section .section-title{
    font-family: 'Felidae',regular;
    font-weight: 400;
    font-size: 59.09px;
    line-height: 90%;
    letter-spacing: 4%;
    color: #34271D;
    text-align: left;
}

.timeline-list {
    margin-top: 26px;
    display: grid;
    gap: 20px;
    position: relative;
}

.timeline-vectors {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.line_vector {
    position: absolute;
    line-height: 0;
}

.line_vector img {
    display: block;
    width: 100%;
    height: auto;
}

.line_vector--1 {
    top: 16px;
    left: 65px;
}

.line_vector--2 {
    top: 137px;
    right: 128px;
}

.line_vector--3 {
    top: 296px;
    left: 62px;
}

.line_vector--4 {
    top: 371px;
    right: 24px;
}

.timeline-item {
    position: relative;
    z-index: 1;
    width: min(100%, 212px);
    padding: 22px 0 16px;
    text-align: left;
}

.timeline-item--right {
    justify-self: end;
    transform: translateX(23px);
}

.timeline-item--left {
    justify-self: start;
}

.timeline-item--last.timeline-item--left {
    transform: translateX(48px);
}

.timeline-item--last.timeline-item--right {
    transform: translateX(12px);
}

.timeline-item__ghost {
    font-family: 'Allura-Regular',regular;
    font-weight: 400;
    font-size: 80px;
    line-height: 100%;
    letter-spacing: 0;
    position: absolute;
    inset: -18px -22px auto;
    font-style: italic;
    color: rgba(168, 145, 121, 0.2);
    pointer-events: none;
}

.timeline-item__time,
.timeline-item__title,
.timeline-item__note {
    position: relative;
    z-index: 1;
}

.timeline-item__time {
    font-family: 'Felidae', regular;
    font-weight: 400;
    font-size: 54.42px;
    line-height: 100%;
    letter-spacing: 4%;
    text-align: left;

}

.timeline-item__title {
    margin: 8px 0 0;
    font-family: 'miamanueva', medium;
    font-weight: 400;
    font-size: 23px;
    line-height: 100%;
    letter-spacing: 4%;
    text-align: left;
    color: #917A69;
}

.timeline-item__note {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 0.93rem;
    line-height: 1.45;
}

.location-section,
.dress-section,
.details-section,
.rsvp-section {
    text-align: center;
}

.photo-frame--location {
    margin-top: 35px;
    min-height: 240px;
}

.photo-frame--location img {
    object-position: center 54%;
}

.location-section .section-title{
    font-family: 'Felidae', regular;
    font-weight: 400;
    font-size: 59.09px;
    line-height: 90%;
    letter-spacing: 4%;
    text-align: center;
    color: #34271D;
}

.location-section{
    padding-bottom: 31px;
}

.location-section__eyebrow {
    margin: 34px 0 9px;
    font-family: 'miamanueva', medium;
    font-weight: 400;
    font-size: 23px;
    line-height: 39.43px;
    letter-spacing: 0;
    text-align: center;
    color: #917A69;
}

.location-section__place {
    margin: 0;
    font-family: 'Felidae', regular;
    font-weight: 400;
    font-size: 36.81px;
    line-height: 47px;
    letter-spacing: 0;
    text-align: center;
    color: #34271D;
}

.invitation-button {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    min-height: 53px;
    border: 0;
    border-radius: 10px;
    padding: 14px 18px;
    background: #745A47;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;

    font-family: 'PoiretOne-Regular',regular;
    font-weight: 400;
    font-size: 20px;
    line-height: 31px;
    letter-spacing: 1%;
    text-align: center;
    color: #F0E2D6;
}

.invitation-button:hover {
    transform: translateY(-1px);
}

.invitation-button--disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.dress-section{
    padding-top: 12px;
    padding-bottom: 58px;
}

.dress-section .section-title{
    font-family: 'Felidae',regular;
    font-weight: 400;
    font-size: 55px;
    line-height: 100%;
    letter-spacing: 0;
    color: #34271D;
}

.dress-section__copy {
    margin-top: 22px;
    display: grid;
    gap: 12px;
    font-family: 'PoiretOne-Regular', regular;
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: #34271D;
}

.dress-section__copy p {
    margin: 0;
}

.dress-section__swatches {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 26px 0 22px;
}

.heart-swatch {
    position: relative;
    width: 34px;
    height: 34px;
    transform: rotate(45deg);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--swatch-from), var(--swatch-to));
    box-shadow: 0 8px 16px rgba(117, 88, 60, 0.12);
}

.heart-swatch::before,
.heart-swatch::after {
    content: '';
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: inherit;
}

.heart-swatch::before {
    top: -17px;
    left: 0;
}

.heart-swatch::after {
    top: 0;
    left: -17px;
}

.photo-frame--dress-code {
    min-height: 180px;
}

.photo-frame--dress-code img {
    object-position: center 62%;
}

.photo-frame--dress-code-scheme {
    margin-top: 18px;
    margin-bottom: 15px;
    min-height: 60px;
}

.photo-frame--dress-code-scheme img {
    object-position: center center;
}

.details-section__title {
    margin-bottom: 32px;
    font-family: 'Felidae',regular;
    font-weight: 400;
    font-size: 55px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: #34271D;
}

.details-section__stack {
    display: grid;
    gap: 22px;
}

.details-card {
    position: relative;
    padding: 12px 0 0;
}

.details-card__rule {
    position: relative;
    margin: 33px 0;
    height: 14px;
}

.details-card__rule::before,
.details-card__rule::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 16px);
    height: 0.6px;
    background: #34271D;
}

.details-card__rule::before {
    left: 0;
}

.details-card__rule::after {
    right: 0;
}

.details-card__rule {
    background:
        radial-gradient(circle, var(--ink) 0 3px, transparent 3px) center / 10px 10px no-repeat;
}

.details-card__text {
    margin: 10px 0 0;
    color:#34271D;
    font-family: 'PoiretOne-Regular', regular;
    font-weight: 400;
    font-size: 22px;
    line-height: 28px;
    letter-spacing: 0;
    text-align: center;
}

.details-card__button {
    margin-top: 20px;
}

.rsvp-section {
}

.rsvp-section .section-script--hero{
    font-family: 'miamanueva', medium;
    font-weight: 400;
    font-size: 23px;
    line-height: 32px;
    letter-spacing: 0;
    text-align: center;
    color: #34271D;
    margin-bottom: 11px;
}

.rsvp-section__subtitle {
    margin: 16px auto 5px;
    font-family: 'PoiretOne-Regular', regular;
    font-weight: 400;
    font-size: 22px;
    line-height: 28px;
    letter-spacing: 0;
    text-align: center;
    color: #34271D;
}

.rsvp-form {
    margin-top: 26px;
    display: grid;
    gap: 20px;
    text-align: left;
}

.field,
.fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.field {
    display: grid;
    gap: 10px;
}

.field__label,
.fieldset__label {
    font-family: 'miamanueva', medium;
    font-weight: 400;
    font-size: 19px;
    line-height: 31px;
    letter-spacing: 0;
    color: #34271D;
    margin-top:24px;
}

.fieldset__label{
    margin-bottom: 22px;
}

.field__control {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #34271D;

    border-radius: 0;
    padding: 0 10px 10px;
    background: transparent;

    outline: none;

    font-family: 'PoiretOne-Regular', regular;
    font-weight: 400;
    font-size: 19px;
    line-height: 31px;
    letter-spacing: 1%;
    color:#34271D;
}

.field__control::placeholder {
    color: rgba(141, 119, 103, 0.85);
    font-family: 'PoiretOne-Regular', regular;
    font-weight: 400;
    font-size: 19px;
    line-height: 31px;
    letter-spacing: 1%;
    color:#34271D;
}

.field__control:focus {
    border-bottom-color: rgba(146, 113, 89, 0.72);
}

.field__control--textarea {
    min-height: 112px;
    resize: vertical;
}

.fieldset {
    display: grid;
    gap: 10px;
}

.choice {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 1rem;
    margin-left: 10px;
}

.choice input {
    width: 18px;
    height: 18px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #745A47;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    flex: 0 0 18px;
}

.choice input:checked {
    background: #745A47;
    box-shadow: inset 0 0 0 3px #f8eee3;
}

.choice input:focus-visible {
    outline: 1px solid #745A47;
    outline-offset: 2px;
}

.field__error {
    color: var(--error);
    font-size: 0.85rem;
    line-height: 1.4;
}

.rsvp-form__submit {
    margin-top: 8px;
}

.footer-block{
    min-height: 140px;
    position: relative;
}

.footer-block .footer_images{
    position: absolute;
    bottom: -5px;
    right: 0;
}


@media (max-width: 454px) {
    .invitation-shell{
        padding: 0;
    }

    .details-section__title{
        font-size: 40px;
    }
    .line_vector--1 {
        top: 16px;
        left: 9px;
    }

    .line_vector--2 {
        top: 137px;
        right: 90px;
    }

    .line_vector--3 {
        top: 296px;
        left: -4px;
    }

    .line_vector--4 {
        top: 371px;
        right: 10px;
    }
}
