:root {
    --bg: #faf9f5;
    --paper: #ffffff;
    --paper-soft: #f5f1e6;
    --ink: #151515;
    --muted: #5f5b53;
    --green: #0f5132;
    --green-dark: #0a3521;
    --gold: #bd9438;
    --gold-soft: #efe2bf;
    --red: #8a1d1d;
    --line: rgba(21, 21, 21, 0.14);
    --line-strong: rgba(21, 21, 21, 0.26);
    --shadow: 0 18px 45px rgba(15, 18, 16, 0.08);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body::before {
    content: "";
    position: fixed;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(to bottom, var(--green) 0 44%, var(--gold) 44% 58%, var(--red) 58% 100%);
    pointer-events: none;
    z-index: 30;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 249, 245, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.nav {
    width: min(1120px, calc(100% - 2rem));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.3rem;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.brand::after {
    content: "";
    position: absolute;
    left: 0.3rem;
    right: 0.3rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--ink);
    background: rgba(15, 81, 50, 0.07);
}

.nav-links .nav-cta {
    color: #fff;
    background: var(--green);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
    color: #fff;
    background: var(--green-dark);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
}

.section {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 5.5rem 0;
}

.hero {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding-top: 3rem;
}

.hero-copy {
    border-left: 3px solid var(--green);
    padding-left: clamp(1.25rem, 3vw, 2rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.85rem;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::after {
    content: "";
    width: 44px;
    height: 1px;
    background: var(--gold);
}

h1,
h2,
h3 {
    line-height: 1.12;
    margin: 0;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

h1 {
    max-width: 760px;
    font-size: clamp(3.9rem, 9vw, 7.2rem);
    letter-spacing: -0.055em;
}

h1 span {
    color: var(--gold);
    letter-spacing: -0.02em;
}

h2 {
    max-width: 850px;
    font-size: clamp(2.2rem, 4.8vw, 4.25rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 1.12rem;
    font-weight: 800;
}

.hero-date {
    margin: 1rem 0 0;
    color: var(--red);
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    font-weight: 800;
}

.hero-text,
.section-intro,
.section p,
.rsvp-copy p {
    color: var(--muted);
}

.hero-text,
.section-intro {
    max-width: 640px;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 3.05rem;
    padding: 0.82rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 7px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: var(--green);
    box-shadow: 0 12px 22px rgba(15, 81, 50, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--green-dark);
}

.button-ghost {
    color: var(--ink);
    background: transparent;
    border-color: var(--line-strong);
}

.button-ghost:hover,
.button-ghost:focus-visible {
    border-color: var(--gold);
    background: rgba(189, 148, 56, 0.08);
}

.button-full {
    width: 100%;
}

.hero-photo {
    position: relative;
    margin: 0;
    padding: 0.9rem;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
}

.hero-photo::before,
.hero-photo::after {
    content: "";
    position: absolute;
    width: 4.25rem;
    height: 4.25rem;
    border-color: var(--gold);
    pointer-events: none;
}

.hero-photo::before {
    top: -0.55rem;
    left: -0.55rem;
    border-top: 2px solid;
    border-left: 2px solid;
}

.hero-photo::after {
    right: -0.55rem;
    bottom: -0.55rem;
    border-right: 2px solid;
    border-bottom: 2px solid;
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--paper-soft);
}

.notice {
    width: min(1120px, calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-left-width: 4px;
    background: var(--paper);
    box-shadow: 0 10px 30px rgba(15, 18, 16, 0.05);
}

.notice-success {
    border-left-color: var(--green);
}

.notice-error {
    border-left-color: var(--red);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
}

.card,
.person-card,
.info-card,
.rsvp-form,
.results-login,
.results-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(15, 18, 16, 0.055);
}

.location-card {
    padding: 2rem;
    border-top: 4px solid var(--green);
}

.card-label {
    display: inline-flex;
    margin-bottom: 1.2rem;
    padding: 0.32rem 0.65rem;
    color: var(--green-dark);
    background: var(--gold-soft);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.text-link {
    color: var(--green);
    font-weight: 800;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.22em;
}

.couple-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.person-card {
    padding: 0.85rem;
}

.person-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--paper-soft);
}

.person-card h3 {
    margin-top: 1rem;
    padding: 0 0.25rem 0.4rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 4vw, 2.45rem);
}

.person-card:nth-child(1) {
    border-top: 4px solid var(--green);
}

.person-card:nth-child(2) {
    border-top: 4px solid var(--red);
}

.gallery {
    padding-top: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(15, 18, 16, 0.055);
}

.gallery-grid img:nth-child(2) {
    margin-top: 2rem;
}

.timeline {
    display: grid;
    gap: 0.85rem;
    margin-top: 2rem;
    border-left: 2px solid var(--gold);
    padding-left: 1rem;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.15rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-1rem - 7px);
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: var(--green);
    border: 3px solid var(--bg);
    border-radius: 999px;
}

.timeline-item time {
    color: var(--red);
    font-size: 1.28rem;
    font-weight: 900;
}

.timeline-item p {
    margin: 0.45rem 0 0;
    color: var(--muted);
}

.info-section {
    padding-top: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.info-card {
    padding: 1.55rem;
    border-top: 3px solid var(--gold);
}

.info-card:nth-child(1) {
    border-top-color: var(--green);
}

.info-card:nth-child(2) {
    border-top-color: var(--gold);
}

.info-card:nth-child(3) {
    border-top-color: var(--red);
}

.info-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.rsvp-section {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
}

.rsvp-copy {
    position: sticky;
    top: 110px;
    border-left: 3px solid var(--gold);
    padding-left: 1.4rem;
}

.rsvp-form {
    padding: clamp(1.2rem, 4vw, 2rem);
    border-top: 4px solid var(--green);
}

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

.form-row {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

label {
    color: var(--ink);
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    padding: 0.92rem 1rem;
    color: var(--ink);
    background: #fff;
    font: inherit;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(15, 81, 50, 0.12);
}

textarea {
    resize: vertical;
}

.hidden-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.footer {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--line);
}

.footer a {
    color: var(--green);
    font-weight: 800;
}

.results-page {
    background: var(--bg);
}

.results-wrap {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4rem 0;
}

.results-wrap h1 {
    margin-bottom: 1.75rem;
    font-size: clamp(2.4rem, 5vw, 4.3rem);
}

.results-login {
    max-width: 440px;
    padding: 1.5rem;
    border-top: 4px solid var(--green);
}

.results-login .notice {
    width: 100%;
    margin: 0 0 1rem;
}

.results-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.results-pill {
    display: inline-flex;
    padding: 0.62rem 0.8rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    font-weight: 800;
}

.results-panel {
    overflow: hidden;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
    font-size: 0.94rem;
}

.results-table th,
.results-table td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.results-table th {
    color: #fff;
    background: var(--green-dark);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.results-table tr:last-child td {
    border-bottom: 0;
}

.results-table .note-cell {
    max-width: 340px;
    white-space: pre-wrap;
}

.results-empty {
    margin: 0;
    padding: 1.5rem;
    color: var(--muted);
}

@media (max-width: 820px) {
    body::before {
        width: 4px;
    }

    .nav {
        min-height: 64px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem;
        background: var(--paper);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero,
    .split,
    .rsvp-section {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        min-height: auto;
        padding-top: 3rem;
    }

    .hero-copy,
    .rsvp-copy {
        border-left-width: 2px;
        padding-left: 1rem;
    }

    .couple-grid,
    .info-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

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

    .gallery-grid img:nth-child(2) {
        margin-top: 0;
    }

    .timeline {
        padding-left: 0.8rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .rsvp-copy {
        position: static;
    }

    .footer {
        flex-direction: column;
    }
}
