/* ── Mistletoe & Midnight Theme ──────────────────────────────────────────────
   After-dark holiday romance: a glittering party, a kiss under the mistletoe as
   the clock strikes twelve. Midnight navy and plum, champagne gold, wine red and
   blush. Part of the Christmas collection.
   Fonts: Bodoni Moda (high-contrast display) / Libre Caslon Text / Jost.
   Loaded on top of default.css — overrides variables plus a few signature touches.
   ─────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..700;1,6..96,400..700&family=Jost:wght@400;500;600&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    color-scheme: dark;
    --t-bg:             #0d0f1f;
    --t-bg-alt:         #141429;
    --t-surface:        #1b1a33;
    --t-border:         #34305a;
    --t-text:           #f3ecf0;
    --t-text-muted:     #bbb1cb;
    --t-accent:         #8e1f3f;
    --t-accent-hover:   #741832;
    --t-accent-light:   #2e1530;
    --t-on-accent:      #fff3f6;
    --t-link:           #f08aa8;   /* blush: wine is too dark to read as text at midnight */
    --t-link-hover:     #f7b3c6;
    --t-heading-font:   'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
    --t-heading-weight: 500;
    --t-body-font:      'Libre Caslon Text', Georgia, 'Times New Roman', serif;
    --t-ui-font:        'Jost', 'Futura', system-ui, sans-serif;
    --t-radius:         10px;      /* buttons, tags and badges are made pills below */
    --t-radius-lg:      14px;
    --t-shadow:         0 2px 14px rgba(0, 0, 0, .5);
    --t-shadow-lg:      0 12px 36px rgba(0, 0, 0, .7);
    --t-cover-shadow:   0 4px 12px rgba(0, 0, 0, .55), 0 16px 36px rgba(0, 0, 0, .55);
    --t-hero-bg:        radial-gradient(ellipse at 75% 30%, rgba(232, 196, 128, .18) 0%, transparent 55%), linear-gradient(165deg, #06071a 0%, #120f2e 55%, #2a1336 100%);
    --t-hero-text:      #fbf3ea;
    --t-hero-muted:     rgba(251, 243, 234, .82);
    --t-hero-accent:    #e8c480;
    --t-on-hero-accent: #1a1020;
    --t-success:        #8fd19e;
    --t-error:          #ff8fa3;

    /* Theme-only colours */
    --mn-champagne:     #e8c480;
}

/* Libre Caslon is generous: a touch smaller keeps line lengths comfortable */
body { font-size: 16.5px; line-height: 1.8; }

/* Bodoni: champagne headings; the author's name in italic, like an invitation */
.section-heading { color: var(--mn-champagne); letter-spacing: .01em; }
.hero-name { font-style: italic; font-weight: 500; font-size: clamp(2.9rem, 7.4vw, 5.4rem); line-height: 1.02; }
.age-gate-name, .coming-soon-name, .nav-brand, .footer-name { font-style: italic; }
.book-title, .post-title, .world-title, .product-title, .event-title { font-size: 1.15rem; }

/* Labels and buttons: widely tracked capitals, like an engraved invitation */
.hero-genre, .hero-feature-label, .coming-soon-label, .age-gate-label { letter-spacing: .3em; font-weight: 500; }
.nav-links a { letter-spacing: .08em; }

/* Pill-shaped buttons, tags and badges (inputs, menus and thumbnails keep --t-radius) */
.ppd-cta, .coming-soon-cta, .hero-feature-buy, .book-btn, .books-more-btn, .blog-more-btn, .book-detail-store-btn,
.event-cta, .event-register-btn, .product-cta, .contact-submit, .newsletter-cta, .reviews-more-btn,
.worldbuilding-more-btn, .events-more-btn, .gallery-more-btn, .store-more-btn, .hero-cta, .age-gate-enter,
.age-gate-leave, .post-tag, .world-tag, .book-badge--soon, .event-type-badge, .event-format-badge,
.product-type-badge, .reviews-filter-btn, .world-filter-btn { border-radius: 999px; }

/* Gold hairlines with a sparkle in the middle */
.section-heading::after {
    width: 120px;
    height: 14px;
    margin-top: .9rem;
    border-radius: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M0 7h48M72 7h48' stroke='%23e8c480' stroke-width='1' opacity='.75'/%3E%3Cpath d='M60 0c.9 4.2 2.8 6.1 7 7-4.2.9-6.1 2.8-7 7-.9-4.2-2.8-6.1-7-7 4.2-.9 6.1-2.8 7-7z' fill='%23e8c480'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* A champagne hairline under the navigation */
.site-nav { border-bottom-color: rgba(232, 196, 128, .35); }

/* Midnight cards edged in champagne */
.post-card, .event-card, .review-card, .world-card, .product-card, .contact-block { border-color: rgba(232, 196, 128, .22); }
.book-card:hover .book-cover-wrap,
.post-card:hover,
.product-card:hover {
    box-shadow: 0 10px 34px rgba(232, 196, 128, .22), 0 2px 10px rgba(0, 0, 0, .6);
}
.book-detail-cover { box-shadow: 0 10px 40px rgba(232, 196, 128, .18), 0 2px 12px rgba(0, 0, 0, .7); }

.book-badge--soon { background: var(--mn-champagne); color: var(--t-on-hero-accent); }
.review-stars { color: var(--mn-champagne); }
.review-text { font-style: italic; }

.hero-cta, .age-gate-leave { border-color: rgba(232, 196, 128, .65); }
.hero-cta:hover, .age-gate-leave:hover { background: rgba(232, 196, 128, .14); border-color: var(--t-hero-accent); }

/* Newsletter band in wine, with a champagne button */
.site-section--newsletter { background: linear-gradient(160deg, #3a0f24 0%, #6e1a3a 55%, #8e1f3f 100%); }
.newsletter-desc { color: rgba(255, 243, 246, .88); }
.newsletter-cta, .newsletter-cta:hover { background: var(--mn-champagne); color: var(--t-on-hero-accent); }

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

/* Champagne bokeh drifting slowly up through the hero */
.site-section--hero::before,
.age-gate::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cdefs%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='2.5'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23b)'%3E%3Ccircle cx='60' cy='80' r='26' fill='%23e8c480' opacity='.37'/%3E%3Ccircle cx='210' cy='40' r='14' fill='%23f7c9d6' opacity='.42'/%3E%3Ccircle cx='380' cy='120' r='34' fill='%23e8c480' opacity='.27'/%3E%3Ccircle cx='470' cy='300' r='18' fill='%23e8c480' opacity='.44'/%3E%3Ccircle cx='140' cy='280' r='20' fill='%23f7c9d6' opacity='.31'/%3E%3Ccircle cx='300' cy='360' r='28' fill='%23e8c480' opacity='.31'/%3E%3Ccircle cx='80' cy='450' r='12' fill='%23e8c480' opacity='.51'/%3E%3Ccircle cx='420' cy='470' r='10' fill='%23f7c9d6' opacity='.51'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 520px 520px;
    mix-blend-mode: screen;   /* the bokeh adds light, so it glows over a dark banner instead of greying it */
    animation: midnight-bokeh 70s linear infinite;
}
/* Softer over a plain background than over a banner photo */
.site-section--hero:not(.hero--has-image)::before, .age-gate::before { opacity: .7; }
@keyframes midnight-bokeh {
    to { background-position: 520px -520px; }
}

/* A sprig of mistletoe on a wine ribbon, hanging from the top of the hero */
.site-section--hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: calc(50% - 45px);
    z-index: 1;
    width: 90px;
    height: 130px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 130'%3E%3Cpath d='M45 0v52' stroke='%238e1f3f' stroke-width='2.5'/%3E%3Cpath d='M45 50c-9-6-17-4-16 2s10 6 16-2zM45 50c9-6 17-4 16 2s-10 6-16-2z' fill='%23a3284d'/%3E%3Cpath d='M45 50l-5 14M45 50l5 14' stroke='%238e1f3f' stroke-width='2.5' stroke-linecap='round'/%3E%3Cg fill='%237d9a52'%3E%3Cpath d='M45 58c-12 4-22 16-22 30 10-4 18-14 22-30z'/%3E%3Cpath d='M45 58c12 4 22 16 22 30-10-4-18-14-22-30z'/%3E%3Cpath d='M45 62c-6 10-6 24 0 36 6-12 6-26 0-36z' fill='%2391ad63'/%3E%3Cpath d='M42 70c-14 0-26 10-30 24 12 0 24-10 30-24z' fill='%236b8946'/%3E%3Cpath d='M48 70c14 0 26 10 30 24-12 0-24-10-30-24z' fill='%236b8946'/%3E%3C/g%3E%3Cg fill='%23fbf3ea'%3E%3Ccircle cx='40' cy='72' r='3.4'/%3E%3Ccircle cx='50' cy='73' r='3.4'/%3E%3Ccircle cx='45' cy='79' r='3.6'/%3E%3C/g%3E%3C/svg%3E") center top / contain no-repeat;
    transform-origin: 50% 0;
    animation: midnight-sway 6s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes midnight-sway {
    from { transform: rotate(-3deg); }
    to   { transform: rotate(3deg); }
}
@media (max-width: 900px) {
    /* Out of the way of the stacked hero text */
    .site-section--hero::after { left: auto; right: 1rem; width: 56px; height: 82px; }
}

/* An oval portrait, like a vanity mirror, ringed in champagne.
   The author can pick another shape in the dashboard; the ring follows it. */
.about-photo, .about-initials {
    width: 260px;
    height: 320px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--t-bg-alt), 0 0 0 5px var(--mn-champagne), 0 0 46px rgba(232, 196, 128, .22), var(--t-shadow-lg);
}
.about-initials { background: linear-gradient(160deg, #2a1336, #6e1a3a); color: var(--mn-champagne); }
@media (max-width: 768px) {
    .about-photo, .about-initials { width: 200px; height: 246px; }
}
