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

html {
    scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
figure {
    margin: 0;
}

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

a {
    color: inherit;
}

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

button {
    cursor: pointer;
}

/* Variables */
:root {
    --olive: #556B2F;
    --olive-dark: #2F3A1F;
    --cream: #F7F1E3;
    --cream-light: #FFF9EF;
    --gold: #C7A86B;
    --text: #2F3325;
    --muted: #6F765E;
    --paper: #FDF7EC;
    --white: #FFFFFF;
    --line: rgba(47, 58, 31, 0.14);
    --line-strong: rgba(47, 58, 31, 0.24);
    --shadow: 0 24px 60px rgba(47, 58, 31, 0.14);
    --shadow-soft: 0 12px 32px rgba(47, 58, 31, 0.08);
    --radius: 8px;
    --container: 1180px;
}

/* Typography */
body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 4%, rgba(199, 168, 107, 0.14), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(85, 107, 47, 0.12), transparent 30%),
        linear-gradient(90deg, rgba(47, 58, 31, 0.025) 1px, transparent 1px),
        linear-gradient(180deg, rgba(47, 58, 31, 0.018) 1px, transparent 1px),
        linear-gradient(180deg, var(--cream-light), var(--cream));
    background-size: auto, auto, 34px 34px, 34px 34px, auto;
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

h1,
h2,
h3,
.brand,
.screen-hero h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: 0;
}

h1 {
    font-size: 5.8rem;
}

h2 {
    font-size: 3.4rem;
}

h3 {
    font-size: 1.7rem;
}

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

.eyebrow {
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-copy p,
.section-heading p,
.hero-phrase {
    font-size: 1.02rem;
}

/* Navbar */
.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 20px max(18px, calc((100vw - var(--container)) / 2));
    color: var(--cream-light);
    background: linear-gradient(180deg, rgba(24, 30, 16, 0.72), rgba(24, 30, 16, 0));
    transition: background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease, padding 0.24s ease;
}

.site-nav.is-scrolled,
.site-nav.is-open {
    padding-top: 12px;
    padding-bottom: 12px;
    color: var(--olive-dark);
    background: rgba(255, 249, 239, 0.94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.9rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.brand i,
.site-footer span,
.editorial-hero h1 span,
.screen-hero span {
    color: var(--gold);
    font-style: normal;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    text-decoration: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 0 16px;
    border: 1px solid rgba(199, 168, 107, 0.5);
    border-radius: 999px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    padding: 11px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.event-ribbon {
    position: fixed;
    left: 50%;
    top: 78px;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(720px, calc(100% - 28px));
    padding: 10px 12px;
    color: var(--cream-light);
    background: rgba(47, 58, 31, 0.94);
    border: 1px solid rgba(199, 168, 107, 0.42);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    transform: translateX(-50%);
    backdrop-filter: blur(14px);
}

.event-ribbon strong {
    margin-right: auto;
}

.event-ribbon a {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 249, 239, 0.1);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
}

/* Hero */
.editorial-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    min-height: 100svh;
    padding: 118px max(18px, calc((100vw - var(--container)) / 2)) 54px;
    overflow: hidden;
    color: var(--cream-light);
    background:
        radial-gradient(circle at 76% 16%, rgba(199, 168, 107, 0.24), transparent 34%),
        linear-gradient(135deg, rgba(10, 14, 7, 0.94), rgba(47, 58, 31, 0.88)),
        var(--olive-dark);
}

.editorial-hero::before {
    content: "";
    position: absolute;
    inset: 34px;
    z-index: 2;
    border: 1px solid rgba(199, 168, 107, 0.28);
    border-radius: 18px;
    pointer-events: none;
}

.editorial-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(8, 11, 6, 0.78), rgba(8, 11, 6, 0.2) 50%, rgba(8, 11, 6, 0.54)),
        linear-gradient(180deg, rgba(8, 11, 6, 0.28), transparent 30%, rgba(8, 11, 6, 0.72));
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 4;
    max-width: 690px;
}

.hero-glass-card {
    width: min(720px, 100%);
    padding: clamp(28px, 4vw, 52px);
    color: var(--olive-dark);
    background: rgba(255, 249, 239, 0.9);
    border: 1px solid rgba(199, 168, 107, 0.42);
    border-radius: 18px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px);
}

.hero-glass-card::before {
    content: "";
    display: block;
    width: 88px;
    height: 2px;
    margin-bottom: 22px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-copy h1 {
    max-width: 620px;
    margin-bottom: 24px;
    color: var(--olive-dark);
    font-size: clamp(4.4rem, 9vw, 8.5rem);
}

.hero-phrase {
    max-width: 560px;
    color: var(--muted);
    font-size: 1.08rem;
}

.date-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    margin-top: 26px;
    color: var(--olive-dark);
    font-weight: 800;
}

.date-line i {
    width: 46px;
    height: 1px;
    background: var(--gold);
}

.hero-portrait {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 100%;
}

.hero-portrait img,
.photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100svh;
    object-fit: cover;
    object-position: center 34%;
    border-radius: 0;
    box-shadow: none;
    filter: saturate(0.96) contrast(1.04);
}

.photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--cream-light);
    background: linear-gradient(135deg, var(--olive), var(--olive-dark));
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 3rem;
}

.hero-portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(47, 58, 31, 0.03), rgba(47, 58, 31, 0.28));
    pointer-events: none;
}

.hero-portrait figcaption {
    position: absolute;
    left: -44px;
    bottom: 42px;
    z-index: 2;
    width: 220px;
    padding: 20px;
    color: var(--olive-dark);
    background: rgba(255, 249, 239, 0.92);
    border: 1px solid rgba(199, 168, 107, 0.35);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-portrait figcaption span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-portrait figcaption strong {
    display: block;
    margin-top: 4px;
    font-size: 1.4rem;
}

.hero-floating-card {
    position: absolute;
    right: max(18px, calc((100vw - var(--container)) / 2));
    bottom: 54px;
    z-index: 4;
    width: 300px;
    padding: 20px;
    color: var(--cream-light);
    background: rgba(21, 27, 15, 0.48);
    border: 1px solid rgba(199, 168, 107, 0.38);
    border-radius: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-floating-card span {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-floating-card strong {
    display: block;
    margin-top: 4px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.8rem;
    line-height: 1;
}

.hero-floating-card p {
    margin-top: 12px;
    color: rgba(255, 249, 239, 0.72);
    font-size: 0.9rem;
}

/* Countdown */
.premium-countdown,
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    gap: 10px;
    width: min(590px, 100%);
    margin-top: 34px;
}

.premium-countdown div {
    min-height: 96px;
    padding: 16px 10px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--olive-dark);
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(199, 168, 107, 0.26);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
}

.premium-countdown strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 3rem;
    line-height: 0.9;
    transition: transform 0.18s ease;
}

.premium-countdown strong.is-ticking {
    transform: translateY(-2px);
}

.premium-countdown span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Sections */
.section {
    padding: 96px 0;
}

.section-inner,
.page-shell,
.feed-shell,
.admin-shell,
.big-day-shell {
    width: min(var(--container), calc(100% - 36px));
    margin: 0 auto;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-heading h2,
.section-copy h2,
.story-lede h2,
.page-hero h1,
.feed-hero h1,
.big-day-hero h1 {
    color: var(--olive-dark);
}

.section-heading p,
.section-copy p,
.story-lede p {
    margin-top: 14px;
}

.affection-section {
    padding: 88px 0;
    background:
        radial-gradient(circle at 16% 20%, rgba(199, 168, 107, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255, 249, 239, 0.72), rgba(247, 241, 227, 0.34));
}

.affection-panel {
    position: relative;
    max-width: 920px;
    padding: clamp(34px, 6vw, 72px);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 249, 239, 0.98), rgba(247, 241, 227, 0.9)),
        var(--cream-light);
    border: 1px solid rgba(199, 168, 107, 0.48);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(47, 58, 31, 0.12);
}

.affection-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: linear-gradient(180deg, rgba(199, 168, 107, 0.92), rgba(85, 107, 47, 0.78));
}

.letter-mark {
    width: 56px;
    height: 56px;
    margin-bottom: 22px;
    border: 1px solid rgba(199, 168, 107, 0.58);
    border-radius: 50%;
    background:
        linear-gradient(135deg, transparent 46%, rgba(199, 168, 107, 0.46) 47%, rgba(199, 168, 107, 0.46) 53%, transparent 54%),
        radial-gradient(circle, rgba(85, 107, 47, 0.12), transparent 64%);
}

.affection-panel h2 {
    max-width: 760px;
    color: var(--olive-dark);
}

.letter-copy {
    max-width: 760px;
    margin-top: 18px;
    color: var(--text);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    line-height: 1.12;
}

.letter-signature {
    display: grid;
    gap: 4px;
    margin-top: 34px;
    color: var(--olive-dark);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.2rem;
    line-height: 1;
}

.letter-signature span {
    color: var(--gold);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 850;
    text-transform: uppercase;
}

.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 42px;
    align-items: start;
}

.section-actions,
.hero-actions,
.today-actions,
.success-actions,
.big-day-actions,
.mini-actions,
.music-actions,
.moment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-actions,
.section-actions,
.today-actions,
.success-actions,
.big-day-actions {
    margin-top: 30px;
}

.left-actions {
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    max-width: 100%;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    font-size: 0.93rem;
    font-weight: 850;
    box-shadow: 0 10px 26px rgba(47, 58, 31, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(47, 58, 31, 0.16);
}

.btn-primary {
    color: var(--cream-light);
    background: linear-gradient(135deg, var(--olive), var(--olive-dark));
    border-color: rgba(199, 168, 107, 0.44);
    box-shadow: 0 16px 34px rgba(47, 58, 31, 0.18);
}

.btn-ghost {
    color: var(--olive-dark);
    background: rgba(255, 249, 239, 0.82);
    border-color: rgba(199, 168, 107, 0.42);
}

.editorial-hero .btn-ghost {
    color: var(--olive-dark);
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(85, 107, 47, 0.22);
}

.btn-outline {
    color: var(--olive-dark);
    background: var(--cream-light);
    border-color: var(--line-strong);
}

.btn-gold {
    color: #262914;
    background: linear-gradient(135deg, #E1C887, var(--gold));
    border-color: rgba(47, 58, 31, 0.12);
}

.btn.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}

.notice {
    width: min(var(--container), calc(100% - 36px));
    margin: 18px auto 0;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-weight: 750;
}

.notice.success {
    color: var(--olive-dark);
    background: rgba(85, 107, 47, 0.12);
    border: 1px solid rgba(85, 107, 47, 0.24);
}

.notice.error {
    color: #7D2D20;
    background: rgba(183, 95, 74, 0.11);
    border: 1px solid rgba(183, 95, 74, 0.28);
}

.empty-state {
    width: 100%;
    padding: 26px;
    color: var(--muted);
    background: rgba(255, 249, 239, 0.76);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Story */
.story-section {
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 420px;
    background: linear-gradient(180deg, rgba(85, 107, 47, 0.08), transparent);
    pointer-events: none;
}

.story-intro {
    position: relative;
    z-index: 1;
}

.editorial-story {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.78fr);
    gap: 54px;
    align-items: center;
}

.story-lede {
    max-width: 670px;
}

.story-timeline {
    position: relative;
    display: grid;
    gap: 28px;
    margin-top: 44px;
}

.story-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(199, 168, 107, 0.8), transparent);
}

.story-chapter {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.58fr);
    gap: 34px;
    align-items: center;
    width: min(980px, 100%);
}

.story-chapter:nth-child(even) {
    justify-self: end;
    grid-template-columns: minmax(260px, 0.58fr) minmax(0, 0.92fr);
}

.story-chapter:nth-child(even) .story-chapter-copy {
    order: 2;
}

.story-chapter:nth-child(even) figure {
    order: 1;
}

.story-chapter-copy {
    position: relative;
    padding: clamp(24px, 4vw, 38px);
    background: rgba(255, 249, 239, 0.9);
    border: 1px solid rgba(199, 168, 107, 0.3);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.story-chapter-copy::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 0;
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.story-chapter-copy span {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 850;
}

.story-chapter-copy h3 {
    margin-top: 10px;
    color: var(--olive-dark);
    font-size: clamp(2rem, 4vw, 3.15rem);
}

.story-chapter-copy p {
    margin-top: 12px;
}

.story-chapter figure {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 8px solid rgba(255, 249, 239, 0.82);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.story-chapter figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.story-chapter:hover figure img {
    transform: scale(1.035);
    filter: saturate(1.04);
}

.story-stack {
    position: relative;
    min-height: 560px;
}

.story-photo {
    position: absolute;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--cream-light);
}

.story-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.94);
}

.story-photo:nth-child(1) {
    top: 0;
    right: 0;
    width: 74%;
    height: 360px;
}

.story-photo:nth-child(2) {
    left: 0;
    bottom: 0;
    width: 58%;
    height: 300px;
}

.story-photo:nth-child(3) {
    right: 8%;
    bottom: 44px;
    width: 44%;
    height: 250px;
    border: 8px solid var(--cream);
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 64px;
}

.chapter,
.event-cards article,
.gift-grid article,
.message-wall article,
.playlist-list article,
.big-day-grid article,
.admin-stats article {
    padding: 24px;
    background: rgba(255, 249, 239, 0.76);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.chapter span,
.event-cards span,
.gift-grid span,
.big-day-grid span,
.playlist-list span,
.success-card span {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.chapter h3,
.event-cards h3,
.gift-grid h3 {
    margin-top: 10px;
    color: var(--olive-dark);
}

.chapter p,
.event-cards p,
.gift-grid p {
    margin-top: 10px;
}

/* Gallery */
.gallery-section {
    background:
        radial-gradient(circle at 82% 12%, rgba(199, 168, 107, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 249, 239, 0.64), rgba(247, 241, 227, 0.52));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.gallery-block + .gallery-block {
    margin-top: 68px;
}

.gallery-block-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.gallery-block-head h2,
.gallery-block-head h3 {
    color: var(--olive-dark);
}

.gallery-block-head p:not(.eyebrow) {
    max-width: 620px;
    margin-top: 12px;
}

.gallery-block-head span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.editorial-gallery,
.live-feed-grid,
.story-photo-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 24px;
    gap: 12px;
}

.premium-collage {
    grid-auto-rows: 30px;
    gap: 14px;
}

.gallery-item,
.story-photo-grid button,
.phone-preview button,
.admin-post-image {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--cream-light);
    box-shadow: var(--shadow-soft);
}

.premium-collage .gallery-item {
    border: 1px solid rgba(199, 168, 107, 0.18);
    border-radius: 18px;
}

.premium-collage .gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(47, 58, 31, 0.24));
    opacity: 0;
    transition: opacity 0.32s ease;
}

.premium-collage .gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img,
.story-photo-grid img,
.phone-preview img,
.admin-post-image img,
.moment-photo img,
.screen-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease, filter 0.38s ease;
}

.gallery-item:hover img,
.story-photo-grid button:hover img,
.phone-preview button:hover img,
.moment-photo:hover img {
    transform: scale(1.035);
    filter: saturate(1.04);
}

.editorial-gallery .gallery-item {
    grid-column: span 3;
    grid-row: span 12;
}

.editorial-gallery .gallery-item:nth-child(6n + 1) {
    grid-column: span 5;
    grid-row: span 18;
}

.editorial-gallery .gallery-item:nth-child(6n + 2) {
    grid-column: span 4;
    grid-row: span 15;
}

.editorial-gallery .gallery-item:nth-child(6n + 4) {
    grid-column: span 4;
    grid-row: span 18;
}

.venue-gallery .gallery-item {
    grid-column: span 4;
    grid-row: span 15;
}

.venue-gallery .gallery-item:nth-child(3n + 1) {
    grid-column: span 6;
    grid-row: span 18;
}

.couple-gallery.premium-collage .gallery-item:nth-child(1) {
    grid-column: span 6;
    grid-row: span 22;
}

.couple-gallery.premium-collage .gallery-item:nth-child(2),
.couple-gallery.premium-collage .gallery-item:nth-child(5) {
    grid-column: span 3;
    grid-row: span 12;
}

.couple-gallery.premium-collage .gallery-item:nth-child(3),
.couple-gallery.premium-collage .gallery-item:nth-child(4) {
    grid-column: span 3;
    grid-row: span 10;
}

.couple-gallery.premium-collage .gallery-item:nth-child(n + 7) {
    grid-column: span 2;
    grid-row: span 9;
}

.venue-collage .gallery-item:nth-child(1) {
    grid-column: span 7;
    grid-row: span 18;
}

.venue-collage .gallery-item:nth-child(n + 2) {
    grid-column: span 5;
    grid-row: span 9;
}

.venue-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 750;
}

.event-section {
    background:
        linear-gradient(135deg, rgba(47, 58, 31, 0.96), rgba(85, 107, 47, 0.84)),
        var(--olive-dark);
    color: var(--cream-light);
}

.event-premium-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 42px;
    align-items: center;
}

.event-lede h2,
.event-lede p {
    color: var(--cream-light);
}

.event-lede p:not(.eyebrow) {
    color: rgba(255, 249, 239, 0.76);
}

.premium-event-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.premium-event-cards article {
    position: relative;
    min-height: 270px;
    padding: 28px;
    overflow: hidden;
    background: rgba(255, 249, 239, 0.1);
    border: 1px solid rgba(199, 168, 107, 0.3);
    border-radius: 20px;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px);
}

.premium-event-cards article::before {
    content: "";
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border: 1px solid rgba(199, 168, 107, 0.48);
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(255, 249, 239, 0.16), rgba(199, 168, 107, 0.1)),
        rgba(255, 249, 239, 0.08);
}

.premium-event-cards article:nth-child(1)::before {
    content: "I";
    color: var(--gold);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.7rem;
}

.premium-event-cards article:nth-child(2)::before {
    content: "II";
    color: var(--gold);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.5rem;
}

.premium-event-cards article:nth-child(3)::before {
    content: "III";
    color: var(--gold);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
}

.premium-event-cards span {
    color: var(--gold);
}

.premium-event-cards h3 {
    color: var(--cream-light);
}

.premium-event-cards strong {
    display: block;
    margin-top: 12px;
    color: rgba(255, 249, 239, 0.9);
    font-size: 0.92rem;
}

.premium-event-cards p {
    color: rgba(255, 249, 239, 0.68);
}

/* RSVP */
.page-shell {
    padding-top: 132px;
    padding-bottom: 92px;
}

.page-hero.slim {
    max-width: 760px;
    margin-bottom: 34px;
}

.page-hero p {
    margin-top: 14px;
}

.form-card,
.success-card {
    max-width: 900px;
    padding: 30px;
    background: rgba(255, 249, 239, 0.82);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.success-card h2 {
    margin-top: 8px;
    color: var(--olive-dark);
}

.success-card p {
    margin-top: 10px;
}

.premium-form {
    display: grid;
    gap: 16px;
}

.rsvp-form,
.social-post-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-form label {
    display: grid;
    gap: 8px;
    color: var(--olive-dark);
    font-size: 0.88rem;
    font-weight: 800;
}

.premium-form input,
.premium-form textarea,
.premium-form select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
}

.premium-form textarea {
    min-height: 126px;
    resize: vertical;
}

.premium-form input:focus,
.premium-form textarea:focus,
.premium-form select:focus {
    border-color: rgba(199, 168, 107, 0.78);
    box-shadow: 0 0 0 4px rgba(199, 168, 107, 0.14);
}

.wide-field {
    grid-column: 1 / -1;
}

/* Feed */
.feed-page .site-nav {
    display: none;
}

.feed-page {
    background:
        radial-gradient(circle at 10% 5%, rgba(199, 168, 107, 0.14), transparent 28%),
        linear-gradient(90deg, rgba(47, 58, 31, 0.022) 1px, transparent 1px),
        linear-gradient(180deg, var(--cream-light), var(--cream));
    background-size: auto, 34px 34px, auto;
}

.feed-app {
    min-height: 100vh;
    padding: 86px 18px 92px;
}

.feed-topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 70px;
    padding: 10px max(16px, calc((100vw - 1040px) / 2));
    color: var(--olive-dark);
    background: rgba(255, 249, 239, 0.96);
    border-bottom: 1px solid rgba(199, 168, 107, 0.18);
    box-shadow: 0 12px 32px rgba(47, 58, 31, 0.08);
    backdrop-filter: blur(18px);
}

.feed-brand {
    display: grid;
    gap: 2px;
    text-decoration: none;
}

.feed-brand strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.7rem;
    line-height: 1;
}

.feed-brand span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.feed-publish-button,
.publish-fab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 16px;
    color: var(--cream-light);
    background: linear-gradient(135deg, var(--olive), var(--olive-dark));
    border: 1px solid rgba(199, 168, 107, 0.5);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    font-weight: 850;
}

.camera-mark {
    position: relative;
    width: 20px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.camera-mark::before {
    content: "";
    position: absolute;
    left: 3px;
    top: -5px;
    width: 7px;
    height: 4px;
    background: currentColor;
    border-radius: 3px 3px 0 0;
}

.camera-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.feed-layout {
    display: grid;
    grid-template-columns: minmax(520px, 620px) 310px;
    justify-content: center;
    gap: 28px;
    width: min(100%, 1030px);
    margin: 0 auto;
}

.feed-main-column {
    min-width: 0;
}

.feed-intro {
    width: calc(100% - 4px);
    margin: 0 2px 18px;
    padding: 24px;
    background: rgba(255, 249, 239, 0.78);
    border: 1px solid rgba(199, 168, 107, 0.22);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(47, 58, 31, 0.08);
}

.feed-intro h1 {
    color: var(--olive-dark);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.feed-intro p:not(.eyebrow) {
    margin-top: 8px;
}

.stories-strip {
    display: flex;
    gap: 14px;
    margin: 0 0 16px;
    padding: 10px 2px 18px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.story-bubble {
    flex: 0 0 88px;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 0;
    color: var(--olive-dark);
    background: transparent;
    border: 0;
    text-align: center;
}

.story-bubble span {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    padding: 3px;
    overflow: hidden;
    background: linear-gradient(135deg, #E1C887, var(--gold), var(--olive));
    border-radius: 50%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.story-bubble.is-active span,
.story-bubble:hover span {
    box-shadow: 0 0 0 4px rgba(199, 168, 107, 0.18);
    transform: translateY(-2px);
}

.story-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--cream-light);
    border-radius: 50%;
}

.story-bubble i {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--cream-light);
    font-style: normal;
    font-weight: 850;
}

.story-bubble strong {
    max-width: 88px;
    color: var(--olive-dark);
    font-size: 0.75rem;
    line-height: 1.15;
}

.feed-composer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    background: rgba(255, 249, 239, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.feed-composer button {
    min-height: 44px;
    padding: 0 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--line);
    border-radius: 999px;
    text-align: left;
}

.post-create-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 249, 239, 0.96), rgba(247, 241, 227, 0.82)),
        var(--cream-light);
    border: 1px solid rgba(199, 168, 107, 0.24);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.post-create-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--gold), var(--olive));
}

.post-create-icon {
    width: 42px;
    height: 32px;
    color: var(--olive);
}

.post-create-card h2 {
    color: var(--olive-dark);
    font-size: 1.8rem;
}

.post-create-card p {
    margin-top: 4px;
    font-size: 0.92rem;
}

.post-create-card small {
    display: block;
    margin-top: 8px;
    color: var(--olive);
    font-size: 0.82rem;
    font-weight: 850;
}

.post-create-card .btn {
    white-space: nowrap;
}

.moments-grid,
.instagram-feed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    column-count: auto;
}

.moment-card {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 249, 239, 0.92);
    border: 1px solid rgba(47, 58, 31, 0.12);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(47, 58, 31, 0.1);
}

.post-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 66px;
    padding: 12px 14px;
}

.avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    color: var(--cream-light);
    background: linear-gradient(135deg, var(--olive), var(--olive-dark));
    border: 1px solid rgba(199, 168, 107, 0.42);
    border-radius: 50%;
    font-weight: 850;
}

.post-author strong {
    display: block;
    color: var(--olive-dark);
    line-height: 1.15;
}

.post-author small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
}

.post-author small span {
    color: var(--olive);
    font-weight: 850;
}

.post-menu {
    width: 34px;
    height: 34px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-weight: 850;
}

.post-photo {
    display: block;
    width: 100%;
    max-height: 760px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #efe7d8;
}

.post-photo img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.post-body {
    padding: 12px 14px 16px;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.post-action {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--olive-dark);
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 1.55rem;
    line-height: 1;
    transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.post-action:hover {
    background: rgba(85, 107, 47, 0.08);
}

.post-action.is-active,
.post-action.is-shared,
.like-button.is-liked {
    color: #8A2F24;
    transform: scale(1.14);
}

.heart-icon {
    display: block;
    transform-origin: center;
}

.like-button.is-liked .heart-icon {
    animation: heartPop 0.5s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.32); }
    100% { transform: scale(1); }
}

.post-likes,
.post-caption,
.post-date {
    display: block;
    margin-top: 6px;
}

.post-likes {
    color: var(--olive-dark);
    font-size: 0.92rem;
}

.post-caption {
    color: var(--text);
    font-size: 0.94rem;
}

.post-caption strong,
.post-likes strong {
    color: var(--olive-dark);
}

.post-date {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.publish-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    min-height: 54px;
    padding: 0 18px;
    box-shadow: var(--shadow);
}

.floating-post-button {
    display: none;
}

.feed-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
    align-self: start;
}

.sidebar-card {
    padding: 20px;
    background: rgba(255, 249, 239, 0.86);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.sidebar-card h2,
.sidebar-card h3 {
    color: var(--olive-dark);
}

.sidebar-card p {
    margin-top: 8px;
}

.sidebar-card .btn {
    width: 100%;
    margin-top: 18px;
}

.mini-countdown div {
    display: flex;
    align-items: end;
    gap: 8px;
    margin-top: 8px;
}

.mini-countdown strong {
    color: var(--olive-dark);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 4rem;
    line-height: 0.85;
}

.mini-countdown span,
.mini-countdown small {
    color: var(--muted);
    font-weight: 850;
}

.sidebar-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--olive-dark);
    font-weight: 850;
}

.sidebar-link.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}

.moments-empty {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 44px 24px;
    text-align: center;
    background: rgba(255, 249, 239, 0.8);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

.moments-empty span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--olive-dark);
    background: var(--gold);
    border-radius: 50%;
    font-size: 1.8rem;
}

.premium-empty-feed {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 6vw, 58px) 24px;
    background:
        linear-gradient(135deg, rgba(255, 249, 239, 0.96), rgba(247, 241, 227, 0.84)),
        var(--cream-light);
    border: 1px solid rgba(199, 168, 107, 0.28);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.premium-empty-feed::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--gold), var(--olive));
}

.premium-empty-feed span {
    width: 70px;
    height: 70px;
    color: var(--cream-light);
    background: linear-gradient(135deg, var(--olive), var(--olive-dark));
    box-shadow: 0 12px 28px rgba(47, 58, 31, 0.16);
}

.premium-empty-feed span .camera-mark {
    width: 28px;
    height: 21px;
}

.premium-empty-feed h2 {
    max-width: 520px;
    color: var(--olive-dark);
}

.premium-empty-feed p {
    max-width: 560px;
}

.premium-empty-feed strong {
    color: var(--olive);
    font-size: 0.95rem;
}

.feed-skeleton {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.feed-skeleton span {
    min-height: 280px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, rgba(255, 249, 239, 0.55), rgba(255, 255, 255, 0.9), rgba(255, 249, 239, 0.55));
    background-size: 220% 100%;
    animation: skeletonPulse 1.1s ease-in-out infinite;
}

/* INSTAGRAM FEED */
.feed-page {
    color: #24281b;
}

.feed-app {
    padding-top: calc(78px + env(safe-area-inset-top));
    padding-bottom: 104px;
}

.feed-topbar {
    min-height: calc(66px + env(safe-area-inset-top));
    padding-top: calc(8px + env(safe-area-inset-top));
}

.feed-back-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--olive-dark);
    background: rgba(255, 255, 255, 0.44);
    border: 1px solid rgba(199, 168, 107, 0.22);
    border-radius: 50%;
    text-decoration: none;
    font-size: 2rem;
    line-height: 1;
}

.feed-brand {
    min-width: 0;
    flex: 1;
}

.feed-brand strong {
    font-size: 2rem;
}

.feed-publish-button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
}

.feed-publish-button span {
    display: none;
}

.feed-layout {
    grid-template-columns: minmax(520px, 640px) 320px;
    align-items: start;
}

.feed-intro {
    padding: 22px 22px 20px;
    background:
        radial-gradient(circle at 90% 12%, rgba(199, 168, 107, 0.16), transparent 30%),
        rgba(255, 249, 239, 0.86);
}

.feed-intro h1 {
    max-width: 520px;
    font-size: clamp(2.1rem, 4vw, 3.35rem);
}

.feed-intro small {
    display: inline-flex;
    margin-top: 14px;
    color: var(--olive);
    font-size: 0.82rem;
    font-weight: 850;
}

.stories-strip {
    margin-bottom: 18px;
    padding: 12px 2px 20px;
}

.story-bubble {
    flex-basis: 82px;
}

.story-bubble span {
    width: 68px;
    height: 68px;
    box-shadow: 0 10px 24px rgba(47, 58, 31, 0.1);
}

.story-bubble.is-active span {
    box-shadow: 0 0 0 4px rgba(199, 168, 107, 0.2), 0 12px 28px rgba(47, 58, 31, 0.16);
}

.post-create-card {
    align-items: center;
    padding: 16px 18px;
    border-radius: 20px;
}

.moments-grid,
.instagram-feed {
    gap: 24px;
}

.moment-card {
    background: rgba(255, 249, 239, 0.96);
    border: 1px solid rgba(199, 168, 107, 0.2);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(47, 58, 31, 0.11);
}

.post-header {
    min-height: 70px;
    padding: 14px 16px;
}

.avatar {
    width: 46px;
    height: 46px;
    background:
        linear-gradient(135deg, rgba(199, 168, 107, 0.28), transparent),
        linear-gradient(135deg, var(--olive), var(--olive-dark));
}

.post-menu {
    font-size: 1.1rem;
}

.post-photo {
    aspect-ratio: 1 / 1.16;
    background:
        radial-gradient(circle at 50% 20%, rgba(199, 168, 107, 0.18), transparent 30%),
        #eee5d5;
}

.post-photo img {
    object-fit: cover;
}

.post-body {
    padding: 12px 16px 18px;
}

.post-actions {
    gap: 2px;
}

.post-action {
    font-size: 1.8rem;
}

.like-button.has-local-like {
    color: #8A2F24;
}

.post-screen-note {
    margin-left: auto;
    color: var(--olive);
    font-size: 0.75rem;
    font-weight: 850;
}

.post-telao-hint {
    margin-top: 12px;
    padding-top: 12px;
    color: var(--muted);
    border-top: 1px solid rgba(47, 58, 31, 0.08);
    font-size: 0.78rem;
}

.feed-sidebar {
    gap: 16px;
}

.sidebar-card {
    border-color: rgba(199, 168, 107, 0.22);
    border-radius: 20px;
    background: rgba(255, 249, 239, 0.9);
}

.feed-callout-card {
    background:
        radial-gradient(circle at 90% 10%, rgba(199, 168, 107, 0.2), transparent 30%),
        rgba(255, 249, 239, 0.9);
}

.feed-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 45;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    background: rgba(255, 249, 239, 0.94);
    border: 1px solid rgba(199, 168, 107, 0.22);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(47, 58, 31, 0.18);
    backdrop-filter: blur(18px);
}

.feed-bottom-nav a,
.feed-bottom-nav button {
    display: grid;
    place-items: center;
    min-height: 42px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 850;
}

.feed-bottom-nav .is-active,
.feed-bottom-nav button {
    color: var(--cream-light);
    background: linear-gradient(135deg, var(--olive), var(--olive-dark));
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 22px;
    background: rgba(8, 11, 6, 0.92);
    backdrop-filter: blur(18px);
}

.image-lightbox.is-open {
    display: grid;
}

.image-lightbox figure {
    display: grid;
    gap: 16px;
    justify-items: center;
    width: min(980px, 100%);
}

.image-lightbox img {
    max-width: 100%;
    max-height: calc(100svh - 170px);
    width: auto;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.image-lightbox figcaption {
    width: min(720px, 100%);
    color: rgba(255, 249, 239, 0.88);
    text-align: center;
}

.image-lightbox figcaption strong {
    display: block;
    color: var(--cream-light);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    line-height: 1;
}

.image-lightbox figcaption span,
.image-lightbox figcaption p {
    display: block;
    margin-top: 8px;
    color: rgba(255, 249, 239, 0.7);
}

.lightbox-close {
    position: fixed;
    top: calc(18px + env(safe-area-inset-top));
    right: 18px;
    z-index: 2;
    width: 46px;
    height: 46px;
    color: var(--olive-dark);
    background: rgba(255, 249, 239, 0.92);
    border: 1px solid rgba(199, 168, 107, 0.26);
    border-radius: 50%;
    font-size: 1.6rem;
}

@keyframes skeletonPulse {
    from {
        background-position: 100% 0;
    }
    to {
        background-position: -100% 0;
    }
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.story-modal,
.post-modal,
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 22px;
    background: rgba(21, 27, 15, 0.82);
    backdrop-filter: blur(16px);
}

.story-modal.is-open,
.post-modal.is-open,
.image-modal.is-open {
    display: grid;
}

.story-modal-shell,
.post-modal-panel {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100svh - 44px);
    overflow: auto;
    padding: 28px;
    background: var(--cream-light);
    border: 1px solid rgba(199, 168, 107, 0.34);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.story-modal-close,
.post-modal-close,
.image-modal button {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    color: var(--olive-dark);
    background: var(--cream-light);
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 1.5rem;
}

.story-panel {
    display: none;
}

.story-panel.is-active {
    display: block;
}

.story-panel header {
    margin-bottom: 22px;
}

.story-photo-grid .gallery-item,
.story-photo-grid button {
    grid-column: span 4;
    grid-row: span 12;
}

.post-modal-heading {
    margin-bottom: 22px;
    padding-right: 48px;
}

/* CREATE POST MODAL */
.post-modal-content {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1040px, 100%);
    max-height: calc(100svh - 36px);
    overflow: hidden;
    padding: 0;
    background:
        linear-gradient(135deg, rgba(255, 249, 239, 0.98), rgba(247, 241, 227, 0.94)),
        var(--cream-light);
    border-radius: 18px;
}

.post-modal.is-open .post-modal-content {
    animation: modalRise 0.28s ease both;
}

@keyframes modalRise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.post-modal-content .post-modal-close {
    top: 18px;
    right: 18px;
    background: rgba(255, 249, 239, 0.92);
    box-shadow: 0 10px 24px rgba(47, 58, 31, 0.12);
}

.post-modal-content .post-modal-heading {
    position: relative;
    margin: 0;
    padding: 30px 86px 22px 34px;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(85, 107, 47, 0.1), rgba(199, 168, 107, 0.14)),
        rgba(255, 249, 239, 0.84);
    border-bottom: 1px solid rgba(199, 168, 107, 0.22);
}

.post-modal-content .post-modal-heading::after {
    content: "";
    position: absolute;
    left: 34px;
    bottom: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.post-modal-content .post-modal-heading h2 {
    max-width: 680px;
    color: var(--olive-dark);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.96;
}

.post-modal-content .post-modal-heading > p:not(.eyebrow) {
    margin-top: 8px;
    color: var(--muted);
}

.create-post-form {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: start;
    min-height: 0;
    overflow: auto;
    padding: 24px;
}

.create-post-form .feed-fields {
    align-content: start;
    gap: 18px;
}

.create-post-form .feed-fields label {
    display: grid;
    gap: 8px;
    color: var(--olive-dark);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.create-post-form input.has-error,
.create-post-form textarea.has-error {
    border-color: rgba(138, 47, 36, 0.72);
    box-shadow: 0 0 0 4px rgba(138, 47, 36, 0.1);
}

.post-modal-footer {
    position: sticky;
    bottom: -24px;
    z-index: 3;
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin: 6px -24px -24px;
    padding: 16px 24px;
    background: rgba(255, 249, 239, 0.96);
    border-top: 1px solid rgba(47, 58, 31, 0.1);
    box-shadow: 0 -16px 36px rgba(47, 58, 31, 0.08);
    backdrop-filter: blur(16px);
}

.post-modal-footer .btn {
    width: auto;
}

.post-modal-footer [disabled] {
    cursor: progress;
    opacity: 0.72;
}

/* UPLOAD PREVIEW */
.upload-dropzone {
    min-height: min(58vh, 540px);
    background:
        linear-gradient(135deg, rgba(255, 249, 239, 0.96), rgba(247, 241, 227, 0.7)),
        rgba(85, 107, 47, 0.06);
    border: 1.5px dashed rgba(85, 107, 47, 0.42);
    box-shadow: inset 0 0 0 1px rgba(199, 168, 107, 0.14);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.upload-dropzone.is-dragging {
    border-color: var(--gold);
    box-shadow: inset 0 0 0 1px rgba(199, 168, 107, 0.32), 0 18px 44px rgba(47, 58, 31, 0.12);
    transform: translateY(-2px);
}

.upload-dropzone.has-error {
    border-color: rgba(138, 47, 36, 0.72);
    box-shadow: inset 0 0 0 1px rgba(138, 47, 36, 0.16), 0 0 0 4px rgba(138, 47, 36, 0.08);
}

.upload-dropzone label {
    cursor: pointer;
}

.upload-dropzone label .camera-mark {
    width: 46px;
    height: 34px;
    color: var(--gold);
}

.upload-dropzone label span {
    color: var(--olive-dark);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.upload-dropzone label small {
    max-width: 260px;
    line-height: 1.35;
}

.upload-dropzone img {
    min-height: min(58vh, 540px);
    transition: opacity 0.22s ease, transform 0.35s ease;
}

.upload-dropzone.has-image img {
    transform: scale(1.01);
}

.upload-dropzone.has-image label {
    opacity: 0;
    pointer-events: none;
}

.upload-preview-tools {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    color: var(--cream-light);
    background: rgba(31, 38, 22, 0.74);
    border: 1px solid rgba(255, 249, 239, 0.18);
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.upload-preview-tools strong,
.upload-preview-tools small {
    display: block;
}

.upload-preview-tools strong {
    max-width: 270px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--cream-light);
    font-size: 0.88rem;
}

.upload-preview-tools small {
    color: rgba(255, 249, 239, 0.72);
    font-size: 0.72rem;
}

.upload-preview-tools div:last-child {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.upload-preview-tools button {
    min-height: 34px;
    padding: 0 11px;
    color: var(--cream-light);
    background: rgba(255, 249, 239, 0.12);
    border: 1px solid rgba(255, 249, 239, 0.22);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
}

.upload-preview-tools button:hover {
    background: rgba(255, 249, 239, 0.2);
}

/* CATEGORY CHIPS */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
}

.category-chips legend {
    width: 100%;
    margin-bottom: 2px;
    color: var(--olive-dark);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.category-chip {
    min-height: 40px;
    padding: 0 14px;
    color: var(--olive-dark);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(47, 58, 31, 0.14);
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 850;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.category-chip:hover {
    border-color: rgba(199, 168, 107, 0.72);
    transform: translateY(-1px);
}

.category-chip.active {
    color: var(--cream-light);
    background: linear-gradient(135deg, var(--olive), var(--olive-dark));
    border-color: rgba(199, 168, 107, 0.5);
    box-shadow: 0 10px 24px rgba(47, 58, 31, 0.14);
}

.category-chips.has-error {
    padding: 10px;
    border: 1px solid rgba(138, 47, 36, 0.42);
    border-radius: 14px;
    background: rgba(138, 47, 36, 0.06);
}

/* TOASTS */
.toast-container {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 120;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
    pointer-events: none;
}

.toast {
    padding: 13px 15px;
    color: var(--cream-light);
    background: var(--olive-dark);
    border: 1px solid rgba(255, 249, 239, 0.16);
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(21, 27, 15, 0.22);
    font-weight: 800;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: linear-gradient(135deg, var(--olive), var(--olive-dark));
}

.toast-error {
    background: linear-gradient(135deg, #7D2D20, #4C1D16);
}

.toast-warning {
    color: var(--olive-dark);
    background: linear-gradient(135deg, var(--gold), #EAD7A8);
    border-color: rgba(47, 58, 31, 0.12);
}

.moment-card.is-new {
    animation: postCreated 0.9s ease both;
}

@keyframes postCreated {
    0% {
        box-shadow: 0 0 0 0 rgba(199, 168, 107, 0);
        transform: translateY(-8px);
    }
    45% {
        box-shadow: 0 0 0 6px rgba(199, 168, 107, 0.22), var(--shadow-soft);
    }
    100% {
        box-shadow: 0 18px 42px rgba(47, 58, 31, 0.1);
        transform: translateY(0);
    }
}

/* FLOATING POST BUTTON */
.floating-post-button .camera-mark {
    flex: 0 0 auto;
}

.upload-preview {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background: rgba(85, 107, 47, 0.08);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

.upload-preview input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.upload-preview label {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    color: var(--olive-dark);
}

.upload-preview label span {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
}

.upload-preview label small {
    color: var(--muted);
}

.upload-preview img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    opacity: 0;
}

.upload-preview.has-image img {
    opacity: 1;
}

.upload-preview.has-image label {
    color: var(--cream-light);
    background: linear-gradient(180deg, transparent, rgba(47, 58, 31, 0.64));
    align-content: end;
}

.feed-fields {
    display: grid;
    gap: 16px;
}

.upload-preview.upload-dropzone {
    min-height: min(58vh, 540px);
    background:
        linear-gradient(135deg, rgba(255, 249, 239, 0.96), rgba(247, 241, 227, 0.7)),
        rgba(85, 107, 47, 0.06);
    border: 1.5px dashed rgba(85, 107, 47, 0.42);
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(199, 168, 107, 0.14);
}

.upload-preview.upload-dropzone.is-dragging {
    border-color: var(--gold);
    box-shadow: inset 0 0 0 1px rgba(199, 168, 107, 0.32), 0 18px 44px rgba(47, 58, 31, 0.12);
}

.upload-preview.upload-dropzone.has-error {
    border-color: rgba(138, 47, 36, 0.72);
    box-shadow: inset 0 0 0 1px rgba(138, 47, 36, 0.16), 0 0 0 4px rgba(138, 47, 36, 0.08);
}

.upload-preview.upload-dropzone label span {
    color: var(--olive-dark);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.upload-preview.upload-dropzone label small {
    max-width: 260px;
    color: var(--muted);
    line-height: 1.35;
}

.upload-preview.upload-dropzone img {
    min-height: min(58vh, 540px);
}

.upload-preview.upload-dropzone.has-image label {
    opacity: 0;
    pointer-events: none;
    background: transparent;
}

.image-modal {
    z-index: 90;
}

.image-modal figure {
    display: grid;
    gap: 14px;
    justify-items: center;
    max-width: min(1120px, calc(100vw - 44px));
}

.image-modal img {
    max-width: min(1120px, calc(100vw - 44px));
    max-height: calc(100svh - 116px);
    width: auto;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.image-modal figcaption {
    max-width: min(720px, calc(100vw - 44px));
    color: rgba(255, 249, 239, 0.86);
    text-align: center;
    font-weight: 750;
}

.image-modal button {
    color: var(--olive-dark);
}

/* Music */
.music-section {
    background:
        radial-gradient(circle at 18% 30%, rgba(199, 168, 107, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(47, 58, 31, 0.05), rgba(255, 249, 239, 0));
}

.music-layout,
.event-layout,
.social-preview {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.music-card {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    padding: 28px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 249, 239, 0.94), rgba(247, 241, 227, 0.76)),
        var(--cream-light);
    border: 1px solid rgba(199, 168, 107, 0.34);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(47, 58, 31, 0.12);
}

.music-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, var(--gold), var(--olive));
}

.music-art {
    min-height: 150px;
    display: grid;
    place-items: center;
    color: var(--cream-light);
    background:
        radial-gradient(circle at 68% 24%, rgba(199, 168, 107, 0.36), transparent 34%),
        linear-gradient(135deg, rgba(85, 107, 47, 0.95), rgba(47, 58, 31, 0.96)),
        var(--olive);
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 249, 239, 0.12);
}

.music-art span {
    font-size: 4.2rem;
}

.music-card-copy h3 {
    color: var(--olive-dark);
}

.music-card-copy p:not(.eyebrow) {
    margin-top: 8px;
}

.music-actions {
    grid-column: 1 / -1;
}

.music-frame {
    grid-column: 1 / -1;
}

.music-frame iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 18px;
}

/* RSVP PREMIUM */
.rsvp-page {
    background:
        radial-gradient(circle at 18% 8%, rgba(199, 168, 107, 0.18), transparent 32%),
        radial-gradient(circle at 82% 14%, rgba(85, 107, 47, 0.12), transparent 30%),
        linear-gradient(180deg, #FFF9EF 0%, #F5EBDC 100%);
}

.rsvp-shell {
    position: relative;
    min-height: 100vh;
    padding: 132px 18px 90px;
    overflow: hidden;
}

.rsvp-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(85, 107, 47, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 107, 47, 0.05) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

.rsvp-card {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    margin: 0 auto;
    padding: clamp(20px, 3vw, 34px);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 249, 239, 0.96), rgba(255, 252, 246, 0.9)),
        radial-gradient(circle at top right, rgba(199, 168, 107, 0.16), transparent 34%);
    border: 1px solid rgba(199, 168, 107, 0.42);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(47, 58, 31, 0.16);
}

.rsvp-card::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    bottom: 18px;
    left: 18px;
    pointer-events: none;
    border: 1px solid rgba(199, 168, 107, 0.2);
    border-radius: 22px;
}

.rsvp-hero,
.rsvp-wizard,
.rsvp-success,
.rsvp-start,
.rsvp-card .notice {
    position: relative;
    z-index: 1;
}

.rsvp-hero {
    display: grid;
    gap: 12px;
    min-height: 260px;
    align-content: center;
    padding: clamp(26px, 5vw, 54px);
    color: var(--cream-light);
    background:
        linear-gradient(135deg, rgba(37, 45, 25, 0.94), rgba(85, 107, 47, 0.84)),
        radial-gradient(circle at 74% 26%, rgba(199, 168, 107, 0.28), transparent 34%);
    border: 1px solid rgba(199, 168, 107, 0.34);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 249, 239, 0.12), 0 18px 48px rgba(47, 58, 31, 0.22);
}

.rsvp-hero h1 {
    max-width: 680px;
    color: var(--cream-light);
    font-size: clamp(3rem, 9vw, 6rem);
    line-height: 0.92;
}

.rsvp-hero p {
    max-width: 620px;
    color: rgba(255, 249, 239, 0.84);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.rsvp-hero strong {
    width: fit-content;
    margin-top: 8px;
    padding: 9px 14px;
    color: #FFF4D8;
    background: rgba(255, 249, 239, 0.08);
    border: 1px solid rgba(199, 168, 107, 0.38);
    border-radius: 999px;
    font-size: 0.86rem;
    text-transform: uppercase;
}

.rsvp-start {
    display: flex;
    justify-content: center;
    padding: 28px 0 4px;
}

.rsvp-wizard {
    display: grid;
    gap: 26px;
    padding: clamp(22px, 4vw, 38px) clamp(4px, 2vw, 18px) 4px;
}

.rsvp-wizard[hidden],
.rsvp-success[hidden],
[hidden].rsvp-start {
    display: none;
}

.rsvp-progress {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    align-items: center;
}

.rsvp-progress span {
    display: grid;
    min-height: 38px;
    place-items: center;
    color: rgba(47, 58, 31, 0.58);
    background: rgba(255, 249, 239, 0.78);
    border: 1px solid rgba(199, 168, 107, 0.26);
    border-radius: 999px;
    font-weight: 850;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rsvp-progress span.active {
    color: var(--cream-light);
    background: linear-gradient(135deg, var(--olive), var(--olive-dark));
    transform: translateY(-2px);
}

.rsvp-progress span.complete {
    color: var(--olive-dark);
    background: rgba(199, 168, 107, 0.22);
}

.rsvp-step {
    display: none;
    gap: 16px;
    animation: rsvpStepIn 0.28s ease both;
}

.rsvp-step.active {
    display: grid;
}

.rsvp-step h2 {
    color: var(--olive-dark);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
}

.rsvp-step > p:not(.eyebrow) {
    max-width: 620px;
    color: var(--muted);
    font-size: 1rem;
}

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

.rsvp-fields label,
.rsvp-step > label,
.rsvp-inline-choice {
    display: grid;
    gap: 8px;
    color: var(--olive-dark);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.rsvp-fields input,
.rsvp-fields textarea,
.rsvp-step > label textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    color: var(--text);
    background: rgba(255, 252, 246, 0.92);
    border: 1px solid rgba(85, 107, 47, 0.18);
    border-radius: 16px;
    outline: none;
    font: inherit;
    text-transform: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rsvp-fields textarea,
.rsvp-step > label textarea {
    min-height: 124px;
    resize: vertical;
}

.rsvp-fields input:focus,
.rsvp-fields textarea:focus,
.rsvp-step > label textarea:focus {
    background: #FFFDF8;
    border-color: rgba(199, 168, 107, 0.78);
    box-shadow: 0 0 0 4px rgba(199, 168, 107, 0.13);
}

.rsvp-fields label.has-error input,
.rsvp-fields label.has-error textarea,
.rsvp-fields input.has-error {
    border-color: rgba(125, 45, 32, 0.55);
    box-shadow: 0 0 0 4px rgba(125, 45, 32, 0.08);
}

.wide-field {
    grid-column: 1 / -1;
}

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

.rsvp-choice-card {
    display: grid;
    gap: 9px;
    min-height: 172px;
    padding: 24px;
    cursor: pointer;
    text-align: left;
    color: var(--olive-dark);
    background: rgba(255, 252, 246, 0.88);
    border: 1px solid rgba(199, 168, 107, 0.34);
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(47, 58, 31, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rsvp-choice-card:hover,
.rsvp-choice-card.selected {
    transform: translateY(-3px);
    border-color: rgba(199, 168, 107, 0.82);
    box-shadow: 0 22px 50px rgba(47, 58, 31, 0.14);
}

.rsvp-choice-card.selected {
    background: linear-gradient(135deg, rgba(85, 107, 47, 0.12), rgba(199, 168, 107, 0.18));
}

.rsvp-choice-card span {
    width: fit-content;
    padding: 6px 10px;
    color: var(--cream-light);
    background: var(--olive-dark);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.rsvp-choice-card strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    line-height: 1;
}

.rsvp-choice-card small {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.rsvp-inline-choice {
    align-content: start;
    padding: 0;
    border: 0;
}

.rsvp-inline-choice div {
    display: flex;
    gap: 8px;
}

.rsvp-inline-choice button {
    min-height: 54px;
    padding: 0 18px;
    color: var(--olive-dark);
    background: rgba(255, 252, 246, 0.92);
    border: 1px solid rgba(85, 107, 47, 0.18);
    border-radius: 16px;
    font-weight: 850;
}

.rsvp-inline-choice button.selected {
    color: var(--cream-light);
    background: var(--olive-dark);
    border-color: var(--olive-dark);
}

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

.rsvp-summary article {
    padding: 16px;
    background: rgba(255, 252, 246, 0.82);
    border: 1px solid rgba(199, 168, 107, 0.25);
    border-radius: 16px;
}

.rsvp-summary span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.rsvp-summary strong {
    display: block;
    margin-top: 6px;
    color: var(--olive-dark);
    font-size: 0.98rem;
    line-height: 1.45;
    word-break: break-word;
}

.rsvp-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.rsvp-actions .btn {
    min-width: 180px;
}

.rsvp-success {
    display: none;
    gap: 14px;
    margin-top: 28px;
    padding: clamp(28px, 5vw, 54px);
    text-align: center;
    background: rgba(255, 252, 246, 0.9);
    border: 1px solid rgba(199, 168, 107, 0.36);
    border-radius: 22px;
    box-shadow: 0 18px 52px rgba(47, 58, 31, 0.1);
}

.rsvp-success.is-visible {
    display: grid;
}

.rsvp-success span {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.rsvp-success h2 {
    color: var(--olive-dark);
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 0.96;
}

.rsvp-success p {
    width: min(620px, 100%);
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.65;
}

.rsvp-success .success-actions {
    justify-content: center;
}

@keyframes rsvpStepIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin */
.admin-shell {
    padding-top: 132px;
    padding-bottom: 92px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.admin-stats article {
    padding: 18px;
}

.admin-stats span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-stats strong {
    display: block;
    margin-top: 8px;
    color: var(--olive-dark);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.6rem;
    line-height: 1;
}

.admin-section {
    margin-top: 22px;
    padding: 24px;
    background: rgba(255, 249, 239, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

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

.admin-section-head h2 {
    color: var(--olive-dark);
    font-size: 2.2rem;
}

.admin-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--olive-dark);
    font-size: 0.76rem;
    text-transform: uppercase;
}

td {
    color: var(--muted);
    font-size: 0.9rem;
}

.status-pill {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    font-weight: 850;
}

.status-pill.sim,
.status-pill.confirmado {
    color: var(--olive-dark);
    background: rgba(85, 107, 47, 0.13);
}

.status-pill.nao,
.status-pill.nao_podera_ir {
    color: #7D2D20;
    background: rgba(125, 45, 32, 0.1);
}

.admin-filter select {
    min-height: 42px;
    padding: 8px 12px;
    color: var(--olive-dark);
    background: var(--cream-light);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.copy-chip {
    display: inline-flex;
    min-height: 28px;
    margin-top: 6px;
    padding: 0 9px;
    color: var(--olive-dark);
    background: rgba(199, 168, 107, 0.14);
    border: 1px solid rgba(199, 168, 107, 0.28);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
}

.message-details summary {
    color: var(--olive-dark);
    cursor: pointer;
    font-weight: 850;
}

.message-details p {
    max-width: 320px;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.45;
}

.admin-posts {
    display: grid;
    gap: 14px;
}

.admin-posts article {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-post-image {
    height: 120px;
}

.admin-posts strong {
    color: var(--olive-dark);
}

.admin-posts p {
    margin-top: 4px;
}

.admin-posts span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.admin-actions button {
    min-height: 34px;
    padding: 0 12px;
    color: var(--olive-dark);
    background: var(--cream-light);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 850;
}

.admin-actions .danger {
    color: #7D2D20;
}

/* Big Day */
.big-day-shell {
    padding-top: 132px;
    padding-bottom: 92px;
}

.big-day-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    min-height: 340px;
    padding: 46px;
    color: var(--cream-light);
    background:
        linear-gradient(135deg, rgba(47, 58, 31, 0.98), rgba(85, 107, 47, 0.74)),
        var(--olive-dark);
    border-radius: var(--radius);
}

.big-day-hero h1,
.big-day-hero p {
    color: var(--cream-light);
}

.big-day-hero p:not(.eyebrow) {
    margin-top: 12px;
    color: rgba(255, 249, 239, 0.78);
}

.big-day-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.mini-actions {
    margin-top: 14px;
}

.mini-actions a {
    color: var(--olive-dark);
    font-weight: 850;
}

.live-feed-grid .gallery-item {
    grid-column: span 3;
    grid-row: span 12;
}

/* Social */
.phone-preview {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    min-height: 420px;
    padding: 22px;
    background: var(--olive-dark);
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.phone-preview::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    width: 82px;
    height: 5px;
    background: rgba(255, 249, 239, 0.38);
    border-radius: 99px;
    transform: translateX(-50%);
}

.phone-preview button {
    height: 100%;
    min-height: 300px;
}

.phone-preview button:nth-child(2) {
    margin-top: 42px;
}

.phone-preview button:nth-child(3) {
    margin-top: 84px;
}

/* Gifts */
.gift-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.gift-grid article {
    position: relative;
    overflow: hidden;
    border-color: rgba(199, 168, 107, 0.24);
    border-radius: 18px;
}

.gift-grid article::before {
    content: "";
    display: block;
    width: 46px;
    height: 1px;
    margin-bottom: 16px;
    background: var(--gold);
}

.pix-box {
    margin-top: 18px;
    padding: 22px;
    background:
        radial-gradient(circle at 84% 20%, rgba(199, 168, 107, 0.22), transparent 28%),
        var(--olive-dark);
    color: var(--cream-light);
    border: 1px solid rgba(199, 168, 107, 0.28);
    border-radius: 18px;
}

.pix-box span,
.pix-box small {
    display: block;
    color: rgba(255, 249, 239, 0.7);
}

.pix-box strong {
    display: block;
    margin: 6px 0;
    overflow-wrap: anywhere;
    font-size: 1.2rem;
}

/* Forms */
.compact-form {
    margin-top: 24px;
}

.message-wall,
.playlist-list {
    display: grid;
    gap: 14px;
}

.message-wall article p {
    color: var(--text);
}

.message-wall article strong,
.playlist-list article strong {
    display: block;
    margin-top: 12px;
    color: var(--olive-dark);
}

.message-wall article small,
.playlist-list article small {
    color: var(--muted);
}

/* Modals */
.post-modal-panel .premium-form {
    align-items: stretch;
}

/* TELAO PREMIUM */
.telao-page {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    color: var(--cream-light);
    background: #10150c;
}

.telao-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: clamp(14px, 2vh, 22px);
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    padding: clamp(24px, 3vw, 52px);
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 20%, rgba(199, 168, 107, 0.18), transparent 34%),
        radial-gradient(circle at 78% 72%, rgba(85, 107, 47, 0.24), transparent 32%),
        linear-gradient(135deg, #10150c, #202817 48%, #11170d);
}

.telao-texture {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(255, 249, 239, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 249, 239, 0.026) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
}

.telao-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 42%, rgba(0, 0, 0, 0.32));
    pointer-events: none;
}

.telao-header,
.telao-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
}

.telao-header p {
    color: var(--gold);
    font-size: clamp(1rem, 1.2vw, 1.35rem);
    font-weight: 850;
}

.telao-header h1 {
    color: var(--cream-light);
    font-size: clamp(4.4rem, 7vw, 9rem);
    line-height: 0.82;
}

.telao-header h1 span {
    color: var(--gold);
}

.telao-header strong {
    max-width: 420px;
    color: rgba(255, 249, 239, 0.76);
    font-size: clamp(0.95rem, 1.2vw, 1.2rem);
    text-align: right;
}

.telao-main {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 25vw);
    gap: clamp(18px, 2.6vw, 40px);
}

.telao-feature {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: rgba(255, 249, 239, 0.06);
    border: 1px solid rgba(199, 168, 107, 0.22);
    border-radius: 22px;
    box-shadow: 0 38px 100px rgba(0, 0, 0, 0.34);
}

.telao-photo-frame,
.telao-photo-frame img,
.telao-photo-shade {
    position: absolute;
    inset: 0;
}

.telao-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.04);
    transform: scale(1.018);
    transition: opacity 0.8s ease, transform 7s ease;
}

.telao-feature:not(.is-changing) .telao-photo-frame img {
    animation: telaoDrift 8s ease-in-out infinite alternate;
}

.telao-feature.is-changing .telao-photo-frame img {
    opacity: 0.42;
    transform: scale(1.055);
}

.telao-photo-shade {
    background:
        linear-gradient(90deg, rgba(8, 11, 6, 0.78), rgba(8, 11, 6, 0.14) 48%, rgba(8, 11, 6, 0.28)),
        linear-gradient(180deg, transparent 48%, rgba(8, 11, 6, 0.72));
}

@keyframes telaoDrift {
    from { transform: scale(1.018) translate3d(0, 0, 0); }
    to { transform: scale(1.055) translate3d(1.2%, -0.8%, 0); }
}

.telao-feature-copy {
    position: absolute;
    left: clamp(24px, 4vw, 70px);
    right: clamp(24px, 4vw, 70px);
    bottom: clamp(24px, 4vw, 62px);
    max-width: 760px;
    transition: opacity 0.42s ease, transform 0.42s ease;
}

.telao-feature.is-changing .telao-feature-copy {
    opacity: 0;
    transform: translateY(16px);
}

.telao-feature-copy span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 12px;
    color: #16180f;
    background: var(--gold);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.telao-feature-copy h2 {
    margin-top: 16px;
    color: var(--cream-light);
    font-size: clamp(3.5rem, 6vw, 7.6rem);
    line-height: 0.86;
}

.telao-feature-copy p {
    max-width: 660px;
    margin-top: 16px;
    color: rgba(255, 249, 239, 0.86);
    font-size: clamp(1.1rem, 1.5vw, 1.45rem);
}

.telao-feature-copy small {
    display: block;
    margin-top: 12px;
    color: rgba(255, 249, 239, 0.62);
    font-weight: 800;
}

.telao-side {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
}

.telao-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 38px;
    padding: 0 14px;
    color: var(--cream-light);
    background: rgba(255, 249, 239, 0.08);
    border: 1px solid rgba(199, 168, 107, 0.24);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-weight: 850;
}

.telao-live-badge i {
    width: 9px;
    height: 9px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(199, 168, 107, 0.12);
}

.telao-post-list {
    min-height: 0;
    display: grid;
    gap: 12px;
    align-content: start;
    overflow: hidden;
}

.telao-post-list article {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    min-height: 96px;
    padding: 10px;
    color: var(--cream-light);
    background: rgba(255, 249, 239, 0.08);
    border: 1px solid rgba(255, 249, 239, 0.1);
    border-radius: 16px;
    opacity: 0.68;
    transform: translateX(0);
    transition: opacity 0.35s ease, border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
    backdrop-filter: blur(10px);
}

.telao-post-list article.is-active {
    opacity: 1;
    border-color: rgba(199, 168, 107, 0.46);
    background: rgba(255, 249, 239, 0.13);
    transform: translateX(-8px);
}

.telao-post-list img {
    width: 84px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
}

.telao-post-list strong {
    display: block;
    color: var(--cream-light);
    line-height: 1.1;
}

.telao-post-list span {
    display: block;
    margin-top: 3px;
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 850;
}

.telao-post-list p {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: rgba(255, 249, 239, 0.68);
    font-size: 0.82rem;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.telao-message-panel {
    display: grid;
    place-items: center;
    min-height: 86px;
}

.telao-message {
    width: min(920px, 100%);
    padding: 16px 28px;
    text-align: center;
    background: rgba(255, 249, 239, 0.08);
    border: 1px solid rgba(199, 168, 107, 0.2);
    border-radius: 999px;
    transition: opacity 0.32s ease, transform 0.32s ease;
    backdrop-filter: blur(12px);
}

.telao-message.is-changing {
    opacity: 0;
    transform: translateY(10px);
}

.telao-message p {
    color: rgba(255, 249, 239, 0.9);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.5rem, 2.4vw, 2.6rem);
    line-height: 1.05;
}

.telao-message strong {
    display: block;
    margin-top: 4px;
    color: var(--gold);
}

.telao-footer {
    grid-template-columns: minmax(270px, 0.75fr) minmax(0, 1fr) auto;
    align-items: center;
}

.telao-footer span,
.telao-footer strong {
    display: block;
}

.telao-footer span {
    color: rgba(255, 249, 239, 0.68);
    font-weight: 850;
}

.telao-footer strong {
    margin-top: 3px;
    color: var(--cream-light);
    font-size: clamp(1rem, 1.25vw, 1.22rem);
}

.telao-ticker {
    display: flex;
    gap: 18px;
    overflow: hidden;
    color: rgba(255, 249, 239, 0.72);
    white-space: nowrap;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.telao-ticker span {
    display: inline-flex;
    flex: 0 0 auto;
    animation: telaoTicker 28s linear infinite;
}

@keyframes telaoTicker {
    from { transform: translateX(24vw); }
    to { transform: translateX(-80vw); }
}

.telao-qr {
    display: grid;
    place-items: center;
    width: 92px;
    aspect-ratio: 1;
    color: var(--gold);
    background:
        linear-gradient(90deg, rgba(199, 168, 107, 0.42) 1px, transparent 1px),
        linear-gradient(rgba(199, 168, 107, 0.42) 1px, transparent 1px),
        rgba(255, 249, 239, 0.08);
    background-size: 15px 15px;
    border: 1px solid rgba(199, 168, 107, 0.38);
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.telao-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.telao-qr-callout {
    width: min(300px, 24vw);
    min-height: 92px;
    aspect-ratio: auto;
    justify-items: start;
    padding: 14px 16px;
    text-align: left;
    background: rgba(255, 249, 239, 0.08);
    background-image: none;
}

.telao-qr-callout span {
    color: var(--cream-light);
    font-size: 0.82rem;
    line-height: 1.15;
}

.telao-qr-callout small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 249, 239, 0.66);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}

/* PREMIUM LIVE WALL / TELAO */
.telao-shell {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    padding: clamp(26px, 3.2vw, 58px);
    background:
        radial-gradient(circle at 18% 12%, rgba(199, 168, 107, 0.22), transparent 30%),
        radial-gradient(circle at 82% 86%, rgba(85, 107, 47, 0.34), transparent 34%),
        linear-gradient(135deg, #080b06 0%, #182010 46%, #0d1209 100%);
}

.telao-background {
    opacity: 0.26;
    background-size: 52px 52px;
}

.telao-header {
    align-items: center;
}

.telao-brand {
    display: grid;
    gap: 6px;
}

.telao-date {
    letter-spacing: 0;
}

.telao-header strong {
    padding: 12px 16px;
    background: rgba(255, 249, 239, 0.08);
    border: 1px solid rgba(199, 168, 107, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(14px);
}

.telao-featured {
    border-color: rgba(199, 168, 107, 0.34);
    border-radius: 28px;
}

.telao-featured-image img {
    object-position: center;
}

.telao-featured-overlay {
    width: min(760px, calc(100% - 48px));
    padding: clamp(22px, 3vw, 34px);
    background: linear-gradient(135deg, rgba(8, 11, 6, 0.76), rgba(27, 34, 18, 0.5));
    border: 1px solid rgba(199, 168, 107, 0.26);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.telao-feature-copy em {
    display: inline-flex;
    margin-top: 14px;
    color: var(--gold);
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 850;
}

.telao-sidebar {
    padding: 16px;
    background: rgba(255, 249, 239, 0.06);
    border: 1px solid rgba(199, 168, 107, 0.18);
    border-radius: 28px;
    backdrop-filter: blur(14px);
}

.telao-post-list article {
    border-radius: 18px;
}

.telao-post-list article.is-active {
    box-shadow: inset 4px 0 0 var(--gold), 0 16px 34px rgba(0, 0, 0, 0.2);
}

.telao-message-panel {
    min-height: 82px;
}

.telao-message {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.telao-footer {
    padding: 14px 16px;
    background: rgba(255, 249, 239, 0.06);
    border: 1px solid rgba(199, 168, 107, 0.18);
    border-radius: 24px;
    backdrop-filter: blur(14px);
}

.telao-footer small {
    display: block;
    margin-top: 4px;
    color: var(--gold);
    font-weight: 850;
}

.telao-qr-card {
    position: relative;
    overflow: visible;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.telao-qr-card img + small {
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: max-content;
    color: rgba(255, 249, 239, 0.76);
    font-size: 0.74rem;
    text-transform: none;
    transform: translateX(-50%);
}

@media (max-width: 1180px), (max-height: 720px) {
    .telao-stage {
        padding: 22px;
        gap: 12px;
    }

    .telao-main {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 18px;
    }

    .telao-header h1 {
        font-size: clamp(3.6rem, 6vw, 6rem);
    }

    .telao-feature-copy h2 {
        font-size: clamp(3rem, 5vw, 5.4rem);
    }

    .telao-post-list article {
        grid-template-columns: 70px minmax(0, 1fr);
        min-height: 82px;
    }

    .telao-post-list img {
        width: 70px;
        height: 62px;
    }
}

@media (max-width: 860px) {
    .telao-stage {
        overflow-y: auto;
    }

    .telao-header,
    .telao-footer,
    .telao-main {
        grid-template-columns: 1fr;
    }

    .telao-header strong {
        text-align: left;
    }

    .telao-main {
        min-height: 64vh;
    }

    .telao-side {
        display: none;
    }

    .telao-qr {
        display: none;
    }
}

/* Screen */
.screen-page {
    min-height: 100vh;
    overflow: hidden;
    color: var(--cream-light);
    background: var(--olive-dark);
}

.screen-shell {
    min-height: 100vh;
    padding: 36px;
    background:
        linear-gradient(90deg, rgba(47, 58, 31, 0.92), rgba(47, 58, 31, 0.76)),
        var(--olive-dark);
}

.screen-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.screen-hero p,
.screen-hero small {
    color: rgba(255, 249, 239, 0.76);
    font-weight: 850;
}

.screen-hero h1 {
    color: var(--cream-light);
    font-size: 4.8rem;
}

.screen-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
}

.screen-photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 190px;
    gap: 14px;
}

.screen-photos article {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 249, 239, 0.08);
}

.screen-photos article:nth-child(5n + 1) {
    grid-column: span 2;
    grid-row: span 2;
}

.screen-photos span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    color: var(--olive-dark);
    background: rgba(255, 249, 239, 0.82);
    border-radius: 999px;
    font-weight: 850;
}

.screen-messages {
    padding: 22px;
    background: rgba(255, 249, 239, 0.1);
    border: 1px solid rgba(255, 249, 239, 0.16);
    border-radius: var(--radius);
}

.screen-messages h2 {
    color: var(--cream-light);
}

.screen-messages article {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 249, 239, 0.16);
}

.screen-messages p {
    color: rgba(255, 249, 239, 0.8);
}

.screen-messages strong {
    display: block;
    margin-top: 8px;
    color: var(--gold);
}

/* Responsive */
@media (max-width: 1180px) {
    h1 {
        font-size: 4.8rem;
    }

    h2 {
        font-size: 3rem;
    }

    .editorial-hero {
        padding-left: 28px;
        padding-right: 28px;
    }

    .hero-portrait,
    .hero-portrait img,
    .photo-placeholder {
        min-height: 100svh;
    }

    .hero-floating-card {
        display: none;
    }

    .admin-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .big-day-grid,
    .gift-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .premium-event-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.45rem;
    }

    .site-nav {
        padding-left: 18px;
        padding-right: 18px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        inset: 68px 14px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 18px;
        color: var(--olive-dark);
        background: rgba(255, 249, 239, 0.96);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

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

    .nav-links a {
        min-height: 44px;
    }

    .editorial-hero {
        grid-template-columns: 1fr;
        align-items: end;
        min-height: auto;
        padding: 54svh 18px 28px;
    }

    .hero-portrait {
        min-height: 100%;
    }

    .hero-portrait img,
    .photo-placeholder {
        min-height: 100%;
        object-position: center top;
    }

    .hero-portrait figcaption {
        left: 16px;
        bottom: 16px;
    }

    .hero-glass-card {
        padding: 24px;
        border-radius: 18px;
    }

    .hero-copy h1 {
        font-size: clamp(3.6rem, 16vw, 5.2rem);
    }

    .hero-floating-card {
        display: none;
    }

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

    .editorial-story,
    .two-columns,
    .music-layout,
    .event-layout,
    .event-premium-layout,
    .social-preview {
        grid-template-columns: 1fr;
    }

    .story-timeline::before {
        left: 18px;
    }

    .story-chapter,
    .story-chapter:nth-child(even) {
        grid-template-columns: 1fr;
        width: 100%;
        padding-left: 34px;
        justify-self: stretch;
    }

    .story-chapter:nth-child(even) .story-chapter-copy,
    .story-chapter:nth-child(even) figure {
        order: initial;
    }

    .story-chapter figure {
        aspect-ratio: 16 / 10;
    }

    .story-stack {
        min-height: 460px;
    }

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

    .editorial-gallery,
    .live-feed-grid,
    .story-photo-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .editorial-gallery .gallery-item,
    .editorial-gallery .gallery-item:nth-child(n),
    .couple-gallery.premium-collage .gallery-item:nth-child(n),
    .venue-gallery .gallery-item,
    .venue-gallery .gallery-item:nth-child(n),
    .venue-collage .gallery-item:nth-child(n),
    .live-feed-grid .gallery-item,
    .story-photo-grid button {
        grid-column: span 3;
        grid-row: span 12;
    }

    .premium-collage {
        grid-auto-rows: 28px;
    }

    .moments-grid {
        column-count: 2;
    }

    .feed-app {
        padding: calc(74px + env(safe-area-inset-top)) 0 118px;
    }

    .feed-layout {
        display: block;
        width: min(640px, 100%);
    }

    .feed-main-column {
        width: 100%;
    }

    .feed-sidebar {
        display: none;
    }

    .stories-strip,
    .feed-intro,
    .feed-composer,
    .post-create-card,
    .instagram-feed,
    .load-more-wrap,
    .feed-skeleton {
        width: calc(100% - 24px);
        margin-left: auto;
        margin-right: auto;
    }

    .post-create-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .post-create-card .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .floating-post-button {
        display: inline-flex;
        right: 16px;
        bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .feed-bottom-nav {
        display: grid;
    }

    .instagram-feed {
        display: grid;
        grid-template-columns: 1fr;
    }

    .post-photo {
        max-height: 720px;
    }

    .rsvp-form,
    .social-post-form {
        grid-template-columns: 1fr;
    }

    .post-modal-content {
        width: min(640px, 100%);
        max-height: calc(100svh - 18px);
        border-radius: 18px 18px 0 0;
    }

    .post-modal-content .post-modal-heading {
        padding: 26px 76px 18px 24px;
    }

    .create-post-form {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .upload-preview.upload-dropzone,
    .upload-preview.upload-dropzone img {
        min-height: min(50svh, 420px);
    }

    .post-modal-footer {
        bottom: -18px;
        margin: 4px -18px -18px;
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    }

    .rsvp-shell {
        padding-top: 106px;
    }

    .rsvp-card {
        border-radius: 22px;
    }

    .rsvp-card::before {
        display: none;
    }

    .rsvp-fields,
    .rsvp-choice-grid,
    .rsvp-summary {
        grid-template-columns: 1fr;
    }

    .rsvp-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .rsvp-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .rsvp-actions [data-rsvp-submit] {
        grid-column: 1 / -1;
    }

    .wide-field {
        grid-column: auto;
    }

    .feed-hero,
    .big-day-hero {
        padding: 30px;
        min-height: 320px;
        align-items: end;
    }

    .big-day-hero {
        display: grid;
    }

    .premium-event-cards {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-section-head {
        display: grid;
    }

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

    .screen-messages {
        display: none;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 3.25rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.45rem;
    }

    .brand {
        font-size: 1.55rem;
    }

    .section {
        padding: 68px 0;
    }

    .editorial-hero {
        gap: 22px;
        padding-top: 48svh;
    }

    .hero-copy h1 {
        margin-bottom: 18px;
    }

    .hero-portrait,
    .hero-portrait img,
    .photo-placeholder {
        min-height: 100%;
    }

    .hero-portrait figcaption {
        width: 190px;
        padding: 16px;
    }

    .premium-countdown div {
        min-height: 78px;
    }

    .premium-countdown strong {
        font-size: 2.35rem;
    }

    .btn {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .rsvp-shell {
        padding: 92px 12px 64px;
    }

    .rsvp-card {
        padding: 14px;
    }

    .rsvp-hero {
        min-height: 220px;
        padding: 24px;
        border-radius: 18px;
    }

    .rsvp-hero h1 {
        font-size: clamp(3rem, 18vw, 4.5rem);
    }

    .rsvp-wizard {
        gap: 20px;
        padding: 20px 2px 0;
    }

    .rsvp-progress {
        gap: 6px;
    }

    .rsvp-progress span {
        min-height: 34px;
        font-size: 0.82rem;
    }

    .rsvp-choice-card {
        min-height: 150px;
        padding: 20px;
    }

    .rsvp-choice-card strong {
        font-size: 1.72rem;
    }

    .rsvp-fields input,
    .rsvp-fields textarea,
    .rsvp-step > label textarea,
    .rsvp-inline-choice button {
        min-height: 52px;
        border-radius: 14px;
    }

    .rsvp-actions {
        position: sticky;
        bottom: 0;
        margin: 0 -14px -14px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 249, 239, 0.94);
        border-top: 1px solid rgba(199, 168, 107, 0.22);
    }

    .rsvp-success {
        padding: 26px 18px;
    }

    .hero-actions,
    .section-actions,
    .today-actions,
    .success-actions,
    .big-day-actions,
    .music-actions {
        width: 100%;
    }

    .story-stack {
        min-height: 360px;
    }

    .letter-copy {
        font-size: 1.75rem;
    }

    .letter-signature {
        font-size: 1.9rem;
    }

    .story-chapter {
        padding-left: 26px;
        gap: 16px;
    }

    .story-chapter-copy {
        padding: 22px;
    }

    .story-chapter figure {
        aspect-ratio: 4 / 3;
        border-width: 5px;
    }

    .story-photo:nth-child(1) {
        height: 250px;
    }

    .story-photo:nth-child(2) {
        height: 210px;
    }

    .story-photo:nth-child(3) {
        display: none;
    }

    .gallery-block-head {
        display: grid;
        align-items: start;
    }

    .editorial-gallery,
    .live-feed-grid,
    .story-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 42px;
    }

    .editorial-gallery .gallery-item,
    .editorial-gallery .gallery-item:nth-child(n),
    .couple-gallery.premium-collage .gallery-item:nth-child(n),
    .venue-gallery .gallery-item,
    .venue-gallery .gallery-item:nth-child(n),
    .venue-collage .gallery-item:nth-child(n),
    .live-feed-grid .gallery-item,
    .story-photo-grid button {
        grid-column: span 1;
        grid-row: span 5;
    }

    .couple-gallery.premium-collage .gallery-item:nth-child(1),
    .venue-collage .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 8;
    }

    .moments-grid {
        column-count: 1;
    }

    .feed-topbar {
        min-height: calc(62px + env(safe-area-inset-top));
        padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    }

    .feed-brand strong {
        font-size: 1.7rem;
    }

    .feed-brand span {
        font-size: 0.72rem;
    }

    .feed-publish-button {
        width: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
    }

    .feed-publish-button span {
        display: none;
    }

    .story-bubble {
        flex-basis: 78px;
    }

    .story-bubble span {
        width: 64px;
        height: 64px;
    }

    .story-bubble strong {
        max-width: 78px;
        font-size: 0.7rem;
    }

    .feed-composer {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 12px;
    }

    .post-create-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .post-create-card h2 {
        font-size: 1.55rem;
    }

    .post-create-icon {
        width: 36px;
        height: 28px;
    }

    .post-header {
        min-height: 62px;
        padding: 11px 12px;
    }

    .moment-card {
        border-radius: 12px;
    }

    .post-photo {
        aspect-ratio: 4 / 5;
        max-height: 640px;
    }

    .post-body {
        padding: 10px 12px 14px;
    }

    .post-action {
        width: 38px;
        height: 38px;
    }

    .feed-skeleton {
        grid-template-columns: 1fr;
    }

    .publish-fab {
        right: 14px;
        bottom: calc(82px + env(safe-area-inset-bottom));
        width: 58px;
        height: 58px;
        min-height: 58px;
        padding: 0;
        border-radius: 50%;
    }

    .publish-fab span {
        display: none;
    }

    .post-modal,
    .story-modal,
    .image-modal {
        padding: 12px;
    }

    .post-modal {
        place-items: end center;
    }

    .post-modal-panel,
    .story-modal-shell {
        padding: 22px;
        max-height: calc(100svh - 24px);
    }

    .post-modal-content {
        max-height: 100svh;
        padding: 0;
        border-radius: 18px 18px 0 0;
    }

    .post-modal-content .post-modal-heading {
        padding: 24px 68px 16px 20px;
    }

    .post-modal-content .post-modal-heading h2 {
        font-size: 1.95rem;
    }

    .create-post-form {
        padding: 16px;
    }

    .upload-preview.upload-dropzone,
    .upload-preview.upload-dropzone img {
        min-height: min(45svh, 360px);
    }

    .social-post-form {
        padding-bottom: 76px;
    }

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

    .category-chip {
        min-height: 42px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .upload-preview-tools {
        left: 10px;
        right: 10px;
        bottom: 10px;
        display: grid;
        align-items: stretch;
        background: var(--olive-dark);
    }

    .upload-preview-tools div:last-child {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .post-modal-footer {
        display: grid;
        grid-template-columns: 0.85fr 1.15fr;
        gap: 10px;
        margin: 4px -16px -16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    }

    .post-modal-footer .btn {
        width: 100%;
        min-height: 48px;
    }

    .toast-container {
        right: 12px;
        bottom: calc(142px + env(safe-area-inset-bottom));
        width: calc(100vw - 24px);
    }

    .post-screen-note {
        display: none;
    }

    .post-telao-hint {
        font-size: 0.74rem;
    }

    .image-lightbox {
        padding: 0;
    }

    .image-lightbox figure {
        width: 100%;
        min-height: 100svh;
        align-content: center;
        padding: 64px 12px 24px;
    }

    .image-lightbox img {
        max-height: calc(100svh - 190px);
        border-radius: 14px;
    }

    .music-card {
        grid-template-columns: 1fr;
    }

    .music-art {
        min-height: 120px;
    }

    .music-frame iframe {
        height: 380px;
    }

    .phone-preview {
        min-height: 360px;
        padding: 18px;
        border-radius: 24px;
    }

    .phone-preview button {
        min-height: 250px;
    }

    .gift-grid,
    .big-day-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-posts article {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .admin-post-image {
        height: 92px;
    }

    .screen-shell {
        padding: 18px;
    }

    .screen-hero {
        display: grid;
    }

    .screen-hero h1 {
        font-size: 3.2rem;
    }

    .screen-photos {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }
}
