/* ── Hometown Christmas Theme ─────────────────────────────────────────────────
   Cozy, bright, small-town holiday: the feel of a Christmas movie set on a snowy
   main street. Snow-cream pages, cranberry accents, evergreen headings, warm
   string-light gold. Part of the Christmas collection.
   Fonts: DM Serif Display (holiday-card serif) / Nunito / Dancing Script (labels).
   Loaded on top of default.css — overrides variables plus a few signature touches.
   ─────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Dancing+Script:wght@600;700&family=Nunito:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --t-bg:             #fbf7f0;
    --t-bg-alt:         #f4ede2;
    --t-surface:        #fffdf9;
    --t-border:         #e8dccb;
    --t-text:           #22302a;
    --t-text-muted:     #5f5248;
    --t-accent:         #a8232e;
    --t-accent-hover:   #861b24;
    --t-accent-light:   #f8e3e0;
    --t-on-accent:      #ffffff;
    --t-heading-font:   'DM Serif Display', Georgia, 'Times New Roman', serif;
    --t-heading-weight: 400;
    --t-body-font:      'Nunito', 'Segoe UI', system-ui, sans-serif;
    --t-ui-font:        'Nunito', 'Segoe UI', system-ui, sans-serif;
    --t-radius:         8px;
    --t-radius-lg:      14px;
    --t-shadow:         0 1px 3px rgba(90, 50, 20, .07), 0 4px 14px rgba(90, 50, 20, .07);
    --t-shadow-lg:      0 12px 32px rgba(90, 50, 20, .16);
    --t-cover-shadow:   0 2px 5px rgba(60, 30, 10, .15), 0 14px 30px rgba(60, 30, 10, .22);
    --t-hero-bg:        radial-gradient(ellipse at 78% 28%, rgba(255, 190, 110, .26) 0%, transparent 55%), linear-gradient(165deg, #10261c 0%, #1b3d2c 50%, #2b5238 100%);
    --t-hero-text:      #fff8ec;
    --t-hero-muted:     rgba(255, 248, 236, .84);
    --t-hero-accent:    #f4c96b;
    --t-on-hero-accent: #1d2a22;
    --t-success:        #2f7d4f;
    --t-error:          #b3261e;

    /* Theme-only colours */
    --hc-evergreen:     #1c4532;
    --hc-cranberry-deep:#8a1c25;
}

/* DM Serif Display has a single weight: a touch of tracking keeps it from crowding */
.section-heading, .hero-name, .book-detail-title, .post-detail-title, .event-detail-title { letter-spacing: .005em; }
.hero-name { font-size: clamp(2.75rem, 7vw, 5.1rem); line-height: 1.02; }
.book-title, .post-title, .world-title, .product-title, .event-title { font-size: 1.2rem; }

/* Evergreen headings */
.section-heading, .book-detail-title, .post-detail-title, .event-detail-title, .not-found-inner h1 { color: var(--hc-evergreen); }

/* Small labels become handwritten, like the greeting on a Christmas card */
.hero-genre, .hero-feature-label, .coming-soon-label, .age-gate-label {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 1.55rem;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
}
.hero-feature-label { font-size: 1.35rem; }

/* Gingham ribbon under headings */
.section-heading::after {
    width: 88px;
    height: 10px;
    margin-top: .9rem;
    border-radius: 2px;
    background:
        linear-gradient(90deg, rgba(168, 35, 46, .55) 50%, transparent 50%) 0 0 / 10px 10px,
        linear-gradient(rgba(168, 35, 46, .55) 50%, transparent 50%) 0 0 / 10px 10px,
        #fbe8e5;
}

/* Warm-gold outline button on the evergreen hero */
.hero-cta, .age-gate-leave { border-color: rgba(244, 201, 107, .7); }
.hero-cta:hover, .age-gate-leave:hover { background: rgba(244, 201, 107, .16); border-color: var(--t-hero-accent); }

/* Newsletter band in cranberry, like a ribbon across the page */
.site-section--newsletter {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .05) 50%, transparent 50%) 0 0 / 28px 28px,
        linear-gradient(rgba(255, 255, 255, .05) 50%, transparent 50%) 0 0 / 28px 28px,
        linear-gradient(160deg, #8a1c25 0%, #a8232e 55%, #b02c35 100%);
}
.newsletter-desc { color: rgba(255, 248, 236, .88); }
.newsletter-cta, .newsletter-cta:hover { background: var(--t-hero-text); color: var(--hc-cranberry-deep); }

/* Cards: warm paper with a soft shadow */
.post-card, .event-card, .review-card, .world-card, .product-card, .contact-block { box-shadow: var(--t-shadow); }
.book-card:hover .book-cover-wrap,
.post-card:hover,
.product-card:hover {
    box-shadow: 0 12px 30px rgba(168, 35, 46, .16), 0 2px 8px rgba(90, 50, 20, .1);
}

/* Text-only cards get a stitched edge, like a felt stocking */
.review-card:not(:focus-visible), .contact-block:not(:focus-visible) {
    outline: 1.5px dashed rgba(168, 35, 46, .32);
    outline-offset: -8px;
}

.review-text { font-style: italic; }

/* ── Signature touches (as shown in the theme demo) ──────────────────────────*/

/* Snow drifting down through the hero (two layers at different speeds) */
.site-section--hero::before,
.age-gate::before {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='22' cy='30' r='2.6' opacity='.9'/%3E%3Ccircle cx='96' cy='12' r='1.8' opacity='.7'/%3E%3Ccircle cx='160' cy='70' r='3' opacity='.85'/%3E%3Ccircle cx='250' cy='40' r='2' opacity='.75'/%3E%3Ccircle cx='60' cy='130' r='1.6' opacity='.6'/%3E%3Ccircle cx='205' cy='150' r='2.4' opacity='.9'/%3E%3Ccircle cx='120' cy='200' r='2.8' opacity='.8'/%3E%3Ccircle cx='280' cy='210' r='1.6' opacity='.6'/%3E%3Ccircle cx='30' cy='245' r='2.2' opacity='.8'/%3E%3Ccircle cx='175' cy='275' r='1.8' opacity='.7'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='260'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='15' cy='20' r='1.1' opacity='.55'/%3E%3Ccircle cx='80' cy='60' r='1.3' opacity='.45'/%3E%3Ccircle cx='150' cy='25' r='1' opacity='.5'/%3E%3Ccircle cx='200' cy='110' r='1.2' opacity='.5'/%3E%3Ccircle cx='45' cy='150' r='1' opacity='.4'/%3E%3Ccircle cx='120' cy='175' r='1.3' opacity='.55'/%3E%3Ccircle cx='180' cy='230' r='1' opacity='.45'/%3E%3Ccircle cx='70' cy='240' r='1.2' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 300px 300px, 220px 260px;
    animation: hometown-snow 30s linear infinite;
}
@keyframes hometown-snow {
    from { background-position: 0 0, 40px 0; }
    to   { background-position: 300px 600px, 40px 260px; }
}

/* A soft snowdrift along the bottom of the hero, running into the page below */
.site-section--hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;
    height: clamp(22px, 3.2vw, 44px);
    background: var(--hc-drift, var(--t-bg));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 38 C 120 14, 230 16, 340 30 S 560 52, 700 30 S 960 6, 1080 24 S 1170 40, 1200 32 V60 H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 38 C 120 14, 230 16, 340 30 S 560 52, 700 30 S 960 6, 1080 24 S 1170 40, 1200 32 V60 H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
    pointer-events: none;
}
/* The drift takes the colour of the section below it (the demo's first section, and some
   layouts, use the alternate background) */
.site-section--hero:has(+ .site-section--about, + .site-section--events, + .site-section--reviews,
                        + .site-section--contact, + .site-section--features) { --hc-drift: var(--t-bg-alt); }

/* A strand of Christmas lights hanging under the navigation on every page */
.site-nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='24'%3E%3Cpath d='M0 3 Q 45 15 90 3 Q 135 15 180 3' fill='none' stroke='%231c4532' stroke-width='1.5'/%3E%3Crect x='20.7' y='6.6' width='3.6' height='3.6' rx='.7' fill='%231c4532'/%3E%3Cellipse cx='22.5' cy='15.6' rx='4.3' ry='6.2' fill='%23e0414a'/%3E%3Cellipse cx='21' cy='13.4' rx='1.1' ry='2.1' fill='%23fff' opacity='.55'/%3E%3Crect x='65.7' y='6.6' width='3.6' height='3.6' rx='.7' fill='%231c4532'/%3E%3Cellipse cx='67.5' cy='15.6' rx='4.3' ry='6.2' fill='%23f4c24d'/%3E%3Cellipse cx='66' cy='13.4' rx='1.1' ry='2.1' fill='%23fff' opacity='.55'/%3E%3Crect x='110.7' y='6.6' width='3.6' height='3.6' rx='.7' fill='%231c4532'/%3E%3Cellipse cx='112.5' cy='15.6' rx='4.3' ry='6.2' fill='%233f9a5a'/%3E%3Cellipse cx='111' cy='13.4' rx='1.1' ry='2.1' fill='%23fff' opacity='.55'/%3E%3Crect x='155.7' y='6.6' width='3.6' height='3.6' rx='.7' fill='%231c4532'/%3E%3Cellipse cx='157.5' cy='15.6' rx='4.3' ry='6.2' fill='%233b7fc4'/%3E%3Cellipse cx='156' cy='13.4' rx='1.1' ry='2.1' fill='%23fff' opacity='.55'/%3E%3C/svg%3E") 0 0 / 180px 24px repeat-x;
    filter: drop-shadow(0 0 3px rgba(255, 205, 120, .55));
    animation: hometown-twinkle 3.2s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes hometown-twinkle {
    from { filter: drop-shadow(0 0 2px rgba(255, 205, 120, .35)) brightness(.92); }
    to   { filter: drop-shadow(0 0 5px rgba(255, 205, 120, .8)) brightness(1.08); }
}
/* Out of the way while the mobile menu is open */
.site-nav:has(.nav-open)::after { opacity: 0; }

/* Arched portrait, like a frosted cottage window, framed in cream and evergreen.
   The author can pick another shape in the dashboard; the frame follows it. */
.about-photo, .about-initials {
    width: 260px;
    height: 320px;
    border-radius: 50% 50% var(--t-radius-lg) var(--t-radius-lg) / 40.625% 40.625% var(--t-radius-lg) var(--t-radius-lg);
    box-shadow: 0 0 0 6px var(--t-surface), 0 0 0 8px var(--hc-evergreen), var(--t-shadow-lg);
}
.about-initials { background: linear-gradient(160deg, var(--hc-evergreen), #2b5238); color: var(--t-hero-text); }
@media (max-width: 768px) {
    .about-photo, .about-initials { width: 200px; height: 246px; }
}
