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

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

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

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

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/source-sans-3-600.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/source-sans-3-400-italic.woff2") format("woff2");
}

:root {
    --ivory: #f3eee4;
    --paper: #fbf7f0;
    --navy: #12243c;
    --blue: #194f8a;
    --burgundy: #6f2e3c;
    --ink: #243040;
    --muted: #3e4854;
    --line: rgba(18, 36, 60, 0.14);
    --danger: #7a2e2e;
    --gold: #f5d76a;
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--ivory);
    background-image: radial-gradient(980px 360px at 50% -140px, rgba(255, 252, 247, 0.9), transparent 70%);
    color: var(--ink);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    text-align: left;
}

body > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

main {
    flex: 1;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

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

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

a:hover {
    color: var(--navy);
}

::selection {
    background: #d9e4f2;
    color: var(--navy);
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 30;
    background: var(--navy);
    color: var(--paper);
    padding: 0.65rem 1rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.75rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(243, 238, 228, 0.96);
    border-bottom: 1px solid rgba(18, 36, 60, 0.08);
}

.header-inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.brand {
    color: var(--navy);
    text-decoration: none;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.05rem, 4.4vw, 1.35rem);
    font-weight: 600;
    line-height: 1.2;
    min-width: 0;
}

.nav-toggle {
    display: none;
    min-height: 44px;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(18, 36, 60, 0.25);
    background: transparent;
    color: var(--navy);
    cursor: pointer;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.site-nav a {
    color: var(--navy);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--blue);
}

.register-link {
    border: 1px solid rgba(18, 36, 60, 0.28);
    padding: 0.45rem 0.8rem;
}

.section {
    padding: 3.25rem 1rem;
    scroll-margin-top: 1rem;
}

.narrow {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    min-width: 0;
}

.invitation {
    text-align: center;
}

.logo {
    display: block;
    width: min(15.5rem, 68%);
    max-width: 100%;
    height: auto;
    margin: 0.25rem auto 1.75rem;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.logo-small {
    width: min(9.5rem, 42vw);
    margin-bottom: 1rem;
}

.eyebrow {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--burgundy);
}

h1,
h2,
h3,
.hosted,
.footer-name,
.closing,
.button {
    font-family: "Cormorant Garamond", Georgia, serif;
}

h1,
h2,
h3,
.subtitle,
.welcome {
    max-width: 100%;
    overflow-wrap: break-word;
}

h1 {
    margin-top: 0.45rem;
    color: var(--navy);
    font-weight: 500;
    font-size: clamp(2.15rem, 8.2vw, 4.6rem);
    line-height: 1.08;
}

.subtitle {
    margin-top: 0.8rem;
    color: var(--blue);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.3rem, 3vw, 1.85rem);
    line-height: 1.3;
}

.rule {
    width: 4.5rem;
    height: 1px;
    margin: 1.4rem auto 0;
    background: var(--blue);
}

.welcome,
.lead,
.program-item p,
.hint,
.fine-print {
    text-align: justify;
    text-justify: inter-word;
    hyphens: none;
    text-wrap: pretty;
}

.closed-card p,
.receipt-card p {
    text-align: left;
}

.welcome {
    margin: 1.45rem auto 0;
    max-width: 100%;
    font-size: 1.08rem;
    line-height: 1.75;
}

.invitation .welcome {
    text-align: justify;
}

.hosted {
    margin-top: 1.85rem;
    color: var(--navy);
    font-size: 1.65rem;
    line-height: 1.3;
}

.hosted-role {
    margin-top: 0.3rem;
    color: var(--blue);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.4;
}

.hero-actions {
    margin-top: 1.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: var(--paper);
    text-decoration: none;
    font-size: 1.3rem;
    line-height: 1.2;
    cursor: pointer;
}

.button:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--paper);
}

.button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.button-secondary {
    background: transparent;
    color: var(--navy);
}

.button-secondary:hover {
    background: var(--navy);
    color: var(--paper);
}

.button-approve {
    background: #166534;
    border-color: #166534;
    color: #fff;
}

.button-approve:hover {
    background: #14532d;
    border-color: #14532d;
    color: #fff;
}

.button-decline {
    background: #991B1B;
    border-color: #991B1B;
    color: #fff;
}

.button-decline:hover {
    background: #7f1d1d;
    border-color: #7f1d1d;
    color: #fff;
}

.decision-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.email-preview {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.email-preview-frame {
    display: block;
    width: 100%;
    min-height: 36rem;
    margin: 1rem 0;
    border: 1px solid var(--line);
    background: #fff;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.button-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-heading-left,
.admin-page .section-heading {
    text-align: left;
}

h2 {
    margin-top: 0.35rem;
    color: var(--navy);
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
}

h3 {
    color: var(--navy);
    font-weight: 600;
    font-size: 1.55rem;
    line-height: 1.25;
}

.lead {
    margin-bottom: 1.75rem;
}

.program-item + .program-item {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.program-index {
    margin-bottom: 0.3rem;
    color: var(--burgundy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.program-item p {
    margin-top: 0.55rem;
}

.event-details {
    margin: 0;
    padding: clamp(0.65rem, 2.5vw, 1.25rem) clamp(0.9rem, 3vw, 1.85rem);
    background: var(--paper);
    border: 1px solid rgba(18, 36, 60, 0.12);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(18, 36, 60, 0.05);
}

.event-row {
    display: grid;
    grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
    gap: 0.35rem 1.35rem;
    align-items: center;
    padding: 1.1rem 0.1rem;
    border-bottom: 1px solid rgba(18, 36, 60, 0.1);
}

.event-row:last-child {
    border-bottom: 0;
}

.event-row dt {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    color: var(--navy);
}

.detail-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.event-row dd {
    position: relative;
    min-width: 0;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.45rem;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.event-row dd::before {
    content: "";
    position: absolute;
    left: -0.7rem;
    top: 50%;
    width: 2px;
    height: 1.5rem;
    background: var(--burgundy);
    transform: translateY(-50%);
}

.detail-icon,
.contact-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    color: var(--blue);
}

.detail-icon svg,
.contact-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.details-note {
    margin: 0;
    padding: 1.3rem 1rem;
    background: var(--paper);
    border: 1px solid rgba(18, 36, 60, 0.12);
    border-radius: 14px;
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.4rem;
    line-height: 1.45;
    text-align: center;
}

.card {
    background: var(--paper);
    border: 1px solid rgba(18, 36, 60, 0.1);
    box-shadow: 0 16px 40px rgba(18, 36, 60, 0.04);
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.card > h2,
.admin-card > h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.closed-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.field {
    margin: 0 0 1.15rem;
}

.field label,
.field legend,
.consent {
    display: block;
}

.field label,
.field legend {
    margin-bottom: 0.4rem;
    color: var(--navy);
    font-weight: 600;
}

.req,
.optional {
    margin-left: 0.35rem;
    color: var(--burgundy);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(18, 36, 60, 0.22);
    border-radius: 2px;
    background: #fff;
    line-height: 1.4;
}

textarea {
    min-height: 9rem;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue);
    outline: 2px solid rgba(25, 79, 138, 0.25);
    outline-offset: 1px;
}

.choices {
    border: 0;
    padding: 0;
    min-width: 0;
}

.choice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    margin-top: 0.5rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.choice input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--blue);
}

.choice:has(input:checked) {
    border-color: var(--blue);
    background: #f3f7fb;
}

.choice-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.guest-name-fields {
    display: grid;
    gap: 1.15rem;
    margin: 0;
}

#registration-form:has(input[name="additional_guests"][value="1"]:checked) .guest-name-fields,
#registration-form:has(input[name="additional_guests"][value="2"]:checked) .guest-name-fields {
    margin: 0 0 1.15rem;
}

.guest-name-fields .field {
    margin: 0;
}

.guest-name-1,
.guest-name-2 {
    display: none;
}

#registration-form:has(input[name="additional_guests"][value="1"]:checked) .guest-name-1,
#registration-form:has(input[name="additional_guests"][value="2"]:checked) .guest-name-1,
#registration-form:has(input[name="additional_guests"][value="2"]:checked) .guest-name-2 {
    display: block;
}

.choice-row .choice {
    justify-content: center;
    margin-top: 0;
}

.choice-stack .choice {
    margin-top: 0.5rem;
}

.hint,
.fine-print,
.form-note {
    margin-top: 0.55rem;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.consent input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.25rem;
    accent-color: var(--blue);
    flex: 0 0 auto;
}

.hp,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.phone-row {
    display: grid;
    grid-template-columns: minmax(13rem, 1.15fr) minmax(0, 1fr);
    gap: 0.65rem;
}

.phone-row select {
    min-width: 0;
    max-width: 100%;
}

.error-summary {
    margin: 0 0 1.25rem;
    padding: 0.95rem 1rem;
    border: 1px solid #e4c8c8;
    background: #f8ecec;
    color: var(--danger);
}

.error-summary ul {
    margin: 0.45rem 0 0;
    padding-left: 1.15rem;
}

.error-summary a {
    color: var(--danger);
}

.field-error {
    margin-top: 0.4rem;
    color: var(--danger);
    font-size: 0.95rem;
}

.notice {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border-left: 3px solid var(--burgundy);
    background: #f8f1e8;
}

.summary-list {
    margin-top: 1.5rem;
}

.summary-list div {
    display: grid;
    grid-template-columns: minmax(8.5rem, 38%) 1fr;
    gap: 0.35rem 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.summary-list dt {
    color: var(--muted);
    font-weight: 600;
}

.summary-list dd {
    overflow-wrap: anywhere;
}

.return-link {
    margin-top: 1rem;
}

.site-footer {
    background: var(--navy);
    color: #f4efe6;
    padding: 3.25rem 1rem max(2.75rem, calc(env(safe-area-inset-bottom, 0px) + 1.5rem));
    scroll-margin-top: 1rem;
}

.footer-inner {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.eyebrow-light {
    color: #e7c7c0;
}

.footer-name {
    margin-top: 0.45rem;
    font-size: clamp(2rem, 5vw, 2.7rem);
    line-height: 1.15;
}

.contact-intro {
    margin: 0;
    color: #e7c7c0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
}

.footer-role {
    margin-top: 0.35rem;
    color: #d7e2ef;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.4;
}

.contact-list {
    display: grid;
    gap: 0.8rem;
    width: 100%;
    max-width: 100%;
    margin: 1.6rem auto 0;
    padding: 0;
    list-style: none;
    justify-items: center;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: left;
}

.contact-icon {
    margin-top: 0.12rem;
    color: #d5e4f4;
}

.contact-list a,
.contact-address {
    min-width: 0;
    color: #f4efe6;
    font-size: 1.05rem;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: break-word;
}

.contact-list a:hover {
    color: #ffffff;
}

.closing {
    max-width: 36rem;
    margin: 2.5rem auto 0;
    padding: 0;
}

.closing blockquote {
    margin: 0;
    padding: 0;
    border: 0;
}

.closing blockquote p {
    margin: 0;
    color: var(--gold);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.45rem, 3.6vw, 1.95rem);
    line-height: 1.4;
}

.closing blockquote p::before {
    content: "“";
}

.closing blockquote p::after {
    content: "”";
}

.closing figcaption {
    margin-top: 0.7rem;
    color: var(--gold);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 1.4;
    text-transform: uppercase;
}

.narrow-details {
    max-width: 48rem;
}

.intro {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: var(--navy);
}

.intro-active .intro {
    display: block;
}

html.intro-active,
html.intro-active body {
    overflow: hidden;
}

.intro-backdrop,
.intro-backdrop picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.intro-backdrop {
    animation: intro-photo-in 1.1s ease both;
}

.intro-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 38%;
    transform-origin: 50% 36%;
    will-change: transform;
    animation: intro-photo-drift 24s linear 0.2s both;
}

.intro-logo {
    position: absolute;
    top: max(1.15rem, env(safe-area-inset-top, 0px));
    left: max(3.6rem, calc(env(safe-area-inset-left, 0px) + 2.5rem));
    z-index: 3;
    width: min(8.35rem, 22vw);
    max-width: 34%;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(8, 16, 28, 0.28));
}

.intro:focus {
    outline: none;
}

.intro-panel {
    position: absolute;
    left: 50%;
    bottom: max(1.85rem, calc(env(safe-area-inset-bottom, 0px) + 1.4rem));
    z-index: 3;
    width: min(34rem, calc(100% - 2.2rem));
    max-width: calc(100% - max(1.1rem, env(safe-area-inset-left, 0px)) - max(1.1rem, env(safe-area-inset-right, 0px)));
    padding: 1.15rem 1.55rem 1.25rem;
    background: rgba(18, 36, 60, 0.5);
    border: 1px solid rgba(251, 247, 240, 0.16);
    border-radius: 16px;
    text-align: center;
    overflow-wrap: break-word;
    transform: translateX(-50%);
    animation: intro-panel-in 0.9s cubic-bezier(0.22, 0.75, 0.3, 1) 0.18s both;
}

.intro-eyebrow {
    color: #f4e4df;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.intro-title {
    margin-top: 0.4rem;
    color: #ffffff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.7rem, 4.4vw, 2.65rem);
    line-height: 1.1;
}

.intro-note {
    margin: 0.45rem auto 0;
    max-width: 28rem;
    color: #f7f2ea;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: clamp(1rem, 2.3vw, 1.28rem);
    line-height: 1.4;
}

.intro.is-opening {
    animation: intro-fade-out 0.65s ease both;
}

@keyframes intro-photo-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes intro-photo-drift {
    from {
        transform: scale(1.02);
    }
    to {
        transform: scale(1.06);
    }
}

@keyframes intro-panel-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(0.7rem);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes intro-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@media (min-aspect-ratio: 5 / 4) {
    .intro-photo {
        object-position: 50% 48%;
    }

    .intro-logo {
        width: min(8.75rem, 18vw);
    }
}

@media (max-aspect-ratio: 3 / 4) {
    .intro-photo {
        object-position: 50% 16%;
    }

    .intro-logo {
        width: min(6.6rem, 28vw);
    }

    .intro-panel {
        bottom: max(1.7rem, calc(env(safe-area-inset-bottom, 0px) + 1.3rem));
        padding: 0.95rem 1.15rem 1.05rem;
    }
}

@media (max-width: 480px) {
    .intro-logo {
        width: min(6.35rem, 30vw);
        top: max(0.95rem, env(safe-area-inset-top, 0px));
        left: max(2.85rem, calc(env(safe-area-inset-left, 0px) + 1.95rem));
    }

    .intro-panel {
        width: min(34rem, calc(100% - 1.6rem));
        padding: 0.85rem 0.95rem 0.95rem;
    }

    .intro-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .intro-title {
        font-size: clamp(1.45rem, 7.2vw, 1.9rem);
    }

    .intro-note {
        font-size: 0.98rem;
    }
}

@media (max-height: 560px) {
    .intro-logo {
        width: min(4.8rem, 16vh, 22vw);
    }

    .intro-panel {
        bottom: max(1.15rem, calc(env(safe-area-inset-bottom, 0px) + 0.9rem));
        padding: 0.65rem 0.9rem 0.7rem;
    }

    .intro-title {
        font-size: 1.4rem;
        margin-top: 0.25rem;
    }

    .intro-note {
        font-size: 0.92rem;
        margin-top: 0.25rem;
    }
}

.auth-section {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: min(32rem, 100%);
    margin: 0 auto;
    padding: 1.5rem 1.1rem 2rem;
    background: var(--paper);
    border: 1px solid rgba(18, 36, 60, 0.1);
    text-align: center;
}

.auth-card h1 {
    font-size: clamp(2.2rem, 6vw, 3rem);
    margin-bottom: 0.75rem;
}

.auth-card p,
.auth-card form {
    text-align: left;
}

.auth-card .logo {
    margin-left: auto;
    margin-right: auto;
}

.admin-page {
    padding: 2rem 1rem 3.5rem;
}

.admin-inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.narrow-admin {
    width: min(46rem, 100%);
}

.admin-page h1 {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
}

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

.stat {
    padding: 1rem;
    background: var(--paper);
    border: 1px solid rgba(18, 36, 60, 0.1);
}

.stat-value {
    color: var(--navy);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.2rem;
    line-height: 1;
}

.stat-label {
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.admin-grid {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.admin-card + .admin-card,
.card + .card {
    margin-top: 1rem;
}

.admin-grid .card {
    margin-top: 0;
}

.split {
    display: grid;
    gap: 0.75rem;
}

.inline-form {
    margin-top: 1rem;
}

.filters {
    display: grid;
    gap: 0.75rem;
}

.banner {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    background: #f3f7fb;
    border-left: 3px solid var(--blue);
}

.banner-success {
    background: #f3f8f5;
    border-left-color: #1e5c45;
}

.banner-warning {
    background: #f8f1e8;
    border-left-color: var(--burgundy);
}

.tag {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--line);
    font-size: 0.85rem;
    line-height: 1.4;
}

.tag-approved,
.tag-sent {
    color: #1e5c45;
}

.tag-pending {
    color: var(--burgundy);
}

.tag-declined,
.tag-failed {
    color: var(--danger);
}

.table-wrap {
    margin-top: 0.75rem;
    overflow-x: auto;
}

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

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

.guest-names-list {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.35;
}

.data-table th {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    margin-top: 1rem;
}

.email-log + .email-log {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.quiet-card {
    background: transparent;
    box-shadow: none;
}

.admin-header .header-inner {
    flex-wrap: wrap;
}

.signed-in {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.15rem;
}

.admin-nav a {
    color: var(--navy);
    text-decoration: none;
}

.text-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue);
    cursor: pointer;
    min-height: 44px;
}

.print-only {
    display: none;
}

code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92em;
}

@media (min-width: 720px) {
    .section {
        padding: 4.5rem 1.5rem;
    }

    .hero {
        padding-top: 3.25rem;
        padding-bottom: 2.75rem;
    }

    .logo {
        width: 17rem;
        margin-bottom: 2rem;
    }

    .contact-address {
        white-space: nowrap;
    }

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

    .split,
    .filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
    }

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

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

    .admin-grid .admin-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1100px) {
    .stats {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2.5rem 0.85rem;
    }

    .logo {
        width: min(13.5rem, 64vw);
        margin-bottom: 1.35rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.22rem;
    }

    .hosted {
        font-size: 1.4rem;
    }

    .event-row dd {
        font-size: 1.3rem;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.35rem 1rem 1rem;
        background: var(--ivory);
        border-bottom: 1px solid var(--line);
    }

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

    .site-nav a {
        padding: 0.9rem 0.15rem;
        border-bottom: 1px solid rgba(18, 36, 60, 0.08);
    }

    .register-link {
        margin-top: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 700px) {
    .data-table thead {
        display: none;
    }

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

    .data-table tr {
        margin-bottom: 0.9rem;
        padding: 0.35rem 0 0.6rem;
        border: 1px solid var(--line);
        background: #fff;
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        border-bottom: 0;
        padding: 0.45rem 0.75rem;
    }

    .data-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-weight: 600;
    }

    .data-table td:last-child {
        justify-content: flex-start;
    }

    .summary-list div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .phone-row {
        grid-template-columns: 1fr;
    }

    .event-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 0.5rem;
        padding: 0.95rem 0.1rem;
    }

    .event-row dd {
        padding-left: 0.75rem;
    }

    .event-row dd::before {
        left: 0;
        top: 0.2rem;
        height: 1.35rem;
        transform: none;
    }
}

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

    .intro,
    .intro-backdrop,
    .intro-photo,
    .intro-panel,
    .intro.is-opening {
        animation: none !important;
        transition: none !important;
    }

    .intro-photo {
        transform: none !important;
    }

    .intro-panel {
        transform: translateX(-50%) !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .no-print,
    .nav-toggle,
    .skip-link {
        display: none !important;
    }

    body {
        display: block;
        background: #fff;
        color: #000;
    }

    .card,
    .invitation {
        border: 0;
        box-shadow: none;
        background: #fff;
    }

    .intro {
        display: none !important;
    }

    .print-only {
        display: block;
        margin-top: 1.5rem;
    }

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