:root {
    --paper: #fffaf4;
    --paper-strong: #fffdf9;
    --paper-soft: rgba(255, 250, 244, 0.78);
    --rose: #c66b7f;
    --rose-soft: #f3c0cf;
    --rose-deep: #8b445a;
    --gold: #be9456;
    --gold-soft: #ead7ab;
    --gold-deep: #936a32;
    --ink: #3d2a22;
    --muted: #746055;
    --line: rgba(190, 148, 86, 0.24);
    --line-strong: rgba(190, 148, 86, 0.38);
    --shadow-main: 0 28px 70px rgba(92, 55, 50, 0.18);
    --shadow-soft: 0 18px 44px rgba(92, 55, 50, 0.12);
    --shadow-lift: 0 38px 92px rgba(92, 55, 50, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background:
        radial-gradient(circle at 12% 16%, rgba(236, 181, 196, 0.34), transparent 24%),
        radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.72), transparent 18%),
        radial-gradient(circle at 88% 82%, rgba(190, 148, 86, 0.18), transparent 26%),
        linear-gradient(180deg, #fff8f4 0%, #fdf1ea 42%, #fff8f2 100%);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "Noto Serif SC", "Cormorant Infant", serif;
    background: transparent;
}

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

button,
a {
    color: inherit;
    font: inherit;
}

button {
    border: 0;
}

.page-backdrop {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.page-backdrop::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(190, 148, 86, 0.16);
    border-radius: 36px;
}

.page-backdrop::after {
    content: "";
    position: absolute;
    inset: -8%;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.65), transparent 34%),
        radial-gradient(circle at 18% 78%, rgba(243, 192, 207, 0.14), transparent 24%),
        radial-gradient(circle at 82% 24%, rgba(234, 215, 171, 0.18), transparent 28%);
    opacity: 0.82;
    animation: atmosphereShift 18s ease-in-out infinite alternate;
}

.backdrop-sheen {
    position: absolute;
    inset: -14%;
    background: linear-gradient(118deg,
            rgba(255, 255, 255, 0.22) 0%,
            rgba(255, 255, 255, 0) 24%,
            rgba(255, 255, 255, 0.12) 52%,
            rgba(255, 255, 255, 0) 78%);
    opacity: 0.48;
    transform: rotate(-8deg) translateX(-4%);
    animation: sheenDrift 24s ease-in-out infinite alternate;
}

.backdrop-glow {
    position: absolute;
    width: 46vw;
    height: 46vw;
    border-radius: 50%;
    filter: blur(18px);
    animation: bloomFloat 18s ease-in-out infinite alternate;
}

.glow-left {
    top: -12vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(214, 152, 166, 0.3) 0%, rgba(214, 152, 166, 0) 72%);
}

.glow-right {
    right: -10vw;
    bottom: -14vw;
    background: radial-gradient(circle, rgba(190, 148, 86, 0.24) 0%, rgba(190, 148, 86, 0) 68%);
    animation-duration: 22s;
}

.backdrop-blush {
    position: absolute;
    width: 32vw;
    height: 32vw;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.42;
    animation: bloomFloat 20s ease-in-out infinite alternate;
}

.blush-top {
    top: 10%;
    right: 14%;
    background: radial-gradient(circle, rgba(243, 192, 207, 0.4) 0%, rgba(243, 192, 207, 0) 72%);
}

.blush-bottom {
    bottom: 8%;
    left: 14%;
    background: radial-gradient(circle, rgba(234, 215, 171, 0.3) 0%, rgba(234, 215, 171, 0) 70%);
    animation-duration: 24s;
}

.petal {
    position: absolute;
    top: -16%;
    width: var(--size, 72px);
    height: calc(var(--size, 72px) * 0.72);
    border-radius: 82% 12% 78% 8%;
    background:
        radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.88) 0 10%, transparent 11%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 192, 207, 0.78) 30%, rgba(198, 107, 127, 0.94) 72%, rgba(132, 51, 77, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 16px 30px rgba(180, 69, 101, 0.18);
    opacity: 0;
    transform-origin: center;
    animation: petalFall var(--fall-duration, 18s) var(--fall-delay, 0s) cubic-bezier(0.34, 0.12, 0.18, 1) infinite;
    will-change: transform, opacity;
}

.petal::before,
.petal::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.petal::before {
    inset: 14% 44% 10% 46%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(126, 49, 76, 0.22));
    transform: rotate(10deg);
}

.petal::after {
    inset: 16% 16% auto 44%;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    filter: blur(4px);
}

.petal-1 {
    left: 4%;
    --size: 68px;
    --rotate: -28deg;
    --fall-duration: 15s;
    --fall-delay: -8s;
    --drift-mid: 58px;
    --drift-end: -24px;
    --opacity: 0.7;
}

.petal-2 {
    left: 16%;
    --size: 54px;
    --rotate: 22deg;
    --fall-duration: 19s;
    --fall-delay: -4s;
    --drift-mid: -36px;
    --drift-end: 38px;
    --opacity: 0.56;
}

.petal-3 {
    left: 28%;
    --size: 74px;
    --rotate: -14deg;
    --fall-duration: 17s;
    --fall-delay: -12s;
    --drift-mid: 42px;
    --drift-end: -42px;
    --opacity: 0.64;
}

.petal-4 {
    left: 42%;
    --size: 60px;
    --rotate: 30deg;
    --fall-duration: 21s;
    --fall-delay: -2s;
    --drift-mid: -54px;
    --drift-end: 26px;
    --opacity: 0.52;
}

.petal-5 {
    left: 56%;
    --size: 84px;
    --rotate: -20deg;
    --fall-duration: 20s;
    --fall-delay: -10s;
    --drift-mid: 36px;
    --drift-end: -48px;
    --opacity: 0.6;
}

.petal-6 {
    left: 68%;
    --size: 58px;
    --rotate: 18deg;
    --fall-duration: 16s;
    --fall-delay: -6s;
    --drift-mid: -42px;
    --drift-end: 30px;
    --opacity: 0.58;
}

.petal-7 {
    left: 80%;
    --size: 70px;
    --rotate: -24deg;
    --fall-duration: 18s;
    --fall-delay: -14s;
    --drift-mid: 46px;
    --drift-end: -20px;
    --opacity: 0.66;
}

.petal-8 {
    left: 92%;
    --size: 50px;
    --rotate: 24deg;
    --fall-duration: 22s;
    --fall-delay: -3s;
    --drift-mid: -32px;
    --drift-end: 22px;
    --opacity: 0.48;
}

.invitation-page {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 52px 0 120px;
}

.chapter {
    position: relative;
    padding: 38px 0;
}

.hero-panel {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-copy {
    position: relative;
    width: min(820px, 100%);
    padding: clamp(42px, 6vw, 76px) clamp(24px, 6vw, 64px);
    border-radius: 38px;
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.9) 0%, rgba(255, 248, 242, 0.78) 100%);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    isolation: isolate;
}

.hero-copy::before,
.hero-copy::after,
.paper-card::before,
.story-card::after,
.photo-card::after,
.quote-card::after,
.detail-card::after,
.timeline-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(190, 148, 86, 0.16);
    border-radius: inherit;
    pointer-events: none;
}

.hero-copy::after {
    inset: auto 24px 24px;
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(190, 148, 86, 0.4) 50%, transparent 100%);
    border-radius: 999px;
}

.hero-flourish {
    position: absolute;
    width: 220px;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0.84;
    pointer-events: none;
    z-index: -1;
}

.hero-flourish::before,
.hero-flourish::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.hero-flourish::before {
    background:
        radial-gradient(circle at 44% 34%, rgba(255, 255, 255, 0.92) 0 10%, transparent 11%),
        radial-gradient(circle at 34% 42%, rgba(243, 192, 207, 0.82) 0 18%, transparent 19%),
        radial-gradient(circle at 58% 40%, rgba(198, 107, 127, 0.38) 0 22%, transparent 23%),
        radial-gradient(circle at 48% 60%, rgba(234, 215, 171, 0.26) 0 36%, transparent 37%);
    filter: blur(1px);
}

.hero-flourish::after {
    inset: 14%;
    border: 1px solid rgba(190, 148, 86, 0.18);
}

.hero-flourish-left {
    top: -78px;
    left: -68px;
    transform: rotate(-10deg);
}

.hero-flourish-right {
    right: -58px;
    bottom: -84px;
    opacity: 0.74;
    transform: scale(0.88) rotate(20deg);
}

.section-kicker {
    margin-bottom: 12px;
    font-size: 0.82rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.monogram {
    font-family: "Great Vibes", cursive;
    font-size: clamp(4rem, 10vw, 7.6rem);
    line-height: 0.95;
    color: var(--rose);
    opacity: 0.9;
    margin-bottom: 18px;
    text-shadow: 0 12px 28px rgba(198, 107, 127, 0.18);
}

.couple-names {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--ink);
}

.ampersand {
    font-family: "Great Vibes", cursive;
    font-size: 0.82em;
    letter-spacing: 0;
    color: var(--gold-deep);
    font-weight: 400;
}

.hero-date {
    margin-top: 20px;
    color: var(--rose-deep);
    font-family: "Cormorant Infant", serif;
    font-size: clamp(1.2rem, 2.6vw, 1.85rem);
    letter-spacing: 0.12em;
}

.hero-lead {
    width: min(38rem, 100%);
    margin: 26px auto 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 2;
}

.hero-notes,
.signature {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-notes {
    margin-top: 28px;
}

.hero-notes span,
.signature span {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
    color: var(--rose-deep);
}

.paper-card {
    position: relative;
    padding: clamp(30px, 4vw, 50px);
    border-radius: 32px;
    background: rgba(255, 251, 245, 0.82);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-main);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.wide-card,
.closing-card {
    margin: 0 auto;
    text-align: center;
}

.wide-card {
    max-width: 900px;
}

.closing-card {
    max-width: 780px;
}

.card-script {
    margin-bottom: 8px;
    font-family: "Great Vibes", cursive;
    font-size: 2.9rem;
    color: var(--rose);
}

.wide-card h2,
.section-heading h2,
.closing-card h2,
.timeline-card h3,
.story-card h3,
.detail-card h3 {
    font-family: "Cormorant Infant", serif;
}

.wide-card h2,
.closing-card h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    letter-spacing: 0.08em;
    color: var(--ink);
}

.wide-card p,
.closing-card p {
    width: min(42rem, 100%);
    margin: 14px auto 0;
    line-height: 2;
    color: var(--muted);
}

.section-heading {
    position: relative;
    margin-bottom: 28px;
    text-align: center;
}

.section-heading::after {
    content: "";
    display: block;
    width: min(200px, 42vw);
    height: 16px;
    margin: 14px auto 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(190, 148, 86, 0.5) 20%, rgba(190, 148, 86, 0.5) 80%, transparent 100%),
        radial-gradient(circle at center, rgba(198, 107, 127, 0.58) 0 5px, transparent 6px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 1px, 100% 100%;
    opacity: 0.78;
}

.section-heading h2 {
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ink);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.story-card {
    position: relative;
    padding: 32px 24px 24px;
    border-radius: 28px;
    background: rgba(255, 253, 248, 0.78);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.story-index {
    display: block;
    margin-bottom: 8px;
    font-family: "Cormorant Infant", serif;
    font-size: 3rem;
    line-height: 1;
    color: rgba(198, 107, 127, 0.26);
}

.story-card h3 {
    margin-bottom: 12px;
    font-size: 1.72rem;
    letter-spacing: 0.05em;
    color: var(--rose-deep);
}

.story-card p {
    line-height: 1.95;
    color: var(--muted);
}

.gallery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.86fr) minmax(0, 1.12fr);
    gap: 20px;
    align-items: stretch;
}

.photo-card,
.quote-card,
.detail-card,
.timeline-card {
    position: relative;
    overflow: hidden;
}

.photo-card {
    padding: 18px;
    border-radius: 32px;
    background: rgba(255, 253, 248, 0.8);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-main);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.photo-button {
    width: 100%;
    border-radius: 24px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.photo-button:focus-visible {
    outline: 2px solid rgba(147, 106, 50, 0.48);
    outline-offset: 5px;
}

.couple-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(198, 107, 127, 0.14), rgba(190, 148, 86, 0.18));
    transition: transform 0.28s ease, filter 0.28s ease;
}

.photo-button:hover .couple-image,
.photo-button:focus-visible .couple-image {
    transform: scale(1.02);
    filter: saturate(1.04);
}

.photo-card figcaption {
    padding: 18px 10px 8px;
    text-align: center;
    color: var(--rose-deep);
    font-family: "Cormorant Infant", serif;
    font-size: 1.42rem;
    letter-spacing: 0.08em;
}

.quote-card {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    padding: 34px 30px;
    background: linear-gradient(180deg, rgba(255, 245, 239, 0.92) 0%, rgba(255, 252, 246, 0.72) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.quote-card blockquote {
    font-family: "Cormorant Infant", serif;
    font-size: clamp(1.72rem, 3vw, 2.56rem);
    line-height: 1.55;
    color: var(--ink);
}

.quote-card p {
    margin-top: 16px;
    line-height: 1.9;
    color: var(--muted);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    min-height: 100%;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 252, 246, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.detail-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: none;
    border-radius: 50%;
    border: 1px solid rgba(190, 148, 86, 0.28);
    background: linear-gradient(135deg, rgba(198, 107, 127, 0.14), rgba(190, 148, 86, 0.24));
    color: var(--gold-deep);
}

.detail-icon svg {
    width: 28px;
    height: 28px;
}

.detail-card h3 {
    margin-bottom: 6px;
    font-size: 1.64rem;
    color: var(--ink);
    letter-spacing: 0.05em;
}

.detail-main {
    line-height: 1.85;
    color: var(--ink);
}

.detail-sub {
    margin-top: 8px;
    line-height: 1.8;
    color: var(--muted);
}

.timeline-card {
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 253, 248, 0.84);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-main);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.timeline-card h3 {
    margin-bottom: 18px;
    text-align: center;
    font-size: 1.95rem;
    letter-spacing: 0.08em;
    color: var(--rose-deep);
}

.timeline-list {
    display: grid;
    gap: 14px;
}

.timeline-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding-top: 14px;
    border-top: 1px solid rgba(190, 148, 86, 0.15);
}

.timeline-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.timeline-row time {
    color: var(--gold-deep);
    font-family: "Cormorant Infant", serif;
    font-size: 1.36rem;
    letter-spacing: 0.06em;
}

.timeline-row p {
    line-height: 1.8;
    color: var(--muted);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 32px;
    background: rgba(47, 28, 24, 0.84);
    backdrop-filter: blur(14px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.1);
    color: #fffaf4;
    cursor: pointer;
}

.lightbox-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.72);
    outline-offset: 3px;
}

.lightbox-inner {
    width: min(920px, 100%);
    padding: 20px;
    border-radius: 32px;
    background: rgba(255, 251, 245, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 40px 96px rgba(0, 0, 0, 0.28);
}

.lightbox-inner img {
    width: 100%;
    max-height: 72vh;
    object-fit: cover;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(198, 107, 127, 0.14), rgba(190, 148, 86, 0.18));
}

.lightbox-caption {
    margin-top: 14px;
    text-align: center;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 24px;
    border-radius: 24px;
    color: var(--rose-deep);
    background: linear-gradient(180deg, rgba(255, 246, 241, 0.92), rgba(255, 252, 246, 0.86));
    text-align: center;
}

.photo-placeholder svg {
    width: 56px;
    height: 56px;
    color: var(--gold);
}

.photo-placeholder p {
    color: var(--muted);
    line-height: 1.7;
}

@media (hover: hover) {
    .paper-card:hover,
    .story-card:hover,
    .photo-card:hover,
    .quote-card:hover,
    .detail-card:hover,
    .timeline-card:hover {
        transform: translateY(-4px);
        border-color: rgba(190, 148, 86, 0.32);
        box-shadow: var(--shadow-lift);
    }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.82s ease, transform 0.82s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.lightbox-open {
    overflow: hidden;
}

@keyframes atmosphereShift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(0, -14px, 0) scale(1.05);
    }
}

@keyframes sheenDrift {
    0% {
        transform: rotate(-8deg) translateX(-4%);
    }

    100% {
        transform: rotate(-5deg) translateX(4%);
    }
}

@keyframes bloomFloat {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(0, -16px, 0) scale(1.06);
    }
}

@keyframes petalFall {
    0% {
        transform: translate3d(0, -18vh, 0) rotate(var(--rotate, 0deg)) scale(0.92);
        opacity: 0;
    }

    12% {
        opacity: var(--opacity, 0.62);
    }

    52% {
        transform: translate3d(var(--drift-mid, 40px), 42vh, 0) rotate(calc(var(--rotate, 0deg) + 28deg)) scale(1);
        opacity: var(--opacity, 0.62);
    }

    100% {
        transform: translate3d(var(--drift-end, -24px), 112vh, 0) rotate(calc(var(--rotate, 0deg) + 82deg)) scale(0.98);
        opacity: 0;
    }
}

@media (max-width: 1024px) {
    .gallery-layout {
        grid-template-columns: 1fr;
    }

    .quote-card {
        min-height: 280px;
    }

    .story-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .invitation-page {
        width: min(100vw - 20px, 1180px);
        padding-top: 34px;
        padding-bottom: 96px;
    }

    .hero-panel {
        min-height: auto;
    }

    .hero-copy {
        padding: 36px 20px;
    }

    .hero-flourish {
        width: 156px;
    }

    .hero-flourish-left {
        top: -48px;
        left: -34px;
    }

    .hero-flourish-right {
        right: -24px;
        bottom: -54px;
    }

    .couple-names {
        flex-direction: column;
        gap: 4px;
        letter-spacing: 0.08em;
    }

    .ampersand {
        display: inline-block;
    }

    .chapter {
        padding: 30px 0;
    }

    .timeline-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .lightbox {
        padding: 16px;
    }

    .lightbox-inner {
        padding: 14px;
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .page-backdrop::before {
        inset: 10px;
        border-radius: 24px;
    }

    .backdrop-blush {
        width: 56vw;
        height: 56vw;
    }

    .hero-notes span,
    .signature span {
        width: 100%;
    }

    .detail-card,
    .timeline-card,
    .quote-card,
    .photo-card,
    .story-card,
    .paper-card {
        border-radius: 24px;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .petal {
        display: none;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
