:root {
    --bg: #f7f3ea;
    --surface: rgba(255, 251, 244, 0.92);
    --surface-strong: #fffdf8;
    --text: #4b3b22;
    --muted: #8a7a5f;
    --accent: #c9a151;
    --accent-dark: #9d7634;
    --line: rgba(201, 161, 81, 0.24);
    --success: #2b7a57;
    --error: #b33a3a;
    --shadow: 0 28px 70px rgba(110, 90, 48, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 243, 234, 0.96)),
        repeating-linear-gradient(45deg, rgba(207, 195, 166, 0.06) 0 18px, rgba(255, 255, 255, 0.14) 18px 36px),
        var(--bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(201, 161, 81, 0.16), transparent 22%),
        radial-gradient(circle at 80% 30%, rgba(201, 161, 81, 0.1), transparent 26%),
        radial-gradient(circle at 60% 80%, rgba(201, 161, 81, 0.08), transparent 28%);
    opacity: 0.9;
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 68px;
}

.hero,
.panel {
    backdrop-filter: blur(14px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    gap: 30px;
    padding: 42px;
}

.hero h1,
.panel h1,
.panel h2 {
    margin: 0;
    line-height: 1.05;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5.4rem);
    font-style: italic;
    font-weight: 500;
    color: var(--accent);
    text-shadow: 0 8px 22px rgba(201, 161, 81, 0.22);
}

.lead,
.muted,
.contact-line,
table,
label,
input,
select,
textarea,
.gallery-card figcaption,
.flash,
.button,
.meta-label,
.card-title,
.status-badge,
th,
.event-headline p,
.event-headline small {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.lead,
.muted {
    color: var(--muted);
}

.hero-premium {
    align-items: center;
}

.hero-copy {
    display: grid;
    justify-items: center;
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.74rem;
    color: #b6985d;
}

.hero-separator {
    width: min(180px, 40%);
    height: 1px;
    margin: 8px 0 4px;
    background: linear-gradient(90deg, transparent, rgba(201, 161, 81, 0.65), transparent);
}

.story-block {
    display: grid;
    gap: 8px;
    margin: 22px 0 18px;
    max-width: 58ch;
    text-align: center;
}

.story-block p,
.highlight-message,
.closing-quote,
.dress-code-box p,
.dress-code-box h3,
.event-headline h2,
.event-headline p,
.event-headline small {
    margin: 0;
}

.highlight-message {
    max-width: 54ch;
    margin: 0 auto;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-align: center;
}

.event-headline {
    display: grid;
    gap: 10px;
    width: 100%;
    margin: 28px 0;
    padding: 24px 28px;
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.86);
    border: 1px solid rgba(201, 161, 81, 0.16);
    text-align: center;
}

.event-headline h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.04em;
}

.event-headline p {
    font-size: 1.05rem;
}

.event-headline small {
    color: var(--muted);
}

.hero-actions,
.form-actions,
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(180deg, #d5b066, #bc913f);
    color: #fffdf8;
    text-decoration: none;
    font-size: 0.96rem;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #c9a151, #a57b35);
}

.button-secondary {
    background: rgba(255, 251, 244, 0.92);
    color: var(--text);
    border: 1px solid var(--line);
}

.button-light {
    background: rgba(75, 59, 34, 0.94);
    color: #fff;
}

.hero-card,
.panel {
    padding: 28px;
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-cover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 237, 0.98));
}

.poster-image {
    width: 100%;
    display: block;
    border-radius: 22px;
    border: 1px solid rgba(201, 161, 81, 0.28);
    box-shadow: 0 18px 40px rgba(144, 121, 72, 0.16);
}

.panel {
    margin-top: 24px;
}

.panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.meta-label,
.card-title {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.gallery-panel,
.manifesto-panel,
.stats-panel,
.video-panel {
    background:
        linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(249, 244, 234, 0.94));
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.gallery-card {
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    padding: 14px;
    background: rgba(255, 253, 248, 0.86);
    border: 1px solid rgba(201, 161, 81, 0.16);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 420px;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

.gallery-card figcaption {
    padding: 14px 8px 2px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--muted);
}

.card-cover,
.card-wide {
    grid-column: span 1;
}

.closing-quote {
    max-width: 34ch;
    margin: 0 auto 24px;
    text-align: center;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    line-height: 1.35;
}

.dress-code-box {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.88);
    border: 1px solid rgba(201, 161, 81, 0.16);
}

.dress-code-box h3 {
    font-size: 2rem;
}

.dress-dots {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(145, 122, 66, 0.35);
}

.dot-blue {
    background: #355fb8;
}

.dot-white {
    background: #f4f0e8;
}

.dot-red {
    background: #d6514d;
}

.stats-grid {
    display: grid;
    gap: 14px;
}

.stats-panel .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.86);
    border: 1px solid rgba(201, 161, 81, 0.16);
    text-align: center;
}

.stats-grid span {
    display: block;
    font-size: 2rem;
    margin-bottom: 4px;
}

.rsvp-form,
.login-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(120, 98, 62, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 14px 16px;
    color: var(--text);
    font: inherit;
}

textarea {
    resize: vertical;
}

.full-width {
    grid-column: 1 / -1;
}

.flash {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
}

.flash-success {
    background: rgba(43, 122, 87, 0.12);
    color: var(--success);
}

.flash-error {
    background: rgba(179, 58, 58, 0.12);
    color: var(--error);
}

.video-page,
.admin-page {
    max-width: 1180px;
}

.video-frame {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.86);
    border: 1px solid rgba(201, 161, 81, 0.16);
}

.video-frame video {
    width: 100%;
    display: block;
    border-radius: 18px;
}

.admin-login {
    max-width: 480px;
    margin: 10vh auto 0;
}

.admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 22px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
}

.status-yes {
    background: rgba(43, 122, 87, 0.12);
    color: var(--success);
}

.status-no {
    background: rgba(179, 58, 58, 0.12);
    color: var(--error);
}

.status-maybe {
    background: rgba(201, 161, 81, 0.18);
    color: var(--accent-dark);
}

@media (max-width: 860px) {
    .hero,
    .rsvp-form,
    .login-form,
    .admin-stats,
    .stats-panel .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .card-cover,
    .card-tall,
    .card-wide,
    .card-photo,
    .card-video {
        grid-column: auto;
    }

    .page {
        width: min(100% - 20px, 1180px);
        padding-top: 20px;
    }

    .hero,
    .panel {
        padding: 22px;
        border-radius: 22px;
    }
}
