/* ==========================================================================
   COMMON.CSS - GLOBAL THEME & NAVIGATION REPAIRED
   ========================================================================== */

/* --- 1. RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f9f7f2; /* Light cream body */
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    /* Offset for the 80px fixed header */
    padding-top: 80px; 
    overflow-x: hidden; /* Prevents navigation from pushing page wide */
}

/* --- 2. PINNED NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px; /* Reduced padding to keep links on screen */
    height: 80px;
    background-color: #e8e4d8; /* Header background color */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
	box-sizing: border-box; /* Ensures padding doesn't push width over 100% */
}



/* LOGO FIX: Force 400 weight & kill browser "Faux Bold" */
nav a.logo, 
nav .logo {
    font-family: 'Playfair Display', serif !important;
    font-weight: 400 !important; /* Elegant non-bold weight */
    font-size: 1.6rem !important;
    text-decoration: none !important;
    color: #1a1a1a !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    flex-shrink: 0; /* Prevents logo from squishing */
    -webkit-font-smoothing: antialiased;
    font-synthesis: none !important; /* Prevents browser-made bolding */
}

/* NAVIGATION LIST: Killing bullets & fixing overflow */
nav ul {
    display: flex;
    gap: 20px;
    list-style: none !important; /* Removes bullets */
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap; /* Keeps links on one line */
}

nav ul li {
    list-style: none !important;
}

nav ul li a {
    text-decoration: none !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    white-space: nowrap; /* Prevents text from going off-screen */
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ae0000 !important;
}

/* --- 3. GLOBAL BUTTONS --- */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.btn {
    background-color: #ae0000 !important; /* Deep red branding */
    color: #ffffff !important;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #8e0000 !important;
}

.btn-secondary {
    background-color: transparent !important;
    border: 1px solid #1a1a1a !important;
    padding: 16px 32px;
    text-decoration: none;
    color: #1a1a1a !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* --- 4. SHARED TYPOGRAPHY --- */
.status-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #777; /* Subtle grey for "Debut Novel" */
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.book-tagline {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* --- 5. FOOTER --- */
.footer-copyright {
    background-color: #111; /* Dark footer */
    color: #888;
    text-align: center;
    padding: 40px 0;
    font-size: 0.8rem;
    width: 100%;
}
/* THE MOBILE FIX: Triggers at 800px or less */
@media (max-width: 800px) {
    nav {
        flex-direction: column; 
        justify-content: center;
        height: auto; /* Allow height to expand for stacked links */
        padding: 15px 20px;
    }

    nav ul {
        gap: 15px;
        margin-top: 10px;
    }

    /* Keep "Darby Michaels" or Logo centered on mobile */
    .logo {
        font-size: 1.2rem;
    }
}