:root {
    --paper: #f7f3ed;
    --paper-deep: #eee7dd;
    --ink: #17252a;
    --muted: #687578;
    --line: rgba(23, 37, 42, .18);
    --sage: #9eb1a1;
    --clay: #c8755c;
    --gold: #d7b76f;
    --white: #fffdf9;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", "Trebuchet MS", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

.hero {
    position: relative;
    display: flex;
    min-height: min(820px, 100vh);
    padding: 28px clamp(24px, 6vw, 96px) 42px;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--paper);
    background-image: linear-gradient(135deg, rgba(255,255,255,.52), transparent 42%), repeating-linear-gradient(90deg, transparent 0, transparent 44px, rgba(23,37,42,.025) 45px, transparent 46px);
}

.hero::before {
    position: absolute;
    top: 0;
    right: 12%;
    width: 1px;
    height: 68%;
    background: var(--line);
    content: "";
    opacity: .7;
}

.hero::after {
    position: absolute;
    right: -70px;
    bottom: -115px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(23,37,42,.14);
    border-radius: 50%;
    content: "";
}

.hero__topline,
.hero__content,
.scroll-hint,
.hero__stamp {
    position: relative;
    z-index: 1;
}

.hero__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero__mark {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.hero__mark i,
.footer__names em {
    color: var(--clay);
    font-style: italic;
}

.hero__content {
    width: min(730px, 100%);
    margin: auto 0;
    padding: 10vh 0 7vh;
    animation: rise-in .8s ease both;
}

.eyebrow {
    margin: 0 0 19px;
    color: var(--clay);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .22em;
    line-height: 1.4;
    text-transform: uppercase;
}

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

h1,
h2 {
    font-family: var(--serif);
    font-weight: 500;
}

h1 {
    max-width: 680px;
    margin-bottom: 28px;
    font-size: clamp(64px, 12vw, 148px);
    letter-spacing: -.045em;
    line-height: .86;
}

h1 em,
h2 em {
    color: var(--clay);
    font-style: italic;
}

.hero__lead {
    max-width: 350px;
    margin-bottom: 38px;
    color: var(--muted);
    font-size: 17px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 14px 20px 14px 24px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.button span {
    font-size: 19px;
    font-weight: 400;
    line-height: 0;
}

.button--dark {
    color: var(--white);
    background: var(--ink);
}

.button--dark:hover,
.button--dark:focus-visible {
    background: var(--clay);
    transform: translateY(-2px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(200,117,92,.4);
    outline-offset: 3px;
}

.hero__stamp {
    position: absolute;
    top: 42%;
    right: clamp(44px, 17vw, 260px);
    display: grid;
    width: clamp(138px, 19vw, 235px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--sage);
    transform: rotate(9deg);
}

.hero__stamp::before {
    position: absolute;
    inset: 13px;
    border: 1px solid rgba(158,177,161,.6);
    border-radius: 50%;
    content: "";
}

.hero__stamp-inner {
    font-family: var(--serif);
    font-size: clamp(25px, 3.4vw, 42px);
}

.hero__stamp b {
    color: var(--clay);
    font-weight: 500;
}

.scroll-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.scroll-hint span {
    color: var(--clay);
    font-size: 18px;
}

.video-section {
    display: grid;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(70px, 10vw, 125px) clamp(24px, 10vw, 160px);
    grid-template-columns: minmax(230px, .72fr) minmax(320px, 1.28fr);
    gap: clamp(45px, 9vw, 140px);
    align-items: center;
    color: var(--white);
    background: var(--ink);
}

.video-section .eyebrow {
    color: var(--gold);
}

.video-section h2 {
    margin-bottom: 24px;
}

.video-section__copy > p:last-child {
    max-width: 285px;
    margin-bottom: 0;
    color: rgba(255,253,249,.68);
}

.video-frame {
    overflow: hidden;
    border: 1px solid rgba(255,253,249,.28);
    background: #0b1518;
}

.video-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b1518;
    object-fit: contain;
}

.story,
.details,
.rsvp {
    padding: clamp(86px, 12vw, 160px) clamp(24px, 10vw, 160px);
}

.story {
    display: grid;
    max-width: 1400px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: clamp(50px, 12vw, 190px);
    align-items: end;
}

h2 {
    margin-bottom: 28px;
    font-size: clamp(43px, 6vw, 78px);
    letter-spacing: -.04em;
    line-height: .98;
}

.story__copy > p:last-child {
    max-width: 450px;
    color: var(--muted);
    font-size: 16px;
}

.date-note {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    padding: 35px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.date-note__number,
.detail-row__index {
    color: var(--clay);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
}

.date-note strong,
.date-note span,
.date-note small {
    display: block;
}

.date-note strong {
    margin-bottom: 10px;
    font-family: var(--serif);
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.08;
}

.date-note > div > span {
    margin-bottom: 5px;
    color: var(--muted);
}

.date-note small {
    color: var(--clay);
    font-size: 11px;
    letter-spacing: .05em;
}

.details {
    display: grid;
    max-width: 1400px;
    margin: 0 auto;
    grid-template-columns: .75fr 1.25fr;
    gap: clamp(50px, 10vw, 150px);
    background: var(--paper-deep);
}

.details__list {
    border-top: 1px solid var(--line);
}

.detail-row {
    display: grid;
    min-height: 120px;
    padding: 25px 0;
    grid-template-columns: 45px 1fr 26px;
    gap: 18px;
    align-items: start;
    border-bottom: 1px solid var(--line);
}

.detail-row h3 {
    margin-bottom: 5px;
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 500;
}

.detail-row p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.detail-row p strong {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
}

.detail-row__arrow {
    color: var(--clay);
    font-size: 22px;
    line-height: 1;
}

.rsvp {
    display: grid;
    max-width: 1400px;
    margin: 0 auto;
    grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr);
    gap: clamp(55px, 11vw, 180px);
    background: var(--sage);
}

.rsvp .eyebrow {
    color: var(--ink);
}

.rsvp__intro > p:last-child {
    max-width: 270px;
    color: rgba(23,37,42,.76);
}

.rsvp__form {
    padding: clamp(25px, 5vw, 54px);
    background: var(--white);
}

.form-message {
    margin-bottom: 26px;
    padding: 15px 18px;
    font-size: 13px;
}

.form-message--success {
    display: flex;
    gap: 11px;
    align-items: center;
    color: #315443;
    background: #e4efe5;
}

.form-message--success span {
    font-size: 17px;
}

.form-message--error {
    color: #873e30;
    background: #fae7e0;
}

.form-message--error strong {
    display: block;
    margin-bottom: 4px;
}

.form-message ul {
    margin: 0;
    padding-left: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field,
.field-group {
    display: block;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.field > span,
.field-group legend {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.field input,
.field select {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    background: transparent;
}

.field input:focus,
.field select:focus {
    border-color: var(--clay);
    outline: 0;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.choice {
    position: relative;
    display: block;
    cursor: pointer;
}

.choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.choice__box {
    display: flex;
    min-height: 82px;
    padding: 15px;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--line);
    transition: border-color .2s ease, background-color .2s ease;
}

.choice__box b {
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 600;
}

.choice__box small {
    color: var(--muted);
    font-size: 11px;
}

.choice input:checked + .choice__box {
    border-color: var(--ink);
    background: #edf2ed;
    box-shadow: inset 3px 0 0 var(--clay);
}

.field--select {
    margin-top: 26px;
}

.button--submit {
    width: 100%;
    margin-top: 2px;
    border: 0;
}

.privacy-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.footer {
    display: flex;
    padding: 35px clamp(24px, 6vw, 96px);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    background: var(--ink);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer p,
.footer span {
    margin: 0;
}

.footer__names {
    color: var(--white);
    font-family: var(--serif);
    font-size: 25px;
    letter-spacing: 0;
    text-transform: none;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 720px;
        padding: 22px 20px 30px;
    }

    .hero__topline > span:first-child,
    .hero__topline > span:last-child {
        max-width: 75px;
        font-size: 8px;
    }

    .hero__content {
        padding: 14vh 0 8vh;
    }

    h1 {
        font-size: clamp(62px, 20vw, 112px);
    }

    .hero__stamp {
        top: auto;
        right: 29px;
        bottom: 120px;
        width: 132px;
    }

    .hero__stamp::before {
        inset: 9px;
    }

    .story,
    .details,
    .rsvp {
        padding: 76px 22px;
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .video-section {
        padding: 76px 22px;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .video-frame {
        width: min(100%, 360px);
        margin: 0 auto;
        aspect-ratio: 9 / 16;
    }

    .video-frame video {
        height: 100%;
        aspect-ratio: 9 / 16;
        object-fit: cover;
    }

    h2 {
        font-size: clamp(45px, 13vw, 66px);
    }

    .date-note {
        max-width: 430px;
    }

    .details {
        gap: 35px;
    }

    .rsvp {
        padding: 76px 16px;
    }

    .rsvp__form {
        padding: 27px 19px;
    }
}

@media (max-width: 480px) {
    .form-grid,
    .choice-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.admin-page {
    min-height: 100vh;
    background: var(--paper);
}

.admin-shell {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 80px;
}

.admin-header {
    display: flex;
    margin-bottom: 38px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.admin-header h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(43px, 7vw, 78px);
    line-height: .95;
}

.admin-header p {
    max-width: 260px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-actions .button {
    min-height: 44px;
    padding: 12px 16px;
    font-size: 10px;
}

.admin-actions .button--light {
    border-color: var(--line);
    color: var(--ink);
    background: transparent;
}

.admin-actions .button--light:hover,
.admin-actions .button--light:focus-visible {
    border-color: var(--ink);
    background: var(--paper-deep);
}

.admin-stats {
    display: grid;
    margin-bottom: 42px;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.admin-stat {
    padding: 22px 20px 24px 0;
    border-right: 1px solid var(--line);
}

.admin-stat:not(:first-child) {
    padding-left: 20px;
}

.admin-stat:last-child {
    border-right: 0;
}

.admin-stat span,
.admin-table th {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.admin-stat strong {
    display: block;
    margin-top: 5px;
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
}

.admin-table-wrap {
    overflow-x: auto;
    border-top: 1px solid var(--line);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 17px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.admin-table th:first-child,
.admin-table td:first-child {
    padding-left: 0;
}

.admin-table th {
    padding-top: 14px;
    padding-bottom: 14px;
}

.admin-table td {
    font-size: 14px;
}

.admin-table td:first-child {
    font-family: var(--serif);
    font-size: 19px;
}

.admin-status {
    display: inline-block;
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-status--yes {
    color: #315443;
    background: #e4efe5;
}

.admin-status--no {
    color: #873e30;
    background: #fae7e0;
}

.admin-empty {
    padding: 30px 0;
    color: var(--muted);
}

@media (max-width: 650px) {
    .admin-shell {
        width: min(100% - 30px, 1100px);
        padding-top: 32px;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-stat,
    .admin-stat:not(:first-child) {
        padding: 17px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-stat:last-child {
        border-bottom: 0;
    }
}