/*
 * KAELI & SKYLAR â€” CHRISTMAS WEDDING WEBSITE STYLES
 *
 * HOW TO READ THIS FILE
 *  - A selector such as .hero or .registry-card matches an HTML class.
 *  - The declarations inside { } control how those elements look.
 *  - CSS comments (like this one) are ignored by the browser.
 *  - Later rules can override earlier rules, especially inside @media blocks.
 *  - Changing a :root color variable updates every place that uses it.
 *
 * This is your original styling with explanatory comments added.
 */

/* =========================================

   CHRISTMAS WEDDING COLOR PALETTE

========================================= */

/* Design tokens: change these colors and fonts to update the entire site at once. var(--name) elsewhere reads the value here. */

:root {
    --ivory: #f7f3e9;
    --warm-white: #fffdf8;
    --evergreen: #173a31;
    --deep-green: #0c2923;
    --forest: #244a3d;
    --burgundy: #6d2f39;
    --deep-red: #4b2028;
    --navy: #18283a;
    --deep-navy: #101b28;
    --gold: #b89a62;
    --soft-gold: #d3bd91;
    --text: #2e302d;
    --muted: #74746e;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Montserrat", Arial, sans-serif;

}

/* =========================================

   BASIC RESET

========================================= */

/* Apply border-box sizing so padding and borders stay inside an elementâ€™s declared width. */

* {
    box-sizing: border-box;

}

/* Enable smooth scrolling when guests click links to page sections. */

html {
    scroll-behavior: smooth;

}

/* Set the site-wide background, text, font, spacing, and prevent sideways scrolling. */

body {
    margin: 0;
    background: var(--warm-white);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.7;
    overflow-x: hidden;

}

/* Keep photos responsive: never wider than their container. */

img {
    display: block;
    max-width: 100%;

}

/* Make links inherit the surrounding text color unless another rule overrides it. */

a {
    color: inherit;

}

/* =========================================

   NAVIGATION

========================================= */

/* Fixed header: remains visible as visitors scroll. z-index keeps it above most page content. */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 74px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(12, 41, 35, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;

}

.nav-logo {
    color: var(--ivory);
    font-family: var(--serif);
    font-size: 1.7rem;
    text-decoration: none;
    letter-spacing: 1px;

}

.nav-logo span {
    color: var(--soft-gold);

}

/* Lay navigation links out horizontally on desktop. */

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;

}

.nav-links a {
    color: var(--ivory);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 2px;
    transition: color 0.25s ease;

}

.nav-links a:hover {
    color: var(--soft-gold);

}

/* Mobile menu toggle; hidden on larger screens and shown by the mobile media query. */

.menu-button {
    display: none;
    border: none;
    background: none;
    color: var(--ivory);
    font-size: 1.6rem;
    cursor: pointer;

}

/* =========================================

   HERO

========================================= */

/* Main landing image: the gradient darkens images/hero.jpg so white text is readable. Change that file to change the photo. */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    background:

        linear-gradient(

            rgba(9, 29, 26, 0.45),

            rgba(10, 22, 31, 0.60)

        ),

        url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    overflow: hidden;

}

/* Adds subtle dark edges over the hero photograph for contrast. */

.hero-overlay {
    position: absolute;
    inset: 0;
    background:

        radial-gradient(

            circle at center,

            transparent 20%,

            rgba(5, 19, 17, 0.33) 100%

        );

}

/* Keep hero text above the decorative overlay and limit its maximum width. */

.hero-content {
    position: relative;
    z-index: 3;
    width: min(900px, 100%);

}

.eyebrow {
    margin: 0;
    color: var(--soft-gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;

}

.ornament-line {
    margin: 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--soft-gold);

}

.ornament-line span {
    display: block;
    width: 70px;
    height: 1px;
    background: var(--soft-gold);

}

/* Large names on the landing page. clamp(min, responsive, max) adjusts the font for screen size. */

.hero h1 {
    margin: 10px 0;
    font-family: var(--serif);
    font-size: clamp(5rem, 13vw, 10rem);
    font-weight: 500;
    line-height: 0.75;
    letter-spacing: -2px;

}

.hero h1 span {
    display: block;
    margin: 18px;
    color: var(--soft-gold);
    font-size: 0.38em;
    font-style: italic;

}

.announcement {
    margin: 35px 0 5px;
    color: var(--ivory);
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-style: italic;

}

.wedding-date {
    margin: 10px 0 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    letter-spacing: 6px;
    text-transform: uppercase;

}

/* =========================================

   SNOW EFFECT

========================================= */

/* Overlay holding snowflakes; pointer-events:none means snow cannot block taps/clicks. */

.snow-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;

}

/* Appearance and looping animation of each snowflake; JavaScript or HTML supplies individual flakes. */

.snowflake {
    position: absolute;
    top: -20px;

    /* Make snowflakes brighter */
    color: rgba(255, 255, 255, 0.95);

    /* Give snowflakes a soft glowing appearance */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);

    user-select: none;
    pointer-events: none;

    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* .snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.7);
    user-select: none;
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;

} */

/* Defines snow movement from above the screen to below it. */

@keyframes snowfall {

    from {
        transform: translateY(-20px);

    }

    to {
        transform: translateY(110vh);

    }

}

/* =========================================

   BUTTONS

========================================= */

/* Reusable pill-shaped button shared across pages. */

.button {
    display: inline-block;
    padding: 15px 27px;
    border-radius: 100px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition:

        transform 0.25s ease,

        box-shadow 0.25s ease,

        background 0.25s ease;

}

/* Lift buttons slightly on hover to show they are interactive. */

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

}

.button-light {
    background: var(--ivory);
    color: var(--deep-green);

}

.button-green {
    background: var(--deep-green);
    color: white;

}

.button-burgundy {
    background: var(--burgundy);
    color: white;

}

/* =========================================

   SHARED SECTION STYLES

========================================= */

/* Shared padding and positioning for major content sections. */

.section {
    position: relative;
    padding: 115px 8%;

}

.section-label {
    margin-bottom: 5px;
    color: var(--burgundy);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;

}

.section h2 {
    margin: 5px 0 30px;
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1;

}

.gold-divider {
    width: 80px;
    height: 1px;
    margin: 30px auto;
    background: var(--gold);

}

/* =========================================

   ANNOUNCEMENT SECTION

========================================= */

.announcement-section {
    max-width: 1000px;
    margin: auto;
    text-align: center;

}

.large-copy {
    max-width: 700px;
    margin: 0 auto 25px;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.25;

}

.intro-text {
    max-width: 680px;
    margin: auto;
    color: var(--muted);
    font-size: 1rem;

}

.signature-line {
    margin-top: 45px;
    color: var(--muted);
    font-size: 0.85rem;

}

.signature-line span {
    display: block;
    margin-top: 5px;
    color: var(--burgundy);
    font-family: var(--serif);
    font-size: 2rem;
    font-style: italic;

}

.botanical {
    position: absolute;
    top: 50%;
    color: rgba(23, 58, 49, 0.14);
    font-family: var(--serif);
    font-size: 8rem;
    transform: translateY(-50%);

}

.botanical-left {
    left: 1%;

}

.botanical-right {
    right: 1%;
    transform:

        translateY(-50%)

        scaleX(-1);

}

/* =========================================

   STORY

========================================= */

/* Dark evergreen background for the relationship-story section. */

.story {
    background: var(--evergreen);
    color: var(--ivory);
    text-align: center;

}

.story .section-label {
    color: var(--soft-gold);

}

.story-intro {
    max-width: 550px;
    margin: -10px auto 70px;
    color: rgba(255, 255, 255, 0.72);

}

/* Container for the relationship milestones and central connecting line. */

.timeline {
    position: relative;
    max-width: 1050px;
    margin: auto;
    padding-bottom: 80px;

}

/* Draw the gold vertical line through the timeline using a CSS pseudo-element. */

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(

        var(--soft-gold),

        var(--gold)

    );
    transform: translateX(-50%);

}

/* Each milestone takes half the width on desktop to alternate left and right. */

.timeline-event {
    position: relative;
    width: 50%;
    padding: 0 65px 100px;

}

.timeline-event.left {
    text-align: right;

}

.timeline-event.right {
    margin-left: 50%;
    text-align: left;

}

/* Circular gold-outlined milestone marker sitting on the timeline line. */

.timeline-marker {
    position: absolute;
    top: 35px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--soft-gold);
    border-radius: 50%;
    background: var(--deep-green);
    color: var(--soft-gold);
    font-size: 1.15rem;
    z-index: 3;

}

.timeline-event.left .timeline-marker {
    right: -26px;

}

.timeline-event.right .timeline-marker {
    left: -26px;

}

/* Light card holding a milestone photo, date, heading, and story. */

.timeline-card {
    padding: 25px;
    border-radius: 18px;
    background: var(--warm-white);
    color: var(--text);
    box-shadow:

        0 16px 45px rgba(0, 0, 0, 0.2);

}

.timeline-card h3 {
    margin: 6px 0 13px;
    font-family: var(--serif);
    font-size: 2.15rem;
    font-weight: 500;
    line-height: 1;

}

.timeline-card p {
    color: var(--muted);

}

.timeline-date {
    margin-top: 22px;
    color: var(--burgundy) !important;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;

}

/* Temporary photo box. Replace with real images in HTML when ready. */

.timeline-photo-placeholder {
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background:

        linear-gradient(

            135deg,

            #e8e1d6,

            #dad3c8

        );
    color: #8d8a83;
    overflow: hidden;

}

.timeline-ending {
    position: relative;
    z-index: 2;
    width: 260px;
    margin: auto;
    padding: 25px;
    background: var(--evergreen);

}

.timeline-ending-icon {
    font-size: 2.5rem;

}

.timeline-ending p {
    margin-top: 8px;
    color: var(--soft-gold);
    font-family: var(--serif);
    font-size: 1.4rem;
    font-style: italic;

}

/* =========================================

   GALLERY

========================================= */

.gallery {
    text-align: center;
    background: var(--ivory);

}

.gallery-intro {
    max-width: 550px;
    margin: -10px auto 45px;
    color: var(--muted);

}

/* Photo layout: three equal columns on desktop, with special tall/wide tiles. */


/* Individual framed photo tile, currently styled with a placeholder gradient. */


.gallery-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(184, 154, 98, 0.25);
    pointer-events: none;

}

.gallery-photo span {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;

}

/* Make a gallery item occupy two rows. */


/* Make a gallery item occupy two columns. */


/* =========================================

   REGISTRY

========================================= */

/* Navy background for the gift registry section on the homepage. */

.registry {
    background:

        linear-gradient(

            135deg,

            var(--deep-navy),

            var(--navy)

        );
    color: var(--ivory);
    text-align: center;

}

.registry-inner {
    max-width: 1050px;
    margin: auto;

}

.registry .section-label {
    color: var(--soft-gold);

}

.registry-intro {
    max-width: 680px;
    margin: 0 auto 55px;
    color: rgba(255, 255, 255, 0.73);

}

/* Display the homepage registry choices in two columns. */

.registry-grid {
    display: grid;
    grid-template-columns:

        1fr 1fr;
    gap: 26px;

}

/* Individual white registry or house-fund choice card. */

.registry-card {
    padding: 55px 38px;
    border-radius: 20px;
    background: var(--warm-white);
    color: var(--text);
    box-shadow:

        0 15px 45px rgba(0, 0, 0, 0.18);

}

.registry-card.featured {
    border: 2px solid var(--soft-gold);

}

.registry-icon {
    margin-bottom: 15px;
    font-size: 3rem;

}

.card-label {
    margin-bottom: 5px;
    color: var(--burgundy) !important;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;

}

.registry-card h3 {
    margin: 5px 0 15px;
    font-family: var(--serif);
    font-size: 2.6rem;
    font-weight: 500;

}

.registry-card p {
    margin-bottom: 30px;
    color: var(--muted);

}

/* =========================================

   ENDING

========================================= */

/* Burgundy closing section near the bottom of the homepage. */

.ending {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 25px;
    background:

        linear-gradient(

            rgba(73, 25, 34, 0.92),

            rgba(62, 20, 29, 0.96)

        );
    color: var(--ivory);
    text-align: center;

}

.ending-content {
    max-width: 700px;

}

.ending-small {
    margin: 0;
    color: var(--soft-gold);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 5px;

}

.ending h2 {
    margin: 20px 0 0;
    font-family: var(--serif);
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 500;
    line-height: 0.9;

}

.ending-names {
    margin: 18px 0;
    color: var(--soft-gold);
    font-family: var(--serif);
    font-size: 2.3rem;
    font-style: italic;

}

.ending-stars {
    margin: 25px 0;
    color: var(--soft-gold);
    font-size: 1rem;

}

.ending-message {
    max-width: 480px;
    margin: auto;
    color: rgba(255, 255, 255, 0.76);
    font-family: var(--serif);
    font-size: 1.4rem;
    font-style: italic;

}

/* =========================================

   FOOTER

========================================= */

/* Small footer with a dark evergreen background. */

footer {
    padding: 28px;
    background: #091b18;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 1px;

}

/* =========================================

   SCROLL REVEAL

========================================= */

/* Hide and move elements slightly down before JavaScript marks them as revealed. */

.reveal-item {
    opacity: 0;
    transform: translateY(25px);
    transition:

        opacity 0.8s ease,

        transform 0.8s ease;

}

/* Visible state: fades the element in and returns it to its normal position. */

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);

}

/* Respect accessibility settings */

/* Accessibility: turn off motion-heavy effects for visitors who prefer less animation. */

@media (prefers-reduced-motion: reduce) {

    /* Enable smooth scrolling when guests click links to page sections. */

    html {
        scroll-behavior: auto;

    }

    /* Appearance and looping animation of each snowflake; JavaScript or HTML supplies individual flakes. */

    .snowflake {
        display: none;

    }

    /* Hide and move elements slightly down before JavaScript marks them as revealed. */

    .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;

    }

}

/* =========================================

   RESPONSIVE / TABLET

========================================= */

/* Tablet rules: override desktop styles on screens 900px wide or smaller. */

@media (max-width: 900px) {

    /* Shared padding and positioning for major content sections. */

    .section {
        padding: 100px 7%;

    }

    .botanical {
        display: none;

    }

}

/* =========================================

   RESPONSIVE / MOBILE

========================================= */

/* Phone rules: stack cards, collapse navigation, and adjust spacing for narrow screens. */

@media (max-width: 700px) {

    /* Fixed header: remains visible as visitors scroll. z-index keeps it above most page content. */

    .navbar {
        height: 68px;
        padding: 0 5%;

    }

    /* Mobile menu toggle; hidden on larger screens and shown by the mobile media query. */

    .menu-button {
        display: block;

    }

    /* Lay navigation links out horizontally on desktop. */

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 24px;
        padding: 32px;
        background: var(--deep-green);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;

    }

    .nav-links.open {
        display: flex;

    }

    /* Main landing image: the gradient darkens images/hero.jpg so white text is readable. Change that file to change the photo. */

    .hero {
        min-height: 100svh;
        padding-top: 95px;

    }

    /* Large names on the landing page. clamp(min, responsive, max) adjusts the font for screen size. */

    .hero h1 {
        font-size: clamp(4.4rem, 21vw, 6.4rem);

    }

    .announcement {
        font-size: 2.3rem;

    }

    /* Shared padding and positioning for major content sections. */

    .section {
        padding: 80px 6%;

    }

    /* TIMELINE */

    /* Draw the gold vertical line through the timeline using a CSS pseudo-element. */

    .timeline::before {
        left: 25px;

    }

    .timeline-event,

    .timeline-event.right {
        width: 100%;
        margin-left: 0;
        padding:

            0

            0

            70px

            72px;
        text-align: left;

    }

    .timeline-event.left .timeline-marker,

    .timeline-event.right .timeline-marker {
        left: 0;
        right: auto;

    }

    /* Light card holding a milestone photo, date, heading, and story. */

    .timeline-card {
        padding: 18px;

    }

    /* Temporary photo box. Replace with real images in HTML when ready. */

    .timeline-photo-placeholder {
        height: 210px;

    }

    .timeline-ending {
        margin-left: 0;

    }

    /* GALLERY */

    /* Photo layout: three equal columns on desktop, with special tall/wide tiles. */


    /* Make a gallery item occupy two columns. */


    /* REGISTRY */

    /* Display the homepage registry choices in two columns. */

    .registry-grid {
        grid-template-columns: 1fr;

    }

    /* Individual white registry or house-fund choice card. */

    .registry-card {
        padding: 42px 25px;

    }

}

/* =========================================

   VERY SMALL PHONES

========================================= */

/* Very small phones: switch gallery to one column and tighten letter spacing. */

@media (max-width: 430px) {

    /* Photo layout: three equal columns on desktop, with special tall/wide tiles. */


    .eyebrow {
        letter-spacing: 3px;

    }

    .wedding-date {
        letter-spacing: 4px;

    }

}

/* =========================================

   SUB PAGES

========================================= */

/* Push subpage content below the fixed navigation bar. */

.subpage {
    padding-top: 74px;

}

/* =========================================

   SUBPAGE HERO

========================================= */

/* Smaller photo banner used at the top of the registry and house-fund pages. */

.subpage-hero {
    position: relative;
    min-height: 58vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 20px;
    background:

        linear-gradient(

            rgba(8, 29, 25, 0.5),

            rgba(9, 20, 30, 0.72)

        ),

        url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;

}

.subpage-overlay {
    position: absolute;
    inset: 0;
    background:

        radial-gradient(

            circle,

            transparent,

            rgba(4, 15, 14, 0.4)

        );

}

.subpage-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;

}

.subpage-hero h1 {
    margin: 15px 0;
    font-family: var(--serif);
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 500;
    line-height: 0.95;

}

.subpage-hero p:last-child {
    max-width: 600px;
    margin:

        25px

        auto

        0;
    color: rgba(255,255,255,.8);
    font-family: var(--serif);
    font-size: 1.5rem;
    font-style: italic;

}

/* =========================================

   HOUSE FUND

========================================= */

.fund-story {
    max-width: 850px;
    margin: auto;
    text-align: center;

}

.fund-copy {
    max-width: 680px;
    margin:

        15px

        auto;
    color: var(--muted);

}

/* Evergreen background behind the main house-fund contribution card. */

.fund-panel-section {
    padding:

        100px

        7%;
    background:

        linear-gradient(

            135deg,

            var(--deep-green),

            var(--evergreen)

        );

}

/* Cream card holding the house-fund explanation and contribution action. */

.fund-panel {
    max-width: 720px;
    margin: auto;
    padding:

        65px

        55px;
    border:

        1px

        solid

        var(--soft-gold);
    border-radius: 24px;
    background: var(--warm-white);
    text-align: center;
    box-shadow:

        0

        25px

        60px

        rgba(0,0,0,.25);

}

.fund-icon {
    font-size: 4rem;

}

.fund-panel h2 {
    margin:

        10px

        0

        20px;
    font-family: var(--serif);
    font-size:

        clamp(

            2.5rem,

            5vw,

            4rem

        );
    font-weight: 500;

}

.fund-panel-text {
    max-width: 560px;
    margin:

        0

        auto

        35px;
    color: var(--muted);

}

.fund-progress-area {
    margin:

        35px

        0;

}

.fund-progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;

}

.fund-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 50px;
    background: #e5e1da;

}

/* Visual progress bar only. The 35% width is hard-coded and does NOT update from actual payments. */

.fund-progress-fill {
    width: 35%;
    height: 100%;
    border-radius: 50px;
    background:

        linear-gradient(

            90deg,

            var(--evergreen),

            var(--gold)

        );

}

.fund-button {
    margin-top: 15px;

}

.fund-small-text {
    margin-top: 18px;
    color: var(--muted);
    font-size: .7rem;

}

.fund-note {
    text-align: center;

}

.fund-note-inner {
    max-width: 650px;
    margin: auto;

}

.fund-heart {
    color: var(--burgundy);
    font-size: 2.5rem;

}

.fund-note-inner > p {
    color: var(--burgundy);
    font-size: .7rem;
    letter-spacing: 3px;
    text-transform: uppercase;

}

.fund-note-inner h2 {
    font-family: var(--serif);
    font-size:

        clamp(

            2.5rem,

            5vw,

            4rem

        );
    font-weight: 500;

}

.text-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--evergreen);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;

}

.text-link:hover {
    color: var(--burgundy);

}

/* =========================================

   REGISTRY PAGE

========================================= */

.registry-page-intro {
    max-width: 800px;
    margin: auto;
    text-align: center;

}

.registry-page-intro > p:last-child {
    max-width: 650px;
    margin: auto;
    color: var(--muted);

}

.registry-items-section {
    padding:

        100px

        7%;
    background: var(--ivory);

}

/* Three-column gift-card layout on desktop; media queries reduce it to two then one. */

.registry-page-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns:

        repeat(3, 1fr);
    gap: 25px;

}

/* Individual gift tile with rounded corners, shadow, and hover animation. */

.gift-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--warm-white);
    box-shadow:

        0

        10px

        35px

        rgba(0,0,0,.07);
    transition:

        transform .25s ease,

        box-shadow .25s ease;

}

.gift-card:hover {
    transform:

        translateY(-5px);
    box-shadow:

        0

        18px

        45px

        rgba(0,0,0,.12);

}

/* Temporary image area for a registry item. */

.gift-image-placeholder {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:

        linear-gradient(

            135deg,

            #e8e2d7,

            #d7d1c7

        );
    color: #8b8983;
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;

}

.gift-card-body {
    padding: 30px;

}

.gift-store {
    margin: 0;
    color: var(--burgundy);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: 2.5px;

}

.gift-card h3 {
    margin:

        7px

        0

        12px;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.05;

}

.gift-description {
    color: var(--muted);
    font-size: .9rem;

}

/* Text link directing guests to the external registry or store. */

.gift-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--evergreen);
    font-size: .72rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;

}

.gift-link:hover {
    color: var(--burgundy);

}

/* Special highlighted card linking to the house-fund page. */

.house-fund-card {
    display: flex;
    align-items: center;
    border:

        1px

        solid

        var(--soft-gold);
    background:

        linear-gradient(

            145deg,

            #fffdf8,

            #f4eee3

        );

}

.gift-house-icon {
    font-size: 3rem;

}

.registry-ending {
    background: var(--warm-white);
    text-align: center;

}

/* =========================================

   TABLET

========================================= */

/* Tablet rules: override desktop styles on screens 900px wide or smaller. */

@media (max-width: 900px) {

    /* Three-column gift-card layout on desktop; media queries reduce it to two then one. */

    .registry-page-grid {
        grid-template-columns:

            1fr

            1fr;

    }

}

/* =========================================

   MOBILE

========================================= */

/* Phone rules: stack cards, collapse navigation, and adjust spacing for narrow screens. */

@media (max-width: 700px) {

    /* Push subpage content below the fixed navigation bar. */

    .subpage {
        padding-top: 68px;

    }

    /* On small screens, subpage navigation stays horizontal rather than using the homepage dropdown. */

    .page-nav {
        display: flex;
        position: static;
        width: auto;
        padding: 0;
        background: none;
        flex-direction: row;
        gap: 16px;

    }

    .page-nav a {
        font-size: .6rem;
        letter-spacing: 1px;

    }

    /* Smaller photo banner used at the top of the registry and house-fund pages. */

    .subpage-hero {
        min-height: 50vh;

    }

    .subpage-hero h1 {
        font-size: 4rem;

    }

    /* Cream card holding the house-fund explanation and contribution action. */

    .fund-panel {
        padding:

            45px

            25px;

    }

    /* Three-column gift-card layout on desktop; media queries reduce it to two then one. */

    .registry-page-grid {
        grid-template-columns:

            1fr;

    }

    /* Temporary image area for a registry item. */

    .gift-image-placeholder {
        height: 300px;

    }

}

/* ==========================================================
   TWO PATHS, ONE LOVE STORY
   This section appears above the original relationship timeline.
   It uses the existing Christmas color variables from :root.
   ========================================================== */

/* Two equal columns for the individual journeys. */
.two-paths {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 6vw, 75px);
}
.path-column { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.path-column > h3 {
    margin: 0 0 10px;
    font: italic 500 clamp(2rem, 4vw, 2.8rem) var(--serif);
    color: var(--ivory);
    text-align: center;
}
/* Different colored rules subtly distinguish the two stories. */
.path-column > h3::after {
    content: "";
    display: block;
    width: 65px;
    height: 2px;
    margin: 9px auto 0;
    background: var(--soft-gold);
}
.her-path > h3::after { background: #b97a82; }

/* Light cards contrast with the evergreen story background. */
.path-card {
    flex: 1;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(211, 189, 145, .6);
    background: var(--warm-white);
    color: var(--text);
    text-align: left;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .17);
}
.path-card span, .paths-meet > span {
    color: var(--burgundy);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: 2px;
}
.his-path .path-card span { color: var(--evergreen); }
.path-card h4 {
    margin: 9px 0 12px;
    font: 500 clamp(1.5rem, 3vw, 2rem)/1.1 var(--serif);
}
.path-card p, .paths-meet p {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.8;
}

/* Two curved gold lines converge beneath the separate stories. */
.paths-merge { height: 90px; max-width: 1000px; margin: 0 auto; }
.paths-merge svg { display: block; width: 100%; height: 100%; }
.paths-merge path {
    fill: none;
    stroke: var(--soft-gold);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

/* The point where the two paths become one. */
.paths-meet {
    position: relative;
    max-width: 680px;
    margin: 0 auto 70px;
    padding: 38px 42px;
    border: 1px solid var(--soft-gold);
    border-radius: 18px;
    background: var(--warm-white);
    color: var(--text);
    text-align: center;
    box-shadow: 0 14px 38px rgba(0,0,0,.15);
}
.paths-meet h3 {
    margin: 10px 0 16px;
    font: 500 clamp(2rem, 5vw, 3rem)/1.05 var(--serif);
}
.paths-meet strong {
    display: block;
    margin-top: 20px;
    color: var(--burgundy);
    font: italic 500 1.6rem var(--serif);
}
/* Connect the meeting card to the existing central timeline. */
.paths-meet::after {
    content: "";
    position: absolute;
    top: 100%;
    left: calc(50% - 1px);
    height: 70px;
    width: 2px;
    background: var(--soft-gold);
}

/* Keep two readable paths on phones; reduce padding instead of
   letting the existing timeline's mobile rules affect them. */
@media (max-width: 700px) {
    .two-paths { gap: 12px; }
    .path-column { gap: 12px; }
    .path-column > h3 { font-size: 1.75rem; }
    .path-card { padding: 17px 13px; border-radius: 12px; }
    .path-card h4 { font-size: 1.45rem; }
    .path-card p { font-size: .75rem; line-height: 1.65; }
    .path-card span { font-size: .56rem; letter-spacing: .7px; }
    .paths-merge { height: 65px; }
    .paths-meet { padding: 26px 18px; margin-bottom: 60px; }
    .paths-meet::after { height: 60px; }
}
@media (max-width: 380px) {
    .two-paths { gap: 8px; }
    .path-card { padding: 13px 10px; }
    .path-card p { font-size: .7rem; }
}

/* =====================================================
   PHOTO CHAPTERS — add images to the images/ folder.
   The photo frame stays visible even before a file exists.
   ===================================================== */
.path-card { overflow: hidden; padding: 0; }
.path-photo { position: relative; height: 350px; background: linear-gradient(135deg,#e8e1d6,#d4cabc); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.path-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 1; }
.path-photo .photo-fallback { color: #817b70; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; }
.path-card-content { padding: 24px; }
.almost-met { max-width: 700px; margin: 46px auto 22px; padding: 28px 36px; border: 1px solid var(--soft-gold); border-radius: 18px; text-align: center; }
.almost-met .almost-label { color: var(--soft-gold); font-size: .65rem; letter-spacing: 3px; font-weight: 600; }
.almost-met h3 { font-family: var(--serif); font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 500; margin: 8px 0; }
.almost-met p { color: rgba(255,255,255,.8); }
.almost-met .almost-note { font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--soft-gold); margin-bottom: 0; }
@media(max-width:700px) { .path-photo { height: 280px; } .path-card-content { padding: 15px; } .almost-met { padding: 22px 16px; margin-top: 30px; } }
@media(max-width:430px) { .path-photo { height: 240px; } }

/* =====================================================
   ALL THE ALMOSTS — a romantic pause before the paths merge.
   Uses the existing evergreen, burgundy and soft-gold palette.
   ===================================================== */
.fate-note {
    max-width: 740px;
    margin: 28px auto 38px;
    padding: 36px 44px;
    text-align: center;
    border-radius: 18px;
    background: rgba(8, 29, 25, 0.28);
    border: 1px solid rgba(211, 189, 145, 0.35);
}
.fate-note .fate-note-label {
    margin: 0 0 8px;
    color: var(--soft-gold);
    font: 600 .65rem/1.6 var(--sans);
    letter-spacing: 3px;
}
.fate-note h3 {
    margin: 0;
    color: var(--ivory);
    font: italic 500 clamp(2rem, 5vw, 3.2rem)/1.1 var(--serif);
}
.fate-note-divider {
    width: 65px;
    height: 1px;
    margin: 22px auto;
    background: var(--gold);
}
.fate-note p:not(.fate-note-label):not(.fate-note-ending) {
    max-width: 600px;
    margin: 0 auto 14px;
    color: rgba(255,255,255,.8);
    font-size: .9rem;
    line-height: 1.9;
}
.fate-note .fate-note-ending {
    margin: 22px 0 0;
    color: var(--soft-gold);
    font: italic 500 clamp(1.4rem, 3vw, 1.9rem)/1.25 var(--serif);
}
@media (max-width: 700px) {
    .fate-note { padding: 26px 18px; margin: 24px auto 30px; }
    .fate-note p:not(.fate-note-label):not(.fate-note-ending) { font-size: .82rem; }
}

/* House fund refresh */
.home-preview { max-width: 660px; margin: auto; }
#contribute, #giveaway, #house-fund { scroll-margin-top: 95px; }
#contribute { padding: 48px 6%; }
.payment-options { display: grid; gap: 14px; max-width: 480px; margin: auto; }
.payment-options .button { width: 100%; text-align: center; }
.payment-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-secondary .button { border: 1px solid var(--gold); color: var(--evergreen); background: transparent; padding: 12px; }
.payment-link[aria-disabled="true"] { opacity: .65; cursor: default; pointer-events: none; }
.wedding-giveaway { text-align: center; background: var(--ivory); }
.giveaway-intro { max-width: 680px; margin: 20px auto; color: var(--muted); }
.prize-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 36px auto; }
.prize-card { border: 1px solid var(--gold); border-radius: 16px; padding: 32px 12px; color: var(--ivory); background: var(--evergreen); box-shadow: 0 8px 22px #0002; }
.prize-card.chick { background: var(--burgundy); }
.prize-card.scheels { background: var(--navy); }
.prize-card span { font-size: .7rem; letter-spacing: 1px; color: var(--soft-gold); }
.prize-card strong { display: block; font-family: var(--serif); font-size: 3.5rem; font-weight: 500; line-height: 1.2; margin: 14px 0; }
.prize-card h3 { font-family: var(--serif); font-size: 1.8rem; margin: 0; }
.prize-card p { margin: 0; font-size: .8rem; }
.giveaway-status { font-size: .85rem; color: var(--evergreen); }
@media(max-width: 600px) { .prize-grid, .payment-secondary { grid-template-columns: 1fr; } .prize-grid { max-width: 360px; } .fund-panel { padding: 35px 20px; } .page-nav { gap: 12px; } }

/* Illustrated winter cottage */
.cottage-art { display: block; width: min(100%, 320px); height: auto; margin: 12px auto 18px; overflow: visible; }
.home-preview .cottage-art { margin-top: 0; }

/* Storybook cottage animation */
.cottage-art .cottage-peek { animation: cottage-peek 16s ease-in-out infinite; }
.cottage-art .cottage-run { animation: cottage-run 16s linear infinite; }
.cottage-art .cottage-bounce { animation: cottage-bounce .28s ease-in-out infinite alternate; }
.cottage-art .cottage-tail { transform-origin: 4px 0; animation: cottage-wag .22s ease-in-out infinite alternate; }
.cottage-art .cottage-leg { transform-origin: 12px 3px; animation: cottage-stride .28s ease-in-out infinite alternate; }
.cottage-art .leg-b { animation-direction: alternate-reverse; }
.cottage-art .cottage-smoke { animation: cottage-smoke 3s ease-out infinite; }
.cottage-art .cottage-snow circle { animation: cottage-snow 5s linear infinite; animation-delay: var(--delay); }
@keyframes cottage-peek { 0%, 8%, 36%, 100% { transform: translateY(15px); } 13%, 29% { transform: translateY(0); } }
@keyframes cottage-run { 0%, 48% { transform: translateX(-35px); opacity: 0; } 49% { opacity: 1; } 77% { transform: translateX(325px); opacity: 1; } 78%,100% { transform: translateX(325px); opacity: 0; } }
@keyframes cottage-bounce { to { transform: translateY(-3px); } }
@keyframes cottage-wag { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes cottage-stride { from { transform: rotate(-15deg); } to { transform: rotate(15deg); } }
@keyframes cottage-smoke { from { transform: translate(0,4px); opacity: .7; } to { transform: translate(5px,-10px); opacity: 0; } }
@keyframes cottage-snow { from { transform: translate(0,0); opacity: 0; } 15%,75% { opacity: .75; } to { transform: translate(7px,95px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cottage-art * { animation: none !important; } .cottage-art .cottage-run { transform: translateX(205px); } .cottage-art .cottage-peek { display: none; } }

/* Giveaway entry form */
.giveaway-entry {max-width: 620px; margin: 2rem auto 0; padding: clamp(1rem,4vw,2rem); background:#fffdf8; color:#294b3b; border:1px solid #d8d2c4; border-radius:16px; text-align:center;}
.giveaway-entry h3 {font-size:1.65rem; margin:0 0 .8rem; color:#294b3b;}
#giveaway-form {display:grid; gap:.65rem; text-align:left; margin:1.5rem 0;}
#giveaway-form input:not([type=checkbox]) {width:100%; box-sizing:border-box; padding:.8rem; border:1px solid #a9b6a8; border-radius:8px; background:white; color:#294b3b; font:inherit;}
.entry-consent {display:flex; gap:.65rem; align-items:flex-start; font-size:.9rem; margin:.5rem 0;}
.entry-consent input {accent-color:#294b3b; margin-top:.25rem;}
#giveaway-form button {width:100%; cursor:pointer; font:inherit;}
#giveaway-form button:disabled {opacity:.55; cursor:not-allowed;}
#entry-status {text-align:center; font-size:.9rem; min-height:1.2em;}
.giveaway-rules {text-align:left; border-top:1px solid #d8d2c4; padding-top:1rem; margin-top:1.5rem; font-size:.9rem; line-height:1.6;}
.giveaway-rules summary {cursor:pointer; font-weight:bold;}
.giveaway-rules p {margin:.8rem 0;}

/* Responsive photo gallery: independent columns, natural image proportions. */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}
.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.gallery-photo {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    background: var(--warm-white);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-photo img {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .gallery-photo:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
}
@media (max-width: 900px) {
    .gallery-grid, .gallery-column { gap: 12px; }
    .gallery-photo { padding: 6px; }
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; max-width: 450px; }
}
