:root {
    --page-width: 1080px;
    --bg: #ebe4d6;
    --paper: #fbf7ec;
    --paper-warm: #f4eddf;
    --paper-edge: #ddd3bf;
    --surface: #ffffff;
    --surface-soft: #f3efe4;
    --text: #20231e;
    --muted: #5f6b61;
    --border: #d8d0bf;
    --accent: #315c43;
    --accent-strong: #244734;
    --wedding-orange: #b46b3d;
    --wedding-orange-strong: #96532f;
    --wedding-green: #315c43;
    --cta: #6f5a3d;
    --cta-strong: #57452f;
    --ceremony-ink: #34312a;
    --printed-line: rgba(52, 49, 42, 0.12);
    --hero-soft: #eef4e8;
    --success-bg: #e7f4ec;
    --success-text: #24613d;
    --warning-bg: #fff5d9;
    --warning-text: #805b00;
    --danger-bg: #fde8e7;
    --danger-text: #a8322b;
    --muted-bg: #ecefed;
    --muted-text: #5d665f;
    --shadow: 0 18px 50px rgba(32, 40, 34, 0.12);
    --radius: 8px;
    --font-display: "Lavonia Classy", "ED Lavonia", Georgia, "Times New Roman", serif;
    --font-body: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-numbers: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-ui: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-control: "Segoe UI", Arial, sans-serif;
    --font-admin: "Segoe UI", Arial, sans-serif;
    --paper-texture: url("/assets/media/paper-ivory-texture.jpg");
    --paper-texture-size: 1120px 1120px;
}

@font-face {
    font-family: "Malibu";
    src: url("/assets/fonts/malibu.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Lavonia Classy";
    src: url("/assets/fonts/ed-lavonia.ttf") format("truetype"),
         url("/assets/fonts/ed-lavonia.otf") format("opentype"),
         url("/assets/fonts/lavonia-classy.woff2") format("woff2"),
         url("/assets/fonts/lavonia-classy.ttf") format("truetype"),
         url("/assets/fonts/ed-lavonia.woff2") format("woff2"),
         url("/assets/fonts/ed-lavonia.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ED Lavonia";
    src: url("/assets/fonts/ed-lavonia.ttf") format("truetype"),
         url("/assets/fonts/ed-lavonia.otf") format("opentype"),
         url("/assets/fonts/ed-lavonia.woff2") format("woff2"),
         url("/assets/fonts/lavonia-classy.woff2") format("woff2"),
         url("/assets/fonts/lavonia-classy.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("/assets/fonts/cormorant-garamond-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("/assets/fonts/cormorant-garamond-500.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("/assets/fonts/cormorant-garamond-600.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("/assets/fonts/cormorant-garamond-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 100%;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: var(--font-ui);
    letter-spacing: 0;
}

a {
    color: var(--accent);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

label {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-weight: 600;
}

label > span,
legend {
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    padding: 12px 13px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(32, 35, 30, 0.62);
    font-family: var(--font-numbers);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(47, 101, 79, 0.28);
    outline-offset: 2px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 10px 16px;
    font-family: var(--font-ui);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    max-width: 100%;
    white-space: normal;
}

.public-body .button,
.wedding-invite-page .button {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
}

.button-primary {
    background: var(--cta);
    color: #fff;
}

.button-primary:hover {
    background: var(--cta-strong);
}

.button-secondary {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--accent);
}

.button-wide {
    width: 100%;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 800;
    padding: 0;
    text-decoration: none;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

.notice {
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 18px 0;
    border: 1px solid var(--border);
    font-weight: 700;
}

.notice p {
    margin: 0 0 6px;
}

.notice p:last-child {
    margin-bottom: 0;
}

.notice-success,
.notice-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: rgba(36, 97, 61, 0.2);
}

.notice-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: rgba(168, 50, 43, 0.2);
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.status-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.status-muted {
    background: var(--muted-bg);
    color: var(--muted-text);
}

.public-body {
    background:
        linear-gradient(90deg, rgba(76, 87, 64, 0.06), transparent 18%, transparent 82%, rgba(76, 87, 64, 0.05)),
        var(--bg);
    font-family: var(--font-body);
    font-size: 1.12rem;
}

.admin-body,
.admin-auth-body {
    color: var(--text);
    font-family: var(--font-admin);
    font-size: 1rem;
}

.public-page {
    min-height: 100vh;
    overflow-x: clip;
    background: transparent;
}

.wedding-invite-page {
    position: relative;
    isolation: isolate;
    --accent: var(--wedding-orange);
    --accent-strong: var(--wedding-orange-strong);
    --cta: #a86138;
    --cta-strong: #874927;
    --hero-meta-size: clamp(1.72rem, 3vw, 2.35rem);
    --hero-meta-weight: 600;
    --ceremony-name-size: clamp(1.5rem, 5.75vw, 3.95rem);
    --ceremony-feature-name-size: clamp(1.88rem, 7.2vw, 4.9rem);
    --event-meta-size: clamp(1.56rem, 2.52vw, 1.88rem);
    --event-meta-weight: 700;
    width: min(1160px, calc(100% - 48px));
    margin: 28px auto;
    overflow: hidden;
    border: 1px solid rgba(135, 117, 83, 0.26);
    border-radius: 2px;
    background-color: var(--paper);
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 14%, transparent 86%, rgba(139, 119, 82, 0.06)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 260px),
        var(--paper-texture);
    background-size: 100% 100%, 100% 100%, var(--paper-texture-size);
    background-repeat: no-repeat, no-repeat, repeat;
    box-shadow:
        0 30px 74px rgba(48, 44, 34, 0.22),
        0 8px 20px rgba(48, 44, 34, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.82) inset,
        0 -1px 0 rgba(118, 99, 67, 0.1) inset,
        1px 0 0 rgba(255, 255, 255, 0.62) inset,
        -1px 0 0 rgba(118, 99, 67, 0.08) inset;
    font-family: var(--font-body);
}

.wedding-invite-page,
.wedding-invite-page button,
.wedding-invite-page input,
.wedding-invite-page textarea {
    font-family: var(--font-numbers);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.wedding-invite-page select,
.wedding-invite-page option {
    font-family: var(--font-control);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.wedding-invite-page input::placeholder,
.wedding-invite-page textarea::placeholder {
    font-family: var(--font-numbers);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.wedding-invite-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.42) inset,
        0 0 28px rgba(98, 80, 52, 0.055) inset;
}

.wedding-invite-page > * {
    position: relative;
    z-index: 1;
}

.wedding-hero {
    position: relative;
    min-height: min(92vh, 840px);
    overflow: hidden;
    color: var(--text);
    background: transparent;
}

.wedding-hero::after {
    display: none;
}

.hero-media {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: max(40px, calc((100% - var(--page-width)) / 2));
    width: min(40%, 450px);
    height: min(86vh, 760px);
    transform: translateY(-50%);
    object-fit: contain;
    object-position: center;
    border: 1px solid rgba(135, 117, 83, 0.28);
    background: rgba(255, 255, 255, 0.26);
    box-shadow: 0 18px 46px rgba(73, 66, 48, 0.18);
}

.hero-overlay {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    min-height: min(92vh, 840px);
    width: min(560px, calc(100% - 32px));
    padding: clamp(72px, 12vh, 140px) 0 clamp(54px, 9vh, 92px);
    margin-left: max(40px, calc((100% - var(--page-width)) / 2));
}

.hero-overlay h1 {
    margin: 0;
    color: var(--wedding-orange);
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.1rem);
    line-height: 0.92;
    font-weight: 500;
    text-wrap: balance;
}

.hero-overlay h1,
.ceremony-intro h2,
.name-pair-grid strong,
.monogram {
    font-family: var(--font-display);
    font-weight: 500;
}

.hero-monogram {
    width: clamp(92px, 11vw, 138px);
    height: auto;
    margin: 0 0 8px;
    filter: drop-shadow(0 2px 2px rgba(255, 255, 255, 0.22)) drop-shadow(0 8px 16px rgba(52, 36, 21, 0.16));
}

.hero-overlay > p {
    max-width: 560px;
    font-size: 1.16rem;
    line-height: 1.65;
}

.hero-overlay > p {
    font-size: clamp(1.18rem, 1.8vw, 1.42rem);
    color: var(--text);
    font-weight: var(--hero-meta-weight);
    line-height: 1.45;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 18px;
    margin-top: 14px;
}

.hero-meta p {
    max-width: none;
}

.hero-subtitle {
    margin: 0;
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--hero-meta-size);
    font-weight: var(--hero-meta-weight);
    line-height: 1.1;
}

.hero-date {
    margin: 0;
    color: var(--text);
    font-family: var(--font-numbers);
    font-size: var(--hero-meta-size);
    font-weight: var(--hero-meta-weight);
    font-variant-numeric: lining-nums;
    text-shadow: none;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(520px, 100%);
    margin-top: 28px;
    padding: 14px 0;
    border-top: 1px solid var(--printed-line);
    border-bottom: 1px solid var(--printed-line);
}

.countdown > div {
    position: relative;
    min-width: 0;
    padding: 0 12px;
    text-align: center;
}

.countdown > div + div::before {
    content: "";
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 0;
    width: 1px;
    background: rgba(52, 49, 42, 0.12);
}

.countdown strong,
.countdown span {
    display: block;
}

.countdown strong {
    font-family: var(--font-numbers);
    color: var(--wedding-orange);
    font-size: clamp(1.92rem, 3.7vw, 2.68rem);
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
    text-shadow: none;
}

.countdown span {
    margin-top: 6px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: var(--hero-meta-weight);
    text-transform: uppercase;
}

.hero-actions,
.actions,
.status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.public-section {
    width: min(var(--page-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 40px;
}

.public-section h2,
.rsvp-panel h1 {
    margin: 0 0 14px;
    font-family: var(--font-body);
    font-size: clamp(2.1rem, 3.6vw, 3.2rem);
    font-weight: 600;
    line-height: 1.08;
}

.wedding-invite-page .public-section {
    background: transparent;
}

.wedding-invite-page {
    font-family: var(--font-body);
}

.public-section p {
    line-height: 1.7;
}

.ceremony-intro {
    padding-bottom: 32px;
    text-align: center;
}

.ceremony-intro + .public-section {
    padding-top: 34px;
}

.ceremony-intro h2 {
    margin-bottom: 18px;
    color: var(--wedding-orange);
    font-family: var(--font-display);
    font-size: var(--ceremony-feature-name-size);
    font-weight: 500;
    line-height: 1;
}

.ceremony-monogram {
    width: clamp(124px, 18vw, 190px);
    height: auto;
    margin: 0 auto 10px;
    filter: drop-shadow(0 4px 12px rgba(52, 36, 21, 0.14));
}

.monogram {
    display: inline-grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin-bottom: 22px;
    border: 1px solid rgba(49, 92, 67, 0.42);
    border-radius: 999px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.18rem;
}

.couple-kicker,
.ceremony-copy {
    margin: 20px auto 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(1.18rem, 2vw, 1.48rem);
    font-weight: 700;
    font-style: normal;
    line-height: 1.25;
}

.couple-kicker {
    margin-top: 0;
}

.ceremony-invite {
    max-width: 760px;
    margin: 46px auto 0;
    font-size: clamp(1.42rem, 2.45vw, 1.82rem);
    font-weight: 500;
    line-height: 1.5;
    text-wrap: balance;
}

.public-section .section-title {
    margin: 0 0 50px;
    color: var(--wedding-orange);
    font-family: var(--font-display);
    font-size: clamp(2.85rem, 6.4vw, 5rem);
    font-weight: 500;
    line-height: 0.95;
    text-align: center;
}

.name-pair-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: min(900px, 100%);
    margin: 0 auto;
}

.name-pair-grid strong {
    display: block;
    color: var(--wedding-orange);
    font-family: var(--font-display);
    font-size: var(--ceremony-name-size);
    font-weight: 500;
    line-height: 0.98;
    text-align: center;
    text-wrap: balance;
}

.parent-ceremony-name span {
    display: block;
    font-family: inherit;
    font-weight: inherit;
}

.name-pair-grid .parent-ceremony-name {
    font-size: var(--ceremony-feature-name-size);
    font-weight: 500;
}

.parent-ceremony-name .parent-given-line,
.parent-ceremony-name .parent-family-line {
    white-space: nowrap;
}

.name-pair-grid-single {
    grid-template-columns: 1fr;
    width: min(760px, 100%);
}

.name-pair-grid-single strong {
    width: 100%;
    font-size: var(--ceremony-feature-name-size);
    white-space: nowrap;
}

.event-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 46px);
}

.event-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: clamp(20px, 4vw, 34px) 0;
}

.event-card {
    display: grid;
    gap: 14px;
}

.event-card h3 {
    margin: 0;
    color: var(--wedding-orange);
    font-family: var(--font-display);
    font-size: clamp(2.05rem, 3.9vw, 3.25rem);
    font-weight: 500;
    line-height: 0.98;
}

.event-card strong {
    font-size: 1.12rem;
}

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

.event-card time {
    color: var(--text);
    font-family: var(--font-numbers);
    font-size: var(--event-meta-size);
    font-weight: var(--event-meta-weight);
    line-height: 1.08;
    font-variant-numeric: lining-nums tabular-nums;
    text-shadow: none;
}

.event-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 8px 12px;
}

.event-meta strong {
    min-width: 0;
    font-size: var(--event-meta-size);
    font-weight: var(--event-meta-weight);
    line-height: 1.08;
}

.event-meta time::after {
    content: none;
}

.event-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-top: 2px;
}

.event-card .button-secondary {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(111, 90, 61, 0.34);
    border-radius: 6px;
    background: rgba(251, 247, 236, 0.46);
    padding: 9px 10px;
    color: var(--ceremony-ink);
    font-size: clamp(1rem, 1.55vw, 1.14rem);
    font-style: normal;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

.event-card .button-secondary:hover {
    border-color: rgba(111, 90, 61, 0.58);
    background: rgba(244, 237, 223, 0.78);
    color: var(--ceremony-ink);
}

.map-frame {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.location-art-frame {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin: 14px 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.location-art-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.event-icon {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rsvp-callout {
    align-items: center;
}

.accommodation-section {
    display: grid;
    gap: clamp(22px, 4vw, 34px);
    padding-top: 18px;
}

.accommodation-section .section-title {
    margin-bottom: 0;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    text-align: center;
}

.accommodation-text {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.embedded-rsvp-section {
    padding-top: 18px;
}

.embedded-rsvp-section .rsvp-section-title {
    margin-bottom: 26px;
}

.embedded-rsvp-section .rsvp-panel {
    width: 100%;
    margin: 0 auto;
}

.accommodation-section h2 {
    max-width: 720px;
}

.accommodation-text p {
    max-width: 720px;
    margin: 0;
    color: var(--text);
    font-size: clamp(1.36rem, 2.35vw, 1.76rem);
    font-weight: 500;
    line-height: 1.48;
    text-wrap: balance;
}

.accommodation-request-control {
    margin: 4px 0 2px;
}

.accommodation-location-card {
    width: min(560px, 100%);
    margin: 0 auto;
}

.accommodation-location-card p {
    text-align: center;
}

.location-art-placeholder {
    min-height: 220px;
    border: 1px solid rgba(111, 90, 61, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(244, 237, 223, 0.2)),
        rgba(251, 247, 236, 0.3);
}

.event-facts {
    display: grid;
    gap: 14px;
    align-content: start;
}

.event-facts > div {
    border-left: 3px solid rgba(49, 92, 67, 0.38);
    padding-left: 14px;
}

.event-facts span,
.event-facts small {
    display: block;
    color: var(--muted);
}

.event-facts strong {
    display: block;
    margin: 4px 0;
    font-size: 1.1rem;
}

.timeline {
    display: grid;
    gap: 16px;
}

.timeline article {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.timeline time {
    color: var(--accent);
    font-weight: 600;
}

.timeline h3 {
    margin: 0 0 4px;
}

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

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.media-grid img,
.media-grid video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.simple-center {
    width: min(720px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    align-content: center;
    gap: 16px;
    text-align: center;
}

.simple-center h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 5rem);
    font-weight: 500;
}

.narrow-page {
    padding: 28px 16px;
    background: var(--bg);
}

.rsvp-panel {
    width: min(820px, 100%);
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: clamp(22px, 5vw, 44px) 0;
}

.embedded-rsvp-section .rsvp-form,
.embedded-rsvp-section .rsvp-contact-note,
.embedded-rsvp-section .rsvp-summary > * {
    width: min(820px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    font-weight: 800;
    text-decoration: none;
}

.rsvp-form,
.stack-form {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.rsvp-contact-note {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-top: 28px;
    color: var(--ceremony-ink);
    text-align: center;
}

.rsvp-contact-note p {
    max-width: 720px;
    margin: 0;
    font-size: clamp(1.34rem, 2.45vw, 1.68rem);
    font-weight: 600;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
    line-height: 1.45;
    text-wrap: balance;
}

.rsvp-contact-note a {
    color: var(--wedding-orange);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.rsvp-contact-note > span {
    color: var(--wedding-orange);
    font-family: var(--font-body);
    font-size: clamp(4.2rem, 10vw, 6.4rem);
    line-height: 1;
}

.rsvp-contact-note-bottom {
    margin-top: clamp(34px, 6vw, 54px);
}

.rsvp-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    width: min(640px, 100%);
    margin: 18px auto 0;
}

.rsvp-contact-person {
    display: grid;
    min-width: 0;
    gap: 5px;
    color: var(--text);
    text-align: center;
    text-decoration: none;
}

.rsvp-contact-note .rsvp-contact-person strong {
    color: var(--wedding-orange);
    font-family: var(--font-body);
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    font-weight: 700;
    line-height: 1.05;
}

.rsvp-contact-note .rsvp-contact-person span {
    color: var(--text);
    font-family: var(--font-numbers);
    font-size: clamp(1.08rem, 2vw, 1.32rem);
    font-weight: 700;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
    line-height: 1.15;
    white-space: nowrap;
}

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

.segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.segmented legend {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    font-weight: 800;
}

.segmented label {
    display: block;
    font-weight: 800;
}

.segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    padding: 8px 10px;
    text-align: center;
}

.segmented input:checked + span {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.guest-section {
    display: grid;
    min-width: 0;
    gap: 14px;
    font-size: clamp(1.18rem, 2vw, 1.34rem);
}

.rsvp-form label > span,
.rsvp-form legend {
    font-size: clamp(1.04rem, 1.75vw, 1.18rem);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    min-height: 56px;
    padding: 15px 16px;
    font-size: clamp(1.12rem, 1.9vw, 1.28rem);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.rsvp-form label {
    position: relative;
}

.rsvp-form .field-error {
    display: none;
    margin-top: 6px;
    color: var(--danger-text);
    font-family: var(--font-control);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.rsvp-form.is-validating .has-error > span {
    color: var(--danger-text);
}

.rsvp-form.is-validating .has-error input,
.rsvp-form.is-validating .has-error select,
.rsvp-form.is-validating .has-error textarea {
    border-color: var(--danger-text);
    background: rgba(253, 232, 231, 0.38);
    box-shadow: 0 0 0 3px rgba(168, 50, 43, 0.12);
}

.rsvp-form.is-validating .has-error .field-error {
    display: block;
}

.rsvp-form textarea {
    min-height: 136px;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.section-head h2,
.admin-panel h2 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.admin-body .section-head p,
.admin-body .empty-state,
.admin-body label > span {
    color: var(--text);
}

.admin-body input,
.admin-body select,
.admin-body textarea,
.admin-body button,
.admin-body a,
.admin-body .button,
.admin-body .text-button,
.admin-auth-body input,
.admin-auth-body button,
.admin-auth-body .button {
    font-family: var(--font-admin);
}

.admin-body .eyebrow,
.admin-auth-body .eyebrow {
    color: var(--text);
    font-family: var(--font-admin);
}

.guest-list {
    display: grid;
    gap: 14px;
}

.rsvp-message-field {
    margin-top: 4px;
}

.guest-row {
    display: grid;
    min-width: 0;
    gap: 14px;
    border: 0;
    border-radius: 0;
    padding: 10px 0 0;
    background: transparent;
}

.guest-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.guest-section.is-disabled {
    opacity: 0.52;
}

.guest-section.is-disabled input,
.guest-section.is-disabled select,
.guest-section.is-disabled button {
    pointer-events: none;
}

.admin-body {
    background: var(--bg);
    --muted: #20231e;
    --muted-text: #20231e;
}

.admin-shell {
    display: block;
    min-height: 100vh;
    padding-left: 276px;
    background: var(--bg);
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    min-width: 0;
    width: 276px;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 26px 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)),
        #1e2520;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 18px 0 40px rgba(31, 37, 32, 0.08);
    overflow: hidden;
    z-index: 30;
}

.admin-brand {
    display: grid;
    gap: 4px;
    padding: 0 4px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0;
}

.admin-brand span {
    font-size: 1.35rem;
    line-height: 1;
}

.admin-brand small {
    color: #bed0c6;
    font-size: 0.92rem;
    font-weight: 600;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-menu-toggle {
    display: none;
}

.admin-nav a,
.admin-logout {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    border: 0;
    background: transparent;
    color: #fff;
    padding: 12px 13px;
    text-decoration: none;
    text-align: left;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-nav a:hover,
.admin-logout:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-logout-form {
    margin-top: auto;
}

.admin-reset-button {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.admin-reset-button:hover {
    background: rgba(255, 255, 255, 0.14);
}

.admin-main {
    width: min(1180px, 100%);
    min-width: 0;
    margin: 0 auto;
    padding: 32px;
}

.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-page-head h1 {
    margin: 0;
    font-size: 1.8rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card,
.admin-panel,
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(32, 40, 34, 0.06);
}

.stat-card {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.stat-card span {
    color: var(--text);
    font-weight: 800;
}

.stat-card strong {
    font-size: 2rem;
}

.link-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.link-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.link-card strong {
    font-size: 1.05rem;
}

.link-card small {
    color: var(--text);
    font-weight: 700;
}

.admin-panel {
    padding: 18px;
    margin-bottom: 18px;
}

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

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--border);
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.data-table small {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-top: 3px;
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
}

.checkbox-line input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.guest-summary-list {
    display: grid;
    gap: 3px;
    margin-top: 6px;
}

.rsvp-summary {
    display: grid;
    gap: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.summary-grid div,
.summary-guest-list div,
.summary-message {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
    padding: 12px;
}

.summary-grid span,
.summary-message span {
    display: block;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.summary-guest-list {
    display: grid;
    gap: 10px;
}

.summary-guest-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.summary-guest-list span {
    color: var(--text);
    font-weight: 800;
}

.summary-message p {
    margin: 0;
}

.number-cell {
    text-align: right;
    white-space: nowrap;
}

code {
    background: var(--surface-soft);
    border-radius: 6px;
    padding: 3px 6px;
}

.copy-field {
    min-width: 220px;
    padding: 8px 9px;
    font-size: 0.86rem;
    color: var(--text);
}

.copy-field.wide {
    min-width: 0;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

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

.detail-list {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 14px 0 0;
}

.detail-list dt {
    color: var(--text);
    font-weight: 800;
}

.detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.empty-state {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.admin-auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--bg);
    padding: 16px;
}

.auth-shell {
    width: min(420px, 100%);
}

.auth-card {
    padding: 28px;
}

.auth-card h1 {
    margin: 0 0 8px;
}

.preview-body {
    background: var(--bg);
}

.preview-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.preview-topbar a {
    border-radius: 999px;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 900;
    padding: 8px 12px;
    text-decoration: none;
}

.preview-topbar a:hover {
    background: var(--surface-soft);
}

.preview-offset {
    padding-top: 48px;
}

.preview-offset .wedding-hero,
.preview-offset .hero-overlay {
    min-height: calc(min(92vh, 840px) - 48px);
}

@media (max-width: 860px) {
    .split-section,
    .event-card-grid,
    .form-grid,
    .detail-grid,
    .link-card-grid,
    .summary-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .admin-shell {
        display: block;
        min-height: 100vh;
        padding-top: 64px;
        padding-left: 0;
        background: var(--bg);
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px 14px;
        padding: 10px 14px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 12px 28px rgba(31, 37, 32, 0.12);
        overflow: visible;
    }

    .admin-nav {
        display: none;
        grid-template-columns: 1fr;
        grid-column: 1 / -1;
        gap: 8px;
        padding-top: 8px;
    }

    .admin-brand {
        padding: 0;
        border-bottom: 0;
    }

    .admin-brand span {
        font-size: 1.04rem;
    }

    .admin-brand small {
        font-size: 0.78rem;
    }

    .admin-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        padding: 8px 13px;
        font-family: var(--font-admin);
        font-size: 0.92rem;
        font-weight: 800;
    }

    .admin-sidebar.is-open .admin-nav {
        display: grid;
    }

    .admin-sidebar.is-open .admin-logout-form {
        display: block;
    }

    .admin-logout-form {
        display: none;
        grid-column: 1 / -1;
        margin-top: 0;
    }

    .admin-logout {
        text-align: center;
    }

    .admin-reset-button {
        grid-column: 1 / -1;
        margin-top: 0;
    }

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

@media (max-width: 640px) {
    .public-body {
        background-color: var(--paper);
        background-image: var(--paper-texture);
        background-size: 920px 920px;
        background-repeat: repeat;
    }

    .wedding-invite-page {
        width: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
        background-color: var(--paper);
        background-image: var(--paper-texture);
        background-size: 920px 920px;
        background-repeat: repeat;
        box-shadow: none;
    }

    .wedding-invite-page::before {
        display: none;
    }

    .public-section {
        width: min(100% - 36px, var(--page-width));
        padding: 42px 0;
    }

    .embedded-rsvp-section {
        padding-top: 10px;
    }

    .rsvp-panel {
        padding: 22px 0;
        box-shadow: none;
    }

    .wedding-hero {
        min-height: 100vh;
        height: 100vh;
        min-height: 100svh;
        height: 100svh;
        padding: 0;
        overflow: hidden;
        color: var(--text);
        background: transparent;
    }

    .wedding-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        display: block;
        background:
            linear-gradient(180deg, rgba(251, 247, 236, 0) 18%, rgba(251, 247, 236, 0.05) 42%, rgba(251, 247, 236, 0.32) 72%, rgba(251, 247, 236, 0.66) 100%);
        pointer-events: none;
    }

    .hero-media {
        position: absolute;
        z-index: 0;
        inset: 0;
        top: auto;
        right: auto;
        display: block;
        width: 100%;
        height: 100%;
        max-height: none;
        transform: none;
        transform-origin: center;
        margin: 0;
        border: 0;
        box-shadow: none;
        object-fit: cover;
        object-position: center center;
    }

    .hero-overlay {
        position: absolute;
        z-index: 2;
        right: 18px;
        bottom: clamp(18px, 4svh, 34px);
        left: 18px;
        width: auto;
        margin: 0;
        min-height: 0;
        align-content: start;
        padding: 10px 12px 12px;
        border-radius: 4px;
        background: rgba(251, 247, 236, 0.18);
    }

    .hero-overlay h1 {
        font-size: clamp(3rem, 14vw, 4.2rem);
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
    }

    .hero-monogram {
        width: clamp(70px, 20vw, 92px);
        margin-bottom: 2px;
    }

    .hero-overlay > p {
        font-size: 1rem;
    }

    .hero-overlay > p {
        max-width: 22rem;
        margin-top: 12px;
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.35;
    }

    .hero-meta {
        gap: 6px 14px;
        margin-top: 12px;
    }

    .hero-subtitle,
    .hero-date {
        color: var(--text);
        font-size: clamp(1.72rem, 7vw, 2.05rem);
        font-weight: var(--hero-meta-weight);
        line-height: 1;
    }

    .hero-date {
        font-size: clamp(1.72rem, 7vw, 2.05rem);
        font-weight: var(--hero-meta-weight);
    }

    .countdown {
        margin-top: 18px;
        padding: 11px 0;
        background: transparent;
        border-color: rgba(52, 49, 42, 0.1);
    }

    .segmented,
    .stat-grid,
    .admin-nav {
        grid-template-columns: 1fr;
    }

    .name-pair-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
    }

    .name-pair-grid strong {
        width: 100%;
        margin: 0 auto;
        font-size: var(--ceremony-name-size);
        line-height: 1.02;
        overflow-wrap: normal;
        text-align: center;
    }

    .parent-ceremony-name span {
        display: block;
    }

    .name-pair-grid-single {
        grid-template-columns: 1fr;
    }

    .name-pair-grid-single strong {
        width: 100%;
        font-size: var(--ceremony-feature-name-size);
        white-space: nowrap;
    }

    .event-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .event-card .button-secondary {
        width: 100%;
        min-height: 48px;
        padding: 8px 7px;
        font-size: clamp(0.95rem, 4.05vw, 1.05rem);
    }

    .section-head,
    .summary-guest-list div,
    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .admin-main {
        padding: 18px 14px;
    }

    .admin-body .table-wrap {
        overflow: visible;
    }

    .admin-body .data-table {
        min-width: 0;
    }

    .admin-body .data-table thead {
        display: none;
    }

    .admin-body .data-table,
    .admin-body .data-table tbody,
    .admin-body .data-table tr,
    .admin-body .data-table td {
        display: block;
        width: 100%;
    }

    .admin-body .data-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface-soft);
        overflow: hidden;
    }

    .admin-body .data-table td {
        display: grid;
        grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
        gap: 10px;
        border-bottom: 1px solid var(--border);
        padding: 10px 12px;
    }

    .admin-body .data-table td:last-child {
        border-bottom: 0;
    }

    .admin-body .data-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.76rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .admin-body .data-table td[data-label=""]::before {
        display: none;
    }

    .preview-topbar {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .preview-offset {
        padding-top: 50px;
    }

    .preview-offset .wedding-hero {
        min-height: calc(100svh - 50px);
        height: calc(100svh - 50px);
    }

    .preview-offset .hero-overlay {
        min-height: 0;
    }
}
