/* Chi & Syl 2026 — Chocolate brown, gold, cream, navy (inspired by elegant celebration sites) */
@font-face {
    font-family: 'Edwardian Script ITC';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://db.onlinewebfonts.com/t/4527bde76d8fc7aed09f15a9ebfb7a75.woff2') format('woff2'),
         url('https://db.onlinewebfonts.com/t/4527bde76d8fc7aed09f15a9ebfb7a75.woff') format('woff');
}

:root {
    --chocolate: #3d2314;
    --chocolate-light: #5c3825;
    --gold: #c9a227;
    --gold-light: #e6c04a;
    --cream: #faf6f0;
    --cream-dark: #efe8dc;
    --navy: #1a2744;
    --navy-light: #2a3a5c;
    --white: #fff;
    --shadow: rgba(61, 35, 20, 0.12);
    --shadow-strong: rgba(61, 35, 20, 0.2);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-script: 'Parisienne', cursive;
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Manrope', sans-serif;
    --font-ui: 'Manrope', sans-serif;
    --font-story-aston: 'Edwardian Script ITC', 'Parisienne', cursive;
    /* Hero banner image starts below fixed .site-header (logo + padding + notch) */
    --hero-banner-below-header: calc(5.5rem + env(safe-area-inset-top, 0px));
    /* Inner pages (RSVP forms, etc.): keep content fully below fixed .site-header */
    --fixed-header-clearance: calc(8rem + env(safe-area-inset-top, 0px));
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* In-page anchors (e.g. #our-story) clear the fixed site header */
    scroll-padding-top: calc(var(--fixed-header-clearance) + 0.35rem);
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.98rem;
    color: var(--chocolate);
    background: var(--cream);
    line-height: 1.65;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-story-aston);
    font-weight: 400;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader-logo {
    width: min(34vw, 170px);
    height: auto;
    animation: pageLoaderPulse 0.9s ease-in-out infinite;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes pageLoaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.06); opacity: 1; }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--cream-dark);
}

/* Public pages (not home): keep <main> content below fixed .site-header */
body:not(.page-home) .main-content {
    padding-top: var(--fixed-header-clearance);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.logo-img {
    width: clamp(74px, 8.6vw, 102px);
    height: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-family: var(--font-ui);
    color: var(--chocolate);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
}

.nav-cta {
    background: var(--navy);
    color: var(--cream) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-cta:hover {
    background: var(--chocolate);
    color: var(--cream) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--chocolate);
}

/* Styled image frames — elegant borders, cropped fill */
.img-frame {
    position: relative;
    overflow: hidden;
    background: var(--cream-dark);
    box-shadow: 0 4px 20px var(--shadow), 0 0 0 1px var(--cream-dark);
}

.img-frame::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px solid var(--gold);
    pointer-events: none;
    z-index: 1;
}

.img-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-frame-hero {
    max-width: 920px;
    width: 100%;
    margin: 0 auto 2rem;
    padding: 10px;
    border: 3px solid var(--chocolate);
    border-radius: 4px;
}

.img-frame-hero .hero-image {
    width: 100%;
    height: 70vh;
    max-height: 580px;
    border-radius: 2px;
}

.img-frame-hero .hero-logo-image {
    width: min(72%, 460px);
    height: auto;
    max-height: none;
    margin: 1.25rem auto;
    object-fit: contain;
}

.hero-image-placeholder {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--chocolate) 100%);
}

.img-frame-full {
    width: 100%;
    max-height: 75vh;
    padding: 10px;
    margin: 0;
    border: none;
    border-top: 3px solid var(--chocolate);
    border-bottom: 3px solid var(--chocolate);
}

.img-frame-full::before {
    inset: 6px;
    border-width: 1px;
}

.img-frame-full img {
    width: 100%;
    height: 72vh;
    max-height: 700px;
    object-fit: cover;
    object-position: center;
}

/* Hero — full-bleed banner (home) */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 1.75rem 4rem;
    background: #1a1a1a;
    overflow: hidden;
}

/* Real <img> scales more reliably on mobile than background-size:contain on ::before */
.hero-banner-media {
    position: absolute;
    top: var(--hero-banner-below-header);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: #2a2520;
    pointer-events: none;
    min-height: 0;
    box-sizing: border-box;
}

.hero-banner-picture {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.hero-banner-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    align-self: flex-start;
    object-fit: contain;
    object-position: center top;
    filter: grayscale(100%);
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.5) 45%,
        rgba(0, 0, 0, 0.55) 100%
    );
    pointer-events: none;
}

.hero-banner-inner {
    position: relative;
    z-index: 2;
    max-width: min(90vw, 34rem);
    margin: 0 auto;
}

.hero-banner-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.65rem, 5.8vw, 2.35rem);
    line-height: 1.25;
    color: var(--white);
    letter-spacing: 0.02em;
    margin: 0 0 1.1rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-banner-tagline {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.05rem, 3.4vw, 1.35rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 1.35rem;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.hero-banner-hashtags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(0.98rem, 3.1vw, 1.12rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-banner-hash {
    display: block;
}

/* Framed hero photo — below full-bleed banner */
.hero-framed-section {
    padding: 3rem 1.5rem 2.75rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
    text-align: center;
}

.hero-framed-section .img-frame-hero {
    margin-bottom: 1.25rem;
}

.hero-framed-section .hero-sub {
    margin-top: 0.15rem;
}

.hero-sub {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: var(--chocolate-light);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-framed-placeholder {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* Countdown */
.countdown-section {
    padding: 4.5rem 1.5rem;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--cream);
    position: relative;
}

.countdown-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.countdown-section h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    text-align: center;
    margin-bottom: 2.25rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
}

.countdown-runner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
    flex-wrap: wrap;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.countdown-num {
    font-family: var(--font-ui);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(233, 192, 74, 0.5);
    box-shadow: 0 0 0 2px var(--navy-light),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06), transparent 60%),
                rgba(0, 0, 0, 0.2);
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.countdown-label {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(250, 246, 240, 0.85);
    font-weight: 700;
}

.countdown-sep {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-light);
    opacity: 0.6;
    align-self: center;
    margin-bottom: 1.5rem;
}

/* Calendar */
.calendar-section {
    padding: 4rem 1.5rem;
    background: var(--cream);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.05rem);
    font-weight: 500;
    text-align: center;
    color: var(--chocolate);
    margin-bottom: 2rem;
    letter-spacing: 0.04em;
}

.story-section .section-title,
.home-gifts-section .section-title,
.home-gallery-section .section-title,
.wishes-list-title,
.tributes-title {
    letter-spacing: 0.02em;
}

.calendar-wrap {
    max-width: 360px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px var(--shadow);
    border: 1px solid var(--cream-dark);
}

.calendar-month {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    color: var(--navy);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-grid span {
    padding: 0.5rem;
    font-size: 0.85rem;
    color: var(--chocolate-light);
}

.calendar-grid span.weekday {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.7rem;
}

.calendar-grid span.wedding-day {
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    font-weight: 600;
}

/* Invite text */
.invite-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.invite-text {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3.5vw, 1.6rem);
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
    color: var(--chocolate);
    line-height: 1.75;
    font-style: italic;
    letter-spacing: 0.02em;
}

.invite-subtext {
    text-align: center;
    margin-top: 0.85rem;
    color: var(--chocolate-light);
    font-size: 0.98rem;
}

.invite-cta {
    text-align: center;
    margin-top: 1.2rem;
}

/* Our Story */
.story-section {
    padding: 4rem 1.5rem;
    background: var(--white);
}

.story-section h2 {
    margin-bottom: 1.5rem;
}

.story-section .section-title,
.story-section .story-subtitle {
    font-family: var(--font-story-aston);
    font-weight: 400;
    font-size: clamp(3.1rem, 8.6vw, 5rem);
    letter-spacing: 0.04em;
}

.story-section .story-subtitle {
    color: var(--chocolate);
    margin: 0 0 1.5rem;
    text-align: center;
    text-transform: none;
}

.story-content .story-subtitle:not(:first-child) {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--shadow);
}

.story-content {
    font-family: var(--font-sans);
    font-weight: 400;
    max-width: 720px;
    margin: 0 auto;
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    color: var(--chocolate-light);
    line-height: 1.9;
    letter-spacing: 0.01em;
    text-align: center;
}

.story-content p {
    margin-bottom: 1.15rem;
}

.story-content .story-together {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--shadow);
}

.story-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Home gifts + gallery sliders */
.home-gifts-section,
.home-gallery-section {
    padding: 4rem 1.5rem;
    background: var(--cream);
}

.home-gallery-section {
    background: var(--cream-dark);
}

.home-wishes-section {
    padding: 4rem 1.5rem;
    background: var(--white);
}

.home-wishes-section .section-title {
    margin-bottom: 1.5rem;
}

/* Home well wishes: one full card per view, arrows scroll by full width (no peek of next) */
.home-carousel.home-wishes-carousel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    min-height: 0;
}

.home-carousel.home-wishes-carousel > .wish-slide-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.home-carousel-wrap {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 0.75rem;
    align-items: center;
}

.home-carousel {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.home-carousel::-webkit-scrollbar {
    display: none;
}

.home-carousel-track {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1rem;
    vertical-align: top;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--cream-dark);
    background: var(--white);
    color: var(--chocolate);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.carousel-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.home-product-card {
    flex: 0 0 clamp(220px, 38vw, 280px);
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--cream-dark);
    box-shadow: 0 6px 22px var(--shadow);
}

.home-product-image {
    aspect-ratio: 1;
    background: var(--cream-dark);
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

button.home-product-image-link {
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.home-product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chocolate-light);
}

.home-product-body {
    padding: 1rem;
}

.home-product-body h3 {
    font-family: var(--font-serif);
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.home-product-price {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.92rem;
}

.home-product-get-btn {
    margin-top: 0.9rem;
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    text-align: center;
    padding: 0.7rem 0.95rem;
    background: var(--gold);
    color: var(--chocolate);
    border: 1px solid rgba(61, 35, 20, 0.18);
    border-radius: 10px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 3px 12px rgba(61, 35, 20, 0.15);
    transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-product-get-btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(61, 35, 20, 0.2);
}

.home-product-get-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(61, 35, 20, 0.18);
}

.home-carousel-link {
    text-align: center;
    margin-top: 1.5rem;
}

.home-gallery-slide {
    flex: 0 0 clamp(240px, 70vw, 400px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(61, 35, 20, 0.12);
    box-shadow: 0 6px 22px var(--shadow);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-gallery-slide img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: var(--cream);
}

.home-wedding-highlights-section {
    padding: 4rem 1.5rem;
    background: var(--cream);
}

.home-highlight-slide {
    flex: 0 0 clamp(240px, 70vw, 400px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(61, 35, 20, 0.12);
    box-shadow: 0 6px 22px var(--shadow);
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.home-highlight-image-link {
    display: block;
}

.home-highlight-slide img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: var(--cream);
}

.home-highlight-caption {
    padding: 0.85rem 1rem 1rem;
    text-align: left;
}

.home-highlight-note {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--chocolate);
}

.home-highlight-tags {
    margin: 0;
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
}

.wedding-highlights-hero {
    padding: 2rem 1.5rem 0.5rem;
    text-align: center;
}

.wedding-highlights-tagline {
    color: var(--chocolate-light);
    margin-top: 0.35rem;
}

.wedding-highlights-upload-section {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.wedding-highlights-form-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--chocolate);
}

.wedding-highlights-grid-section {
    padding: 2rem 1.5rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.wedding-highlights-grid-section .section-title {
    margin-bottom: 1.5rem;
}

.wedding-highlights-empty {
    text-align: center;
    color: var(--chocolate-light);
    padding: 2rem 1rem;
}

.wedding-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.wedding-highlight-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--cream-dark);
    box-shadow: 0 6px 22px var(--shadow);
}

.wedding-highlight-image-link {
    display: block;
    aspect-ratio: 1;
    background: var(--cream-dark);
}

.wedding-highlight-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wedding-highlight-card-body {
    padding: 0.9rem 1rem 1.1rem;
}

.wedding-highlight-note {
    margin: 0 0 0.4rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.wedding-highlight-tags {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
}

.wedding-highlight-author {
    margin: 0;
    font-size: 0.8rem;
    color: var(--chocolate-light);
}

.admin-highlight-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--cream-dark, #efe8dc);
}

/* Details (location & reception) */
.details-section {
    padding: 4rem 1.5rem;
    background: var(--chocolate);
    color: var(--cream);
}

.details-section .section-title {
    color: var(--cream);
}

.detail-card {
    max-width: 400px;
    margin: 0 auto 2rem;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
}

.detail-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gold-light);
}

.detail-card p {
    opacity: 0.95;
}

.detail-card .time {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Full-width photo (wrapped in .img-frame-full on page) */
.photo-section {
    padding: 0;
}

/* Colour of the day */
.colors-section {
    padding: 3rem 1.5rem;
    background: var(--cream);
}

.colors-section .section-title {
    margin-bottom: 0.5rem;
}

.colors-section .color-tagline {
    text-align: center;
    font-size: 0.95rem;
    color: var(--chocolate-light);
    margin-bottom: 1.5rem;
}

.color-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    max-width: 520px;
    margin: 0 auto;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.color-swatch {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 4px 16px var(--shadow);
    flex-shrink: 0;
}

.color-swatch.chocolate { background: #3d2314; }
.color-swatch.gold { background: #c9a227; }
.color-swatch.cream { background: #faf6f0; border: 1px solid #e0d5c7; }
.color-swatch.navy { background: #1a2744; }

.color-item span {
    font-size: 0.8rem;
    color: var(--chocolate-light);
    text-align: center;
    line-height: 1.2;
}

/* Gallery page */
.gallery-intro {
    padding: 2rem 1.5rem 2rem;
    text-align: center;
}

.gallery-tagline {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--chocolate-light);
    letter-spacing: 0.05em;
    margin-top: -0.5rem;
}

.gallery-empty {
    padding: 4rem 1.5rem;
    text-align: center;
    color: var(--chocolate-light);
}

.gallery-grid-wrap {
    padding: 0 1.5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.gallery-item {
    break-inside: avoid;
}

.img-frame-gallery {
    padding: 8px;
    border: 2px solid var(--chocolate);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.img-frame-gallery::before {
    inset: 6px;
    border-width: 1px;
}

.img-frame-gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.img-frame-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-caption {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    color: var(--chocolate-light);
    text-align: center;
}

/* Admin gallery grid */
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.gallery-admin-item {
    text-align: center;
}

.gallery-admin-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.gallery-admin-placeholder {
    height: 140px;
    background: var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--chocolate-light);
}

.gallery-admin-caption {
    font-size: 0.85rem;
    margin: 0.5rem 0;
    color: var(--chocolate-light);
}

/* Why RSVP */
.rsvp-cta-section {
    padding: 4rem 1.5rem;
    background: var(--navy);
    color: var(--cream);
    text-align: center;
}

.rsvp-cta-section .section-title {
    color: var(--cream);
    margin-bottom: 1rem;
}

.rsvp-cta-section p {
    max-width: 520px;
    margin: 0 auto 1.5rem;
    opacity: 0.95;
}

.btn {
    font-family: var(--font-ui);
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--chocolate);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}

button.btn {
    border: none;
    cursor: pointer;
    font: inherit;
    text-align: center;
}

.btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.rsvp-phones {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.rsvp-phones a {
    color: var(--gold-light);
    text-decoration: none;
}

/* Forms */
.form-page {
    padding: 1.75rem 1.5rem 4rem;
    max-width: 520px;
    margin: 0 auto;
}

.form-page h1 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    text-align: center;
    color: var(--chocolate);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    font-family: var(--font-ui);
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--chocolate);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-ui);
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cream-dark);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

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

.btn-submit {
    font-family: var(--font-ui);
    width: 100%;
    padding: 1rem;
    background: var(--navy);
    color: var(--cream);
    border: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--chocolate);
}

/* RSVP success */
.register-success {
    padding: 1.75rem 1.25rem 4rem;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.register-success-simple {
    max-width: 520px;
}

.register-success h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--chocolate);
    margin-bottom: 0.65rem;
}

.register-success-lead {
    color: var(--chocolate-light);
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
}

.register-success-simple .register-success-lead {
    margin-bottom: 1.2rem;
}

.register-success-detail {
    color: var(--chocolate);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0 0 1rem;
    text-align: center;
}

.register-success-foot {
    font-size: 0.9rem;
    color: var(--chocolate-light);
    line-height: 1.55;
    margin: 0 0 1.75rem;
}

.register-success-cta {
    margin: 0;
}

/* Guest access card (RSVP pass) */
@media print {
    body.page-register .site-header,
    body.page-register .page-loader {
        display: none !important;
    }
    body.page-register .register-access-card-wrap {
        padding-top: 1rem;
    }
    body.page-register .main-content {
        padding-top: 0 !important;
    }
}

@media (max-width: 768px) {
    body.page-guest-pass .register-access-card-wrap {
        padding-top: 0.5rem;
    }
}

.register-access-card-wrap {
    padding: 1.25rem 1.25rem 4rem;
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
}

.register-access-card-wrap h1 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--chocolate);
    margin-bottom: 0.5rem;
}

.register-access-card-lead {
    color: var(--chocolate-light);
    margin: 0 0 1.5rem;
    font-size: 0.98rem;
    line-height: 1.5;
}

.register-access-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.register-access-card-actions .btn,
.register-access-card-actions .btn-secondary {
    text-decoration: none;
    display: inline-block;
}

.guest-access-card {
    max-width: 400px;
    margin: 0 auto;
}

.guest-access-card-frame {
    background: linear-gradient(180deg, #fffdf8 0%, #f5ebe0 48%, #ebe0d2 100%);
    border-radius: 22px;
    box-shadow:
        0 22px 48px rgba(42, 24, 16, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.45) inset,
        0 0 0 4px var(--gold),
        0 0 0 7px var(--chocolate);
    overflow: hidden;
    text-align: center;
}

.guest-access-card-header {
    background: linear-gradient(135deg, #1e1424 0%, #3d2914 50%, #5c3d2e 100%);
    color: var(--cream);
    padding: 1.2rem 1.25rem 1rem;
    border-bottom: 3px solid var(--gold);
}

.guest-access-card-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.guest-access-card-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.guest-access-card-brand {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
    color: #f5e6c8;
}

.guest-access-card-tagline {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    margin: 0.2rem 0 0;
    color: rgba(245, 230, 200, 0.88);
    font-family: var(--font-ui);
}

.guest-access-card-date {
    font-size: 0.8rem;
    margin: 0.45rem 0 0;
    color: #e8d4a8;
    font-weight: 500;
}

.guest-access-card-photo-stage {
    padding: 1.35rem 1.25rem 1rem;
    background: linear-gradient(180deg, #ebe4d8 0%, #f5efe6 100%);
}

.guest-access-card-photo-ring {
    width: min(220px, 72vw);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--gold);
    box-shadow:
        0 0 0 3px var(--chocolate),
        0 12px 28px rgba(42, 24, 16, 0.22);
    background: var(--cream-dark);
}

.guest-access-card-photo-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.guest-access-card-photo-ring--empty {
    min-height: min(220px, 72vw);
    width: min(220px, 72vw);
    background: linear-gradient(145deg, #e8dfd0, #c9b8a8);
}

.guest-access-card-body {
    padding: 0.35rem 1.35rem 1.5rem;
}

.guest-access-card-name {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    margin: 0 0 0.35rem;
    color: var(--chocolate);
    font-weight: 600;
    line-height: 1.2;
}

.guest-access-card-email {
    font-size: 0.84rem;
    color: var(--chocolate-light);
    margin: 0 0 0.95rem;
    word-break: break-all;
}

.guest-access-card-admit {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1.1rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(239, 228, 210, 0.55));
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 14px;
    color: var(--chocolate);
    box-shadow: 0 2px 12px rgba(61, 35, 20, 0.06);
}

.guest-access-card-admit strong {
    color: var(--navy);
}

.guest-access-card-qr {
    display: flex;
    justify-content: center;
    margin: 0 0 0.65rem;
}

.guest-access-card-qr img {
    display: block;
    border-radius: 10px;
    border: 4px solid #fff;
    box-shadow: 0 4px 14px rgba(42, 24, 16, 0.12);
}

.guest-access-card-qr--missing {
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--chocolate-light);
}

.guest-access-card-hint {
    font-size: 0.7rem;
    color: var(--chocolate-light);
    margin: 0;
    line-height: 1.45;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.guest-access-card-footer {
    text-align: center;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.6rem 1rem;
    background: #2a1810;
    color: rgba(245, 235, 220, 0.55);
    font-family: var(--font-ui);
}

.btn-secondary {
    font-family: var(--font-ui);
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--cream);
}

/* Gifts page */
.gifts-intro {
    padding: 2rem 1.5rem 2rem;
    text-align: center;
}

.gifts-intro .section-title {
    margin-bottom: 1rem;
}

.gifts-intro p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--chocolate-light);
}

.bank-details {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--cream-dark);
    border-radius: 12px;
    border: 1px solid var(--chocolate);
    text-align: center;
}

.bank-details h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.bank-details p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.bank-details .account-no {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--chocolate);
}

/* Gifts – e-commerce style */
.gifts-alert-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1.5rem 1rem;
}

.gift-shop-section {
    padding: 2rem 1.5rem 4rem;
}

.gift-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.gift-product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--cream-dark);
    display: flex;
    flex-direction: column;
}

.gift-product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--cream-dark);
}

.gift-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gift-product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chocolate-light);
    font-size: 0.9rem;
}

.gift-product-cash-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    color: var(--gold);
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.gift-product-price-any {
    color: var(--chocolate-light);
    font-weight: 500;
}

.gift-product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gift-product-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--chocolate);
    margin-bottom: 0.5rem;
}

.gift-product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
}

.gift-get-btn {
    margin-top: auto;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--gold);
    color: var(--chocolate);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.gift-get-btn:hover {
    background: var(--gold-light);
}

.gifts-empty {
    text-align: center;
    color: var(--chocolate-light);
}

/* Gift modal (Get → bank details + receipt upload) */
.gift-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61, 35, 20, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
}

.gift-modal-overlay.is-open {
    display: flex;
}

.gift-modal {
    background: var(--white);
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px var(--shadow-strong);
}

.gift-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--cream-dark);
}

.gift-modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--chocolate);
    margin: 0;
}

.gift-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--chocolate-light);
    cursor: pointer;
    padding: 0.25rem;
}

.gift-modal-close:hover {
    color: var(--chocolate);
}

.gift-modal-body {
    padding: 1.5rem;
}

.gift-modal-bank {
    background: var(--cream-dark);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--cream-dark);
}

.gift-modal-bank h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.gift-modal-bank p {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.gift-modal-bank .account-no {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--chocolate);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.gift-modal-bank .account-no:hover {
    color: var(--navy);
}

.gift-modal-bank .account-no-copyable {
    position: relative;
    border-bottom: 1px dashed rgba(26, 39, 68, 0.35);
    padding-bottom: 0.08rem;
    animation: copyHintPulse 1.2s ease-in-out infinite;
}

.gift-modal-bank .account-no-copyable::after {
    content: ' Tap to copy';
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--navy);
    opacity: 0.8;
}

.gift-modal-bank .account-no-copyable:hover::after {
    opacity: 1;
}

@keyframes copyHintPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
}

.gift-modal-form .form-group {
    margin-bottom: 1rem;
}

/* Legacy gift grid/card (if used elsewhere) */
.gift-grid { padding: 2rem 1.5rem 4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.gift-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px var(--shadow); }
.gift-card img { width: 100%; height: 200px; object-fit: cover; }
.gift-card-body { padding: 1.25rem; }
.gift-card h3 { font-family: var(--font-serif); font-size: 1.35rem; color: var(--chocolate); }
.gift-card p { font-size: 0.9rem; color: var(--chocolate-light); }
.gift-price { font-weight: 600; color: var(--chocolate); }

/* Well Wishes / Tributes page (forevermissed-style) */
.tributes-hero {
    padding: 2.75rem 1.5rem 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--cream);
}

.tributes-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.tributes-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    letter-spacing: 0.04em;
}

.tributes-alert-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.tributes-list-section {
    padding: 2rem 1.5rem 5rem;
    max-width: 900px;
    margin: 0 auto;
}

.tributes-empty {
    text-align: center;
    color: var(--chocolate-light);
    padding: 3rem 1rem;
}

.tributes-empty p {
    margin-bottom: 0.5rem;
}

.tributes-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tribute-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 12px var(--shadow);
    border: 1px solid var(--cream-dark);
}

.tribute-message {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--chocolate);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.tribute-message p {
    margin-bottom: 0.5rem;
}

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

.tribute-meta {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--cream-dark);
}

.tribute-author {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
}

.tribute-date {
    font-size: 0.8rem;
    color: var(--chocolate-light);
}

/* Floating action button */
.tribute-fab {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--chocolate);
    border: none;
    box-shadow: 0 4px 20px rgba(61, 35, 20, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tribute-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(61, 35, 20, 0.3);
}

/* Modal */
.tribute-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61, 35, 20, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
}

.tribute-modal-overlay.is-open {
    display: flex;
}

.tribute-modal {
    background: var(--white);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 60px var(--shadow-strong);
}

.tribute-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--cream-dark);
}

.tribute-modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--chocolate);
    margin: 0;
}

.tribute-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--chocolate-light);
    cursor: pointer;
    padding: 0.25rem;
}

.tribute-modal-close:hover {
    color: var(--chocolate);
}

.tribute-modal-form {
    padding: 1.5rem;
}

.tribute-modal-form .form-group {
    margin-bottom: 1.25rem;
}

.tribute-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-cancel {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid var(--chocolate-light);
    color: var(--chocolate);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-cancel:hover {
    background: var(--cream-dark);
}

/* Rich text editor */
.rich-text-toolbar {
    display: flex;
    gap: 2px;
    padding: 4px 0;
    margin-bottom: 4px;
}

.rich-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-dark);
    border: 1px solid var(--cream-dark);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--chocolate);
}

.rich-btn:hover {
    background: var(--cream);
    border-color: var(--gold);
}

.rich-text-editor {
    min-height: 140px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cream-dark);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--chocolate);
    background: var(--white);
    outline: none;
}

.rich-text-editor:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

.rich-text-editor[data-placeholder]:empty::before {
    content: attr(data-placeholder);
    color: var(--chocolate-light);
}

/* Legacy wish card classes (if still used elsewhere) */
.wishes-intro { padding: 2rem 1.5rem 2rem; text-align: center; }
.wishes-tagline { font-family: var(--font-serif); font-size: 1.1rem; color: var(--chocolate-light); margin-top: -0.5rem; }
.wish-form-section { padding: 0 1.5rem 3rem; max-width: 560px; margin: 0 auto; }
.wish-form-card { background: var(--white); border-radius: 12px; padding: 2rem; box-shadow: 0 8px 32px var(--shadow); }
.wishes-list-section { padding: 2rem 1.5rem 4rem; }
.wishes-list-title { font-family: var(--font-display); text-align: center; margin-bottom: 2rem; }
.wishes-empty { text-align: center; color: var(--chocolate-light); }
.wishes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.wish-card { background: var(--white); border-radius: 12px; padding: 1.75rem; box-shadow: 0 6px 24px var(--shadow); border-left: 4px solid var(--gold); }
.wish-message { font-family: var(--font-serif); font-size: 1.05rem; font-style: italic; color: var(--chocolate); line-height: 1.65; }
.wish-author { font-size: 0.9rem; font-weight: 500; color: var(--navy); }
.wish-date { font-size: 0.8rem; color: var(--chocolate-light); margin-top: 0.35rem; }

.upload-receipt-form {
    max-width: 480px;
    margin: 2rem auto 4rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow);
}

.upload-receipt-form h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--chocolate);
}

.form-group input[type="file"] {
    padding: 0.5rem;
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--chocolate-light);
    margin-top: 0.35rem;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--chocolate);
    color: var(--cream);
    font-size: 0.9rem;
}

.footer-hearts {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gold-light);
}

/* Admin */
.admin-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--cream-dark);
    padding: clamp(1rem, 3vw, 2rem);
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.admin-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem 1.25rem;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--chocolate);
}

.admin-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    color: var(--chocolate);
    line-height: 1.2;
    flex: 1 1 12rem;
    min-width: 0;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.5rem;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.admin-nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(61, 35, 20, 0.12);
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    touch-action: manipulation;
}

.admin-nav a:hover {
    color: var(--chocolate);
    background: var(--white);
    border-color: rgba(201, 162, 39, 0.45);
}

.admin-card {
    background: var(--white);
    border-radius: 12px;
    padding: clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(1rem, 3vw, 2rem);
    box-shadow: 0 4px 20px var(--shadow);
}

.admin-card > p:first-of-type {
    max-width: 52rem;
    line-height: 1.55;
}

.admin-card .alert {
    margin-bottom: 1rem;
}

.admin-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
}

.admin-search-form input[type="search"],
.admin-search-form input[type="text"] {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--chocolate);
    border-radius: 8px;
    font-family: var(--font-ui);
    font-size: 1rem;
}

.admin-search-form .btn-small {
    align-self: center;
}

.admin-form-narrow {
    max-width: 520px;
    margin-top: 1.25rem;
}

.admin-form-narrow--sm {
    max-width: 480px;
}

.admin-guest-delete-form {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--cream-dark);
}

.admin-checked-when {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: var(--chocolate-light);
    font-weight: 400;
    line-height: 1.35;
    max-width: 10rem;
    word-break: break-word;
}

.admin-scan-card .admin-scan-lead {
    font-size: 0.95rem;
    color: var(--chocolate);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.admin-scan-hint {
    font-size: 0.9rem;
    color: var(--chocolate-light);
    margin-bottom: 1rem;
    line-height: 1.45;
}

.admin-scan-banner {
    margin-bottom: 0.85rem;
}

.admin-scan-banner--warn {
    background: #fff8e6;
    color: #5c4510;
    border: 1px solid #e8c96b;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.admin-scan-guest-name {
    font-size: 1.2rem;
    margin: 0.35rem 0 0.25rem;
}

.admin-scan-meta {
    color: var(--chocolate-light);
    font-size: 0.88rem;
    margin: 0.15rem 0;
}

.admin-scan-form {
    margin-top: 1.35rem;
    padding-top: 0.25rem;
    border-top: none;
}

.admin-scan-camera-wrap {
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--cream-dark);
}

.admin-scan-camera-title,
.admin-scan-manual-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
    color: var(--chocolate);
}

.admin-scan-camera-desc,
.admin-scan-manual-desc {
    font-size: 0.88rem;
    color: var(--chocolate-light);
    margin: 0 0 0.85rem;
    line-height: 1.45;
}

.admin-scan-reader {
    max-width: 420px;
    margin: 0 auto;
    min-height: 260px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--cream-dark, #efe8dc);
}

.admin-scan-reader video {
    border-radius: 12px;
}

.admin-scan-camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 0.85rem;
}

.admin-scan-camera-status {
    text-align: center;
    font-size: 0.9rem;
    color: var(--chocolate-light);
    margin: 0.75rem 0 0;
}

.admin-scan-camera-status--error {
    color: #8b2e2e;
}

.admin-thumb-sm {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    vertical-align: middle;
    border: 1px solid var(--cream-dark);
}

.admin-thumb-preview {
    max-width: min(220px, 100%);
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--cream-dark);
}

.admin-guest-card-preview .register-access-card-wrap {
    padding-top: 1rem;
}

.admin-guest-card-actions.register-access-card-actions {
    margin-bottom: 0;
}

.admin-btn-download {
    width: auto;
    max-width: 100%;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.admin-card h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--chocolate);
}

.admin-dashboard-lead {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--navy);
    opacity: 0.88;
    margin: 0 0 1.25rem;
    max-width: 40rem;
    line-height: 1.5;
}

.admin-dashboard {
    margin-bottom: 2rem;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.admin-dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border-radius: 14px;
    padding: 1.5rem 1.45rem 1.35rem;
    box-shadow: 0 4px 22px var(--shadow);
    border: 1px solid rgba(61, 35, 20, 0.08);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 8.5rem;
}

.admin-dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(61, 35, 20, 0.14);
    border-color: rgba(184, 134, 11, 0.35);
}

.admin-dashboard-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.admin-dashboard-card-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark, #8b6914);
    margin-bottom: 0.5rem;
}

.admin-dashboard-card-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
    color: var(--chocolate);
    line-height: 1.2;
}

.admin-dashboard-card-stat {
    margin: 0 0 0.65rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    font-family: var(--font-ui);
}

.admin-dashboard-card-num {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1;
}

.admin-dashboard-card-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    opacity: 0.72;
}

.admin-dashboard-card-hint {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--chocolate);
    opacity: 0.72;
}

.login-form {
    max-width: 360px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow);
}

.login-form h1 {
    font-family: var(--font-serif);
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--chocolate);
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
    scrollbar-width: thin;
}

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

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--cream-dark);
}

th {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.85rem;
}

.admin-wish-cell {
    max-width: 28rem;
    vertical-align: top;
}

.admin-wish-preview {
    max-height: 10rem;
    overflow: auto;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--chocolate);
}

.guest-qr img {
    width: 64px;
    height: 64px;
}

.btn-small {
    font-family: var(--font-ui);
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    background: var(--navy);
    color: var(--cream);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    touch-action: manipulation;
    min-height: 2.5rem;
    box-sizing: border-box;
    line-height: 1.2;
}

.btn-small.danger {
    background: #a52a2a;
}

.check-in-form {
    display: block;
    margin-bottom: 0.35rem;
}

.check-in-form:last-child {
    margin-bottom: 0;
}

.admin-action-done {
    color: var(--chocolate-light);
    font-size: 0.9rem;
}

.admin-edit-link {
    margin-bottom: 0;
}

.admin-action-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.admin-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.admin-bulk-confirm-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-bulk-meta {
    color: var(--text-muted, #6c757d);
    font-size: 0.9rem;
}

.admin-bulk-check-col {
    width: 2.5rem;
    text-align: center;
    vertical-align: middle;
}

.admin-bulk-check-col input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.admin-guest-photo-field input[type="file"] {
    margin-top: 0.5rem;
}

.admin-guest-photo-preview-wrap {
    margin: 0.5rem 0 0.75rem;
}

.admin-guest-photo-preview {
    display: block;
    width: min(100%, 220px);
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--cream-dark, #efe8dc);
    box-shadow: 0 2px 8px var(--shadow, rgba(61, 35, 20, 0.12));
}

.admin-guest-photo-remove {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.admin-bulk-sent-mark {
    color: #28a745;
    font-weight: 600;
}

.admin-whatsapp-bridge {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f4f6f9;
}

.admin-whatsapp-bridge-card {
    max-width: 28rem;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.btn-submit.btn-submit--inline {
    width: auto;
    max-width: 100%;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .logo-img {
        width: clamp(72px, 8.5vw, 94px);
    }
    .main-nav {
        gap: 1.25rem;
    }
    .main-nav a {
        font-size: 0.76rem;
        letter-spacing: 0.06em;
    }
    .hero-banner-title {
        font-size: clamp(1.5rem, 5.5vw, 2.1rem);
    }
    .hero-banner-tagline {
        font-size: clamp(1rem, 3.2vw, 1.22rem);
    }
    .countdown-label {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        /* Narrow header row: logo ~78px + vertical padding */
        --hero-banner-below-header: calc(4.75rem + env(safe-area-inset-top, 0px));
        /* Wrapped header + menu row sits taller than hero offset */
        --fixed-header-clearance: calc(9.5rem + env(safe-area-inset-top, 0px));
    }
    .site-header {
        flex-wrap: wrap;
    }
    .main-nav {
        display: none;
        position: absolute;
        width: 100%;
        left: 0;
        right: 0;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--cream-dark);
        box-shadow: 0 10px 30px var(--shadow);
        z-index: 200;
        gap: 0;
    }
    .main-nav.open {
        display: flex;
        flex-direction: column;
    }
    .main-nav a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--cream-dark);
        font-size: 0.9rem;
        letter-spacing: 0.08em;
    }
    .main-nav a:last-child {
        border-bottom: none;
    }
    .menu-toggle {
        display: block;
        z-index: 201;
        padding: 0.25rem;
    }
    .logo {
        max-width: 78px;
    }
    .logo-img {
        width: 100%;
    }
    .hero-banner {
        padding: 6.5rem 1.25rem 3rem;
        min-height: 100dvh;
        min-height: 100svh;
    }
    /* Fill hero below header: zoom/crop with cover (desktop keeps contain) */
    .hero-banner-media {
        align-items: stretch;
    }
    .hero-banner-picture {
        align-items: stretch;
    }
    .hero-banner-img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        min-width: 100%;
        min-height: 100%;
        align-self: stretch;
        object-fit: cover;
        object-position: center top;
    }
    .hero-banner-title {
        font-size: clamp(1.45rem, 6.5vw, 1.95rem);
    }
    .section-title {
        font-size: 1.5rem;
        letter-spacing: 0.02em;
    }
    .story-content {
        font-size: 0.98rem;
        line-height: 1.75;
    }
    .countdown-runner {
        gap: 0.6rem;
        max-width: 100%;
        padding: 0 0.25rem;
    }
    .countdown-box {
        min-width: 0;
    }
    .countdown-num {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
        border-width: 2px;
    }
    .countdown-label {
        font-size: 0.54rem;
        letter-spacing: 0.08em;
    }
    .countdown-sep {
        width: 4px;
        height: 4px;
        margin-bottom: 1.25rem;
    }
    /* Colour of the day: single row on mobile */
    .color-row {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.5rem;
        max-width: 100%;
        padding: 0 0.25rem;
    }
    .color-item {
        flex: 1;
        min-width: 0;
    }
    .color-swatch {
        width: 52px;
        height: 52px;
        margin: 0 auto;
    }
    .color-item span {
        font-size: 0.65rem;
        word-break: break-word;
    }
    .home-carousel-wrap {
        grid-template-columns: 34px 1fr 34px;
        gap: 0.4rem;
    }
    .carousel-btn {
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
    }
    .home-gallery-slide {
        flex: 0 0 100%;
    }
    #home-gallery-carousel .home-carousel-track {
        gap: 0;
    }
    .home-carousel-track .home-product-card {
        flex: 0 0 min(86vw, 300px);
    }
    .home-gallery-slide img {
        height: clamp(220px, 58vw, 320px);
    }
    /* Admin — tablet / small laptop */
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        position: sticky;
        top: 0;
        z-index: 50;
        background: var(--cream-dark);
        padding-top: max(0.15rem, env(safe-area-inset-top, 0px));
        margin-bottom: 1.25rem;
        padding-bottom: 0.85rem;
        border-bottom: 1px solid var(--chocolate);
        box-shadow: 0 6px 16px rgba(61, 35, 20, 0.05);
    }
    .admin-header h1 {
        flex: none;
    }
    .admin-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        padding-bottom: 0.35rem;
        gap: 0.4rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .admin-nav a {
        flex: 0 0 auto;
        font-size: 0.72rem;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        padding: 0.55rem 0.75rem;
    }
    .admin-card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    .admin-card h2 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }
    .admin-dashboard-lead {
        font-size: 0.88rem;
        margin-bottom: 1rem;
    }
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .admin-dashboard-card {
        padding: 1.15rem 1.1rem 1.05rem;
        min-height: 0;
        border-radius: 12px;
    }
    .admin-dashboard-card-title {
        font-size: 1.18rem;
        margin-bottom: 0.65rem;
    }
    .admin-dashboard-card-num {
        font-size: 1.55rem;
    }
    .login-form {
        margin: clamp(1.5rem, 6vh, 3rem) auto;
        padding: 1.25rem;
        width: calc(100% - 2rem);
        max-width: 400px;
    }
    .table-wrap {
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }
    table {
        min-width: 640px;
    }
    th,
    td {
        font-size: 0.78rem;
        padding: 0.55rem 0.45rem;
        vertical-align: top;
    }
    .admin-card .btn-small {
        font-size: 0.78rem;
        padding: 0.5rem 0.85rem;
        min-height: 2.75rem;
    }
    .guest-qr img {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .table-wrap {
        overflow: visible;
        margin: 0;
        padding: 0;
    }
    table.responsive-table {
        min-width: 0;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }
    table.responsive-table thead {
        display: none;
    }
    table.responsive-table tbody,
    table.responsive-table tr,
    table.responsive-table td {
        display: block;
        width: 100%;
    }
    table.responsive-table tr {
        background: var(--white);
        border: 1px solid var(--cream-dark);
        border-radius: 12px;
        box-shadow: 0 2px 12px var(--shadow);
        margin-bottom: 1rem;
        padding: 0.65rem 1rem 0.85rem;
    }
    table.responsive-table td {
        border: none;
        border-bottom: 1px dashed var(--cream-dark);
        padding: 0.55rem 0;
        font-size: 0.9rem;
    }
    table.responsive-table td:last-child {
        border-bottom: none;
    }
    table.responsive-table td::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-ui);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-size: 0.62rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 0.2rem;
    }
    table.responsive-table td.guest-qr img {
        width: 64px;
        height: 64px;
    }
    table.responsive-table .btn-small {
        margin-right: 0.4rem;
        margin-top: 0.25rem;
        min-height: 2.75rem;
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }
    table.responsive-table .admin-wish-cell {
        max-width: none;
    }
    table.responsive-table .admin-wish-preview {
        max-height: 14rem;
        overflow-y: auto;
        word-break: break-word;
        -webkit-overflow-scrolling: touch;
    }
    .gallery-admin-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .gallery-admin-item img,
    .gallery-admin-placeholder {
        height: clamp(160px, 42vw, 200px);
    }
}
