/* --- BASE VARIABLES & RESETS --- */
:root {
    --bg-noir: #111111;
    --text-noir: #f4f4f4;
    --accent-pink: #ff66b2; 
    --accent-green: #00e676; 
    --curtain-emerald: #048243;
    --curtain-shadow: #024a26;
    --font-main: 'Poppins', sans-serif;
    --font-accent: 'Rubik', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-noir);
    color: var(--text-noir);
    font-family: var(--font-main);
    overflow: hidden; /* Prevents scrolling on the landing page */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
p { font-size: 1.1rem; margin-bottom: 2rem; }

/* Typewriter Effect (Rubik Font) */
.typewriter {
    font-family: var(--font-accent);
    color: var(--accent-pink);
    overflow: hidden;
    border-right: 0.15em solid var(--accent-green);
    white-space: nowrap;
    margin: 0 auto 1.5rem auto;
    letter-spacing: 0.1em;
    width: fit-content;
    animation: 
        typing 3.5s steps(40, end) 2.5s both, /* Starts after curtain opens */
        blink-caret 0.75s step-end infinite;
}

/* --- FILM GRAIN OVERLAY --- */
.film-grain {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; /* Crucial: allows clicks to pass through */
    z-index: 9999;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Dissolve_Noise_Texture.png');
    opacity: 0.08;
    animation: grain-jitter 0.8s steps(4) infinite;
}
/* --- CURTAIN ANIMATION --- */
.curtain {
    position: fixed;
    top: 0;
    width: 50vw;
    height: 100vh;
    z-index: 50;
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
    
    /* The Ribbed Velvet Effect */
    background: repeating-linear-gradient(
        to right,
        #048243 0px,      /* Base Emerald */
        #06a556 20px,     /* Highlight (Peak of the fold) */
        #048243 40px,     /* Base Emerald */
        #012e17 60px,     /* Deep Shadow (Valley of the fold) */
        #048243 80px      /* Back to Base */
    );
}

.curtain-left {
    left: 0;
    border-right: 3px solid var(--curtain-shadow);
    animation: drawLeft 2.5s ease-in-out 0.5s forwards;
}

.curtain-right {
    right: 0;
    border-left: 3px solid var(--curtain-shadow);
    animation: drawRight 2.5s ease-in-out 0.5s forwards;
}

/* --- HANGING SIGN & MARQUEE --- */
.landing-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hanging-sign {
    transform: translateY(-150%);
    animation: dropDown 1.5s cubic-bezier(0.25, 1, 0.5, 1) 2s forwards; /* Drops after curtains part */
    margin-bottom: 2rem;
}

.ropes {
    display: flex;
    justify-content: space-around;
    width: 60%;
    margin: 0 auto;
}

.rope {
    width: 4px;
    height: 15vh; 
    background-color: #555;
    box-shadow: inset -1px 0 2px #222;
}

/* The Sign Housing */
.marquee-box {
    position: relative;
    padding: 18px; 
    background-color: #111; 
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8); 
}

/* The 'bulbs' created via a dotted border */
.marquee-box::before {
    content: '';
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 8px dotted var(--accent-pink);
    border-radius: 4px;
    z-index: 1;
    animation: blinkBulbs 0.7s steps(2, start) infinite;
}

/* 4:3 Horizontal Logo Placeholder */
.logo-placeholder {
    width: 320px; 
    height: 240px; 
    background-color: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
    position: relative;
    z-index: 2; /* Keeps the logo above the bulbs */
}

/* --- BUTTON --- */
.revival-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: var(--text-noir);
    border: 2px solid var(--accent-green);
    font-family: var(--font-accent);
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease 4s forwards; /* Fades in last */
}

.revival-btn:hover {
    background-color: var(--accent-green);
    color: var(--bg-noir);
    box-shadow: 0 0 15px var(--accent-green);
}

/* --- KEYFRAMES --- */
@keyframes drawLeft { 100% { transform: translateX(-100%); } }
@keyframes drawRight { 100% { transform: translateX(100%); } }
@keyframes dropDown { 100% { transform: translateY(0); } }
@keyframes fadeIn { 100% { opacity: 1; } }

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-green); }
}

@keyframes grain-jitter {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, -2px); }
    100% { transform: translate(2px, 2px); }
}

/* Bulb Animation */
@keyframes blinkBulbs {
    0% { 
        border-color: #33001a; 
        filter: drop-shadow(0 0 0px transparent);
    }
    100% { 
        border-color: var(--accent-pink); 
        filter: drop-shadow(0 0 10px var(--accent-pink));
    }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    
    /* --- MOBILE TYPEWRITER FIX --- */
    .typewriter { 
        font-size: 1rem; /* Slightly larger since it has room to wrap now */
        white-space: normal; /* Allows the text to flow to the next line */
        border-right: none; /* Removes the blinking cursor so it doesn't jump */
        width: 100%; 
        opacity: 0;
        /* Swaps the typing effect for a smooth fade-in */
        animation: fadeIn 1.5s ease 2.5s forwards; 
    }
    
    .logo-placeholder { width: 260px; height: 195px; }
}
/* --- SIGNATURE IMAGE SCALING --- */
.signature-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures it fills the box perfectly */
    border-radius: 2px; /* Matches the placeholder border-radius */
    display: block;
}
/* --- INNER PAGE SPECIFICS --- */
body.inner-page {
    overflow-y: auto; /* Allows scrolling on the main site */
    display: block; 
    padding: 60px 20px; /* Space for the fixed menu button */
}

/* --- HAMBURGER & CLOSE BUTTONS --- */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--accent-green);
    font-size: 2rem;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--accent-pink);
    transform: scale(1.1);
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: var(--text-noir);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-close:hover {
    color: var(--accent-pink);
}

/* --- MAGIC NAVIGATION OVERLAY --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 17, 17, 0.95); /* Mostly opaque noir background */
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-links {
    list-style: none;
    text-align: center;
    margin-bottom: 2rem;
}

.nav-links li {
    margin: 1.5rem 0;
}

.nav-links a {
    color: var(--text-noir);
    font-family: var(--font-accent);
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-green);
}

/* Social Icons in Menu */
.nav-socials a {
    color: var(--text-noir);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav-socials a:hover {
    color: var(--accent-pink);
    transform: translateY(-3px);
}

/* --- THE TYPEWRITER PAPER --- */
.paper-container {
    background-color: #fdfbf7; /* Off-white realistic paper color */
    color: #222; /* Dark ink for contrast */
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 50px;
    border-radius: 2px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    position: relative;
    z-index: 10;
}

/* Optional vertical line to mimic legal pad/margin */
.paper-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background-color: rgba(255, 102, 178, 0.3); /* Faint pink margin line */
}

.paper-content {
    position: relative;
    z-index: 2;
}

.paper-title {
    color: #111;
    text-shadow: none; /* Removing the neon shadow for the paper */
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.typewriter-text {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments for the paper */
@media (max-width: 768px) {
    .paper-container {
        padding: 30px 20px;
    }
    .paper-container::before {
        left: 15px; /* Adjust margin line for mobile */
    }
    .nav-links a {
        font-size: 1.5rem;
    }
}
/* ========================================= */
/* --- INNER PAGE SPECIFICS (jack-harper) --- */
/* ========================================= */

body.inner-page {
    overflow-y: auto; 
    display: block; 
    padding: 60px 20px; 
}

/* --- HAMBURGER & CLOSE BUTTONS --- */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--accent-green);
    font-size: 2rem;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--accent-pink);
    transform: scale(1.1);
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: var(--text-noir);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-close:hover {
    color: var(--accent-pink);
}

/* --- MAGIC NAVIGATION OVERLAY --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 17, 17, 0.88); /* Slightly translucent */
    backdrop-filter: blur(4px); /* Subtle blur so text stays readable */
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-links {
    list-style: none;
    text-align: center;
    margin-bottom: 2rem;
}

.nav-links li {
    margin: 1.5rem 0;
}

.nav-links a {
    color: var(--text-noir);
    font-family: var(--font-accent);
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-green);
}

.nav-socials a {
    color: var(--text-noir);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav-socials a:hover {
    color: var(--accent-pink);
    transform: translateY(-3px);
}

/* --- THE TYPEWRITER PAPER --- */
.paper-container {
    background-color: #f4f0e6; /* Realistic warm cream/off-white */
    color: #2b2b2b; /* Dark, classic typewriter ink */
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 50px;
    border-radius: 2px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    position: relative;
    z-index: 10;
}

.paper-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background-color: rgba(255, 102, 178, 0.3); /* Faint pink margin line */
}

.paper-content {
    position: relative;
    z-index: 2;
}

.paper-title {
    color: #111;
    text-shadow: none; 
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.typewriter-text {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 1.2rem;
    color: #1a1a1a; /* Even darker ink for the accent text */
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .paper-container {
        padding: 30px 20px;
    }
    .paper-container::before {
        left: 15px; 
    }
    .nav-links a {
        font-size: 1.5rem;
    }
}
/* ========================================= */
/* --- ABOUT PAGE SPECIFICS --- */
/* ========================================= */

.bio-wrapper {
    margin-top: 2rem;
    line-height: 1.8; /* Gives the text a bit more breathing room like a manuscript */
}

.bio-pic {
    float: left; /* Creates the newspaper text-wrap effect */
    width: 400px;
    height: 400px;
    object-fit: cover;
    margin: 0 30px 15px 0; /* Space to the right and bottom of the image */
    border-radius: 4px;
    /* Subtle pink glow: adjust the '0.5' at the end to make it brighter or dimmer */
    box-shadow: 4px 4px 15px rgba(255, 102, 178, 0.5); 
    border: 1px solid rgba(255, 102, 178, 0.2); /* Tiny pink border to define the edge */
}

/* Clearfix to ensure the container stretches past floating elements */
.bio-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive adjustment for the bio image */
@media (max-width: 768px) {
    .bio-pic {
        float: none; /* Disables the wrap on small screens */
        display: block;
        margin: 0 auto 20px auto; /* Centers the image */
        width: 100%; /* Scales dynamically */
        max-width: 320px; /* Caps the size so it doesn't take up the whole screen */
        height: auto;
        aspect-ratio: 1 / 1; /* Maintains the perfect square */
    }
}
/* ========================================= */
/* --- GLOBAL FOOTER --- */
/* ========================================= */

.site-footer {
    text-align: center;
    padding: 40px 20px 20px 20px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.footer-logo {
    width: 100%;
    max-width: 240px; /* Exactly 25% of your 960px native file */
    height: auto;
    margin-bottom: 15px;
    /* The Golden Glow: Traces the PNG transparency */
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover {
    /* Makes the gold glow pulse slightly when hovered over */
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
    transform: translateY(-2px);
}

.site-footer p {
    color: #666; /* Subdued gray so it doesn't distract from the paper or the glow */
    font-family: var(--font-accent);
    font-size: 0.85rem;
    letter-spacing: 1px;
}
/* ========================================= */
/* --- INDIVIDUAL BOOK TEMPLATE --- */
/* ========================================= */

.single-book-view {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-template-cover {
    width: 200px;
    height: 300px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border-radius: 4px;
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.1); /* Slight definition against the paper */
}

/* --- PURCHASE BUTTONS --- */
.purchase-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allows buttons to stack on very small mobile screens */
    justify-content: center;
}

.buy-btn {
    padding: 12px 30px;
    font-family: var(--font-accent);
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
}

.print-btn {
    background-color: var(--curtain-emerald);
    color: #fff;
    border: 2px solid var(--curtain-emerald);
}

.print-btn:hover {
    background-color: transparent;
    color: var(--curtain-emerald);
    /* Drops the emerald glow instead of a dark shadow */
    box-shadow: 0 0 15px rgba(4, 130, 67, 0.6); 
}

.kindle-btn {
    background-color: var(--accent-pink);
    color: #111;
    border: 2px solid var(--accent-pink);
}

.kindle-btn:hover {
    background-color: transparent;
    color: var(--accent-pink);
    /* Drops the pink glow */
    box-shadow: 0 0 15px rgba(255, 102, 178, 0.6); 
}

/* Helper Classes */
.text-center { 
    text-align: center; 
}

.text-spacing {
    margin-bottom: 2rem;
}

.book-synopsis {
    width: 100%;
    max-width: 600px; /* Keeps reading lines a comfortable width */
    line-height: 1.8;
}
/* ========================================= */
/* --- FILMSTRIP GALLERY (books.html) --- */
/* ========================================= */

.gallery-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 0; /* Removing the standard inner-page padding for full-width filmstrip */
}

.gallery-container {
    width: 100%;
    margin: 80px 0;
}

.gallery-title {
    text-align: center;
    color: var(--text-noir);
    font-family: var(--font-accent);
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* The Filmstrip Background & Sprockets */
.filmstrip-wrapper {
    position: relative;
    width: 100%;
    background-color: #050505; /* Deep, dark film color */
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* CSS Trick to draw the square sprocket holes */
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    background-image: 
        repeating-linear-gradient(to right, #050505 0, #050505 20px, transparent 20px, transparent 30px),
        repeating-linear-gradient(to right, #050505 0, #050505 20px, transparent 20px, transparent 30px);
    background-position: top, bottom;
    background-size: 100% 15px;
    background-repeat: no-repeat;
    /* Create an underlay so the holes show the main body noir color */
    box-shadow: 0 -15px 0 var(--bg-noir) inset, 0 15px 0 var(--bg-noir) inset, 0 20px 50px rgba(0,0,0,0.8);
}

/* Carousel Track Setup */
.carousel-viewport {
    width: 100%;
    max-width: 1000px;
    overflow: hidden; /* Hides the books off-screen */
    margin: 0 20px;
}

.carousel-track {
    display: flex;
    gap: 30px;
    align-items: center;
    /* Initial state */
    transform: translateX(0);
}

.book-item {
    flex: 0 0 auto;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-cover {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
}

.carousel-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 230, 118, 0.4); /* Subtle green glow on hover */
}

/* Book Title Buttons */
.book-title-btn {
    color: var(--text-noir);
    font-family: var(--font-accent);
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 3px;
    transition: all 0.3s ease;
    width: 100%;
}

.book-title-btn:hover {
    background-color: var(--accent-pink);
    color: #111;
    border-color: var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink);
}

/* Custom J & H Navigation Arrows */
.nav-arrow {
    background: transparent;
    border: none;
    color: #555;
    font-size: 2.5rem;
    font-family: var(--font-main);
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-arrow:hover {
    color: var(--text-noir);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.brand-letter {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 3rem;
}

.pink-letter { color: var(--accent-pink); text-shadow: 0 0 15px rgba(255, 102, 178, 0.6); }
.green-letter { color: var(--accent-green); text-shadow: 0 0 15px rgba(0, 230, 118, 0.6); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-arrow { font-size: 1.5rem; }
    .brand-letter { font-size: 2rem; }
    .filmstrip-wrapper { padding: 40px 0; }
}
/* ========================================= */
/* --- 404 ERROR PAGE --- */
/* ========================================= */

.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; /* Prevents scrolling while curtains close */
    background-color: var(--bg-noir); /* The void before the curtains close */
}

/* Reverse Curtain Animations */
.curtain-left-close {
    left: 0;
    border-right: 3px solid var(--curtain-shadow);
    transform: translateX(-100%); /* Starts open */
    animation: closeLeft 1.5s ease-in-out 0.5s forwards;
}

.curtain-right-close {
    right: 0;
    border-left: 3px solid var(--curtain-shadow);
    transform: translateX(100%); /* Starts open */
    animation: closeRight 1.5s ease-in-out 0.5s forwards;
}

/* The Error Message Content */
.error-content {
    position: relative;
    z-index: 100; /* Ensures it sits above the closed emerald curtains */
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
    opacity: 0;
    /* Fades in right as the curtains finish shutting */
    animation: fadeIn 1s ease 2s forwards; 
}

.error-code {
    font-size: 6rem;
    color: var(--accent-pink);
    margin-bottom: 0;
    line-height: 1;
    text-shadow: 0 0 25px rgba(255, 102, 178, 0.8);
}

.error-text {
    color: var(--text-noir); /* White text to pop against the green curtains */
    font-size: 1.4rem;
    margin: 2rem 0 3rem 0;
    line-height: 1.6;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9); /* Heavy drop shadow for readability */
}

/* Tweak the button so it looks good on green */
.error-btn {
    background-color: var(--bg-noir);
    border-color: var(--accent-pink);
}

.error-btn:hover {
    background-color: var(--accent-pink);
    color: var(--bg-noir);
    box-shadow: 0 0 15px var(--accent-pink);
}

/* --- KEYFRAMES FOR CLOSING --- */
@keyframes closeLeft { 
    100% { transform: translateX(0); } 
}
@keyframes closeRight { 
    100% { transform: translateX(0); } 
}
/* ========================================= */
/* --- CONTACT PAGE SPECIFICS --- */
/* ========================================= */

.contact-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Photo Styling to look like an attached physical print */
.attached-photo {
    background: #fff;
    padding: 10px 10px 30px 10px; /* Polaroid style bottom lip */
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
    transform: rotate(-2deg); /* Slight jaunty angle */
    margin-bottom: 40px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.attached-photo:hover {
    transform: rotate(0deg) scale(1.02);
}

.contact-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    /* Optional: A slight sepia or grayscale filter to match the noir vibe, 
       remove this if you want full, vibrant color! */
    filter: sepia(0.2) contrast(1.1); 
}

/* Contact Buttons Container */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px; /* Keeps buttons uniform in width */
}

/* Base Button Style */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    font-family: var(--font-accent);
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Specific Button Themes */
.apple-mail-btn {
    background-color: var(--text-noir);
    color: var(--bg-noir);
    border: 2px solid var(--text-noir);
}

.apple-mail-btn:hover {
    background-color: transparent;
    color: var(--text-noir);
    box-shadow: 0 0 15px rgba(244, 244, 244, 0.5);
}

.gmail-btn {
    background-color: var(--accent-pink);
    color: var(--bg-noir);
    border: 2px solid var(--accent-pink);
}

.gmail-btn:hover {
    background-color: transparent;
    color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(255, 102, 178, 0.6);
}

.generic-mail-btn {
    background-color: transparent;
    color: var(--curtain-emerald);
    border: 2px solid var(--curtain-emerald);
}

.generic-mail-btn:hover {
    background-color: var(--curtain-emerald);
    color: var(--bg-noir);
    box-shadow: 0 0 15px rgba(4, 130, 67, 0.6);
}
/* ========================================= */
/* --- DESKTOP MENU HINT --- */
/* ========================================= */

.desktop-menu-hint {
    display: none; /* Hides it by default for mobile */
}

/* Only triggers on screens wider than a standard tablet */
@media (min-width: 1024px) { 
    .desktop-menu-hint {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        top: 25px;
        right: 80px; /* Positions it perfectly next to the menu icon */
        color: var(--accent-pink); /* Using pink for high contrast against the noir background */
        font-family: var(--font-accent);
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        z-index: 100;
        pointer-events: none; /* Prevents it from interfering with clicks */
        animation: neonPoint 1.5s infinite ease-in-out;
    }

    /* Bounces smoothly to the right, pointing at the icon */
    @keyframes neonPoint {
        0%, 100% { transform: translateX(0); text-shadow: 0 0 5px var(--accent-pink); }
        50% { transform: translateX(15px); text-shadow: 0 0 15px var(--accent-pink); } 
    }
}
/* ========================================= */
/* --- INTERACTIVE TILTED MANUSCRIPT --- */
/* ========================================= */

.tilted-manuscript {
    background: #fff;
    padding: 30px 30px 50px 30px; /* Gives the text plenty of room to breathe */
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
    transform: rotate(-2deg); /* The signature jaunty angle */
    margin-bottom: 40px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
    text-align: left; /* Keeps your paragraphs highly readable */
}

.tilted-manuscript:hover {
    transform: rotate(0deg) scale(1.02); /* Straightens out when the reader hovers/taps */
}

.tilted-cover {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 30px auto; /* Perfectly centers the cover and adds space below it */
    filter: sepia(0.2) contrast(1.1); /* Keeps that slightly nostalgic 2007 vibe */
    border-radius: 2px;
}
/* ========================================= */
/* --- RETURN TO LIBRARY BUTTON --- */
/* ========================================= */

.return-action {
    margin-top: 3.5rem; /* Gives plenty of breathing room below the synopsis */
    width: 100%; 
}

.return-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background-color: transparent;
    color: #444; /* Dark gray ink color */
    border: 2px solid #444;
    font-family: var(--font-accent);
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
}

.return-btn:hover {
    background-color: #444;
    color: var(--text-noir); /* Swaps to the crisp white/noir text */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Soft shadow on the paper */
    transform: translateY(-2px); /* Slight lift effect */
}
/* ========================================= */
/* --- THE PHOENIX IGNITION --- */
/* ========================================= */

/* Ensure the marquee box sits cleanly on top of the bird */
.marquee-box {
    position: relative;
    z-index: 5; 
}

.phoenix-ignition {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5); /* Starts small and centered */
    width: 600px; /* Wide enough to stick out past the 320px marquee */
    max-width: 95vw; /* Prevents mobile overflow */
    height: auto;
    z-index: 1; /* Keeps it strictly BEHIND the marquee */
    opacity: 0;
    pointer-events: none; /* Prevents it from intercepting thumb taps */
    /* Wait 3.5s for the drop, then flare out over 2 seconds */
    animation: phoenixFlare 2s ease-out 3.5s forwards;
    /* Adds a beautiful pink radiant glow to the PNG */
    filter: drop-shadow(0 0 20px var(--accent-pink)); 
}

/* The Flare Animation */
@keyframes phoenixFlare {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    40% {
        opacity: 0.8; /* Peaks in brightness as it hits maximum size */
        transform: translate(-50%, -50%) scale(1.15);
    }
    100% {
        opacity: 0.3; /* Settles into a subtle, permanent glowing watermark */
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ========================================= */
/* --- THE BLOG --- */
/* ========================================= */
/* ========================================= */
/* --- RAINBOW & GOLD TEXT HYPERLINKS --- */
/* ========================================= */

/* Targeting links specifically inside paragraphs so we don't break your buttons */
p a, 
.post-body a, 
.bio-wrapper a {
    text-decoration: none;
    font-weight: 600;
    
    /* The Constant Rainbow Illumination */
    background: linear-gradient(
        90deg, 
        #ff66b2, /* Pink */
        #ffb347, /* Orange */
        #ffea00, /* Yellow */
        #00e676, /* Emerald */
        #00bfff, /* Blue */
        #9d00ff, /* Violet */
        #ff66b2  /* Back to Pink for a seamless infinite loop */
    );
    background-size: 300% 300%;
    
    /* This clips the rainbow background to the shape of the text */
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* A subtle glow to make it "illuminate" */
    text-shadow: 0px 0px 8px rgba(255, 102, 178, 0.2); 
    
    /* A faint dashed line so readers know it's a link */
    border-bottom: 1px dashed rgba(255, 102, 178, 0.5);
    
    /* The constant flowing animation */
    animation: rainbow-link-flow 5s linear infinite;
    transition: all 0.3s ease;
}

/* --- THE METALLIC GOLD HOVER --- */
p a:hover, 
.post-body a:hover, 
.bio-wrapper a:hover {
    /* A sharp, high-contrast metallic gold gradient */
    background: linear-gradient(
        110deg, 
        #bf953f 0%, 
        #fcf6ba 25%, 
        #b38728 50%, 
        #fbf5b7 75%, 
        #aa771c 100%
    );
    background-size: 200% auto;
    
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Makes the gold literally glow off the paper */
    text-shadow: 0px 0px 12px rgba(255, 215, 0, 0.6);
    border-bottom: 1px solid #ffd700;
    
    /* The rapid shine animation */
    animation: gold-link-shine 1.5s linear infinite;
}

/* --- KEYFRAMES FOR THE LINKS --- */
@keyframes rainbow-link-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes gold-link-shine {
    to { background-position: 200% center; }
}

/* ========================================= */
/* --- RUBY SPARKLE IMPORTANT LINKS --- */
/* ========================================= */

/* Higher specificity to override the rainbow links */
p a.ruby-link, 
.post-body a.ruby-link {
    font-weight: 700; /* Extra bold to stand out */
    
    /* The Ruby Gradient: Deep reds with bright, sparkly pink/white facets */
    background: linear-gradient(
        110deg,
        #8b0000 0%,   /* Dark Crimson */
        #dc143c 25%,  /* Bright Ruby */
        #ffb3c6 45%,  /* Sparkle flash */
        #e60000 55%,  /* Pure Red */
        #8a0303 80%,  /* Deep shadow */
        #ff3366 100%  /* Pinkish-red edge */
    );
    background-size: 200% auto;
    
    /* Clip the ruby gradient to the text */
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* A constant, deep red pulse/glow */
    text-shadow: 0px 0px 8px rgba(220, 20, 60, 0.4);
    
    /* A solid red underline to distinguish it from the dashed rainbow links */
    border-bottom: 2px solid #dc143c;
    
    /* The slow, gem-like shine */
    animation: ruby-sparkle 3s linear infinite;
    transition: all 0.3s ease;
}

/* --- THE INTENSE HOVER SPARKLE --- */
p a.ruby-link:hover, 
.post-body a.ruby-link:hover {
    /* The facets catch the light and flare bright red and white */
    background: linear-gradient(
        110deg,
        #ff0000 0%, 
        #ffffff 20%, /* Blinding white flash */
        #e60000 40%, 
        #ff8080 60%, 
        #cc0000 80%, 
        #ffffff 100%
    );
    background-size: 200% auto;
    
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* The glow explodes outward */
    text-shadow: 0px 0px 15px rgba(255, 0, 0, 0.8), 0px 0px 5px rgba(255, 255, 255, 0.8);
    border-bottom-color: #ff0000;
    
    /* The sparkle speeds up */
    animation: ruby-sparkle 1s linear infinite;
}

/* --- KEYFRAME FOR THE RUBY --- */
@keyframes ruby-sparkle {
    to { background-position: 200% center; }
}

/* --- HARPERVILLE SHARE ARRAY --- */
.share-dispatch-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(255, 102, 178, 0.4); /* Faint pink dashed line */
}

.share-label {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #444; /* Dark ink */
    text-transform: uppercase;
    margin-right: 10px;
}

.harper-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #111;
    border: 2px solid #111;
    border-radius: 50%; /* Makes them perfect circles */
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: transparent;
}

.harper-share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* The Hover Magic */
.harper-share-btn:hover {
    background-color: var(--accent-pink);
    color: var(--bg-noir); /* Swaps icon to dark noir */
    border-color: var(--accent-pink);
    box-shadow: 0 5px 15px rgba(255, 102, 178, 0.4); /* Pink glow on the paper */
    transform: translateY(-3px); /* Lifts the button slightly */
}

/* Special hover for the copy link button using the Emerald variable */
.harper-share-btn.copy-link-btn:hover {
    background-color: var(--curtain-emerald);
    border-color: var(--curtain-emerald);
    box-shadow: 0 5px 15px rgba(4, 130, 67, 0.4);
}
/* --- HARPERVILLE SHARE ARRAY --- */
.share-dispatch-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(255, 102, 178, 0.4); /* Faint pink dashed line */
}

.share-label {
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #444; /* Dark ink */
    text-transform: uppercase;
    margin-right: 10px;
}

.harper-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #111;
    border: 2px solid #111;
    border-radius: 50%; /* Makes them perfect circles */
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: transparent;
}

/* THIS IS THE MAGIC LINE FIXING YOUR GIANT ICONS */
.harper-share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* The Hover Magic */
.harper-share-btn:hover {
    background-color: var(--accent-pink);
    color: var(--bg-noir); /* Swaps icon to dark noir */
    border-color: var(--accent-pink);
    box-shadow: 0 5px 15px rgba(255, 102, 178, 0.4); /* Pink glow on the paper */
    transform: translateY(-3px); /* Lifts the button slightly */
}

/* Special hover for the copy link button using the Emerald variable */
.harper-share-btn.copy-link-btn:hover {
    background-color: var(--curtain-emerald);
    border-color: var(--curtain-emerald);
    box-shadow: 0 5px 15px rgba(4, 130, 67, 0.4);
}