:root {
    --color-night: #071223;
    --color-navy: #0a1a33;
    --color-royal: #215fcd;
    --color-accent: #f5b027;
    --color-silver: #d9dee9;
    --color-platinum: #eef2f8;
    --color-ink: #10151f;
    --color-white: #f8fbff;
    --color-card: rgba(9, 22, 43, 0.82);
    --color-card-light: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.22);
    --border-soft: 1px solid rgba(217, 222, 233, 0.18);
    --content-width: min(1120px, calc(100vw - 2.5rem));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(33, 95, 205, 0.26), transparent 30%),
        radial-gradient(circle at top right, rgba(217, 222, 233, 0.14), transparent 22%),
        linear-gradient(180deg, #050c19 0%, #0a1a33 36%, #07111f 100%);
    color: var(--color-white);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
.hero-headline {
    font-family: "Cormorant Garamond", serif;
}

.microsite-shell {
    width: var(--content-width);
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.hero-section,
.content-section,
.site-footer {
    position: relative;
    border: var(--border-soft);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(12, 27, 52, 0.92), rgba(8, 18, 36, 0.9));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-section {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    min-height: 41rem;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-section::before,
.content-section::before,
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 0.75px, transparent 0.75px);
    background-size: 16px 16px;
    -webkit-mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 70%);
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 70%);
    pointer-events: none;
}

.hero-copy,
.hero-visual,
.section-heading-wrap,
.details-grid,
.details-actions,
.invitation-layout,
.gallery-grid,
.gift-layout,
.thank-you-preview,
.site-footer {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.section-eyebrow {
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent);
}

.hero-section h1 {
    font-size: clamp(3.3rem, 7vw, 5.8rem);
    line-height: 0.92;
}

.hero-headline {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    max-width: 42rem;
    color: var(--color-platinum);
}

.hero-faith {
    font-size: 1.05rem;
    color: rgba(248, 251, 255, 0.88);
}

.hero-supporting-text,
.section-intro,
.detail-card span,
.gift-details p,
.countdown-footnote,
.gallery-card figcaption,
.footer-meta,
.invitation-copy p {
    color: rgba(248, 251, 255, 0.78);
    line-height: 1.7;
}

.hero-supporting-text {
    max-width: 38rem;
}

.hero-actions,
.details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.15rem;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, rgba(245, 176, 39, 0.9), rgba(212, 140, 5, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 20px rgba(245, 176, 39, 0.25);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border-color: rgba(217, 222, 233, 0.18);
}

.button:focus-visible,
.gift-details summary:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid rgba(94, 152, 255, 0.65);
    outline-offset: 3px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-mobile {
    display: none;
    margin: 2.5rem 0 2rem 0;
}

.hero-frame {
    position: relative;
    width: min(100%, 28rem);
    aspect-ratio: 4 / 5;
    padding: 0.9rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(245, 176, 39, 0.4), rgba(33, 95, 205, 0.18));
    box-shadow: 0 4px 60px rgba(245, 176, 39, 0.12);
}

.hero-frame::after {
    content: "";
    position: absolute;
    inset: 0.9rem;
    border-radius: 22px;
    border: 1px solid rgba(245, 176, 39, 0.35);
    pointer-events: none;
}

.hero-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 22px;
}

.content-section {
    padding: 2rem;
    margin-bottom: 1.25rem;
}

.section-heading-wrap {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-heading-wrap h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.countdown-grid,
.details-grid,
.gallery-grid,
.gift-grid,
.share-actions {
    display: grid;
    gap: 1rem;
}

.countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.share-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.countdown-card,
.detail-card,
.gallery-card,
.gift-option,
.gift-details,
.invitation-copy,
.invitation-preview,
.gift-card-preview,
.thank-you-preview,
.share-section {
    border: var(--border-soft);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
}

.countdown-card,
.detail-card,
.gift-option,
.invitation-copy,
.share-section {
    padding: 1.3rem;
}

.share-section {
    margin-top: -0.25rem;
}

.share-guestbook-callout {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: var(--border-soft);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
}

.share-status {
    margin-top: 1rem;
    color: rgba(248, 251, 255, 0.78);
}

.guest-book-shell {
    padding-top: 1rem;
}

.guest-book-hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 0.98;
}

.guest-book-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.25rem;
}

.guest-book-panel,
.review-entry-card,
.public-note-card {
    position: relative;
    z-index: 1;
    border: var(--border-soft);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
}

.guest-book-panel {
    padding: 1.35rem;
}

.guest-book-panel h2,
.review-entry-card h3,
.public-note-card h3 {
    margin-bottom: 0.75rem;
}

.guest-book-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.guest-field {
    display: grid;
    gap: 0.4rem;
}

.guest-field-full {
    grid-column: 1 / -1;
}

.guest-field label {
    font-size: 0.92rem;
    color: rgba(248, 251, 255, 0.88);
}

.guest-field input,
.guest-field textarea {
    width: 100%;
    border: 1px solid rgba(217, 222, 233, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-white);
    padding: 0.85rem 0.95rem;
    font: inherit;
}

.guest-field textarea {
    min-height: 10rem;
    resize: vertical;
}

.guest-field input:focus,
.guest-field textarea:focus {
    outline: 3px solid rgba(94, 152, 255, 0.22);
    border-color: rgba(94, 152, 255, 0.6);
}

.guest-field .validation-message,
.guest-book-validation {
    color: #ffd1d1;
}

.guest-checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.guest-book-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.guest-checkbox-field input {
    width: 1.2rem;
    min-width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    padding: 0;
}

.guest-book-footnote,
.guest-book-status,
.public-note-meta,
.review-contact,
.review-message {
    color: rgba(248, 251, 255, 0.78);
    line-height: 1.65;
}

.guest-book-footnote,
.guest-book-status {
    margin-top: 1rem;
}

.guest-book-status {
    font-weight: 600;
}

.guest-book-status-warning {
    color: #ffd65a;
}

.guest-book-status-success {
    color: #b9f3c5;
}

.guest-book-home-link {
    display: inline-flex;
    margin-top: 0.25rem;
}

.review-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.review-help-copy {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
    padding: 1rem 1.1rem;
    border: var(--border-soft);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.review-help-copy p {
    color: rgba(248, 251, 255, 0.82);
    line-height: 1.6;
}

.public-note-grid,
.review-entry-list {
    display: grid;
    gap: 1rem;
}

.public-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-note-card {
    padding: 1.2rem;
}

.public-note-card p:last-child {
    margin-top: 0.75rem;
}

.review-access-panel {
    max-width: 32rem;
}

.review-toolbar,
.review-entry-header,
.review-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
}

.review-entry-header {
    align-items: flex-start;
}

.review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.review-badge {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-silver);
    font-size: 0.82rem;
    font-weight: 700;
}

.review-entry-card {
    padding: 1.2rem;
    border-width: 1px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.review-entry-not-started {
    border-color: rgba(217, 222, 233, 0.16);
}

.review-entry-ready {
    border-color: rgba(245, 198, 92, 0.36);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(245, 198, 92, 0.07));
}

.review-entry-sent {
    border-color: rgba(141, 214, 170, 0.34);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(141, 214, 170, 0.08));
}

.review-entry-not-needed {
    border-color: rgba(140, 168, 202, 0.3);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(140, 168, 202, 0.06));
}

.review-entry-public-pending {
    box-shadow: inset 0 0 0 1px rgba(255, 210, 122, 0.08);
}

.review-entry-public-approved {
    box-shadow: inset 0 0 0 1px rgba(143, 209, 180, 0.1);
}

.review-entry-not-started-badge {
    background: rgba(255, 255, 255, 0.09);
    color: var(--color-silver);
}

.review-entry-ready-badge {
    background: rgba(245, 198, 92, 0.15);
    color: #ffe29d;
}

.review-entry-sent-badge {
    background: rgba(141, 214, 170, 0.15);
    color: #cdf3dc;
}

.review-entry-not-needed-badge {
    background: rgba(140, 168, 202, 0.16);
    color: #d0def0;
}

.review-badge-public-pending {
    background: rgba(255, 210, 122, 0.14);
    color: #ffd997;
}

.review-badge-public-approved {
    background: rgba(143, 209, 180, 0.16);
    color: #c9f0df;
}

.button-review-neutral,
.button-review-reset,
.button-review-ready,
.button-review-sent,
.button-review-public-approve,
.button-review-public-hide {
    border: 1px solid rgba(217, 222, 233, 0.18);
    border-radius: 999px;
    padding: 0.72rem 1.05rem;
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button-review-neutral,
.button-review-reset {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
}

.button-review-ready {
    background: rgba(245, 198, 92, 0.12);
    border-color: rgba(245, 198, 92, 0.28);
    color: #ffe3a6;
}

.button-review-sent {
    background: rgba(141, 214, 170, 0.12);
    border-color: rgba(141, 214, 170, 0.26);
    color: #d1f4e0;
}

.button-review-public-approve {
    background: rgba(122, 169, 255, 0.12);
    border-color: rgba(122, 169, 255, 0.28);
    color: #d7e6ff;
}

.button-review-public-hide {
    background: rgba(255, 210, 122, 0.12);
    border-color: rgba(255, 210, 122, 0.28);
    color: #ffe0aa;
}

.button-review-neutral:hover,
.button-review-reset:hover,
.button-review-ready:hover,
.button-review-sent:hover,
.button-review-public-approve:hover,
.button-review-public-hide:hover {
    transform: translateY(-1px);
}

.review-contact,
.review-message {
    margin-top: 0.75rem;
}

.review-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 1rem;
}

.countdown-card {
    text-align: center;
}

.countdown-value {
    display: block;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1;
}

.countdown-label,
.detail-label {
    display: block;
    margin-top: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    color: var(--color-silver);
}

.countdown-footnote {
    margin-top: 1rem;
}

.details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.detail-card {
    display: grid;
    gap: 0.4rem;
}

.detail-card strong {
    font-size: 1.1rem;
}

.detail-notes {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: rgba(248, 251, 255, 0.78);
    line-height: 1.6;
}

.detail-notes li + li {
    margin-top: 0.55rem;
}

.invitation-layout,
.gift-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.25rem;
}

.invitation-preview,
.gift-card-preview,
.thank-you-preview {
    padding: 0.85rem;
}

.invitation-preview img,
.gift-card-preview img,
.thank-you-preview img {
    border-radius: 18px;
}

.invitation-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.gallery-card figcaption {
    padding: 1rem 1rem 1.1rem;
}

.subdued-section {
    background: linear-gradient(180deg, rgba(10, 20, 38, 0.92), rgba(7, 17, 31, 0.92));
}

.celebration-section {
    background: linear-gradient(180deg, rgba(20, 34, 58, 0.92), rgba(9, 20, 40, 0.92));
}

.gift-details {
    padding: 1rem 1.15rem 1.15rem;
}

.gift-details summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.gift-details summary::-webkit-details-marker {
    display: none;
}

.gift-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
}

.gift-option {
    display: grid;
    gap: 0.85rem;
    text-align: center;
}

.gift-option img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    padding: 0.85rem;
}

.gift-option a {
    font-weight: 700;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
}

.site-footer p + p,
.footer-meta a {
    margin-top: 0.3rem;
}

.footer-meta {
    text-align: right;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
    align-items: center;
}

.footer-links a {
    margin-top: 0;
}

#blazor-error-ui {
    background: #b32121;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: white;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 960px) {
    .hero-visual-desktop {
        display: none !important;
    }
    .hero-visual-mobile {
        display: flex !important;
    }

    .hero-section,
    .invitation-layout,
    .gift-layout,
    .site-footer {
        grid-template-columns: 1fr;
        display: grid;
    }

    .countdown-grid,
    .details-grid,
    .gallery-grid,
    .gift-grid,
    .share-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-book-layout,
    .public-note-grid,
    .guest-book-form-grid {
        grid-template-columns: 1fr;
    }

    .site-footer,
    .footer-meta {
        text-align: left;
    }
}

@media (max-width: 640px) {
    :root {
        --content-width: min(100vw - 1rem, 100%);
    }

    .microsite-shell {
        padding-top: 0.5rem;
        padding-bottom: 2rem;
    }

    .hero-section,
    .content-section,
    .site-footer {
        border-radius: 24px;
    }

    .hero-section,
    .content-section {
        padding: 1.35rem;
    }

    .hero-section {
        min-height: unset;
    }

    .hero-actions,
    .details-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .countdown-grid,
    .details-grid,
    .gallery-grid,
    .gift-grid,
    .share-actions {
        grid-template-columns: 1fr;
    }

    .share-guestbook-callout,
    .review-toolbar,
    .review-entry-header,
    .review-actions {
        flex-direction: column;
        align-items: stretch;
    }
}