@font-face {
    font-family: Italianno;
    src: url('../../wedding/premium-cinematic/fonts/Italianno.ttf') format('truetype');
    font-display: swap
}

@font-face {
    font-family: Patrick Hand;
    src: url('../essential-wow/fonts/PatrickHand.ttf') format('truetype');
    font-display: swap
}

:root {
    --pink: #f6cad8;
    --strawberry: #d94d61;
    --sage: #b6ce9b;
    --cream: #fff5e8;
    --rose: #a65b64;
    --ink: #704b4d;
    --green: #5d7752;
    --line: rgba(166, 91, 100, .24);
    color-scheme: light
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Georgia, 'Times New Roman', serif;
    -webkit-font-smoothing: antialiased
}

body:before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .14;
    z-index: 5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23a17b60' opacity='.2' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E")
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

button {
    font: inherit
}

a {
    color: inherit
}

button,
a:focus-visible {
    outline-offset: 6px
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--green)
}

button {
    cursor: pointer
}

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

svg {
    display: block
}

.svg-library,
[hidden] {
    display: none !important
}

.icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 20;
    padding: 12px 20px;
    background: var(--cream)
}

.skip-link:focus {
    top: 12px
}

.load-status {
    min-height: 100svh;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    text-align: center;
    padding: 24px
}

.loading-flower {
    font-size: 54px;
    color: var(--strawberry)
}

.load-status p {
    max-width: 28ch;
    line-height: 1.7
}

.load-status button {
    border: 1px solid var(--rose);
    padding: 12px 20px;
    background: transparent;
    color: var(--ink)
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 760px;
    min-height: max(730px, 96svh);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 170px 45px 160px;
    background-color: #fbd9da;
    background-image: linear-gradient(90deg, #fff5e858 50%, transparent 50%), linear-gradient(#fff5e858 50%, transparent 50%);
    background-size: 90px 90px
}

.hero:after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid #fff5e87a;
    pointer-events: none;
    z-index: -1
}

.hero-paper {
    position: absolute;
    z-index: -1;
    inset: 118px max(30px, calc((100% - 565px)/2)) 65px;
    background: var(--cream);
    border-radius: 50% 50% 6px 6px / 37% 37% 6px 6px;
    box-shadow: 0 16px 35px #a65b640a
}

.hero-eyebrow {
    position: absolute;
    top: 22px;
    text-align: center;
    font: 9px/1.6 Arial, sans-serif;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--rose);
    padding: 0 30px
}

.hero-bow {
    position: absolute;
    width: min(47%, 280px);
    top: 55px;
    right: max(12px, calc((100% - 620px)/2));
    z-index: 3;
    transform-origin: 50% 48%;
    animation: bow-drift 7s ease-in-out infinite
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 465px;
    text-align: center;
    margin-top: 39px
}

.hero h1 {
    font: clamp(98px, 29vw, 190px)/.95 Italianno, cursive;
    font-weight: 400;
    margin: 0;
    color: var(--green);
    overflow-wrap: anywhere;
    transform: rotate(-5deg);
    animation: name-enter 1.3s cubic-bezier(.16, 1, .3, 1) both
}

.hero-age {
    font: clamp(42px, 10vw, 65px)/1.1 'Patrick Hand', cursive;
    text-transform: uppercase;
    color: var(--strawberry);
    margin: 4px 0 35px;
    letter-spacing: -2px;
    animation: soft-enter 1s .2s both
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    font: clamp(16px, 4.3vw, 25px)/1.2 'Patrick Hand', cursive;
    color: var(--green);
    white-space: nowrap;
    animation: soft-enter 1s .35s both
}

.hero-date strong {
    font-weight: 400;
    font-size: 1.55em;
    letter-spacing: -1.5px;
    color: var(--strawberry);
    border-inline: 1px solid #6b8a6070;
    padding: 0 12px
}

.hero-date span {
    text-transform: uppercase
}

.scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font: 14px/1.4 Arial, sans-serif;
    color: var(--green);
    margin: 42px auto 0;
    width: max-content;
    animation: soft-enter 1s .55s both
}

.scroll-stem {
    height: 35px;
    border-left: 1px solid var(--green);
    position: relative;
    animation: scroll-nudge 2.8s ease-in-out infinite
}

.scroll-stem:after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    left: -3px;
    bottom: 0;
    transform: rotate(-45deg);
    border-left: 1px solid;
    border-bottom: 1px solid
}

.hero-grass {
    position: absolute;
    bottom: 54px;
    left: 50%;
    width: min(84%, 580px);
    transform: translateX(-50%);
    z-index: 1
}

.hero-character {
    position: absolute;
    width: min(34%, 200px);
    left: max(3px, calc((100% - 610px)/2));
    bottom: 17px;
    z-index: 3;
    animation: character-enter 1.5s .15s both
}

.hero-edition {
    position: absolute;
    bottom: 15px;
    right: 19px;
    font: 7px/1.6 Arial, sans-serif;
    letter-spacing: 1.3px;
    color: var(--rose);
    max-width: 65%;
    text-align: right
}

.section {
    padding: 68px max(26px, calc((100% - 1000px)/2));
    position: relative
}

.chapter-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 9px/1.4 Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 48px;
    color: var(--rose)
}

.chapter-label i {
    width: 44px;
    height: 1px;
    background: var(--line)
}

.chapter-label span:first-child {
    font: italic 14px Georgia, serif;
    letter-spacing: 0
}

.eyebrow {
    font: 10px/1.8 Arial, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose);
    margin: 0 0 18px
}

h2 {
    font-size: clamp(31px, 5.6vw, 53px);
    line-height: 1.13;
    letter-spacing: -1.1px;
    font-weight: 400;
    margin: 0;
    white-space: pre-line;
    text-wrap: balance
}

.body-copy {
    font-size: 16px;
    line-height: 1.85;
    max-width: 38ch;
    margin: 24px 0
}

.handwritten {
    font: 24px/1.4 'Patrick Hand', cursive;
    color: var(--green);
    margin: 24px 0 0
}

.welcome {
    padding-bottom: 48px
}

.welcome-heading {
    text-align: center
}

.welcome-body {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 720px;
    margin: 30px auto
}

.jam-art {
    width: 150px;
    flex-shrink: 0;
    transform: rotate(-7deg)
}

.garland {
    width: 235px;
    margin: 48px auto 0
}

.details {
    background: #f7e4e3;
    padding-top: 58px;
    padding-bottom: 60px
}

.details:before,
.details:after {
    content: '';
    height: 12px;
    position: absolute;
    left: 0;
    right: 0;
    background: radial-gradient(circle at 6px 0, var(--cream) 6px, transparent 6.5px) 0 0/12px 12px
}

.details:before {
    top: 0
}

.details:after {
    bottom: -12px;
    background: radial-gradient(circle at 6px 0, #f7e4e3 6px, transparent 6.5px) 0 0/12px 12px
}

.details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.details-intro .body-copy {
    max-width: 29ch
}

.basket-art {
    width: 240px;
    margin: 25px 0 -15px 20px
}

.date-paper {
    position: relative;
    background: var(--cream);
    padding: 52px 30px 27px;
    text-align: center;
    box-shadow: 5px 7px 0 #fff5e85c, 0 12px 30px #794d4c08;
    border-radius: 3px;
    max-width: 425px;
    justify-self: center;
    width: 100%;
    transform: rotate(2deg)
}

.date-paper:after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid var(--line);
    pointer-events: none
}

.date-paper .eyebrow {
    margin: 0
}

.date-day {
    font: 98px/.98 'Patrick Hand', cursive;
    font-weight: 400;
    color: var(--strawberry)
}

.date-month {
    font: 25px/1.3 'Patrick Hand', cursive;
    margin: 0;
    color: var(--green)
}

.date-time {
    font: 16px/1.5 Arial, sans-serif;
    letter-spacing: 1.5px;
    margin: 14px 0 22px
}

.stitched-rule {
    border-top: 1px dashed var(--line);
    margin: 0 14px 23px
}

.location-icon {
    margin: 0 auto 12px;
    color: var(--rose)
}

h3 {
    font-size: 23px;
    font-weight: 400;
    margin: 0 0 10px;
    overflow-wrap: anywhere
}

.address {
    font-size: 14px;
    line-height: 1.6;
    margin: 0
}

.location-note,
.demo-note {
    font: 11px/1.65 Arial, sans-serif;
    color: var(--rose);
    max-width: 32ch;
    margin: 12px auto 0
}

.button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: max-content;
    max-width: 100%;
    min-height: 50px;
    border: 1px solid var(--strawberry);
    border-radius: 5px;
    background: var(--strawberry);
    color: #fff9ee;
    text-decoration: none;
    padding: 13px 23px;
    font: 13px/1.4 Arial, sans-serif;
    transition: transform .25s, background .25s;
    text-align: center
}

.button:hover {
    background: #b8384c;
    transform: translateY(-2px)
}

.date-paper .button {
    margin: 22px auto 0
}

.text-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    border: 0;
    background: none;
    color: var(--green);
    font: 12px/1.4 Arial, sans-serif;
    margin: 10px auto 0;
    padding: 8px
}

.text-button .icon {
    width: 18px
}

.text-button:hover span {
    text-decoration: underline;
    text-underline-offset: 4px
}

.countdown-wrap {
    text-align: center;
    margin-top: 58px
}

.countdown-wrap .handwritten {
    margin: 0 0 20px
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 14px;
    align-items: flex-start;
    color: var(--rose);
    font-variant-numeric: tabular-nums
}

.countdown div {
    min-width: 52px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.countdown strong {
    font: 38px/1 'Patrick Hand', cursive;
    color: var(--strawberry)
}

.countdown span {
    font: 9px/1.4 Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px
}

.countdown b {
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4
}

.rsvp {
    padding-top: 65px;
    padding-bottom: 40px
}

.rsvp-card {
    position: relative;
    text-align: center;
    max-width: 650px;
    margin: auto;
    padding: 5px 25px 20px
}

.cake-art {
    width: 125px;
    margin: 0 auto 25px;
    transform: rotate(5deg)
}

.rsvp-card .body-copy {
    margin: 23px auto
}

.rsvp-card .button {
    margin: 30px auto 0
}

.rsvp-deadline {
    font: 11px/1.7 Arial, sans-serif;
    margin: 18px auto 0;
    max-width: 32ch;
    color: var(--rose)
}

.signature {
    display: flex;
    flex-direction: column;
    margin-top: 38px;
    gap: 5px
}

.signature span {
    font: italic 14px Georgia, serif
}

.signature strong {
    font: 68px/1 Italianno, cursive;
    color: var(--green);
    font-weight: 400;
    overflow-wrap: anywhere
}

.flower {
    position: absolute;
    width: 32px;
    height: 32px;
    fill: #f5cad0;
    stroke: #bd898a;
    stroke-width: .5;
    pointer-events: none
}

.flower circle {
    fill: #daba6b;
    stroke: none
}

.flower-left {
    left: 0;
    top: 25%;
    transform: rotate(-15deg)
}

.flower-right {
    right: 0;
    top: 57%;
    width: 22px;
    transform: rotate(15deg)
}

.footer {
    text-align: center;
    padding: 25px 25px 35px
}

.footer a {
    font: 10px/1.5 Arial, sans-serif;
    letter-spacing: 2.5px;
    text-decoration: none;
    color: var(--rose)
}

.footer p {
    font: italic 13px/1.7 Georgia, serif;
    margin: 12px 0
}

.footer>span {
    font: 9px/1.5 Arial, sans-serif;
    color: var(--rose)
}

.audio-control {
    position: fixed;
    bottom: 20px;
    right: 17px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px
}

.audio-control button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #a65b6440;
    border-radius: 50%;
    background: #fff5e8eb;
    color: var(--rose);
    box-shadow: 0 4px 15px #704b4d10
}

.audio-control>span {
    font: 8px Arial, sans-serif;
    letter-spacing: .5px;
    background: var(--cream);
    padding: 3px 5px;
    border-radius: 3px
}

.audio-control button[aria-pressed=true] {
    color: var(--green);
    border-color: var(--green)
}

.audio-status {
    position: fixed;
    bottom: 90px;
    right: 16px;
    max-width: 250px;
    z-index: 11;
    font: 12px/1.6 Arial, sans-serif;
    margin: 0
}

.audio-status:not(:empty) {
    padding: 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px
}

.noscript {
    padding: 50px;
    text-align: center
}

.motion-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .85s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1)
}

.motion-ready [data-reveal=illustration] {
    transform: translateY(24px) rotate(-7deg);
    transition-duration: 1s, 1.4s
}

.motion-ready [data-reveal=paper] {
    transform: translateY(32px) rotate(3deg)
}

.motion-ready [data-reveal=words] {
    transform: translateY(18px);
    transition-duration: 1.1s
}

.motion-ready .reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

.motion-ready [data-reveal=illustration].visible {
    transform: rotate(-3deg)
}

.motion-ready [data-reveal=paper].visible {
    transform: rotate(2deg)
}

@keyframes bow-drift {

    0%,
    100% {
        transform: rotate(-3deg)
    }

    50% {
        transform: translateY(-5px) rotate(2deg)
    }
}

@keyframes soft-enter {
    from {
        opacity: 0;
        transform: translateY(15px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes name-enter {
    from {
        opacity: 0;
        transform: translateY(18px) rotate(-7deg)
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(-5deg)
    }
}

@keyframes character-enter {
    from {
        opacity: 0;
        transform: translate(-15px, 8px) rotate(-4deg)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes scroll-nudge {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(5px)
    }
}

@media(min-width:800px) {
    .hero {
        min-height: 850px;
        max-height: 1050px;
        background-size: 110px 110px
    }

    .hero-copy {
        margin-top: 75px
    }

    .hero-age {
        margin-bottom: 38px
    }

    .hero-paper {
        top: 100px
    }

    .hero-bow {
        top: 30px
    }

    .hero-grass {
        bottom: 55px
    }

    .hero-character {
        bottom: 25px
    }

    .hero-eyebrow {
        top: 27px
    }

    .hero-edition {
        right: 35px;
        bottom: 25px
    }

    .section {
        padding-top: 85px;
        padding-bottom: 75px
    }

    .welcome-body {
        margin-top: 38px
    }

    .rsvp-card {
        padding-bottom: 15px
    }

    .footer {
        padding-bottom: 45px
    }
}

@media(max-width:650px) {
    .details-layout {
        grid-template-columns: 1fr;
        gap: 15px
    }

    .details-intro {
        text-align: center
    }

    .details-intro .body-copy {
        margin: 22px auto
    }

    .basket-art {
        width: 145px;
        margin: 12px auto 24px
    }

    .date-paper {
        max-width: 350px
    }

    .welcome-body {
        gap: 16px;
        align-items: flex-start
    }

    .jam-art {
        width: 85px;
        margin-top: 20px
    }

    .welcome-body .body-copy {
        margin-top: 0;
        font-size: 15px
    }

    .welcome-body .handwritten {
        font-size: 23px
    }

    .rsvp-card {
        padding-inline: 12px
    }

    .chapter-label {
        margin-bottom: 37px
    }

    .garland {
        margin-top: 30px
    }

    .flower-left {
        left: -12px
    }

    .flower-right {
        right: -7px
    }

    .countdown {
        gap: 10px
    }

    .countdown div {
        min-width: 48px
    }

    .hero-copy {
        max-width: 400px
    }
}

@media(max-width:359px) {
    .hero {
        min-height: 690px;
        padding-inline: 33px;
        padding-top: 165px
    }

    .hero-date {
        gap: 8px;
        font-size: 15px
    }

    .hero-date strong {
        padding-inline: 9px
    }

    .hero-age {
        margin-bottom: 29px
    }

    .scroll-link {
        margin-top: 33px
    }

    .hero-paper {
        inset-inline: 23px
    }

    .section {
        padding-inline: 22px
    }

    .welcome-body {
        display: block
    }

    .jam-art {
        width: 85px;
        margin: 0 auto 22px
    }

    .welcome-body .body-copy {
        text-align: center
    }

    .welcome-body .handwritten {
        text-align: center
    }

    .countdown {
        gap: 7px
    }

    .countdown div {
        min-width: 44px
    }

    .countdown strong {
        font-size: 34px
    }

    .rsvp-card {
        padding-inline: 0
    }

    .button {
        padding-inline: 17px;
        font-size: 12px
    }
}

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

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important
    }

    .motion-ready .reveal {
        opacity: 1;
        transform: none
    }

    .hero h1 {
        transform: rotate(-5deg)
    }
}

.hero-copy {
    transform: translateY(var(--depth, 0px));
}

.skip-link {
    top: 12px;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

.skip-link:focus {
    width: auto;
    height: auto;
    padding: 12px 20px;
    clip-path: none;
}

@media (min-width: 800px) {
    .hero-eyebrow {
        left: 35px;
        width: 220px;
        padding: 0;
        text-align: left;
    }
}

.button {
    background: #ba3b50;
    background: color-mix(in srgb, var(--strawberry) 82%, #6d1730);
    border-color: transparent;
}

.hero-age {
    margin-top: 10px;
}

/* V2: garden stationery and picnic scenes. Cover geometry is unchanged. */
/* Keep both map actions identical in size and alignment on every viewport. */
.date-paper #maps-link,
.date-paper #waze-link {
    width: min(100%, 270px);
    min-height: 58px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-inline: auto;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.3;
}

.date-paper #maps-link .icon,
.date-paper #waze-link .icon {
    flex: none;
}

.date-paper .button-secondary {
    margin-top: 10px;
    background: transparent;
    color: var(--green);
    border: 1px solid var(--green);
}

.date-paper .button-secondary:hover {
    background: #b6ce9b20;
}

.scene-edge {
    position: absolute;
    left: 0;
    width: 100%;
    fill: var(--cream);
    pointer-events: none;
    overflow: visible;
}

.edge-meadow {
    top: -20px;
    height: 22px;
}

.welcome {
    padding-top: 52px;
    padding-bottom: 62px;
}

.welcome .chapter-label {
    margin-bottom: 30px;
}

.welcome-stationery {
    position: relative;
    max-width: 820px;
    margin: auto;
    padding: 48px 54px 34px;
    background: linear-gradient(135deg, #fffaf1a6, transparent 70%);
    border-radius: 46% 46% 8px 8px / 11% 11% 8px 8px;
}

.welcome-stationery:before {
    content: '';
    position: absolute;
    inset: 13px 12px;
    pointer-events: none;
    background: linear-gradient(var(--line), var(--line)) left top / 45px 1px no-repeat, linear-gradient(var(--line), var(--line)) left top / 1px 70px no-repeat, linear-gradient(var(--line), var(--line)) right bottom / 45px 1px no-repeat, linear-gradient(var(--line), var(--line)) right bottom / 1px 70px no-repeat;
}

.botanical-corner {
    position: absolute;
    width: 66px;
    height: 106px;
    color: var(--green);
    opacity: .63;
    pointer-events: none;
}

.corner-top {
    right: -4px;
    top: -12px;
    transform: rotate(10deg);
}

.corner-bottom {
    left: -4px;
    bottom: -8px;
    transform: rotate(190deg);
}

.welcome-heading h2 {
    font-size: clamp(28px, 4.1vw, 46px);
    line-height: 1.17;
    letter-spacing: -.8px;
}

.welcome-body {
    display: block;
    margin: 26px auto 0;
    max-width: 560px;
}

.welcome-body .body-copy {
    text-align: center;
    max-width: 36ch;
    margin: 0 auto;
}

.welcome-keepsake {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    max-width: 360px;
    margin: 27px auto 0;
}

.welcome-keepsake .jam-art {
    width: 100%;
    margin: 0;
}

.welcome-keepsake .handwritten {
    text-align: left;
    font-size: 24px;
    line-height: 1.3;
    margin: 0;
}

.welcome-stationery .garland {
    width: min(65%, 220px);
    margin: 29px auto 0;
}

.details {
    padding-bottom: 86px;
}

.details:after {
    display: none;
}

.details-layout {
    position: relative;
    isolation: isolate;
    gap: clamp(30px, 5vw, 65px);
}

.details-layout:before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -12px;
    right: -12px;
    bottom: -16px;
    height: 112px;
    background-color: #efc7c8;
    background-image: linear-gradient(90deg, #fff5e861 50%, transparent 50%), linear-gradient(#fff5e861 50%, transparent 50%);
    background-size: 28px 28px;
    border: 1px solid #fff5e880;
    transform: rotate(-1.5deg);
    border-radius: 3px;
    pointer-events: none;
}

.details-intro {
    position: relative;
}

.details-intro .basket-art {
    width: 210px;
    margin: 26px 0 8px 15px;
}

.date-paper {
    width: calc(100% - 16px);
    padding: 49px 29px 29px;
    border-radius: 5px;
}

.date-paper:after {
    border-color: #a65b642f;
    border-radius: 2px;
}

.paper-tape {
    position: absolute;
    width: 67px;
    height: 24px;
    top: -10px;
    left: calc(50% - 33px);
    background-color: #eec7c6;
    background-image: linear-gradient(90deg, #fff5e863 50%, transparent 50%), linear-gradient(#fff5e863 50%, transparent 50%);
    background-size: 13px 13px;
    clip-path: polygon(3% 0, 100% 0, 97% 20%, 100% 40%, 97% 60%, 100% 80%, 97% 100%, 0 100%, 3% 80%, 0 60%, 3% 40%, 0 20%);
    transform: rotate(-7deg);
    opacity: .9;
    pointer-events: none;
}

.paper-berry {
    position: absolute;
    top: 27px;
    right: 19px;
    width: 24px;
    height: 29px;
    color: var(--rose);
    pointer-events: none;
}

.date-paper h3 {
    font-size: 23px;
    line-height: 1.3;
}

.date-paper .location-note {
    font-size: 11px;
    line-height: 1.7;
}

.date-paper .text-button {
    margin-top: 12px;
}

.countdown-wrap {
    max-width: 470px;
    margin: 55px auto 0;
    padding-top: 26px;
    border-top: 1px dashed #a65b6440;
}

.countdown-wrap .handwritten {
    font-size: 23px;
}

.countdown {
    gap: 9px;
}

.countdown div {
    min-width: 51px;
    padding: 10px 9px 11px;
    background: #fff5e880;
    border-radius: 9px 9px 3px 3px;
}

.countdown strong {
    font-size: 36px;
}

.countdown b {
    padding-top: 8px;
}

.countdown span {
    font-size: 8px;
    letter-spacing: .8px;
}

.rsvp {
    padding-top: 53px;
    padding-bottom: 27px;
    background: linear-gradient(var(--cream) 65%, #fff0e8);
}

.edge-ribbon {
    top: -40px;
    height: 43px;
}

.edge-stitch {
    fill: none;
    stroke: var(--rose);
    stroke-opacity: .35;
    stroke-width: .9;
    stroke-dasharray: 4 7;
    vector-effect: non-scaling-stroke;
}

.rsvp .chapter-label {
    margin-bottom: 26px;
}

.rsvp-card {
    padding-top: 0;
    padding-bottom: 0;
}

.cake-vignette {
    width: 176px;
    height: 182px;
    margin: 3px auto 29px;
    position: relative;
    padding-top: 16px;
    isolation: isolate;
}

.cake-vignette:before {
    content: '';
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 23px;
    right: 23px;
    height: 154px;
    border-radius: 50% 50% 4px 4px;
    background: linear-gradient(#b6ce9b2b, #b6ce9b10);
    border-bottom: 1px solid #b6ce9b60;
}

.cake-vignette .cake-art {
    position: relative;
    width: 112px;
    margin: 0 auto;
}

.cake-vignette .flower-left {
    width: 24px;
    left: -2px;
    top: 39px;
}

.cake-vignette .flower-right {
    width: 18px;
    right: 0;
    top: 121px;
}

.rsvp-card .body-copy {
    max-width: 34ch;
}

.rsvp-card .rsvp-button {
    width: min(100%, 340px);
    min-height: 60px;
    border-radius: 12px 3px 12px 3px;
    padding: 18px 24px;
    gap: 12px;
}

.rsvp-button:after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px dashed #fff5e899;
    border-radius: 7px 1px 7px 1px;
    pointer-events: none;
}

.rsvp-button .icon {
    width: 19px;
    height: 19px;
}

.signature {
    margin-top: 32px;
    padding-top: 13px;
    gap: 8px;
}

.signature strong {
    font-size: 74px;
}

.closing-branch {
    width: 148px;
    height: 29px;
    margin: 2px auto 0;
    color: var(--green);
}

.footer {
    background: #fff0e8;
    padding-top: 24px;
    padding-bottom: calc(54px + env(safe-area-inset-bottom));
}

.footer p {
    margin: 10px 0;
}

.audio-control {
    right: max(17px, env(safe-area-inset-right));
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
}

@media (max-width: 650px) {
    .welcome-stationery {
        padding: 36px 23px 28px;
    }

    .welcome-heading .eyebrow {
        max-width: 23ch;
        margin: 0 auto 17px;
    }

    .welcome-body .body-copy {
        font-size: 15px;
        line-height: 1.85;
    }

    .welcome-keepsake {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 14px;
        margin-top: 24px;
    }

    .welcome-keepsake .handwritten {
        font-size: 22px;
    }

    .botanical-corner {
        width: 53px;
        height: 86px;
    }

    .corner-top {
        top: -10px;
        right: -4px;
    }

    .corner-bottom {
        left: -6px;
        bottom: -6px;
    }

    .welcome-stationery .garland {
        margin-top: 24px;
    }

    .details-layout {
        gap: 20px;
    }

    .details-intro .basket-art {
        width: 120px;
        margin: 15px auto 7px;
    }

    .date-paper {
        max-width: 350px;
        padding-inline: 24px;
    }

    .paper-berry {
        right: 18px;
        width: 21px;
        height: 26px;
    }

    .countdown-wrap {
        margin-top: 46px;
    }

    .countdown {
        gap: 8px;
    }

    .countdown div {
        min-width: 47px;
        padding-inline: 7px;
    }

    .rsvp-card {
        padding-inline: 7px;
    }

    .rsvp-card .body-copy {
        font-size: 15px;
    }

    .rsvp-card .rsvp-button {
        font-size: 12px;
    }
}

@media (max-width: 359px) {
    .welcome-stationery {
        padding-inline: 17px;
    }

    .welcome-heading h2 {
        font-size: 27px;
    }

    .welcome-keepsake {
        grid-template-columns: 67px minmax(0, 1fr);
        gap: 12px;
    }

    .welcome-keepsake .handwritten {
        font-size: 21px;
    }

    .date-paper {
        padding-inline: 20px;
    }

    .countdown {
        gap: 6px;
    }

    .countdown div {
        min-width: 43px;
        padding-inline: 6px;
    }

    .countdown strong {
        font-size: 32px;
    }

    .rsvp-card {
        padding-inline: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .motion-ready [data-reveal=words] {
        transition-duration: 1.15s, 1.25s;
        transition-timing-function: ease, cubic-bezier(.18, .7, .2, 1);
    }

    .motion-ready [data-reveal=paper] {
        transform: perspective(900px) translateY(26px) rotateX(3deg) rotate(3deg);
        transition-duration: .9s, 1.3s;
    }

    .motion-ready [data-reveal=paper].visible {
        transform: perspective(900px) rotateX(0deg) rotate(1.5deg);
    }

    .motion-ready [data-reveal=botanical] {
        transform: translateY(9px) rotate(-2deg);
        transition-duration: 1s, 1.4s;
    }

    .motion-ready [data-reveal=botanical].visible {
        transform: none;
    }

    .motion-ready [data-reveal=invitation] {
        transform: translateY(12px) scale(.98);
        transition-duration: .8s, 1.1s;
    }

    .motion-ready [data-reveal=invitation].visible {
        transform: none;
    }

    .motion-ready [data-reveal=countdown] .countdown>div {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity .6s ease, transform .8s ease;
    }

    .motion-ready [data-reveal=countdown].visible .countdown>div {
        opacity: 1;
        transform: none;
    }

    .motion-ready .countdown>div:nth-of-type(2) {
        transition-delay: .06s;
    }

    .motion-ready .countdown>div:nth-of-type(3) {
        transition-delay: .12s;
    }

    .motion-ready .countdown>div:nth-of-type(4) {
        transition-delay: .18s;
    }
}

/* Essential: personalized stationery without motion features. */
html[data-package="essential"]{scroll-behavior:auto}
html[data-package="essential"] *,html[data-package="essential"] *:before,html[data-package="essential"] *:after{animation:none!important;transition:none!important}
html[data-package="essential"] .hero-copy{transform:none}
html[data-package="essential"] .button:hover{transform:none}
.essential-closing{text-align:center;background:linear-gradient(var(--cream),#fff0e8);padding-top:42px;padding-bottom:30px}.essential-closing h2{max-width:500px;margin:18px auto}.essential-closing .body-copy{max-width:34ch;margin:auto}.essential-closing .signature{margin-bottom:0}
