:root {
    --ink: #27231d;
    --muted: #756e64;
    --paper: #fbf8f1;
    --linen: #efe7dc;
    --white: #fffdf8;
    --olive: #65745a;
    --sage: #aab39a;
    --clay: #b78266;
    --line: rgba(39, 35, 29, 0.14);
    --shadow: 0 18px 48px rgba(39, 35, 29, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    text-rendering: optimizeLegibility;
}

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

.hero {
    min-height: 100svh;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 34px;
    background-image:
        linear-gradient(90deg, rgba(39, 35, 29, 0.62), rgba(39, 35, 29, 0.28) 50%, rgba(39, 35, 29, 0.04)),
        linear-gradient(180deg, rgba(39, 35, 29, 0.42), rgba(39, 35, 29, 0.08) 35%, rgba(39, 35, 29, 0.82)),
        url("public/couple-hero.png");
    background-position: 50% top;
    background-size: cover;
    color: var(--white);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.topbar {
    width: 100%;
    display: grid;
    gap: 16px;
}

.brand,
h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: 0;
}

.brand {
    width: fit-content;
    font-size: 1.18rem;
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.nav-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(39, 35, 29, 0.16);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.48);
    color: rgba(39, 35, 29, 0.86);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.hero-content {
    width: 100%;
    margin-top: clamp(34px, 8vh, 72px);
    margin-bottom: auto;
    padding-top: 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--clay);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--clay);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 520px;
    margin-bottom: 0;
    font-size: clamp(3.45rem, 19vw, 5.2rem);
    line-height: 0.9;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2.05rem, 13vw, 2.2rem);
    line-height: 1.02;
}

h3 {
    margin-bottom: 8px;
    font-size: 1.18rem;
}

p,
li {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.hero-date {
    margin: clamp(96px, 24vh, 180px) 0 0;
    color: #fff4e7;
    font-size: 1.08rem;
    line-height: 1.45;
}

.hero-copy {
    max-width: 520px;
    margin: 18px 0 0;
    color: rgba(255, 253, 248, 0.92);
    font-size: 0.95rem;
}

.hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-align: center;
    text-transform: uppercase;
}

.button.primary {
    border-color: var(--clay);
    background: var(--clay);
    color: var(--white);
}

.button.ghost {
    color: var(--white);
}

.section {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
    padding: 64px 0;
}

.intro,
.place-section {
    display: grid;
    gap: 28px;
    align-items: start;
}

.section-heading p {
    max-width: 620px;
}

.centered {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: left;
}

.info-grid {
    display: grid;
    gap: 10px;
}

.info-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px;
}

.info-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.info-grid strong {
    display: block;
    font-size: 1.08rem;
    line-height: 1.35;
}

.info-grid small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.95rem;
}

.place-section {
    width: 100%;
    padding: 64px 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #f3eee4;
}

.place-section > * {
    width: min(100%, 1120px);
    margin-right: auto;
    margin-left: auto;
}

.place-copy p {
    margin-bottom: 0;
}

.place-photos {
    display: grid;
    gap: 14px;
    margin-top: 6px;
}

.place-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid rgba(39, 35, 29, 0.1);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.place-photo figcaption {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.place-photo figcaption strong {
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.35;
}

.place-photo figcaption span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.place-photo figcaption a {
    width: fit-content;
    margin-top: 4px;
    color: var(--clay);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.place-photo figcaption a:hover {
    color: var(--ink);
}

.timeline-section {
    padding-bottom: 56px;
}

.timeline {
    max-width: 760px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.timeline-item {
    display: grid;
    gap: 8px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.timeline-item time {
    color: var(--olive);
    font-weight: 700;
}

.timeline-item p {
    margin-bottom: 0;
}

.travel-section,
.dream-section,
.contact-section {
    border-top: 1px solid var(--line);
}

.travel-section .section-heading,
.dream-section .section-heading {
    max-width: 760px;
}

.travel-section .section-heading p + p,
.dream-section .section-heading p + p {
    margin-top: 14px;
}

.section.dream-section {
    width: 100%;
    margin: 0;
    padding-right: 18px;
    padding-left: 18px;
    background: #f7f1e8;
}

.section.dream-section .section-heading {
    width: min(100%, 1120px);
    max-width: 1120px;
    margin: 0 auto;
}

.bank-account {
    display: grid;
    gap: 8px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.bank-account span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bank-account strong {
    color: var(--ink);
    font-size: clamp(1.08rem, 4vw, 1.45rem);
    line-height: 1.35;
    word-break: break-word;
}

.contact-list {
    width: min(100%, 760px);
    display: grid;
    gap: 0;
    margin: 0 auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.contact-link {
    display: grid;
    gap: 6px;
    padding: 22px 0;
}

.contact-link + .contact-link {
    border-top: 1px solid var(--line);
}

.contact-link span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-link strong {
    color: var(--ink);
    font-size: clamp(1.3rem, 6vw, 2rem);
    line-height: 1.1;
}

.rsvp-section {
    padding: 72px 18px;
    background: var(--olive);
}

.rsvp-intro,
.rsvp-panel {
    width: min(100%, 760px);
    margin: 0 auto;
}

.rsvp-intro {
    margin-bottom: 28px;
    text-align: center;
}

.rsvp-intro .eyebrow {
    color: #f2d8c4;
}

.rsvp-intro h2 {
    color: var(--white);
}

.rsvp-intro p {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(255, 253, 248, 0.86);
}

.rsvp-panel {
    border: 1px solid rgba(255, 253, 248, 0.26);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 24px 70px rgba(39, 35, 29, 0.24);
    padding: 20px;
}

.rsvp-form {
    display: grid;
    gap: 18px;
}

.form-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.form-field label,
.form-field legend {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(39, 35, 29, 0.18);
    border-radius: 8px;
    background: #fbf8f1;
    color: var(--ink);
    font: inherit;
    padding: 13px 14px;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid rgba(183, 130, 102, 0.34);
    border-color: var(--clay);
}

.choice-grid {
    display: grid;
    gap: 10px;
}

.choice-card {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(39, 35, 29, 0.16);
    border-radius: 8px;
    background: #fbf8f1;
    padding: 14px;
    color: var(--ink);
    font-weight: 700;
}

.choice-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--clay);
}

.choice-card:has(input:checked) {
    border-color: var(--clay);
    background: #f5ece3;
}

.form-split {
    display: grid;
    gap: 18px;
}

.form-notice {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    border-radius: 8px;
    padding: 14px;
}

.form-notice strong,
.form-notice span {
    color: inherit;
}

.form-notice.success {
    background: #eef4e9;
    color: #3e5b35;
}

.form-notice.error {
    background: #f8e9e4;
    color: #7a3f32;
}

.submit-button {
    border: 0;
    cursor: pointer;
    justify-self: center;
    min-width: 180px;
}

.form-footnote {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: center;
}

.footer {
    padding: 28px 18px;
    text-align: center;
    background: #ede5d8;
}

.footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (min-width: 560px) {
    .hero {
        padding: 24px clamp(24px, 5vw, 64px) 48px;
    }

    .topbar {
        width: min(1120px, 100%);
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .nav-links {
        width: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px;
    }

    .nav-links a {
        min-width: 86px;
        padding: 0 14px;
    }

    .hero-content {
        width: min(1120px, 100%);
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .button {
        width: auto;
        min-width: 220px;
    }
}

@media (min-width: 860px) {
    .hero {
        min-height: 92vh;
        background-image:
            linear-gradient(90deg, rgba(39, 35, 29, 0.76), rgba(39, 35, 29, 0.24) 48%, rgba(39, 35, 29, 0.02)),
            url("public/couple-hero.png");
        background-position: 24% center;
        background-size: 112% auto;
        color: var(--white);
        text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
    }

    .hero .eyebrow {
        color: #f2d8c4;
    }

    .hero-date {
        margin-top: 22px;
        color: #fff4e7;
    }

    .hero-copy {
        color: rgba(255, 253, 248, 0.9);
    }

    .button.ghost {
        color: var(--white);
    }

    .nav-links a {
        border-color: rgba(255, 253, 248, 0.34);
        background: rgba(39, 35, 29, 0.18);
        color: rgba(255, 253, 248, 0.92);
    }

    .hero-content {
        margin-top: auto;
        margin-bottom: auto;
        padding-top: 10vh;
    }

    h1 {
        font-size: clamp(5.6rem, 11vw, 8.5rem);
    }

    h2 {
        font-size: clamp(3rem, 5vw, 4.4rem);
    }

    .section {
        width: min(1120px, calc(100% - 72px));
        padding: 88px 0;
    }

    .intro {
        grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
        gap: clamp(44px, 7vw, 90px);
    }

    .place-section {
        width: 100%;
        padding: 88px max(36px, calc((100% - 1120px) / 2));
    }

    .place-section > * {
        width: auto;
        margin: 0;
    }

    .place-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(28px, 5vw, 72px);
        margin-top: 0;
    }

    .centered {
        margin-bottom: 38px;
        text-align: center;
    }

    .timeline-item {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 28px;
        padding: 26px 0;
    }

    .section.dream-section {
        padding-right: 36px;
        padding-left: 36px;
    }

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

    .contact-link {
        padding: 26px 0;
    }

    .contact-link + .contact-link {
        border-top: 0;
        border-left: 1px solid var(--line);
        padding-left: 36px;
    }

    .rsvp-section {
        padding: 88px 18px;
    }

    .rsvp-panel {
        padding: 28px;
    }

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