:root {
    --cream: #fbf5ec;
    --paper: #fffaf3;
    --sand: #e8d7c0;
    --rose: #d9a2a5;
    --rose-deep: #9c5d62;
    --sage: #9daf91;
    --sage-deep: #536752;
    --gold: #bf9854;
    --ink: #2f2923;
    --muted: #756b61;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(85, 65, 45, 0.16);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 20;
    display: flex;
    width: min(1120px, calc(100% - 24px));
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.84);
    box-shadow: 0 16px 45px rgba(61, 45, 35, 0.12);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-right: 8px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.brand-title {
    color: var(--gold);
    font-size: clamp(0.94rem, 1.7vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--gold);
    box-shadow: 0 8px 22px rgba(85, 65, 45, 0.16);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.45rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--ink);
    background: rgba(157, 175, 145, 0.18);
}

.hero {
    position: relative;
    min-height: 94svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 132px 20px 72px;
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(44, 35, 29, 0.58), rgba(44, 35, 29, 0.24) 48%, rgba(44, 35, 29, 0.1)),
        linear-gradient(0deg, rgba(251, 245, 236, 0.7), rgba(251, 245, 236, 0.02) 42%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    margin: 0 auto;
    color: var(--white);
    text-align: center;
    text-shadow: 0 2px 24px rgba(35, 25, 20, 0.28);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f6ddaa;
}

h1,
h2 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    line-height: 0.98;
}

h1 {
    font-size: clamp(4rem, 13vw, 8.5rem);
}

h2 {
    font-size: clamp(2.6rem, 8vw, 5.4rem);
}

.hero-text {
    width: min(640px, 100%);
    margin: 24px auto 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-deep), #b77c75 55%, var(--gold));
    box-shadow: 0 16px 34px rgba(128, 83, 72, 0.27);
}

.button.secondary {
    color: var(--ink);
    background: rgba(255, 250, 243, 0.86);
}

.intro-band {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(1080px, calc(100% - 32px));
    margin: -42px auto 0;
    overflow: hidden;
    border: 1px solid rgba(191, 152, 84, 0.22);
    border-radius: var(--radius);
    background: rgba(191, 152, 84, 0.24);
    box-shadow: var(--shadow);
}

.intro-item {
    padding: 24px;
    background: rgba(255, 250, 243, 0.94);
}

.intro-item span,
.label,
dt {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.intro-item strong {
    display: block;
    margin-top: 7px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1;
}

.section,
.countdown-section,
.cloud-section,
.rsvp-section {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0;
}

.section-heading {
    width: min(720px, 100%);
    margin-bottom: 34px;
}

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

.date-card,
.rsvp-form,
.admin-panel {
    border: 1px solid rgba(191, 152, 84, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 250, 243, 0.9);
    box-shadow: var(--shadow);
}

.date-card {
    min-height: 220px;
    padding: 28px;
}

.date-card strong {
    display: block;
    margin-top: 20px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 0.98;
}

.date-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.countdown-section {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 28px;
    align-items: center;
    border-top: 1px solid rgba(83, 103, 82, 0.18);
    border-bottom: 1px solid rgba(83, 103, 82, 0.18);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.countdown div {
    display: grid;
    min-height: 138px;
    place-items: center;
    padding: 18px 10px;
    border-radius: 24px;
    color: var(--white);
    background: linear-gradient(160deg, var(--sage-deep), var(--sage));
    box-shadow: 0 18px 40px rgba(83, 103, 82, 0.2);
}

.countdown strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    line-height: 0.9;
}

.countdown span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.story {
    display: grid;
    grid-template-columns: 0.88fr 1fr;
    gap: 28px;
    align-items: center;
}

.story-media {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.story-media img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
}

.story-copy {
    padding: 20px 0 20px 18px;
}

.story-copy p {
    color: var(--muted);
    font-size: 1.08rem;
}

.ceremony-note {
    margin: 26px 0;
    padding: 22px;
    border: 1px solid rgba(191, 152, 84, 0.24);
    border-radius: 24px;
    background: rgba(255, 250, 243, 0.78);
    box-shadow: 0 18px 42px rgba(85, 65, 45, 0.1);
}

.ceremony-note span {
    display: block;
    color: var(--rose-deep);
    font-weight: 800;
}

.ceremony-note p {
    margin: 10px 0 0;
}

.story-media.secondary {
    grid-column: 1 / -1;
}

.story-media.secondary img {
    max-height: 420px;
}

.info-list {
    display: grid;
    gap: 16px;
    margin: 28px 0;
}

.info-list div {
    padding-left: 18px;
    border-left: 3px solid var(--gold);
}

.info-list dd {
    margin: 6px 0 0;
    font-weight: 700;
}

.text-link {
    color: var(--rose-deep);
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.cloud-section {
    padding-top: 18px;
}

.cloud-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid rgba(157, 175, 145, 0.28);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(246, 238, 226, 0.9)),
        var(--paper);
    box-shadow: var(--shadow);
}

.cloud-symbol {
    position: relative;
    width: 116px;
    height: 78px;
}

.cloud-symbol::before,
.cloud-symbol::after,
.cloud-symbol span {
    position: absolute;
    display: block;
    content: "";
    background: linear-gradient(135deg, var(--sage), #eef1e8);
    box-shadow: 0 18px 34px rgba(83, 103, 82, 0.18);
}

.cloud-symbol::before {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 46px;
    border-radius: 999px;
}

.cloud-symbol::after {
    left: 24px;
    bottom: 22px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.cloud-symbol span {
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.cloud-copy p {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.cloud-copy h2 {
    font-size: clamp(2.35rem, 6vw, 4.8rem);
}

.rsvp-section {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 36px;
    align-items: start;
}

.rsvp-copy {
    position: sticky;
    top: 120px;
}

.rsvp-copy p {
    color: var(--muted);
}

.rsvp-form {
    display: grid;
    gap: 18px;
    padding: clamp(22px, 5vw, 42px);
}

.rsvp-form label,
.rsvp-form fieldset {
    display: grid;
    gap: 9px;
    margin: 0;
}

.rsvp-form span,
.rsvp-form legend {
    color: var(--ink);
    font-weight: 800;
}

.field-hint {
    color: var(--muted);
    font-size: 0.88rem;
}

.rsvp-form fieldset {
    padding: 0;
    border: 0;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(117, 107, 97, 0.22);
    border-radius: 18px;
    padding: 15px 16px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 4px rgba(157, 175, 145, 0.22);
}

.radio-option {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(117, 107, 97, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
}

.radio-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--rose-deep);
}

.submit-button {
    width: 100%;
    margin-top: 6px;
}

.form-status {
    display: none;
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 800;
}

.form-status.success,
.form-status.error {
    display: block;
}

.form-status.success {
    color: #334b33;
    background: rgba(157, 175, 145, 0.22);
}

.form-status.error {
    color: #863c41;
    background: rgba(217, 162, 165, 0.24);
}

.site-footer {
    padding: 34px 20px 46px;
    color: var(--muted);
    text-align: center;
}

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

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

@media (max-width: 860px) {
    .site-header {
        align-items: flex-start;
        border-radius: 24px;
    }

    .nav {
        justify-content: flex-end;
        max-width: 58vw;
    }

    .hero {
        min-height: 92svh;
        padding-bottom: 58px;
    }

    .intro-band,
    .date-grid,
    .countdown-section,
    .story,
    .cloud-card,
    .rsvp-section {
        grid-template-columns: 1fr;
    }

    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-copy,
    .rsvp-copy {
        position: static;
        padding: 0;
    }

    .cloud-card {
        justify-items: start;
    }
}

@media (max-width: 560px) {
    .site-header {
        top: 10px;
        width: calc(100% - 20px);
        min-height: auto;
        padding: 10px;
    }

    .brand-title {
        display: none;
    }

    .nav {
        max-width: calc(100vw - 86px);
    }

    .nav a {
        padding: 8px 10px;
        font-size: 0.84rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .button {
        width: 100%;
    }

    .intro-item,
    .date-card {
        padding: 22px;
    }

    .countdown div {
        min-height: 112px;
    }

    .story-media img {
        min-height: 340px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
