/* ── Murder Under the Mistletoe Theme ────────────────────────────────────────
   A Golden Age country-house Christmas: cozy, but someone won't make it to Boxing
   Day. Holly-black pages, aged-ivory type, oxblood and antique gold, Art Deco
   lettering and typewritten case-file labels. Part of the Christmas collection.
   Fonts: Limelight (Deco display) / Crimson Pro / Josefin Sans / Special Elite (labels).
   Loaded on top of default.css — overrides variables plus a few signature touches.
   ─────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Limelight&family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,400&family=Josefin+Sans:wght@500;600;700&family=Special+Elite&display=swap');

:root {
    color-scheme: dark;
    --t-bg:             #0f1814;
    --t-bg-alt:         #13201a;
    --t-surface:        #182820;
    --t-border:         #2c4236;
    --t-text:           #ece3cf;
    --t-text-muted:     #b5aa92;
    --t-accent:         #9b1c27;
    --t-accent-hover:   #7f1620;
    --t-accent-light:   #2a1517;
    --t-on-accent:      #f6eedb;
    --t-link:           #e8737a;   /* oxblood is too dark to read as text on these pages */
    --t-link-hover:     #f29a9f;
    --t-heading-font:   'Limelight', 'Poiret One', Georgia, serif;
    --t-heading-weight: 400;
    --t-body-font:      'Crimson Pro', Georgia, 'Times New Roman', serif;
    --t-ui-font:        'Josefin Sans', 'Futura', 'Century Gothic', system-ui, sans-serif;
    --t-radius:         2px;
    --t-radius-lg:      3px;
    --t-shadow:         0 2px 12px rgba(0, 0, 0, .55);
    --t-shadow-lg:      0 10px 32px rgba(0, 0, 0, .75);
    --t-cover-shadow:   0 4px 10px rgba(0, 0, 0, .6), 0 14px 32px rgba(0, 0, 0, .6);
    --t-hero-bg:        radial-gradient(ellipse at 72% 35%, rgba(212, 176, 106, .16) 0%, transparent 55%), linear-gradient(170deg, #070d0a 0%, #0f1c16 55%, #1a2a21 100%);
    --t-hero-text:      #f3ead6;
    --t-hero-muted:     rgba(243, 234, 214, .82);
    --t-hero-accent:    #d4b06a;
    --t-on-hero-accent: #1a1208;
    --t-success:        #8fd19e;
    --t-error:          #ff8a80;

    /* Theme-only colours */
    --mm-gold:          #c9a45c;
    --mm-typewriter:    'Special Elite', 'Courier New', monospace;
}

/* Crimson Pro runs small and light */
body { font-size: 19px; line-height: 1.65; }

/* Limelight is a Deco display face: give it room, keep it off small text */
.section-heading { letter-spacing: .03em; color: var(--t-hero-accent); }
.hero-name { font-size: clamp(2.6rem, 6.8vw, 4.9rem); line-height: 1.04; letter-spacing: .02em; }
.book-title, .post-title, .world-title, .product-title, .event-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 600;
    font-size: 1.22rem;
}
.nav-brand, .footer-name { letter-spacing: .04em; }

/* Deco UI: small capitals, tracked out */
.nav-links a, .hero-cta, .hero-feature-buy, .book-btn, .contact-submit, .newsletter-cta, .event-cta,
.event-register-btn, .product-cta, .books-more-btn, .blog-more-btn, .events-more-btn, .gallery-more-btn,
.store-more-btn, .reviews-more-btn, .worldbuilding-more-btn, .age-gate-enter, .age-gate-leave, .coming-soon-cta {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
}

/* A book card's two buttons sit side by side: less tracking so both fit */
.book-btn { letter-spacing: .05em; font-size: .76rem; }

/* Typewritten case-file labels */
.hero-genre, .hero-feature-label, .coming-soon-label, .age-gate-label, .post-date, .event-date,
.book-series, .hero-feature-series, .book-detail-series, .review-meta, .world-tag, .post-tag {
    font-family: var(--mm-typewriter);
    letter-spacing: .06em;
}
.hero-genre, .hero-feature-label, .coming-soon-label, .age-gate-label { font-size: .9rem; letter-spacing: .14em; }

/* Holly with a berry that's really a drop of blood, under each heading */
.section-heading::after {
    width: 70px;
    height: 24px;
    margin-top: .8rem;
    border-radius: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 24'%3E%3Cpath d='M2 12h22M46 12h22' stroke='%23c9a45c' stroke-width='1' opacity='.7'/%3E%3Cpath d='M35 11c-3-6-9-7-12-5 1 1 1 3 0 4 2 0 3 2 2 3 2 0 3 1 3 3 3-1 6-3 7-5z' fill='%233f7a5a'/%3E%3Cpath d='M35 11c3-6 9-7 12-5-1 1-1 3 0 4-2 0-3 2-2 3-2 0-3 1-3 3-3-1-6-3-7-5z' fill='%23356b4e'/%3E%3Cpath d='M35 9c0 0 3.6 5.2 3.6 8.2a3.6 3.6 0 0 1-7.2 0C31.4 14.2 35 9 35 9z' fill='%23c0303a'/%3E%3Cellipse cx='33.8' cy='16.4' rx='.9' ry='1.4' fill='%23fff' opacity='.45'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Gilt Deco rule under the navigation */
.site-nav { border-bottom: none; box-shadow: inset 0 -1px 0 rgba(201, 164, 92, .55), inset 0 -4px 0 var(--t-surface), inset 0 -5px 0 rgba(201, 164, 92, .3); }
.nav-scrolled { box-shadow: inset 0 -1px 0 rgba(201, 164, 92, .55), inset 0 -4px 0 var(--t-surface), inset 0 -5px 0 rgba(201, 164, 92, .3), var(--t-shadow); }

/* Case-file cards: dark paper inside a thin gilt double rule */
.post-card, .event-card, .review-card, .world-card, .product-card, .contact-block {
    border-color: rgba(201, 164, 92, .35);
    box-shadow: inset 0 0 0 3px var(--t-surface), inset 0 0 0 4px rgba(201, 164, 92, .18), var(--t-shadow);
}
.book-card:hover .book-cover-wrap,
.post-card:hover,
.product-card:hover {
    box-shadow: 0 8px 30px rgba(212, 176, 106, .2), 0 2px 10px rgba(0, 0, 0, .7);
}
.book-detail-cover { box-shadow: 0 10px 40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(201, 164, 92, .35); }

/* "Coming Soon" and event types as rubber stamps */
.book-badge--soon, .event-type-badge {
    font-family: var(--mm-typewriter);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #ff9a9a;
    background: rgba(40, 6, 9, .78);
    border: 2px solid #d9545c;
    border-radius: 2px;
    box-shadow: none;
    transform: rotate(-4deg);
}
.event-type-badge { transform: rotate(-2deg); }

.review-stars { color: var(--t-hero-accent); }
.review-text { font-style: italic; }
.review-card--featured { border-color: var(--mm-gold); }

.hero-cta, .age-gate-leave { border-color: rgba(212, 176, 106, .6); }
.hero-cta:hover, .age-gate-leave:hover { background: rgba(212, 176, 106, .14); border-color: var(--t-hero-accent); }

/* Newsletter band framed in gilt rules, like an engraved invitation */
.site-section--newsletter {
    box-shadow: inset 0 1px 0 rgba(201, 164, 92, .6), inset 0 6px 0 transparent, inset 0 -1px 0 rgba(201, 164, 92, .6);
}
.newsletter-cta { background: var(--t-hero-accent); color: var(--t-on-hero-accent); }
.newsletter-cta:hover { background: #e6c27c; color: var(--t-on-hero-accent); }

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

/* Wind-blown snow drifting across the hero (two layers, slanting left to right) */
.site-section--hero::before,
.age-gate::before {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='30' cy='40' r='2.2' opacity='.75'/%3E%3Ccircle cx='140' cy='20' r='1.6' opacity='.6'/%3E%3Ccircle cx='250' cy='90' r='2.4' opacity='.7'/%3E%3Ccircle cx='80' cy='170' r='1.4' opacity='.5'/%3E%3Ccircle cx='200' cy='210' r='2' opacity='.7'/%3E%3Ccircle cx='310' cy='260' r='1.6' opacity='.55'/%3E%3Ccircle cx='120' cy='300' r='2.2' opacity='.65'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='230' height='230'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='20' cy='30' r='1' opacity='.45'/%3E%3Ccircle cx='110' cy='70' r='1.1' opacity='.4'/%3E%3Ccircle cx='190' cy='20' r='.9' opacity='.45'/%3E%3Ccircle cx='60' cy='150' r='1' opacity='.35'/%3E%3Ccircle cx='170' cy='190' r='1.1' opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 340px 340px, 230px 230px;
    animation: mistletoe-snow 34s linear infinite;
}
@keyframes mistletoe-snow {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 680px 680px, 230px 460px; }
}

/* Lamplight vignette: the corners of the hero fall into shadow */
.site-section--hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at 50% 45%, transparent 60%, rgba(0, 0, 0, .38) 100%);
    pointer-events: none;
}

/* A framed portrait from the manor's hallway: gilt double frame around the photo.
   The author can pick another shape in the dashboard; the frame follows it. */
.about-photo, .about-initials {
    width: 260px;
    height: 320px;
    border-radius: 2px;
    box-shadow: 0 0 0 3px var(--t-bg-alt), 0 0 0 4px var(--mm-gold), 0 0 0 9px var(--t-bg-alt), 0 0 0 10px rgba(201, 164, 92, .5), var(--t-shadow-lg);
}
.about-initials { background: linear-gradient(160deg, #2a1517, #4a1a20); color: var(--t-hero-accent); }
@media (max-width: 768px) {
    .about-photo, .about-initials { width: 200px; height: 246px; }
}
