:root {
    --bg: #f4efe9;

    --ivory: #f7f1e8;
    --soft-ivory: #fbf7f2;
    --paper: #f5eee4;
    --paper-deep: #ece2d4;
    --paper-border: #cdbfae;

    --sage: #90966b;
    --sage-deep: #6f7550;
    --olive: #5a6041;
    --forest: #2e463e;

    --blush: #ddb8bf;
    --blush-deep: #c9949e;

    --burnt-orange: #b76334;
    --terracotta: #9f512d;
    --gold: #b59b72;

    --ink: #342d2a;
    --soft-ink: #5f5752;

    --shadow: 0 18px 45px rgba(46, 38, 30, 0.16);
    --light-shadow: 0 10px 24px rgba(46, 38, 30, 0.10);

    --paper-grain:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.025) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 30%, rgba(90,70,50,0.015) 0 1px, transparent 1px),
        radial-gradient(circle at 40% 75%, rgba(255,255,255,0.02) 0 1px, transparent 1px),
        radial-gradient(circle at 70% 65%, rgba(120,95,70,0.012) 0 1px, transparent 1px);

    --paper-fiber:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.012) 0px,
            rgba(255,255,255,0.012) 1px,
            rgba(120,95,70,0.008) 1px,
            rgba(120,95,70,0.008) 2px,
            transparent 2px,
            transparent 4px
        );
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top left, rgba(183, 99, 52, 0.08), transparent 20%),
        radial-gradient(circle at top right, rgba(144, 150, 107, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(247,241,232,0.99), rgba(238,229,216,0.99));
    color: var(--ink);
}

a {
    color: inherit;
}

.page-shell {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto 16px;
    background:
        linear-gradient(rgba(255, 252, 247, 0.92), rgba(255, 252, 247, 0.92)),
        repeating-linear-gradient(
            45deg,
            rgba(181, 155, 114, 0.02) 0px,
            rgba(181, 155, 114, 0.02) 2px,
            transparent 2px,
            transparent 18px
        );
    border: 1px solid rgba(125, 107, 89, 0.18);
    border-top: none;
    box-shadow: var(--shadow);
    overflow: visible;
    position: relative;
}

.page-shell::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(181, 155, 114, 0.16);
    pointer-events: none;
    z-index: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: min(1400px, calc(100% - 32px));
    margin: 16px auto 0;
    background: rgba(247, 241, 232, 0.97);
    border: 1px solid rgba(125, 107, 89, 0.18);
    box-shadow: 0 8px 18px rgba(46, 38, 30, 0.06);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 40px;
}

.brand-mark {
    font-size: 1.35rem;
    letter-spacing: 0.22rem;
    color: var(--olive);
    font-weight: 600;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    text-decoration: none;
    color: var(--forest);
    font-size: 0.98rem;
    letter-spacing: 0.04rem;
    position: relative;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--burnt-orange);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    opacity: 0.8;
    background: linear-gradient(90deg, var(--burnt-orange), var(--gold));
    transition: width 0.25s ease;
}

.site-nav a:hover::after {
    width: 100%;
}

main {
    position: relative;
    z-index: 1;
}

/* Envelope scroll scene */

.scroll-envelope-section {
    position: relative;
    height: 240vh;
    background:
        linear-gradient(rgba(249, 244, 237, 0.70), rgba(249, 244, 237, 0.88)),
        radial-gradient(circle at 20% 15%, rgba(144, 150, 107, 0.16), transparent 22%),
        radial-gradient(circle at 85% 20%, rgba(221, 184, 191, 0.18), transparent 24%),
        radial-gradient(circle at 50% 85%, rgba(183, 99, 52, 0.10), transparent 28%);
}

.scroll-envelope-sticky {
    position: sticky;
    top: 78px;
    height: calc(100vh - 78px);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero-intro-copy {
    position: absolute;
    top: -8px;
    text-align: center;
    z-index: 9;
    pointer-events: none;
}

.hero-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.22rem;
    font-size: 0.82rem;
    color: var(--terracotta);
}

.hero-scroll-note {
    margin: 10px 0 0;
    font-size: 0.95rem;
    color: var(--soft-ink);
    font-style: italic;
}

.envelope-scene {
    position: relative;
    width: min(92vw, 920px);
    height: min(78vh, 700px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    transform: translateY(8px);
}

/* Invitation card */

.invitation-card {
    position: absolute;
    bottom: 70px;
    width: min(76vw, 560px);
    max-width: 560px;
    background:
        var(--paper-grain),
        linear-gradient(180deg, rgba(247,241,232,0.99), rgba(238,229,216,0.99));
    background-size:
        180px 180px,
        100% 100%;
    border: 1px solid var(--paper-border);
    box-shadow: 0 22px 40px rgba(46, 38, 30, 0.18);
    transform: translateY(120px) scale(0.98);
    transform-origin: center center;
    z-index: 5;
    opacity: 0.99;
    overflow: visible;
}

.invitation-card::before,
.invitation-card::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 300px;
    height: 680px;
    background: url("../images/FloralRightpng.png") center/contain no-repeat;
    pointer-events: none;
    z-index: 6;
    opacity: 0.95;
    transform-origin: center center;
}

.invitation-card::before {
    left: -270px;
    transform: translateY(-50%) scaleX(-1);
}

.invitation-card::after {
    right: -270px;
    transform: translateY(-50%);
}

.invitation-inner {
    position: relative;
    padding: 48px 42px;
    z-index: 7;
    background:
        var(--paper-fiber),
        linear-gradient(180deg, rgba(255,255,255,0.02), rgba(120,95,70,0.008));
    background-size:
        100% 100%,
        100% 100%;
}

.invitation-inner::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(181, 155, 114, 0.32);
    pointer-events: none;
}

.invitation-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.invitation-small,
.invitation-date,
.invitation-location,
.invitation-message,
.invitation-actions,
.invitation-inner h1 {
    position: relative;
    z-index: 1;
}

.invitation-small {
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-size: 0.76rem;
    color: var(--terracotta);
    text-align: center;
}

.invitation-inner h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    font-weight: 500;
    line-height: 0.95;
    color: var(--olive);
}

.invitation-inner h1 span {
    color: var(--burnt-orange);
    font-style: italic;
    padding: 0 8px;
}

.invitation-date {
    margin: 24px 0 10px;
    text-align: center;
    font-size: 1.18rem;
    color: var(--ink);
}

.invitation-location {
    margin: 0;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.08rem;
    color: var(--soft-ink);
    text-transform: uppercase;
}

.invitation-divider {
    width: 84px;
    height: 1px;
    margin: 28px auto;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    position: relative;
    z-index: 1;
}

.invitation-message {
    margin: 0 auto;
    max-width: 420px;
    text-align: center;
    font-size: 1.04rem;
    line-height: 1.85;
    color: var(--soft-ink);
}

.invitation-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.paper-button {
    display: inline-block;
    padding: 13px 22px;
    text-decoration: none;
    font-size: 0.94rem;
    letter-spacing: 0.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-paper-button {
    background: linear-gradient(135deg, var(--olive), var(--forest));
    color: #fff;
    box-shadow: 0 10px 22px rgba(46, 70, 62, 0.18);
}

.secondary-paper-button {
    border: 1px solid rgba(183, 99, 52, 0.32);
    background: rgba(255, 249, 243, 0.88);
    color: var(--terracotta);
}

.paper-button:hover {
    transform: translateY(-2px);
}

/* Envelope */

.envelope-wrapper {
    position: relative;
    width: min(82vw, 620px);
    height: 390px;
    z-index: 8;
    transform: translateY(0) scale(1);
    will-change: transform, opacity;
    transition: opacity 0.2s ease;
}

.envelope-wrapper.receded {
    z-index: 3;
}

.envelope-wrapper::after {
    content: "";
    position: absolute;
    bottom: -260px;
    left: -120px;
    width: calc(100% + 240px);
    height: 260px;
    background: #f6f1e8;
    z-index: 9;
}

.envelope-back {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #8f956a 0%, #7b815b 100%);
    border-radius: 0 0 10px 10px;
    box-shadow: var(--light-shadow);
    z-index: 1;
}

.envelope-front {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 185px;
    background: linear-gradient(180deg, #7c825a 0%, #6e7450 100%);
    clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
    border-radius: 0 0 10px 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 4;
}

.envelope-flap {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 240px;
    background: linear-gradient(180deg, #9aa174 0%, #838a61 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    transform: rotateX(0deg);
    z-index: 6;
    filter: drop-shadow(0 12px 16px rgba(40, 32, 24, 0.12));
    backface-visibility: hidden;
}

.wax-seal {
    position: absolute;
    left: 50%;
    top: 176px;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    display: block;
    background: url("../images/GoldWaxSealpng.png") center/contain no-repeat;
    z-index: 7;
    transition: opacity 0.25s ease;
    text-indent: -9999px;
    overflow: hidden;
}

/* Floral accents */

.floating-floral,
.collage-floral-cluster {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.floating-floral::before,
.floating-floral::after,
.collage-floral-cluster::before,
.collage-floral-cluster::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.floating-floral::before,
.collage-floral-cluster::before {
    width: 110px;
    height: 110px;
    background:
        radial-gradient(circle at 36% 34%, rgba(255, 245, 245, 0.95) 0 14%, transparent 15%),
        radial-gradient(circle at 56% 24%, rgba(230, 196, 203, 0.92) 0 12%, transparent 13%),
        radial-gradient(circle at 68% 48%, rgba(240, 231, 220, 0.95) 0 14%, transparent 15%),
        radial-gradient(circle at 34% 62%, rgba(220, 189, 197, 0.88) 0 12%, transparent 13%),
        radial-gradient(circle at 56% 68%, rgba(242, 236, 228, 0.92) 0 16%, transparent 17%);
}

.floating-floral::after,
.collage-floral-cluster::after {
    width: 80px;
    height: 120px;
    background:
        radial-gradient(circle at 35% 22%, rgba(144, 150, 107, 0.90) 0 10%, transparent 11%),
        radial-gradient(circle at 58% 42%, rgba(183, 99, 52, 0.55) 0 8%, transparent 9%),
        radial-gradient(circle at 46% 65%, rgba(110, 133, 101, 0.82) 0 10%, transparent 11%);
    filter: blur(0.2px);
}

.floral-top-left {
    width: 140px;
    height: 160px;
    top: 70px;
    left: 40px;
    opacity: 0.9;
}

.floral-top-left::before {
    left: 0;
    top: 0;
}

.floral-top-left::after {
    left: 40px;
    top: 70px;
}

.floral-top-right {
    width: 160px;
    height: 180px;
    top: 40px;
    right: 40px;
    opacity: 0.92;
}

.floral-top-right::before {
    right: 10px;
    top: 0;
}

.floral-top-right::after {
    right: 60px;
    top: 80px;
}

.floral-bottom-left {
    width: 150px;
    height: 170px;
    left: 80px;
    bottom: 60px;
    opacity: 0.88;
}

.floral-bottom-left::before {
    left: 0;
    bottom: 40px;
}

.floral-bottom-left::after {
    left: 52px;
    bottom: 0;
}

.floral-bottom-right {
    width: 150px;
    height: 170px;
    right: 90px;
    bottom: 46px;
    opacity: 0.9;
}

.floral-bottom-right::before {
    right: 0;
    bottom: 36px;
}

.floral-bottom-right::after {
    right: 54px;
    bottom: 0;
}

/* Divider */

.floral-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 26px 24px;
    background:
        linear-gradient(rgba(144, 150, 107, 0.22), rgba(144, 150, 107, 0.22)),
        linear-gradient(180deg, rgba(247, 241, 233, 0.98), rgba(241, 233, 223, 0.98));
}

.floral-line {
    flex: 1;
    max-width: 420px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(181, 155, 114, 0.9),
        rgba(144, 150, 107, 0.9),
        transparent
    );
}

.floral-bloom {
    position: relative;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
}

.petal {
    position: absolute;
    width: 34px;
    height: 46px;
    background: linear-gradient(180deg, rgba(183, 99, 52, 0.95), rgba(159, 81, 45, 0.90));
    border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.12);
}

.petal-1 {
    top: 2px;
    left: 29px;
}

.petal-2 {
    top: 16px;
    left: 8px;
    transform: rotate(-55deg);
}

.petal-3 {
    top: 16px;
    right: 8px;
    transform: rotate(55deg);
}

.petal-4 {
    bottom: 10px;
    left: 18px;
    transform: rotate(-120deg);
}

.petal-5 {
    bottom: 10px;
    right: 18px;
    transform: rotate(120deg);
}

.center-bud {
    position: absolute;
    top: 35px;
    left: 35px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, #dcc79d 0%, #b59b72 72%);
    box-shadow: 0 0 0 3px rgba(255, 249, 243, 0.6);
}

.leaf {
    position: absolute;
    width: 24px;
    height: 42px;
    background: linear-gradient(180deg, rgba(46, 70, 62, 0.95), rgba(144, 150, 107, 0.95));
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    z-index: -1;
}

.leaf-left {
    left: 8px;
    bottom: -2px;
    transform: rotate(-38deg);
}

.leaf-right {
    right: 8px;
    bottom: -2px;
    transform: rotate(38deg);
}

/* Lower collage */

.collage-section {
    padding: 64px 28px 80px;
    background:
        linear-gradient(rgba(144,150,107,0.28), rgba(144,150,107,0.28)),
        url("../images/FloralBackgroundpng.png"),
        linear-gradient(180deg, rgba(247,241,232,0.98), rgba(239,229,218,0.96));
    background-size: cover, cover, cover;
    background-position: center center, center center, center center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    position: relative;
}

.collage-grid {
    width: min(1150px, 100%);
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "invite circle note"
        "photo1 photo2 photo3";
    gap: 28px;
    align-items: start;
}

.collage-card {
    position: relative;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.collage-card:hover {
    transform: translateY(-4px) rotate(0deg);
}

.paper-frame {
    background:
        var(--paper-grain),
        linear-gradient(180deg, rgba(247,241,232,0.98), rgba(236,227,214,0.98));
    background-size:
        180px 180px,
        100% 100%;
    border: 1px solid var(--paper-border);
    box-shadow: var(--light-shadow);
    padding: 34px;
    position: relative;
}

.paper-frame::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(181, 155, 114, 0.24);
    pointer-events: none;
}

.soft-paper {
    background:
        var(--paper-grain),
        linear-gradient(180deg, rgba(249,245,239,0.98), rgba(244,238,230,0.98));
    background-size:
        180px 180px,
        100% 100%;
}

.invitation-panel {
    grid-area: invite;
}

.invitation-panel .paper-frame {
    min-height: 280px;
}

.panel-kicker {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.16rem;
    font-size: 0.76rem;
    color: var(--terracotta);
    position: relative;
    z-index: 1;
}

.invitation-panel h2,
.note-card h3 {
    margin: 0 0 16px;
    font-weight: 500;
    color: var(--olive);
    position: relative;
    z-index: 1;
}

.invitation-panel h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.02;
}

.panel-copy {
    margin: 0;
    line-height: 1.85;
    color: var(--soft-ink);
    position: relative;
    z-index: 1;
}

.panel-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--burnt-orange);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.circle-badge-card {
    grid-area: circle;
    align-self: center;
    justify-self: center;
}

.circle-badge {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #efccd3 0%, #deb2bc 56%, #cf98a4 100%);
    box-shadow: 0 16px 28px rgba(98, 53, 60, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff9fa;
    text-align: center;
    padding: 24px;
}

.badge-small {
    font-size: 1rem;
    letter-spacing: 0.06rem;
}

.badge-large {
    margin-top: 8px;
    font-size: 2.1rem;
    font-style: italic;
}

.polaroid-card {
    background:
        var(--paper-grain),
        linear-gradient(180deg, rgba(251,247,242,0.99), rgba(242,235,226,0.99));
    background-size:
        180px 180px,
        100% 100%;
    box-shadow: 0 14px 24px rgba(46, 38, 30, 0.14);
    padding: 14px 14px 18px;
    width: 100%;
    max-width: 290px;
}

.polaroid-card p {
    margin: 14px 0 0;
    text-align: center;
    font-size: 1rem;
    color: var(--ink);
}

.polaroid-photo {
    height: 300px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(125, 107, 89, 0.10);
}

.photo-one {
    background:
        linear-gradient(rgba(244, 233, 222, 0.18), rgba(244, 233, 222, 0.18)),
        radial-gradient(circle at 30% 25%, rgba(183, 99, 52, 0.16), transparent 18%),
        radial-gradient(circle at 70% 35%, rgba(144, 150, 107, 0.20), transparent 22%),
        linear-gradient(180deg, #8c735f 0%, #d9c6b3 100%);
}

.photo-two {
    background:
        linear-gradient(rgba(244, 233, 222, 0.18), rgba(244, 233, 222, 0.18)),
        radial-gradient(circle at 35% 24%, rgba(221, 184, 191, 0.28), transparent 18%),
        radial-gradient(circle at 68% 46%, rgba(144, 150, 107, 0.22), transparent 22%),
        linear-gradient(180deg, #6f7b63 0%, #d5d0c5 100%);
}

.photo-three {
    background:
        linear-gradient(rgba(244,233,222,0.18), rgba(244,233,222,0.18)),
        radial-gradient(circle at 40% 30%, rgba(183,99,52,0.18), transparent 22%),
        radial-gradient(circle at 60% 60%, rgba(144,150,107,0.22), transparent 22%),
        linear-gradient(180deg, #7a866e 0%, #e3d9cc 100%);
}

.polaroid-left {
    grid-area: photo1;
    transform: rotate(-6deg);
    margin-top: 18px;
}

.polaroid-right {
    grid-area: photo2;
    transform: rotate(5deg);
    margin-top: -6px;
}

.polaroid-third {
    grid-area: photo3;
    transform: rotate(-2deg);
    margin-top: 28px;
}

.polaroid-card:hover {
    transform: translateY(-4px) rotate(0deg);
}

.note-card {
    grid-area: note;
}

.note-card .paper-frame {
    min-height: 100%;
}

.note-card h3 {
    font-size: 2rem;
    line-height: 1.1;
}

.floral-cluster-one {
    width: 160px;
    height: 180px;
    left: 28%;
    top: 8%;
    opacity: 0.84;
}

.floral-cluster-two {
    width: 180px;
    height: 190px;
    right: 8%;
    bottom: 2%;
    opacity: 0.88;
}

.floral-cluster-one::before,
.floral-cluster-two::before {
    width: 120px;
    height: 120px;
}

.floral-cluster-one::after,
.floral-cluster-two::after {
    width: 90px;
    height: 130px;
    top: 60px;
    left: 40px;
}

.site-footer {
    padding: 26px 24px 34px;
    text-align: center;
    border-top: 1px solid rgba(125, 107, 89, 0.14);
    background: rgba(248, 242, 234, 0.9);
    color: var(--olive);
}

/* Registry */

.registry-page {
    padding: 72px 28px 90px;
    background:
        linear-gradient(rgba(247,241,232,0.92), rgba(239,229,218,0.94));
}

.registry-header {
    width: min(820px, 100%);
    margin: 0 auto 54px;
    text-align: center;
}

.paper-panel {
    background-color: rgba(247,241,232,0.90);
    background-image: var(--paper-grain);
    background-size: 180px 180px;
    border: 1px solid var(--paper-border);
    box-shadow: var(--light-shadow);
    padding: 42px 34px;
    position: relative;
}

.paper-panel::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(181,155,114,0.24);
    pointer-events: none;
}

.registry-kicker {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-size: 0.78rem;
    color: var(--terracotta);
    position: relative;
    z-index: 1;
}

.registry-header h1 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.02;
    font-weight: 500;
    color: var(--olive);
    position: relative;
    z-index: 1;
}

.registry-intro {
    margin: 0 auto;
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--soft-ink);
    position: relative;
    z-index: 1;
}

.registry-polaroid-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 30px;
    align-items: start;
}

.registry-polaroid {
    text-decoration: none;
    background:
        var(--paper-grain),
        linear-gradient(180deg, rgba(251,247,242,0.99), rgba(242,235,226,0.99));
    background-size:
        180px 180px,
        100% 100%;
    box-shadow: 0 14px 24px rgba(46, 38, 30, 0.14);
    padding: 14px 14px 18px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.registry-polaroid:hover {
    transform: translateY(-6px) rotate(0deg);
    box-shadow: 0 18px 30px rgba(46, 38, 30, 0.18);
}

.registry-polaroid p {
    margin: 14px 0 0;
    text-align: center;
    font-size: 1rem;
    color: var(--ink);
}

.registry-polaroid-photo {
    aspect-ratio: 4 / 5;
    width: 100%;
    border: 1px solid rgba(125,107,89,0.10);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.registry-photo-amazon {
    background:
        linear-gradient(rgba(244,233,222,0.12), rgba(244,233,222,0.12)),
        linear-gradient(180deg, #d7cabd 0%, #f0e7dd 100%);
}

.registry-photo-target {
    background:
        linear-gradient(rgba(244,233,222,0.12), rgba(244,233,222,0.12)),
        linear-gradient(180deg, #d8d2c8 0%, #f2ebe2 100%);
}

.registry-photo-potterybarn {
    background:
        linear-gradient(rgba(244,233,222,0.12), rgba(244,233,222,0.12)),
        linear-gradient(180deg, #c8b9ab 0%, #efe5d9 100%);
}

.registry-photo-crate {
    background:
        linear-gradient(rgba(244,233,222,0.12), rgba(244,233,222,0.12)),
        linear-gradient(180deg, #cfd4c3 0%, #ece6da 100%);
}

.registry-tilt-left {
    transform: rotate(-4deg);
    margin-top: 10px;
}

.registry-tilt-right {
    transform: rotate(3deg);
    margin-top: 0;
}

.registry-tilt-soft-left {
    transform: rotate(-2deg);
    margin-top: 24px;
}

.registry-tilt-soft-right {
    transform: rotate(4deg);
    margin-top: 14px;
}

/* Details */

.details-page {
    padding: 72px 28px 90px;
    background:
        linear-gradient(rgba(46,70,62,0.25), rgba(46,70,62,0.35)),
        url("../images/BooCatExterior.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.details-hero {
    width: min(900px, 100%);
    margin: 0 auto 48px;
    text-align: center;
}

.details-kicker {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-size: 0.78rem;
    color: var(--terracotta);
    position: relative;
    z-index: 1;
}

.details-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1.02;
    font-weight: 500;
    color: var(--olive);
    position: relative;
    z-index: 1;
}

.details-intro {
    margin: 0 auto;
    max-width: 650px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--soft-ink);
    position: relative;
    z-index: 1;
}

.details-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
    align-items: start;
}

.details-card {
    min-height: 100%;
}

.details-wide {
    grid-column: 1 / -1;
}

.details-section-label {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.16rem;
    font-size: 0.76rem;
    color: var(--terracotta);
    position: relative;
    z-index: 1;
}

.details-card h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.04;
    font-weight: 500;
    color: var(--olive);
    position: relative;
    z-index: 1;
}

.details-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    letter-spacing: 0.03rem;
    color: var(--ink);
    position: relative;
    z-index: 1;
}

.details-info-stack {
    display: grid;
    gap: 18px;
}

.details-info-stack p,
.details-body,
.timeline-content p,
.dress-code-box p {
    margin: 0;
    color: var(--soft-ink);
    line-height: 1.85;
    position: relative;
    z-index: 1;
}

.timeline {
    display: grid;
    gap: 18px;
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    align-items: start;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(181,155,114,0.18);
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-time {
    font-size: 0.95rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: var(--burnt-orange);
    padding-top: 2px;
    position: relative;
    z-index: 1;
}

.timeline-content {
    background-color: rgba(255,252,247,0.92);
    padding: 16px 20px;
    border: 1px solid rgba(205,191,174,0.65);
}

.timeline-content h3 {
    margin-bottom: 6px;
}

.dress-code-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.dress-code-box {
    background-color: rgba(251,247,242,0.88);
    background-image: var(--paper-grain);
    background-size: 180px 180px;
    border: 1px solid rgba(205,191,174,0.75);
    padding: 22px 20px;
    box-shadow: 0 8px 18px rgba(46,38,30,0.06);
    position: relative;
}

.dress-code-box::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(181,155,114,0.16);
    pointer-events: none;
}

/* Shared responsive */

@media (max-width: 1100px) {
    .collage-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "invite circle"
            "note note"
            "photo1 photo2";
    }

    .note-card .paper-frame {
        min-height: auto;
    }
}

@media (max-width: 1000px) {
    .registry-polaroid-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-wide {
        grid-column: auto;
    }

    .dress-code-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .site-header {
        width: 100%;
        margin: 0;
        border-left: none;
        border-right: none;
    }

    .header-inner {
        padding: 18px 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 14px;
    }

    .page-shell {
        width: 100%;
        margin: 0;
        border-left: none;
        border-right: none;
    }

    .scroll-envelope-section {
        height: 190vh;
    }

    .scroll-envelope-sticky {
        top: 92px;
        height: calc(100vh - 92px);
    }

    .envelope-scene {
        width: min(96vw, 760px);
        height: min(74vh, 620px);
        transform: translateY(8px);
    }

    .invitation-card {
        width: min(86vw, 520px);
        bottom: 110px;
    }

    .invitation-card::before,
    .invitation-card::after {
        width: 240px;
        height: 544px;
    }

    .invitation-card::before {
        left: -150px;
    }

    .invitation-card::after {
        right: -150px;
    }

    .invitation-inner {
        padding: 38px 24px;
    }

    .envelope-wrapper {
        width: min(88vw, 560px);
        height: 340px;
    }

    .envelope-front {
        height: 205px;
    }

    .envelope-flap {
        height: 215px;
    }

    .wax-seal {
        top: 150px;
    }

    .collage-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "invite"
            "circle"
            "note"
            "photo1"
            "photo2"
            "photo3";
        justify-items: center;
    }

    .invitation-panel,
    .note-card {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .site-header {
        width: 100%;
        margin: 0;
        border-left: none;
        border-right: none;
    }

    .header-inner {
        padding: 16px;
    }

    .page-shell {
        width: 100%;
        margin: 0;
        border-left: none;
        border-right: none;
    }

    .hero-intro-copy {
        position: absolute;
        top: -8px;
        text-align: center;
        z-index: 9;
        pointer-events: none;
    }

    .scroll-envelope-section {
        height: 175vh;
    }

    .scroll-envelope-sticky {
        top: 96px;
        height: calc(100vh - 96px);
    }

    .envelope-scene {
        height: 70vh;
        transform: translateY(8px);
    }

    .invitation-card {
        bottom: 92px;
        width: min(92vw, 480px);
        background-size:
            240px 240px,
            100% 100%;
    }

    .paper-frame,
    .polaroid-card {
        background-size:
            240px 240px,
            100% 100%;
    }

    .invitation-card::before,
    .invitation-card::after {
        width: 180px;
        height: 408px;
        opacity: 0.82;
    }

    .invitation-card::before {
        left: -92px;
    }

    .invitation-card::after {
        right: -92px;
    }

    .invitation-inner h1 {
        font-size: 2.3rem;
    }

    .invitation-message {
        font-size: 0.98rem;
    }

    .paper-button {
        width: 100%;
        text-align: center;
    }

    .envelope-wrapper {
        width: min(94vw, 480px);
        height: 290px;
    }

    .envelope-front {
        height: 178px;
    }

    .envelope-flap {
        height: 185px;
    }

    .wax-seal {
        width: 64px;
        height: 64px;
        top: 132px;
        font-size: 0.88rem;
    }

    .floral-top-left,
    .floral-top-right,
    .floral-bottom-left,
    .floral-bottom-right,
    .floral-cluster-one,
    .floral-cluster-two {
        opacity: 0.55;
        transform: scale(0.8);
    }

    .collage-section,
    .registry-page,
    .details-page {
        padding: 46px 16px 60px;
    }

    .circle-badge {
        width: 210px;
        height: 210px;
    }

    .badge-large {
        font-size: 1.8rem;
    }

    .polaroid-card,
    .registry-polaroid {
        max-width: 290px;
        margin-left: auto;
        margin-right: auto;
    }

    .polaroid-photo {
        height: 260px;
    }

    .floral-divider {
        padding: 22px 12px;
        gap: 12px;
    }

    .registry-polaroid-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .registry-tilt-left,
    .registry-tilt-right,
    .registry-tilt-soft-left,
    .registry-tilt-soft-right,
    .polaroid-left,
    .polaroid-right,
    .polaroid-third {
        transform: rotate(0deg);
        margin-top: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .timeline-time {
        padding-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav a,
    .paper-button,
    .collage-card,
    .registry-polaroid {
        transition: none;
    }
}