        :root {
            --ink: #3d2417;
            --muted: #8a6a52;
            --red: #af1e23;
            --red-deep: #7a1418;
            --cream-light: #f3ddb0;
            --gold: #d9b76a;
            --brown: #c99a72;
            --paper: #fbf3e4;
            --line: rgba(61, 36, 23, 0.18);
            --shadow: 0 26px 70px rgba(61, 36, 23, 0.18);
            --font-family: "Quicksand", "Segoe UI", Arial, sans-serif;
            --font-display: "Baloo 2", "Quicksand", "Segoe UI", Arial, sans-serif;
            --font-script: "Playfair Display", Georgia, "Times New Roman", serif;
        }

        @media (max-width: 600px) {
            .shell {
                width: 100%;
                min-height: 100svh;
                border-radius: 0;
                box-shadow: none;
            }
            .section {
                padding: 32px 8px;
            }
            .cover {
                padding: 12px;
                min-height: 80svh;
            }
            h1 {
                font-size: 2.8rem;
            }
            h2 {
                font-size: 1.25rem;
            }
            .countdown {
                grid-template-columns: repeat(2, 1fr);
                gap: 7px;
            }
            .calendar-grid {
                font-size: 0.7rem;
            }
            .button-row {
                flex-direction: column;
                gap: 7px;
            }
            .detail-card {
                padding: 14px 4px;
            }
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            color: var(--ink);
            font-family: var(--font-family);
            background:
                radial-gradient(circle at 15% 12%, rgba(243, 221, 176, 0.85), transparent 28rem),
                radial-gradient(circle at 88% 16%, rgba(217, 183, 106, 0.85), transparent 28rem),
                radial-gradient(circle at 52% 88%, rgba(201, 154, 114, 0.85), transparent 28rem),
                #fdf6ec;
        }

        button,
        input,
        select,
        textarea {
            font: inherit;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .shell {
            width: min(100%, 430px);
            margin: 0 auto;
            background: var(--paper);
            box-shadow: var(--shadow);
            overflow: hidden;
            min-height: 100vh;
        }

        .section {
            position: relative;
            padding: 24px;
        }

        .cover {
            min-height: 100svh;
            display: grid;
            align-items: center;
            justify-items: center;
            gap: 28px;
            padding: 24px;
            isolation: isolate;
            background:
                linear-gradient(to bottom, rgba(251, 243, 228, 0.18), rgba(61, 36, 23, 0.52)),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 860 1260'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23f3ddb0'/%3E%3Cstop offset='.48' stop-color='%23d9b76a'/%3E%3Cstop offset='1' stop-color='%23c99a72'/%3E%3C/linearGradient%3E%3CradialGradient id='r' cx='.5' cy='.35' r='.55'%3E%3Cstop stop-color='%23fbf3e4' stop-opacity='.96'/%3E%3Cstop offset='1' stop-color='%23fbf3e4' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='860' height='1260' fill='url(%23g)'/%3E%3Ccircle cx='430' cy='430' r='430' fill='url(%23r)'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='8' stroke-linecap='round' opacity='.68'%3E%3Cpath d='M128 792C260 608 310 398 340 134'/%3E%3Cpath d='M190 706c-42-72-48-140-18-202 64 48 94 112 86 190'/%3E%3Cpath d='M270 560c-38-70-44-136-18-198 66 46 98 108 90 188'/%3E%3Cpath d='M610 1080C512 850 526 632 598 414'/%3E%3Cpath d='M600 820c86-48 158-52 216-16-58 66-130 88-216 66'/%3E%3Cpath d='M624 646c82-36 152-30 208 14-62 58-134 72-214 42'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.78'%3E%3Ccircle cx='324' cy='240' r='12'/%3E%3Ccircle cx='282' cy='382' r='9'/%3E%3Ccircle cx='650' cy='532' r='10'/%3E%3Ccircle cx='686' cy='710' r='13'/%3E%3Ccircle cx='230' cy='650' r='11'/%3E%3C/g%3E%3C/svg%3E") center/cover;
        }

        .cover::before {
            content: "";
            position: absolute;
            inset: 18px;
            z-index: -1;
            border: 1px solid rgba(255, 255, 255, 0.78);
            border-radius: 190px 190px 8px 8px;
        }

        .cover-copy {
            color: #fdf3e6;
            text-align: center;
            text-shadow: 0 2px 18px rgba(61, 36, 23, 0.28);
        }

        .cover-photo {
            position: relative;
            width: min(58vw, 280px);
            height: min(72vw, 360px);
            box-sizing: border-box;
            margin: 0;
            padding: 14px;
            border-radius: 20px;
            background:
                linear-gradient(160deg, rgba(251, 243, 228, 0.96), rgba(243, 221, 176, 0.86));
            box-shadow:
                0 28px 64px rgba(61, 36, 23, 0.28),
                inset 0 0 0 1px rgba(255, 255, 255, 0.68);
            isolation: isolate;
        }

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

        .cover-photo::before {
            inset: -18px -12px auto;
            height: 46%;
            z-index: 0;
            border-radius: 24px 24px 10px 10px;
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.74), transparent 52%),
                linear-gradient(35deg, transparent 50%, rgba(217, 183, 106, 0.7) 51%),
                linear-gradient(-35deg, transparent 50%, rgba(243, 221, 176, 0.82) 51%);
            box-shadow: 0 18px 42px rgba(61, 36, 23, 0.18);
        }

        .cover-photo::after {
            left: -10px;
            right: -10px;
            bottom: -16px;
            z-index: 0;
            height: 34%;
            border-radius: 0 0 20px 20px;
            background:
                linear-gradient(34deg, transparent 49%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
                linear-gradient(-34deg, transparent 49%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
                linear-gradient(146deg, rgba(243, 221, 176, 0.96) 0 50%, transparent 51%),
                linear-gradient(-146deg, rgba(217, 183, 106, 0.94) 0 50%, transparent 51%),
                linear-gradient(to top, rgba(253, 243, 230, 0.98), rgba(251, 243, 228, 0.9));
            border-top: 1px solid rgba(255, 255, 255, 0.64);
            box-shadow:
                0 14px 30px rgba(61, 36, 23, 0.16),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        .cover-photo img {
            position: relative;
            z-index: 1;
            display: block;
            width: 100%;
            height: 100%;
            border-radius: 12px;
            box-shadow: 0 14px 28px rgba(61, 36, 23, 0.2);
            object-fit: cover;
        }

        .kicker {
            margin: 0 0 16px;
            font-family: var(--font-display);
            font-size: 0.78rem;
            font-weight: 800;
            letter-spacing: 0.22em;
            text-transform: uppercase;
        }

        .subkicker {
            margin: -8px 0 16px;
            color: var(--red-deep);
            font-family: var(--font-script);
            font-style: italic;
            font-size: 1.05rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            text-transform: none;
        }

        .cover-copy .subkicker {
            color: rgba(253, 243, 230, 0.92);
            text-shadow: 0 2px 12px rgba(61, 36, 23, 0.24);
        }

        h1,
        h2 {
            font-family: var(--font-display);
            font-weight: 700;
        }

        .script {
            font-family: var(--font-script);
            font-style: italic;
            font-weight: 600;
        }

        h1 {
            margin: 0;
            font-size: clamp(4.6rem, 21vw, 6.3rem);
            line-height: 0.85;
        }

        .amp {
            display: block;
            color: #fdf3e6;
            font-style: italic;
            font-size: 0.54em;
            line-height: 0.9;
        }

        .cover-date {
            margin: 24px 0 0;
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 0.18em;
            text-transform: uppercase;
        }

        .intro {
            text-align: center;
        }

        h2 {
            margin: 0 0 16px;
            color: var(--red-deep);
            font-size: 2rem;
            line-height: 0.95;
            font-weight: 700;
        }

        .lead {
            margin: 0 auto;
            max-width: 340px;
            color: var(--muted);
            font-size: 1rem;
            line-height: 1.8;
        }

        .lang-note {
            color: var(--muted);
            font-size: 0.92rem;
            font-weight: 500;
            text-transform: none;
            letter-spacing: 0;
        }

        .ornament {
            width: 86px;
            height: 1px;
            margin: 24px auto;
            background: var(--line);
            position: relative;
        }

        .ornament::after {
            content: "";
            position: absolute;
            width: 9px;
            height: 9px;
            left: 50%;
            top: 50%;
            border: 1px solid var(--red);
            background: var(--paper);
            transform: translate(-50%, -50%) rotate(45deg);
        }

        .countdown {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 9px;
            margin-top: 28px;
        }

        .timebox {
            min-height: 74px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(175, 30, 35, 0.2);
            border-radius: 8px;
            background: linear-gradient(180deg, rgba(243, 221, 176, 0.56), rgba(251, 243, 228, 0.72));
        }

        .timebox strong {
            display: block;
            color: var(--red-deep);
            font-size: 1.45rem;
            line-height: 1;
        }

        .timebox span {
            display: block;
            margin-top: 5px;
            color: var(--muted);
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .band {
            background:
                linear-gradient(rgba(251, 243, 228, 0.8), rgba(251, 243, 228, 0.9)),
                radial-gradient(circle at 12% 20%, var(--cream-light), transparent 12rem),
                radial-gradient(circle at 90% 74%, var(--gold), transparent 13rem);
            border-block: 1px solid var(--line);
        }

        #announcement,
        #reception {
            text-align: center;
        }

        .detail-card {
            padding: 24px;
            border: 1px solid rgba(175, 30, 35, 0.22);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.48);
            text-align: center;
        }

        .detail-card + .detail-card {
            margin-top: 16px;
        }

        .parents-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 24px;
        }

        .parents-grid .detail-card {
            padding: 16px 10px;
            min-width: 0;
        }

        .parents-grid .detail-card + .detail-card {
            margin-top: 0;
        }

        .formal-names {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            margin: 8px 0 20px;
            color: var(--red-deep);
            font-family: var(--font-script);
            font-style: italic;
            font-weight: 600;
            font-size: 1.6rem;
            line-height: 1.3;
        }

        .formal-names .amp-small {
            margin: 2px 0;
            color: var(--red);
            font-size: 0.95rem;
            line-height: 1;
        }

        .time-note {
            display: block;
            margin-top: 14px;
        }

        .label {
            margin: 0 0 12px;
            color: var(--red);
            font-size: 0.75rem;
            font-weight: 900;
            letter-spacing: 0.18em;
            text-transform: uppercase;
        }

        .detail-card strong {
            display: block;
            font-size: 1.15rem;
            line-height: 1.45;
        }

        .parent-names {
            display: block;
            margin: 0;
            font-size: 0.72rem;
            font-weight: 700;
            line-height: 1.45;
            white-space: nowrap;
        }

        .detail-card small {
            display: block;
            margin-top: 8px;
            color: var(--muted);
            font-size: 0.92rem;
            line-height: 1.55;
        }

        .button-row {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 18px;
        }

        .btn,
        button {
            min-height: 46px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 0;
            border-radius: 999px;
            padding: 0 20px;
            color: white;
            font-weight: 800;
            cursor: pointer;
            background: linear-gradient(135deg, var(--red), var(--red-deep));
            box-shadow: 0 12px 26px rgba(122, 20, 24, 0.18);
        }

        .btn.ghost,
        button.ghost {
            color: var(--red-deep);
            border: 1px solid rgba(175, 30, 35, 0.28);
            background: rgba(251, 243, 228, 0.7);
            box-shadow: none;
        }

        .music-toggle {
            position: fixed;
            top: 18px;
            right: 18px;
            z-index: 99;
            width: 48px;
            height: 48px;
            padding: 0;
            border: none;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.7);
            box-shadow: 0 2px 8px rgba(61, 36, 23, 0.12);
            cursor: pointer;
        }

        .music-icon {
            font-size: 1.5rem;
        }

        .visually-hidden {
            display: none;
        }

        .calendar {
            margin-top: 24px;
            padding: 18px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.54);
            border: 1px solid rgba(175, 30, 35, 0.18);
        }

        .calendar-head {
            color: var(--red-deep);
            text-align: center;
            font-weight: 900;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            margin-bottom: 14px;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 7px;
            text-align: center;
        }

        .calendar-grid span {
            min-height: 32px;
            display: grid;
            place-items: center;
            color: var(--muted);
            font-size: 0.82rem;
        }

        .calendar-grid .weekday {
            color: var(--red);
            font-size: 0.68rem;
            font-weight: 900;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .calendar-grid .chosen {
            position: relative;
            isolation: isolate;
            color: white;
            font-weight: 900;
        }

        .calendar-grid .chosen::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            border-radius: 999px;
            background: var(--red);
            transform: rotate(-10deg);
        }

        .photo-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            grid-auto-rows: 132px;
            grid-auto-flow: dense;
            gap: 10px;
            margin-top: 24px;
        }

        .photo-tile {
            position: relative;
            margin: 0;
            border-radius: 8px;
            overflow: hidden;
            background:
                linear-gradient(rgba(251, 243, 228, 0.16), rgba(61, 36, 23, 0.12)),
                radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.8), transparent 5rem),
                linear-gradient(135deg, var(--cream-light), var(--gold) 55%, var(--brown));
        }

        .photo-tile:nth-child(2) {
            background:
                linear-gradient(rgba(251, 243, 228, 0.2), rgba(61, 36, 23, 0.1)),
                radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.78), transparent 5rem),
                linear-gradient(145deg, var(--brown), var(--cream-light) 50%, var(--gold));
        }

        .photo-tile:nth-child(1),
        .photo-tile:nth-child(4) {
            grid-column: 1 / span 2;
            grid-row: span 2;
        }

        .photo-tile:nth-child(2),
        .photo-tile:nth-child(5) {
            grid-row: span 2;
        }

        .photo-tile:nth-child(3),
        .photo-tile:nth-child(6) {
            grid-row: span 1;
        }

        .photo-tile img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

        form {
            margin-top: 24px;
            display: grid;
            gap: 13px;
        }

        .field {
            display: grid;
            gap: 7px;
            color: var(--red-deep);
            font-size: 0.72rem;
            font-weight: 900;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .field[hidden] {
            display: none !important;
        }

        .field span {
            color: var(--muted);
            font-size: 0.74rem;
            font-weight: 600;
            letter-spacing: 0;
            text-transform: none;
        }

        input,
        select,
        textarea {
            width: 100%;
            min-height: 48px;
            border: 1px solid rgba(175, 30, 35, 0.28);
            border-radius: 999px;
            padding: 12px 15px;
            color: var(--ink);
            background: rgba(255, 255, 255, 0.72);
            outline: none;
        }

        textarea {
            min-height: 106px;
            border-radius: 22px;
            resize: vertical;
        }

        input:focus,
        select:focus,
        textarea:focus {
            border-color: rgba(175, 30, 35, 0.72);
            box-shadow: 0 0 0 4px rgba(175, 30, 35, 0.1);
        }

        .status {
            min-height: 22px;
            color: var(--red-deep);
            font-size: 0.92rem;
            font-weight: 800;
            text-align: center;
        }

        .footer {
            padding: 30px 24px 42px;
            color: var(--muted);
            text-align: center;
            font-size: 0.9rem;
            background: var(--paper);
            border-top: 1px solid var(--line);
        }

        .reveal {
            opacity: 0;
            transform: translateY(18px);
            transition: opacity 700ms ease, transform 700ms ease;
        }

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

        .modal {
            position: fixed;
            inset: 0;
            z-index: 30;
            display: none;
            place-items: center;
            padding: 22px;
            background: rgba(61, 36, 23, 0.42);
        }

        .modal.open {
            display: grid;
        }

        .modal-card {
            width: min(100%, 360px);
            padding: 34px 24px;
            border-radius: 10px;
            background: var(--paper);
            text-align: center;
            box-shadow: var(--shadow);
        }

        .modal-card p {
            margin: 10px 0 0;
            color: var(--muted);
            line-height: 1.6;
        }

        @media (min-width: 760px) {
            body {
                padding: 32px 0;
            }

            .shell {
                border-radius: 16px;
            }
        }

        @media (max-width: 600px) {
            .cover-photo {
                width: min(64vw, 220px);
                height: min(80vw, 280px);
            }
        }
