/* Wedding Wishes — uses the shared wedding design tokens and navigation. */
.wishes-page {
    position: relative;
    padding: 60px 24px 0;
    text-align: center;
}

.wishes-palace {
    height: clamp(240px, 29vw, 400px);
    margin: 0 -24px;
    background: linear-gradient(to bottom, transparent 45%, var(--cream) 100%),
        url('assets/gifts/palace.webp') center 42% / cover no-repeat;
}

.wishes-letter {
    position: relative;
    max-width: 690px;
    margin: -35px auto 0;
}

.wishes-eyebrow,
.wishes-section-label h2,
.wishes-date {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--teal-dark);
}

.wishes-letter h1 {
    margin: 23px 0 20px;
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 5.7vw, 5.4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text-dark);
}

.wishes-letter h1 em {
    color: var(--gold);
    font-weight: 400;
}

.wishes-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--gold);
    font-size: 22px;
    margin: 24px 0;
}

.wishes-ornament span {
    width: 64px;
    height: 1px;
    background: var(--gold);
    opacity: 0.55;
}

.wishes-letter > p:not(.wishes-eyebrow) {
    margin: 20px auto 0;
    max-width: 610px;
    font-size: 0.98rem;
    line-height: 1.95;
    color: var(--text-body);
}

.wishes-letter > p.wishes-lede {
    max-width: 665px;
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.1vw, 1.65rem);
    line-height: 1.6;
    color: var(--text-dark);
}

.wishes-signoff {
    margin: 28px 0 48px;
    color: var(--text-body);
    font-size: 0.86rem;
    line-height: 1.8;
}

.wishes-signoff .wishes-signature {
    margin-top: 7px;
    font-family: var(--font-script);
    font-size: 3.1rem;
    line-height: 1.4;
    color: var(--gold);
}

.wishes-gifts {
    max-width: 850px;
    margin: 0 auto;
}

.wishes-section-label {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.wishes-section-label span {
    flex: 1;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

.wishes-section-label h2 {
    line-height: 1.6;
    letter-spacing: 3px;
}

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

.wishes-card {
    position: relative;
    padding: 34px 32px 22px;
    border: 1px solid var(--gold-light);
    border-radius: 100px 100px 8px 8px;
    background: var(--ivory);
}

.wishes-card h3 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 400;
    color: var(--text-dark);
}

.wishes-card-instruction {
    margin-top: 9px;
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--text-body);
}

.wishes-qr {
    display: block;
    width: min(100%, 240px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    margin: 20px auto 18px;
}

.wishes-recipient {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-dark);
}

.wishes-account {
    margin: 7px 0 23px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-body);
    overflow-wrap: anywhere;
}

.wishes-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 48px;
    padding: 14px 16px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.wishes-button svg {
    flex-shrink: 0;
}

.wishes-button:hover {
    background: var(--gold-light);
}

.wishes-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 7px;
    border: 0;
    background: none;
    color: var(--teal-dark);
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.wishes-copy[hidden] { display: none; }

.wishes-copy-status {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--teal-dark);
}

.wishes-copy-status:empty { display: none; }

.wishes-help {
    max-width: 520px;
    margin: 23px auto 0;
    font-size: 0.77rem;
    line-height: 1.9;
    color: var(--text-body);
}

.wishes-footer {
    padding: 28px 0 32px;
    background: var(--cream);
}

.wishes-footer-script {
    font-family: var(--font-script);
    font-size: 2.6rem;
    color: var(--gold);
}

.wishes-date { margin: 20px 0 12px; line-height: 1.8; }
.wishes-date span { padding: 0 7px; }

.wishes-hashtag {
    font-size: 0.73rem;
    letter-spacing: 2px;
    color: var(--text-body);
}

.wishes-home {
    display: inline-flex;
    max-width: 100%;
    margin-top: 24px;
    padding: 14px 18px;
    gap: 12px;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
}

.wishes-footer .footer-copyright { margin-top: 24px; color: var(--text-muted); }

.wishes-body :focus-visible {
    outline: 2px solid var(--teal-dark);
    outline-offset: 5px;
}

.wishes-skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 1100;
    padding: 12px;
    background: var(--ivory);
    color: var(--teal-dark);
}

.wishes-skip-link:focus { top: 12px; }

.wishes-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .wishes-page { padding-left: 20px; padding-right: 20px; }
    .wishes-palace { margin: 0 -20px; background-position: center, center 35%; }
    .wishes-letter h1 { letter-spacing: -1px; }
    .wishes-letter > p:not(.wishes-eyebrow) { font-size: 0.9rem; line-height: 1.85; }
    .wishes-letter > p.wishes-lede { font-size: 1.3rem; line-height: 1.65; }
    .wishes-card-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .wishes-card { padding: 32px 26px 20px; }
    .wishes-section-label { gap: 12px; }
    .wishes-section-label h2 { font-size: 0.65rem; letter-spacing: 2px; }
    .wishes-signoff { margin-bottom: 36px; }
    .wishes-footer-script { font-size: 2.2rem; }
    .wishes-date { letter-spacing: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .wishes-body { scroll-behavior: auto; }
    .wishes-button { transition: none; }
}
