/* Theme: midnight-gold | Author: Blake Merrick */

/* --- Base Styles --- */

/* ==========================================================================
   Base Structural Styles
   All colors/fonts reference CSS custom properties defined by themes.
   ========================================================================== */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body, Arial, Helvetica, sans-serif);
    background: var(--color-bg);
    color: var(--color-text);
    padding: 0;
    margin: 0;
    line-height: var(--line-height, 1.6);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading, var(--font-body, Arial, Helvetica, sans-serif));
    color: var(--color-heading, var(--color-text));
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1em;
    max-width: 65ch;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-highlight);
}

/* Accessibility */
.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* ==========================================================================
   Layout Wrapper
   ========================================================================== */
.site-wrapper {
    max-width: var(--content-width, 1100px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-menu {
    list-style-type: none;
    padding: 1rem 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: var(--nav-align, center);
}

.nav-item {
    display: inline;
}

.nav-link {
    text-decoration: none;
    color: var(--color-nav, var(--color-accent));
    padding: 0.5rem 1rem;
    display: inline-block;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: var(--nav-transform, uppercase);
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-highlight);
    border-bottom-color: var(--color-highlight);
}

.nav-active {
    font-weight: bold;
    color: var(--color-highlight);
    border-bottom-color: var(--color-highlight);
}

/* ==========================================================================
   Hero / Home Page Container
   ========================================================================== */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 2rem auto;
    gap: 2rem;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 3rem;
    }

    .text-section,
    .book-image {
        max-width: 48%;
    }
}

/* Text Section */
.text-section {
    padding: 1rem 0;
}

.text-section h2 {
    color: var(--color-heading, var(--color-accent));
    margin-bottom: 1rem;
}

.text-section p {
    margin-bottom: 1.25rem;
    color: var(--color-text-muted, var(--color-text));
}

/* ==========================================================================
   Book Image / Cover
   ========================================================================== */
.book-image {
    padding: 1rem;
    position: relative;
    transition: transform 0.3s ease;
}

.book-image a {
    display: inline-block;
}

.book-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border: var(--book-border, 2px solid var(--color-accent));
    border-radius: var(--book-radius, 6px);
    box-shadow: var(--book-shadow, 0 4px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-image a:hover img {
    transform: scale(1.03);
    box-shadow: var(--book-hover-shadow, 0 8px 30px var(--color-accent-glow, rgba(0, 0, 0, 0.5)));
}

/* CTA below book image */
.book-image::after {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--color-bg);
    background-color: var(--color-accent);
    padding: 0.6rem 1.2rem;
    border-radius: var(--button-radius, 4px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.book-image a:hover + ::after,
.book-image:hover::after {
    background-color: var(--color-highlight);
    color: var(--color-text);
}

/* ==========================================================================
   Intro / Social Section
   ========================================================================== */
.intro {
    margin: 2rem auto;
    max-width: 650px;
    text-align: center;
}

.intro a {
    color: var(--color-accent);
    text-decoration: none;
    margin-right: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.intro a:hover {
    color: var(--color-highlight);
}

/* ==========================================================================
   Blog Post List
   ========================================================================== */
.blog-list,
main ul {
    list-style: none;
    padding: 0;
}

.blog-list li,
main ul li {
    margin-bottom: 0.75rem;
}

.blog-list a,
main ul a {
    color: var(--color-accent);
    font-size: 1.05rem;
}

.blog-list a:hover,
main ul a:hover {
    color: var(--color-highlight);
}

/* ==========================================================================
   Blog Post (Single)
   ========================================================================== */
.links-nextprev {
    list-style: none;
    padding: 2rem 0 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    margin-top: 2rem;
}

.links-nextprev li {
    flex: 1;
}

.links-nextprev-next {
    text-align: right;
}

/* ==========================================================================
   Top Nav Header (topnav layout)
   ========================================================================== */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    margin-bottom: 2rem;
}

.header-brand a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-heading, var(--color-text));
    text-decoration: none;
}

.site-header .nav-menu {
    padding: 0;
    margin: 0;
}

/* ==========================================================================
   Sidebar Layout
   ========================================================================== */
.site-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    padding: 2rem 1.5rem;
    background: color-mix(in srgb, var(--color-bg) 90%, black);
    border-right: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1;
}

/* Optional sidebar background image — set --sidebar-image in author overrides */
.sidebar.has-bg-image {
    background:
        linear-gradient(
            to bottom,
            color-mix(in srgb, var(--color-bg) 90%, black) 0%,
            color-mix(in srgb, var(--color-bg) 70%, transparent) 40%,
            color-mix(in srgb, var(--color-bg) 30%, transparent) 70%,
            transparent 100%
        ),
        var(--sidebar-image) bottom / cover no-repeat;
}

.sidebar-brand a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-heading, var(--color-text));
    text-decoration: none;
    display: block;
    margin-bottom: 2rem;
}

.sidebar .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
}

.sidebar .nav-link {
    display: block;
    padding: 0.6rem 0;
    border-bottom: none;
    font-size: 1rem;
}

.sidebar .nav-link:hover {
    border-bottom: none;
    padding-left: 0.5rem;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted, rgba(255, 255, 255, 0.6));
}

.sidebar-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.sidebar-social a {
    color: var(--color-accent);
    font-size: 0.85rem;
}

.site-layout .main-content {
    flex: 1;
    padding: 2.5rem 3rem;
    max-width: var(--content-width, 1100px);
}

@media (max-width: 768px) {
    .site-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 1rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    }

    .sidebar-brand {
        margin-right: auto;
    }

    .sidebar-brand a {
        margin-bottom: 0;
    }

    .sidebar .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar .nav-link:hover {
        padding-left: 0;
    }

    .sidebar-footer {
        display: none;
    }

    .site-layout .main-content {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    color: var(--color-text-muted, rgba(255, 255, 255, 0.6));
    font-size: 0.9rem;
}


/* --- Theme Overrides --- */

/* ==========================================================================
   Theme: Midnight Gold
   Best for: Urban Fantasy, Crime Thriller, Dark Fantasy, Noir
   Palette: Deep navy base, burnished gold accents, cinematic urban feel
   ========================================================================== */
:root {
    /* Colors — extracted from brand image: navy + burnished gold */
    --color-bg: #0f1a2e;
    --color-text: #c8cdd8;
    --color-text-muted: rgba(200, 205, 216, 0.55);
    --color-heading: #f0f2f8;
    --color-accent: #c8962e;
    --color-highlight: #e8b84a;
    --color-nav: #8890a4;
    --color-border: rgba(200, 150, 46, 0.12);
    --color-accent-glow: rgba(200, 150, 46, 0.25);

    /* Typography — all sans-serif for thriller edge */
    --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    --line-height: 1.7;

    /* Layout */
    --content-width: 1100px;
    --nav-align: center;
    --nav-transform: uppercase;

    /* Components */
    --book-border: none;
    --book-radius: 8px;
    --book-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
    --book-hover-shadow: 0 24px 64px rgba(200, 150, 46, 0.15), 0 0 0 1px rgba(200, 150, 46, 0.1);
    --button-radius: 6px;
}

/* ==========================================================================
   BACKGROUND — deep navy with subtle warm ambient
   ========================================================================== */
body {
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(200, 150, 46, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 80% 20%, rgba(200, 150, 46, 0.02) 0%, transparent 50%),
        var(--color-bg);
}

/* ==========================================================================
   SPLIT HEADER — Left nav | Centered brand | Right nav
   ========================================================================== */
.layout-midnight-gold .split-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

/* Gold gradient accent line on bottom edge */
.layout-midnight-gold .split-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.4;
}

.layout-midnight-gold .split-header {
    position: relative;
}

/* Left nav — align right (toward center) */
.layout-midnight-gold .nav-left {
    justify-self: end;
}

.layout-midnight-gold .nav-left .nav-menu {
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    gap: 0.25rem;
}

/* Right nav — align left (toward center) */
.layout-midnight-gold .nav-right {
    justify-self: start;
}

.layout-midnight-gold .nav-right .nav-menu {
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    gap: 0.25rem;
}

/* Centered brand / logo */
.layout-midnight-gold .header-brand-center {
    padding: 0 2rem;
}

.layout-midnight-gold .header-brand-center a {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
    text-decoration: none;
    white-space: nowrap;
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.layout-midnight-gold .header-brand-center a:hover {
    text-shadow: 0 0 24px var(--color-accent-glow);
    color: var(--color-highlight);
}

/* Logo image in header */
.layout-midnight-gold .brand-logo {
    height: 48px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.layout-midnight-gold .header-brand-center a:hover .brand-logo {
    opacity: 0.85;
}

/* Nav links — shared styling */
.layout-midnight-gold .split-header .nav-link {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-nav);
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.layout-midnight-gold .split-header .nav-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.layout-midnight-gold .split-header .nav-active .nav-link,
.layout-midnight-gold .split-header li.nav-active .nav-link,
.layout-midnight-gold .split-header li.nav-active a {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    font-weight: 600;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.layout-midnight-gold .main-content {
    padding: 2rem 3rem;
    background:
        radial-gradient(ellipse 50% 40% at 70% 0%, rgba(200, 150, 46, 0.03) 0%, transparent 60%),
        transparent;
}

/* Subtle grain texture */
.layout-midnight-gold .main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.layout-midnight-gold .main-content > * {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #f0f2f8 20%, var(--color-accent) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.6rem;
    color: var(--color-heading);
}

h3 { font-size: 1.25rem; }

p {
    color: var(--color-text);
    font-weight: 400;
}

.text-section h2 {
    color: var(--color-heading);
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

/* Accent bar on section headings */
.text-section h2::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-highlight));
    margin-bottom: 1rem;
    border-radius: 1px;
}

.text-section p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-muted);
}

/* ==========================================================================
   HERO / HOME CONTAINER
   ========================================================================== */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    gap: 3rem;
}

@media (min-width: 900px) {
    .container {
        flex-direction: row;
        text-align: left;
        gap: 5rem;
        align-items: center;
    }

    .text-section {
        flex: 1;
    }

    .book-image {
        flex: 0 0 auto;
        max-width: 320px;
    }

    .text-section h2::before {
        margin-left: 0;
    }
}

@media (max-width: 899px) {
    .text-section h2::before {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   BUTTONS — strong newsletter CTA styling
   ========================================================================== */
.btn,
a.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--button-radius);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary,
a.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-highlight) 100%);
    color: #0f1a2e;
    box-shadow: 0 4px 20px rgba(200, 150, 46, 0.25);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-primary:hover,
a.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-highlight) 0%, #f0c860 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200, 150, 46, 0.4);
    color: #0f1a2e;
}

.btn-outline,
a.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-outline:hover,
a.btn-outline:hover {
    background: rgba(200, 150, 46, 0.1);
    transform: translateY(-2px);
    color: var(--color-highlight);
    border-color: var(--color-highlight);
}

/* ==========================================================================
   BOOK COVERS — gold glow + lift on hover
   ========================================================================== */
.book-image {
    position: relative;
}

.book-image img {
    border: none;
    border-radius: var(--book-radius);
    transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

.book-image a:hover img {
    transform: translateY(-8px) scale(1.02);
}

/* Ambient gold glow behind covers */
.book-image::before {
    content: '';
    position: absolute;
    inset: 15% 10%;
    background: radial-gradient(ellipse, rgba(200, 150, 46, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 0.5;
}

.book-image:hover::before {
    opacity: 1;
}

/* CTA Button below cover */
.book-image::after {
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.85rem 2.5rem;
    border-radius: var(--button-radius);
    box-shadow: 0 4px 20px rgba(200, 150, 46, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.book-image:hover::after {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200, 150, 46, 0.35);
}

/* Books page covers */
main img[alt*="Cover"] {
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

main img[alt*="Cover"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(200, 150, 46, 0.15);
}

/* ==========================================================================
   INTRO SECTION
   ========================================================================== */
.intro {
    max-width: 600px;
    margin: 3rem 0;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
    text-align: left;
}

.intro p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   BLOG LIST — subtle hover cards
   ========================================================================== */
.blog-list li,
main ul li {
    margin-bottom: 0.25rem;
}

.blog-list a,
main ul a {
    display: inline-block;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: background 0.25s ease, color 0.25s ease;
}

.blog-list a:hover,
main ul a:hover {
    background: rgba(200, 150, 46, 0.06);
    color: var(--color-accent);
}

/* ==========================================================================
   BOOK PAGE headings
   ========================================================================== */
main > h2 {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
}

/* ==========================================================================
   LINKS
   ========================================================================== */
a {
    transition: color 0.25s ease;
}

/* ==========================================================================
   FOOTER — gold gradient border
   ========================================================================== */
footer {
    border-top-color: transparent;
    border-image: linear-gradient(90deg, transparent, rgba(200, 150, 46, 0.2), transparent) 1;
}

footer p {
    color: rgba(200, 205, 216, 0.3);
    font-size: 0.85rem;
}

/* ==========================================================================
   MOBILE — collapse to stacked header
   ========================================================================== */
@media (max-width: 768px) {
    .layout-midnight-gold .split-header {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1rem 1rem 0;
        gap: 0.25rem;
    }

    .layout-midnight-gold .nav-left,
    .layout-midnight-gold .nav-right {
        justify-self: center;
    }

    .layout-midnight-gold .nav-left .nav-menu,
    .layout-midnight-gold .nav-right .nav-menu {
        justify-content: center;
    }

    .layout-midnight-gold .header-brand-center {
        order: -1;
        padding: 0 0 0.5rem;
    }

    .layout-midnight-gold .header-brand-center a {
        font-size: 1.3rem;
    }

    .layout-midnight-gold .split-header .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.68rem;
    }

    .layout-midnight-gold .main-content {
        padding: 1.5rem 1.25rem;
    }

    .container {
        gap: 2rem;
    }
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 150, 46, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 150, 46, 0.2);
}

html {
    scrollbar-color: rgba(200, 150, 46, 0.1) var(--color-bg);
    scrollbar-width: thin;
}

/* ==========================================================================
   SELECTION
   ========================================================================== */
::selection {
    background: rgba(200, 150, 46, 0.3);
    color: #f0f2f8;
}


/* --- Author Overrides --- */

/* ==========================================================================
   Author Overrides: Blake Merrick
   Theme: urban-dark-blue + gold/navy enhancements
   ========================================================================== */

/* --- Extended palette --- */
:root {
    --color-gold: #d4a843;
    --color-gold-light: #f0d060;
    --color-navy-deep: #0d1526;
    --color-accent: #d4a843;
    --color-highlight: #f0d060;
    --bg-image: none;
}

/* ==========================================================================
   TOPNAV LAYOUT — override sidebar-specific spacing from theme
   ========================================================================== */
.layout-topnav .main-content {
    margin-left: 0;
}

.layout-topnav .main-content::before {
    left: 0;
}

/* ==========================================================================
   HERO — subtle diagonal scan lines
   ========================================================================== */
.home .main-content {
    position: relative;
}

.home .main-content::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            -35deg,
            transparent,
            transparent 80px,
            rgba(212, 168, 67, 0.015) 80px,
            rgba(212, 168, 67, 0.015) 81px
        ),
        repeating-linear-gradient(
            35deg,
            transparent,
            transparent 120px,
            rgba(30, 60, 120, 0.02) 120px,
            rgba(30, 60, 120, 0.02) 121px
        );
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   BOOK COVER — gold pulse glow
   ========================================================================== */
.book-image {
    position: relative;
    z-index: 1;
}

/* Gold aura glow */
.book-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: conic-gradient(
        from 0deg,
        rgba(212, 168, 67, 0.15),
        rgba(30, 60, 120, 0.12),
        rgba(240, 208, 96, 0.1),
        rgba(30, 60, 120, 0.12),
        rgba(212, 168, 67, 0.15)
    );
    filter: blur(45px);
    border-radius: 50%;
    z-index: -1;
    animation: gold-rotate 14s linear infinite;
    opacity: 0.6;
}

.book-image:hover::before {
    opacity: 1;
}

@keyframes gold-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ==========================================================================
   SECTION DIVIDERS — gold gradient fade
   ========================================================================== */
.text-section h2::before {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    box-shadow: 0 0 8px rgba(212, 168, 67, 0.3), 0 0 16px rgba(240, 208, 96, 0.15);
}

.intro {
    border-image: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), transparent) 1;
}

/* ==========================================================================
   GLOWING LABEL TEXT SHADOWS
   ========================================================================== */
.text-section h2 {
    text-shadow: 0 0 30px rgba(212, 168, 67, 0.06);
}

h1 {
    background: linear-gradient(135deg, #f0f2f8 20%, var(--color-gold) 60%, var(--color-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* ==========================================================================
   TOP NAV — gold accent touches
   ========================================================================== */
.site-header {
    border-bottom-color: transparent;
    border-image: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), transparent) 1;
}

.nav-link:hover {
    color: var(--color-gold-light);
    border-bottom-color: var(--color-gold-light);
}

.header-brand a {
    background: linear-gradient(135deg, #f0f2f8 40%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   FEATURE CARDS — gold-tipped hover with glowing top-edge reveal
   ========================================================================== */
.blog-list a,
main ul a {
    position: relative;
    overflow: hidden;
}

/* Glowing top-edge reveal on hover */
.blog-list a::before,
main ul a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 2px 2px 0 0;
}

.blog-list a:hover::before,
main ul a:hover::before {
    opacity: 1;
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.4), 0 0 24px rgba(240, 208, 96, 0.2);
}

.blog-list a:hover,
main ul a:hover {
    background: linear-gradient(180deg, rgba(212, 168, 67, 0.06) 0%, rgba(30, 60, 120, 0.04) 100%);
    color: var(--color-gold-light);
}

/* ==========================================================================
   BUTTONS — inline CTA buttons
   ========================================================================== */
.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border-radius: var(--button-radius, 8px);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: #0a0f1a;
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.15), 0 4px 20px rgba(240, 208, 96, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 168, 67, 0.25), 0 8px 32px rgba(240, 208, 96, 0.2);
    color: #0a0f1a;
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--color-gold-light);
    color: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.15);
}

/* Book image CTA override */
.book-image::after {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light)) !important;
    color: #0a0f1a !important;
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.15), 0 4px 20px rgba(240, 208, 96, 0.1);
}

.book-image:hover::after {
    box-shadow: 0 8px 32px rgba(212, 168, 67, 0.25), 0 8px 32px rgba(240, 208, 96, 0.2);
}

/* ==========================================================================
   SCROLLBAR — gold tint
   ========================================================================== */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(212, 168, 67, 0.12), rgba(30, 60, 120, 0.12));
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(212, 168, 67, 0.25), rgba(30, 60, 120, 0.25));
}

/* ==========================================================================
   SELECTION — gold tint
   ========================================================================== */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #f0f2f8;
}

/* ==========================================================================
   MAIN CONTENT — enriched ambient gradients with navy/gold
   ========================================================================== */
.main-content {
    background:
        radial-gradient(ellipse 50% 35% at 80% 0%, rgba(212, 168, 67, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 10% 100%, rgba(30, 60, 120, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 30% 30% at 90% 80%, rgba(240, 208, 96, 0.02) 0%, transparent 50%),
        var(--color-bg);
}

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    .home .main-content::after {
        left: 0;
    }

    .book-image::before {
        inset: -12px;
        filter: blur(30px);
    }
}
