/* ===========================================================
   J.V. Hilliard - Author Site
   Palette extracted from actual site assets:
   near-black #100c09, parchment #f3e1c9, aged bronze #ad823a
   (light #d1a14f / dark #8a6a2f), burgundy accent #3d0f16
   Display: Spectral SC (small-caps serif) / Body: Montserrat
   =========================================================== */

:root {
    --color-black: #100c09;
    --color-parchment: #f3e1c9;
    --color-parchment-dark: #e6d0a3;
    --color-bronze: #ad823a;
    --color-bronze-light: #d1a14f;
    --color-bronze-dark: #8a6a2f;
    --color-burgundy: #3d0f16;
    --color-text-dark: #241c10;
    --color-text-light: #f4ecd8;
    --font-display: 'Spectral SC', Georgia, serif;
    --font-ornate: 'Spectral SC', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
    --radius: 6px;
    --texture-bronze: url('/assets/img/textures/bronze-texture.png');
    --texture-grunge: url('/assets/img/textures/grunge-overlay.png');
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-parchment);
    color: var(--color-text-dark);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    margin: 0 0 0.5em;
    letter-spacing: 0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
.site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
}
.site-header.solid { position: relative; background: var(--color-black); }
.logo { font-family: var(--font-ornate); font-size: 28px; color: var(--color-bronze-light); display: flex; align-items: center; gap: 8px; }
.logo img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 32px; }
.main-nav a {
    color: var(--color-text-light);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}
.main-nav a.active, .main-nav a:hover { color: var(--color-bronze-light); border-color: var(--color-bronze-light); }
.header-right { display: flex; align-items: center; gap: 16px; }
.pill-btn {
    border: 1px solid var(--color-bronze-light);
    color: var(--color-text-light);
    padding: 10px 22px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.06em;
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    cursor: pointer;
}
.pill-btn:hover { background: var(--color-bronze-light); color: var(--color-black); }
.mobile-nav-toggle { display: none; background: none; border: none; color: var(--color-text-light); font-size: 28px; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--color-black);
}
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video-wrap video, .hero-video-wrap img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-poster-behind {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    z-index: 0; /* sits behind the iframe while YouTube loads */
}
.hero-video-wrap .hero-yt-iframe {
    z-index: 1;
    position: absolute;
    top: 50%; left: 50%;
    width: 100vw; height: 56.25vw;     /* 16:9 */
    min-height: 100vh; min-width: 177.78vh; /* 16:9 */
    /* scale-up crops YouTube's title bar and control strip outside the visible area */
    transform: translate(-50%, -50%) scale(1.35);
    pointer-events: none;
    border: none;
}
.hero-video-wrap::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(16,12,9,.55) 0%, rgba(16,12,9,.35) 40%, rgba(16,12,9,.9) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 100px 40px 40px; }
.series-toggle-row { display: flex; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; justify-content: center; }
.series-toggle {
    padding: 16px 28px;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 16px;
    color: #fff;
    display: inline-flex; align-items: center; gap: 10px;
    border: none;
    box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.series-toggle.a { background: linear-gradient(135deg, var(--color-bronze-light), var(--color-bronze-dark)); }
.series-toggle.b { background: linear-gradient(135deg, #6b5a8f, var(--color-burgundy)); }

.book-stack-row { display: flex; align-items: flex-end; gap: 48px; flex-wrap: wrap; justify-content: center; }
.book-stack { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.book-stack img {
    width: 250px;
    border-radius: 3px;
    box-shadow: 0 20px 40px rgba(0,0,0,.5);
    transition: transform .25s ease;
    cursor: pointer;
}
.book-stack img:hover { transform: translateY(-14px); }
.hero-standalone-book img { width: 270px; border-radius: 3px; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.hero-tagline { margin-top: 30px; color: var(--color-text-light); font-family: var(--font-display); font-size: 18px; text-align: center; }

/* ---------- AWARDS STRIP ---------- */
.awards-strip {
    background: var(--color-black);
    border-top: 1px solid rgba(209,161,79,.35);
    border-bottom: 1px solid rgba(209,161,79,.35);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 44px;
    flex-wrap: wrap;
}
/* Every badge renders at the exact same height, no matter the uploaded image's dimensions */
.awards-strip img {
    height: 140px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* ---------- SPONSORS STRIP (clean flat band - logos need to stay legible, not compete with texture) ---------- */
.sponsors-strip {
    background: var(--color-bronze-dark);
    border-top: 1px solid rgba(209,161,79,.45);
    padding: 26px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
/* Every logo renders in an identical box no matter the uploaded image's dimensions */
.sponsors-strip img {
    height: 120px;
    width: 200px;
    object-fit: contain;
    filter: brightness(1.1);
}

/* ---------- SECTION DIVIDER (medieval fleuron ornament: gold hairline + printer's flower) ---------- */
.torn-divider {
    height: 72px;
    background: var(--color-parchment);
    position: relative;
}
.torn-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(460px, 62%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-bronze) 18%, var(--color-bronze) 82%, transparent);
}
.torn-divider::after {
    content: '\2766'; /* fleuron ornament */
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-parchment);
    padding: 0 18px;
    color: var(--color-bronze);
    font-size: 24px;
    line-height: 1;
}
/* On dark sections: same ornament, black field */
.torn-divider.black {
    background: var(--color-black);
}
.torn-divider.black::after {
    background: var(--color-black);
    color: var(--color-bronze-light);
}

/* ---------- BOOK SLIDER (product carousel) ---------- */
.book-slider-section { padding: 80px 0; background: var(--color-parchment); position: relative; }
.book-slider { display: flex; align-items: center; justify-content: center; gap: 60px; position: relative; }
.slider-arrow {
    background: #fff; border: none; width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    cursor: pointer; font-size: 20px; flex-shrink: 0;
}
.slider-book-card { display: flex; gap: 60px; align-items: center; max-width: 900px; }
.slider-book-cover img { width: 280px; border-radius: 3px; box-shadow: 0 20px 40px rgba(0,0,0,.3); cursor: pointer; }
.slider-book-info h2 { font-size: 40px; }
.slider-book-info .by-line { font-family: var(--font-display); font-size: 15px; letter-spacing: .05em; margin-bottom: 4px; color: #6b5c3f; }
.slider-book-info .price { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin: 14px 0 24px; }
.available-on-label { text-align: center; font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; color: #8a7a52; margin-bottom: 14px; }
.retailer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 22px; }
.retailer-btn { background: transparent; border: none; padding: 0; display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.retailer-btn img { width: 100%; height: 64px; object-fit: contain; }
.retailer-btn:hover { transform: translateY(-3px); }
.details-link-btn {
    display: inline-block; margin-top: 20px; font-family: var(--font-display);
    font-size: 13px; letter-spacing: .06em; color: var(--color-bronze);
    border-bottom: 1px solid var(--color-bronze); padding-bottom: 3px; cursor: pointer;
}

/* ---------- WELCOME / REALM SECTION ---------- */
.realm-section { padding: 90px 0 40px; }
.eyebrow { font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; color: var(--color-bronze); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.realm-section h2 { font-size: 42px; max-width: 500px; }
/* Staggered ascending arrangement like the original: leftmost lowest, rising to the right */
.realm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 48px; margin-top: 40px; align-items: start; }
.realm-grid > div:nth-child(1) { margin-top: 100px; }
.realm-grid > div:nth-child(2) { margin-top: 0; }
.realm-grid img {
    border-radius: var(--radius);
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
    transition: transform .25s ease, box-shadow .25s ease;
}
.realm-grid a:hover img { transform: translateY(-8px); box-shadow: 0 22px 40px rgba(0,0,0,.24); }
.realm-grid .grid-label { text-align: center; font-family: var(--font-display); font-size: 17px; margin-top: 14px; letter-spacing: .04em; }

/* ---------- BUTTON ---------- */
.btn-solid {
    background: var(--color-bronze); color: #fff;
    border: 1px solid rgba(244,236,216,.4);
    box-shadow: inset 0 0 0 3px var(--color-bronze), inset 0 0 0 4px rgba(244,236,216,.35);
    padding: 14px 30px;
    border-radius: 999px; font-family: var(--font-display); font-size: 14px;
    letter-spacing: .05em; cursor: pointer; display: inline-block;
    transition: background .2s ease;
}
.btn-solid:hover { background: var(--color-bronze-dark); box-shadow: inset 0 0 0 3px var(--color-bronze-dark), inset 0 0 0 4px rgba(244,236,216,.35); }
.btn-outline {
    border: 1px solid var(--color-text-dark); padding: 12px 26px; border-radius: 999px;
    font-family: var(--font-display); font-size: 13px; letter-spacing: .05em; display: inline-block;
}

/* ---------- EVENTS / CALENDAR ---------- */
.events-section { padding: 90px 0; text-align: center; }
.events-section h2 { font-size: 46px; }
.events-section > .container > p { color: #8a7a5e; max-width: 480px; margin: 0 auto; }
.events-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 70px;
    margin: 70px auto 60px;
}
.events-icons > * { flex: 0 0 33.333%; }
.event-icon-circle {
    width: 110px; height: 110px; border-radius: 50%; background: var(--color-parchment-dark);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
    color: var(--color-bronze);
}
.event-icon-circle svg { width: 48px; height: 48px; }
.event-label {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--color-text-dark);
    margin: 0;
}

/* ---------- LATEST EVENT BANNER ---------- */
.event-banner {
    position: relative; min-height: 560px; display: flex; align-items: center;
    background: url('/assets/img/textures/dark-combat-cta.jpg') center/cover, var(--color-black);
    overflow: hidden;
}
.event-banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.event-banner-content { position: relative; z-index: 2; color: var(--color-text-light); max-width: 600px; padding: 40px; }
.event-banner-content h2 { font-size: 34px; line-height: 1.2; }

/* ---------- SUBSCRIBE BAND (form overlays the castle sketch; image's own tear ends the section) ---------- */
.subscribe-band {
    background: url('/assets/img/textures/castle-gold-torn.jpg') center bottom / 100% auto no-repeat, #be8c51;
    padding: 70px 40px 11vw;
    text-align: center;
    color: #fff;
}
.subscribe-band h2 { font-size: 36px; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.subscribe-form-row { display: flex; gap: 12px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.subscribe-form-row input {
    padding: 14px 20px; border-radius: 999px; border: none; min-width: 260px; font-family: var(--font-body); font-size: 16px;
}
.subscribe-form-row + .btn-solid { background: var(--color-black); }

/* ---------- TESTIMONIALS ---------- */
.testimonials-section { padding: 70px 0; text-align: center; }
.testimonial-quote { max-width: 760px; margin: 20px auto; font-size: 22px; font-style: italic; }
.testimonial-author { font-family: var(--font-body); font-style: italic; font-weight: 600; letter-spacing: .03em; font-size: 26px; color: var(--color-bronze); margin-top: 20px; }

/* ---------- AUTHOR BAND ---------- */
.author-band {
    background: #000;
    color: var(--color-text-light);
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 60px;
}
.author-band > div { padding: 70px 0; }
.author-band img.author-photo { width: auto; height: 380px; object-fit: contain; border-radius: 0; align-self: flex-end; }
.author-band .eyebrow { color: var(--color-bronze-light); }

/* ---------- GALLERY / FAN ART ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 60px 0; }
.gallery-grid img { border-radius: var(--radius); cursor: pointer; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--color-black); color: var(--color-text-light); padding: 50px 40px 0; }
.footer-top { display: flex; align-items: center; justify-content: center; gap: 30px; max-width: 1240px; margin: 0 auto; }
.footer-rule { flex: 1; height: 1px; background: rgba(209,161,79,.35); max-width: 260px; }
.site-footer .logo { justify-content: center; }
.site-footer .logo img { height: 60px; width: auto; }

.footer-socials {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 22px;
    margin: 22px 0 50px;
    font-family: var(--font-body); font-size: 14px; color: #b6a98c;
}
.footer-socials a { color: #b6a98c; }
.footer-socials a:hover { color: var(--color-bronze-light); }

.footer-columns {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
    max-width: 1240px; margin: 0 auto; padding-bottom: 50px;
}
.footer-col h4 {
    font-family: var(--font-display); font-size: 17px; letter-spacing: .04em;
    color: #fff; margin: 0 0 18px; text-transform: uppercase;
}
.footer-col a { display: block; color: #b6a98c; font-size: 15px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--color-bronze-light); }

.footer-bottom {
    border-top: 1px solid rgba(209,161,79,.2);
    max-width: 1240px; margin: 0 auto;
    padding: 26px 0 30px;
    text-align: center; font-size: 14px; color: #8d826b;
}
.footer-bottom a { color: #b6a98c; }
.footer-bottom a:hover { color: var(--color-bronze-light); }

@media (max-width: 800px) {
    .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
    .footer-rule { display: none; }
}

/* ---------- AUTHOR ON CASTLE BAND (homepage) ---------- */
/* Photo is flush to the right edge of the band; copy sits left of it. */
.author-castle-band {
    text-align: left;
    padding: 0 0 11vw;   /* keep the torn edge clear at the bottom */
    position: relative;
    overflow: hidden;
}
.author-castle-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}
.author-castle-copy { padding: 70px 0 20px; max-width: 620px; }
.author-castle-photo {
    width: 380px;
    max-width: 42%;
    height: auto;
    display: block;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: -11vw;  /* sits flush into the torn edge instead of floating above it */
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.4));
}
.author-castle-band .eyebrow { color: #fff; }
.author-castle-band h2 { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.author-castle-text { margin: 0 0 24px; color: #fdf6e8; font-size: 18px; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
@media (max-width: 800px) {
    .author-castle-inner { flex-direction: column; align-items: center; text-align: center; padding-left: 0; }
    .author-castle-copy { padding: 50px 20px 10px; }
    .author-castle-band .eyebrow { justify-content: center; }
    .author-castle-photo { width: 240px; max-width: 70%; margin-bottom: -6vw; }
}

/* ---------- CONTACT PAGE (Drop a Line) ---------- */
.contact-section { padding: 70px 0 90px; text-align: center; }
.contact-section h2 { font-size: 40px; }
.contact-form {
    max-width: 820px;
    margin: 36px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}
.contact-form .span-2 { grid-column: span 2; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 999px;
    background: #f9ecd9;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-dark);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.05);
}
.contact-form textarea {
    border-radius: 18px;
    resize: vertical;
    min-height: 180px;
}
.contact-form select { appearance: auto; cursor: pointer; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-bronze-light);
}
.contact-success {
    max-width: 640px;
    margin: 30px auto;
    padding: 20px 28px;
    background: #e4f0dd;
    color: #2c5424;
    border-radius: var(--radius);
    font-size: 17px;
}
.contact-error {
    max-width: 640px;
    margin: 20px auto;
    padding: 16px 24px;
    background: #f5dcd6;
    color: #86281a;
    border-radius: var(--radius);
}
@media (max-width: 700px) {
    .contact-form { grid-template-columns: 1fr; }
    .contact-form .span-2 { grid-column: span 1; }
}

/* ---------- EVENTS PAGE ---------- */
.events-page { padding-bottom: 90px; }
.events-page-title, .fanart-page-title { text-align: center; font-size: 46px; margin-bottom: 30px; }
.category-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 10px 0 50px; }
.category-pill {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--color-bronze);
    color: var(--color-bronze-dark);
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: .04em;
    transition: background .2s ease, color .2s ease;
}
.category-pill:hover { background: var(--color-parchment-dark); }
.category-pill.active { background: var(--color-bronze); color: #fff; }
.events-empty { text-align: center; color: #8a7a5e; font-size: 18px; padding: 40px 0; }
/* Events: masonry tiles with snippets */
.results-count { text-align: center; color: #8a7a5e; font-size: 14px; margin-bottom: 24px; }
.events-masonry { columns: 3; column-gap: 26px; }
.event-tile {
    break-inside: avoid;
    display: block;
    margin: 0 0 26px;
    background: #faf0de;
    border: 1px solid rgba(173,130,58,.22);
    border-radius: 8px;
    overflow: hidden;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.event-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,.14); }
.event-tile img { width: 100%; display: block; }
.event-tile-body { padding: 22px 24px; }
.event-tile-cat {
    font-family: var(--font-display); font-size: 11px; letter-spacing: .1em;
    color: var(--color-bronze); text-transform: uppercase;
}
.event-tile h2 { font-size: 21px; margin: 8px 0 6px; line-height: 1.25; }
.event-tile-meta { color: #8a7a5e; font-size: 13px; margin: 0 0 10px; }
.event-tile-meta span + span::before { content: ' \2022 '; margin: 0 5px; }
.event-tile-snippet { font-size: 15px; color: #6b5c3f; line-height: 1.55; margin: 0 0 12px; }
.event-tile-more { font-family: var(--font-display); font-size: 13px; color: var(--color-bronze-dark); letter-spacing: .03em; }

/* View toggle */
.view-toggle { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.view-btn {
    padding: 9px 20px; border-radius: 999px;
    border: 1px solid rgba(173,130,58,.5);
    font-family: var(--font-display); font-size: 13px;
    color: var(--color-bronze-dark);
}
.view-btn.active { background: var(--color-black); color: #fff; border-color: var(--color-black); }

/* Calendar view */
.calendar-month { max-width: 860px; margin: 0 auto 44px; }
.calendar-month-title {
    font-size: 24px; padding-bottom: 10px; margin-bottom: 6px;
    border-bottom: 1px solid rgba(173,130,58,.3);
    display: flex; align-items: center; justify-content: space-between;
}
.calendar-count {
    font-family: var(--font-body); font-size: 13px; color: #8a7a5e;
    background: var(--color-parchment-dark); border-radius: 999px; padding: 3px 12px;
}
.calendar-row {
    display: flex; align-items: center; gap: 22px;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(173,130,58,.15);
    color: inherit;
}
.calendar-row:hover { background: rgba(230,208,163,.35); }
.calendar-day {
    flex-shrink: 0; width: 54px; text-align: center;
    display: flex; flex-direction: column;
}
.calendar-day strong { font-family: var(--font-display); font-size: 22px; color: var(--color-bronze-dark); }
.calendar-day small { font-size: 11px; color: #8a7a5e; text-transform: uppercase; letter-spacing: .06em; }
.calendar-info { display: flex; flex-direction: column; gap: 3px; }
.calendar-info strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.calendar-meta { font-size: 13px; color: #8a7a5e; }

/* Single event page */
.event-single { padding: 150px 0 90px; }
.event-single .container { max-width: 820px; }
.back-link { color: var(--color-bronze-dark); font-size: 14px; font-family: var(--font-display); }
.event-single h1 { font-size: 40px; margin: 6px 0 18px; line-height: 1.2; }
.event-single-meta { display: flex; flex-wrap: wrap; gap: 22px; color: #6b5c3f; font-size: 16px; margin-bottom: 26px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.event-actions .pill-btn { color: var(--color-bronze-dark); border-color: var(--color-bronze); }
.event-single-img { width: 100%; border-radius: 8px; margin-bottom: 30px; box-shadow: 0 14px 30px rgba(0,0,0,.16); }
.event-single-body { line-height: 1.75; color: #4a3d24; font-size: 17px; }
.event-single-body p { margin: 0 0 16px; }
.event-single-body a { color: var(--color-bronze); text-decoration: underline; }
.event-single-body img { max-width: 100%; height: auto; border-radius: 6px; }

/* Pagination */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 50px; }
.page-link {
    min-width: 42px; padding: 10px 14px;
    text-align: center;
    border: 1px solid rgba(173,130,58,.45);
    border-radius: 6px;
    font-family: var(--font-display); font-size: 14px;
    color: var(--color-bronze-dark);
    transition: background .2s ease, color .2s ease;
}
.page-link:hover { background: var(--color-parchment-dark); }
.page-link.active { background: var(--color-bronze); color: #fff; border-color: var(--color-bronze); }
.page-gap { padding: 10px 4px; color: #8a7a5e; }

@media (max-width: 1000px) { .events-masonry { columns: 2; } }
@media (max-width: 640px) {
    .events-masonry { columns: 1; }
    .calendar-row { gap: 14px; }
}

.event-cat-link { color: inherit; display: block; }
.event-cat-link:hover .event-icon-circle { background: var(--color-bronze); color: #fff; }

/* ---------- FAN ART GALLERY (masonry with credits + embeds) ---------- */
.fanart-page { padding-bottom: 90px; }
.fanart-masonry {
    columns: 3;
    column-gap: 26px;
    margin-top: 20px;
}
.fanart-item {
    break-inside: avoid;
    margin: 0 0 26px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.fanart-item img { width: 100%; display: block; }
.fanart-item figcaption {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: .03em;
    color: var(--color-text-dark);
    padding: 12px 16px;
    text-align: center;
}
.fanart-credit { display: block; margin-bottom: 6px; }
.fanart-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fanart-links a {
    font-size: 12px;
    padding: 4px 12px;
    border: 1px solid var(--color-bronze);
    border-radius: 999px;
    color: var(--color-bronze-dark);
    transition: background .2s ease, color .2s ease;
}
.fanart-links a:hover { background: var(--color-bronze); color: #fff; }
.fanart-embed { padding: 10px; background: #faf0de; }
.fanart-embed iframe { width: 100% !important; display: block; border: none; }
@media (max-width: 1000px) { .fanart-masonry { columns: 2; } }
@media (max-width: 640px) {
    .fanart-masonry { columns: 1; }
}

/* ---------- FAQ PAGE ---------- */
.faq-page {
    position: relative;
    padding: 150px 0 90px;
    background: var(--color-parchment);
    overflow: hidden;
}
/* Castle is a soft, faded backdrop - never a hard-edged block over the cards */
.faq-page::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 68%;
    height: 420px;
    background: url('/assets/img/textures/castle-sketch-wide.jpg') top right / contain no-repeat;
    opacity: .35;
    /* fade it out toward the left and bottom so it blends into the parchment */
    -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%),
                        linear-gradient(to top, transparent 0%, #000 45%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to left, #000 45%, transparent 100%),
                linear-gradient(to top, transparent 0%, #000 45%);
    mask-composite: intersect;
    pointer-events: none;
    z-index: 0;
}
.faq-page .container { position: relative; z-index: 1; }
.faq-page h1 { font-size: 46px; margin-bottom: 6px; }
.faq-sub { color: #8a7a5e; margin: 0 0 44px; }

.faq-masonry { columns: 2; column-gap: 30px; }

.faq-item {
    break-inside: avoid;
    margin: 0 0 20px;
    background: #f5e7d0;
    border: 1px solid rgba(173,130,58,.18);
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(90,70,35,.07);
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-item:hover { box-shadow: 0 8px 22px rgba(90,70,35,.13); border-color: rgba(173,130,58,.4); }
.faq-item.open { background: #f9efdd; border-color: rgba(173,130,58,.45); }

.faq-q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    background: none; border: none; cursor: pointer;
    padding: 22px 26px;
    text-align: left;
    font-family: var(--font-display);
    font-size: 17px; font-weight: 600; letter-spacing: .02em; line-height: 1.4;
    color: var(--color-text-dark);
}
.faq-icon {
    color: var(--color-bronze);
    font-size: 22px; line-height: 1;
    flex-shrink: 0;
    transition: transform .25s ease;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* Smooth open/close instead of a hard jump */
.faq-a-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
}
.faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a { overflow: hidden; }
.faq-a-inner {
    padding: 0 26px 22px;
    color: #6b5c3f;
    line-height: 1.7;
    font-size: 15px;
}
.faq-a-inner p { margin: 0 0 12px; }
.faq-a-inner p:last-child { margin-bottom: 0; }
.faq-a-inner a { color: var(--color-bronze); text-decoration: underline; }

/* ---------- BOOKS PAGE ---------- */
.books-page { padding: 150px 0 90px; }
.books-page-title { text-align: center; font-size: 46px; margin-bottom: 40px; }
.books-series-heading {
    font-size: 30px; text-align: center;
    margin: 60px 0 36px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(173,130,58,.3);
}
.book-row {
    display: flex; align-items: center; gap: 60px;
    max-width: 980px; margin: 0 auto 60px;
}
.book-row-cover img {
    width: 260px; border-radius: 3px;
    box-shadow: 0 18px 36px rgba(0,0,0,.28);
    cursor: pointer; transition: transform .25s ease;
}
.book-row-cover img:hover { transform: translateY(-6px); }
.book-row-info { flex: 1; }
.book-row-info h3 { font-size: 32px; margin-bottom: 4px; }

/* ---------- LEGAL PAGES ---------- */
.legal-page { padding: 150px 0 90px; }
.legal-page h1 { font-size: 42px; margin-bottom: 30px; }
.legal-body { max-width: 860px; line-height: 1.75; color: #4a3d24; }
.legal-body h3 { font-size: 22px; margin: 34px 0 12px; }
.legal-body p { margin: 0 0 16px; }
.legal-body ol, .legal-body ul { margin: 0 0 16px; padding-left: 24px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--color-bronze); text-decoration: underline; }

@media (max-width: 900px) {
    .faq-masonry { columns: 1; }
    .faq-page::before { display: none; }
    .book-row { flex-direction: column; gap: 30px; text-align: center; }
    .book-row-info .retailer-grid { justify-items: center; }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%;
    background: var(--color-bronze); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.3); cursor: pointer; z-index: 40; border: none; font-size: 20px;
}

/* ---------- NEWSLETTER POPUP MODAL ---------- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(16,12,9,.6); z-index: 200;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.newsletter-modal {
    background: var(--color-bronze); border-radius: 12px; padding: 40px; max-width: 420px; width: 100%;
    text-align: center; position: relative; color: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.newsletter-modal h2 { font-size: 32px; color: var(--color-black); }
.newsletter-modal p { margin-bottom: 24px; }
.newsletter-modal input {
    width: 100%; padding: 14px 18px; border-radius: 999px; border: none; margin-bottom: 14px; font-size: 16px; font-family: var(--font-body);
}
.newsletter-modal .modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--color-black); }
.newsletter-modal .form-message { min-height: 20px; font-size: 14px; margin-top: 10px; }

/* ---------- BOOK DETAIL MODAL ---------- */
.book-modal-content { background: var(--color-parchment); border-radius: 12px; padding: 40px; max-width: 900px; width: 100%; position: relative; max-height: 88vh; overflow-y: auto; }
.book-modal-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.book-modal-cover img { border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.book-modal-trailer-btn { display: block; text-align: center; margin-top: 14px; font-family: var(--font-display); font-size: 13px; color: var(--color-bronze); }
.book-modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 28px; cursor: pointer; }
.book-modal-rating { color: #7a6a2e; }
.book-modal-price { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 10px 0 20px; }
.price-original { text-decoration: line-through; color: #9a8a68; font-size: 18px; margin-right: 10px; font-weight: 400; }
.book-modal-buy { margin-bottom: 18px; }
.book-modal-samples { margin-top: 22px; border-top: 1px solid rgba(173,130,58,.25); padding-top: 16px; }
.sample-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.sample-img { width: 90px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.sample-btn {
    display: inline-block; padding: 10px 18px; border: 1px solid var(--color-bronze);
    border-radius: 999px; color: var(--color-bronze-dark); font-family: var(--font-display); font-size: 13px;
}
.sample-btn:hover { background: var(--color-bronze); color: #fff; }
.sample-audio { width: 100%; max-width: 340px; }
.sample-video { width: 100%; max-width: 400px; aspect-ratio: 16/9; }
.sample-video iframe { width: 100%; height: 100%; border: none; border-radius: 6px; }
.book-modal-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 22px; margin: 14px 0; }
.book-modal-meta p { margin: 4px 0; font-size: 15px; }
.preview-btn { display: inline-block; margin-top: 16px; background: var(--color-black); color: #fff; padding: 12px 24px; border-radius: 999px; font-family: var(--font-display); font-size: 13px; }

/* ---------- REALM MAP (hotspot pins) ---------- */
.realm-hero {
    padding: 150px 0 40px;
    min-height: 42vw;
    display: flex;
    align-items: center;
    position: relative;
    background: url('/assets/img/textures/castle-sketch-wide.jpg') top center / 100% auto no-repeat, var(--color-parchment);
}
.realm-hero .container { width: 100%; }
.realm-intro-text { max-width: 900px; margin: 24px auto 0; text-align: center; color: #5c4d2e; font-size: 19px; line-height: 1.6; position: relative; z-index: 1; }
@media (max-width: 900px) {
    .realm-hero {
        min-height: 0;
        background: url('/assets/img/textures/castle-sketch-banner.jpg') top center / 100% auto no-repeat, var(--color-parchment);
        padding: 130px 0 60px;
    }
}
.realm-map-section {
    padding: 40px 0 70px;
    background: var(--color-parchment);
}
.realm-map-frame {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    border: 10px solid #3a2c1a;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
    overflow: hidden;
}
.realm-map-img { width: 100%; display: block; }

.map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 36px; height: 36px;
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.map-pin-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(209,161,79,.8) 0%, rgba(209,161,79,0) 70%);
    animation: pin-pulse 2s ease-in-out infinite;
}
@keyframes pin-pulse {
    0%, 100% { transform: scale(0.85); opacity: .7; }
    50% { transform: scale(1.25); opacity: 1; }
}
.map-pin-icon {
    position: relative; z-index: 2;
    width: 30px; height: 30px; object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
    transition: transform .2s ease;
}
.map-pin-dot {
    position: relative; z-index: 2;
    width: 14px; height: 14px; border-radius: 50%;
    background: #d94f2f; border: 2px solid #fff;
}
.map-pin:hover .map-pin-icon,
.map-pin:hover .map-pin-dot { transform: scale(1.25); }

/* ---------- LOCATION POPUP MODAL ---------- */
.location-modal-content {
    background: var(--color-parchment);
    border-radius: 12px;
    padding: 40px;
    max-width: 560px;
    width: 100%;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
}
.location-modal-crest { width: 70px; margin: 0 auto 16px; }
.location-modal-teaser { font-family: var(--font-display); font-size: 15px; color: var(--color-bronze); margin-bottom: 16px; }
.location-modal-desc { text-align: left; font-size: 18px; line-height: 1.6; }
.location-modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 28px; cursor: pointer; }

/* ---------- LOCATION ROWS (crest is the hero artwork; background image is a backdrop) ---------- */
.locations-section {
    padding: 70px 0 90px;
    background: var(--color-parchment);
}
.locations-list { display: flex; flex-direction: column; gap: 70px; }

.location-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 56px;
    padding: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-parchment-dark);
}
/* Location's background image sits behind the whole row, softly */
.location-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--loc-bg);
    background-size: cover;
    background-position: center;
    opacity: .22;
    transition: opacity .4s ease;
}
.location-row:hover::before { opacity: .3; }
/* parchment veil keeps the text readable over the backdrop */
.location-row::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(243,225,201,.55), rgba(243,225,201,.8));
    pointer-events: none;
}
.location-row > * { position: relative; z-index: 2; }

/* Alternate: even rows put the crest on the right */
.location-row:nth-child(even) .location-figure { order: 2; }
.location-row:nth-child(even) .location-body { order: 1; }

/* The crest artwork - shown whole, never cropped */
.location-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.location-figure img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 16px 30px rgba(60,44,20,.35));
    transition: transform .45s ease;
}
.location-row:hover .location-figure img { transform: translateY(-6px) scale(1.03); }

.location-body { padding: 10px 0; }
.location-body h3 {
    font-size: 34px;
    margin: 0 0 8px;
    line-height: 1.15;
}
.location-rule {
    width: 70px; height: 2px;
    background: var(--color-bronze);
    margin-bottom: 20px;
}
.loc-desc { font-size: 17px; line-height: 1.75; color: #4a3d24; }
.loc-desc p { margin: 0 0 14px; }
.loc-desc p:last-child { margin-bottom: 0; }

.location-figure.no-image {
    min-height: 240px;
    color: var(--color-bronze);
    font-family: var(--font-display);
    font-size: 20px;
}

@media (max-width: 900px) {
    .locations-list { gap: 44px; }
    .location-row { grid-template-columns: 1fr; gap: 20px; padding: 30px 24px; }
    .location-row:nth-child(even) .location-figure { order: 0; }
    .location-row:nth-child(even) .location-body { order: 0; }
    .location-figure img { max-width: 240px; max-height: 260px; }
    .location-body h3 { font-size: 28px; }
    .map-pin { width: 28px; height: 28px; }
    .map-pin-icon { width: 22px; height: 22px; }
}

/* ---------- VIDEO POPUP MODAL ---------- */
.video-modal {
    position: relative;
    width: min(900px, 94vw);
    background: #000;
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
#videoModalContent { width: 100%; aspect-ratio: 16 / 9; }
#videoModalContent iframe,
#videoModalContent video {
    width: 100%; height: 100%;
    border: none; display: block; border-radius: 10px;
}
.video-modal-close {
    position: absolute; top: -40px; right: 0;
    background: none; border: none; color: #fff;
    font-size: 30px; cursor: pointer;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-nav-toggle { display: block; }
    .book-modal-grid { grid-template-columns: 1fr; }
    .slider-book-card { flex-direction: column; }
    .realm-grid { grid-template-columns: repeat(2, 1fr); }
    .realm-grid > div:nth-child(n) { margin-top: 0; }
    .author-band { flex-direction: column; text-align: center; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .events-icons > * { flex: 0 0 50%; }
    .events-icons { row-gap: 46px; }
    .retailer-grid, .book-modal-links { grid-template-columns: repeat(2, 1fr); }
}
