/*
Theme Name: Kim Little Author
Theme URI: https://kimlittleauthor.com
Author: Kim Little
Description: A clean, contemporary romance author theme. Warm blush and deep plum palette, DM Serif Display headings, Nunito Sans body. 800px centred container, responsive to mobile.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kim-little
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --color-plum:        #5B2245;
    --color-plum-dark:   #3D1730;
    --color-plum-light:  #7A3A62;
    --color-blush:       #F2D9D5;
    --color-blush-light: #FAF0EE;
    --color-blush-deep:  #E8B4AC;
    --color-cream:       #FFFAF8;
    --color-charcoal:    #2D2A2E;
    --color-text:        #3D3A3F;
    --color-text-light:  #6E6A70;
    --color-white:       #FFFFFF;

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body:    'Nunito Sans', 'Segoe UI', sans-serif;

    --container-width: 800px;
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-xxl: 6rem;

    --transition: 0.25s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-plum);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-plum-light);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--color-charcoal);
    line-height: 1.2;
}

h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p + p { margin-top: var(--space-sm); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 3px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-plum);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-plum-light);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-plum);
    border: 1.5px solid var(--color-plum);
}

.btn-secondary:hover {
    background-color: var(--color-plum);
    color: var(--color-white);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    padding: var(--space-lg) 0 0;
    background-color: var(--color-cream);
}

.header-brand {
    text-align: center;
    padding-bottom: var(--space-md);
}

.site-title {
    font-size: 3rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.15rem;
}

.site-title a {
    color: var(--color-charcoal);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--color-plum);
}

.site-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-plum-light);
}

.header-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-blush-deep), transparent);
    margin-bottom: var(--space-sm);
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-blush);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* WordPress menu output */
.nav-links li {
    list-style: none;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.02em;
    padding: 0.25rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-plum);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links .current-menu-item a::after,
.nav-links .current_page_item a::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links .current-menu-item a,
.nav-links .current_page_item a {
    color: var(--color-plum);
}

/* Store link */
.nav-links .menu-item-store a {
    color: var(--color-plum) !important;
    font-weight: 600 !important;
}

.nav-socials {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.social-icon {
    color: var(--color-text-light);
    transition: color var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
}

.social-icon:hover {
    color: var(--color-plum);
    transform: translateY(-1px);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-charcoal);
    transition: var(--transition);
}

/* ============================================
   HERO (Front Page)
   ============================================ */
.hero {
    padding: var(--space-xxl) 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-plum-light);
    margin-bottom: var(--space-sm);
}

.hero-heading {
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    color: var(--color-charcoal);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-accent {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-blush) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   FEATURED BOOK SECTION
   ============================================ */
.section-featured {
    padding: var(--space-xl) 0 var(--space-xxl);
    background-color: var(--color-blush-light);
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-plum-light);
    margin-bottom: var(--space-lg);
}

.featured-book {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.book-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(145deg, var(--color-plum), var(--color-plum-dark));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blush);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    text-align: center;
    box-shadow: 8px 8px 24px rgba(91, 34, 69, 0.15);
}

.featured-book-cover img {
    border-radius: 4px;
    box-shadow: 8px 8px 24px rgba(91, 34, 69, 0.15);
}

.featured-title {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.featured-genre {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-plum-light);
    margin-bottom: var(--space-sm);
}

.featured-description {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    max-width: 440px;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.section-newsletter {
    padding: var(--space-xl) 0;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--color-plum-dark), var(--color-plum));
    color: var(--color-blush-light);
    padding: var(--space-xl);
    border-radius: 6px;
    text-align: center;
}

.newsletter-heading {
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.newsletter-text {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: var(--space-md);
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: var(--space-xs);
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 3px;
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--color-blush);
}

.newsletter-form .btn-primary {
    background-color: var(--color-blush);
    color: var(--color-plum-dark);
    white-space: nowrap;
}

.newsletter-form .btn-primary:hover {
    background-color: var(--color-white);
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
    padding: var(--space-xl) 0 var(--space-xxl);
}

.page-title {
    font-size: 2.4rem;
    margin-bottom: var(--space-xs);
}

.page-intro {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: var(--space-xl);
    max-width: 580px;
}

/* Content prose — applies to WordPress editor output too */
.prose,
.entry-content {
    line-height: 1.8;
}

.prose p + p,
.entry-content p + p {
    margin-top: var(--space-md);
}

.prose h3,
.entry-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.prose a,
.entry-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================
   BOOK CARDS
   ============================================ */
.book-grid {
    display: grid;
    gap: var(--space-xl);
}

.book-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--space-lg);
    align-items: start;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-blush);
}

.book-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.book-card-cover .book-placeholder {
    font-size: 0.75rem;
}

.book-card-cover img {
    border-radius: 4px;
    box-shadow: 8px 8px 24px rgba(91, 34, 69, 0.15);
}

.book-card-title {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.book-card-meta {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-plum-light);
    margin-bottom: var(--space-sm);
}

.book-card-description {
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.book-card-links {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.book-card-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================
   FEATURE ARTICLE (About page)
   ============================================ */
.feature-header {
    text-align: center;
    padding: var(--space-xxl) 0 var(--space-lg);
    border-bottom: 1px solid var(--color-blush);
    margin-bottom: var(--space-xl);
}

.feature-kicker {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-plum-light);
    margin-bottom: var(--space-sm);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    line-height: 1.1;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
}

.feature-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--color-text-light);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.4;
}

.feature-byline {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: var(--space-md);
    letter-spacing: 0.05em;
}

.scene {
    font-style: italic;
    color: var(--color-text-light);
    border-left: 2px solid var(--color-blush-deep);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
}

.scene p + p {
    margin-top: var(--space-sm);
}

.prose .question {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-charcoal);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.prose .question:first-of-type {
    margin-top: var(--space-lg);
}

.stage {
    font-style: italic;
    color: var(--color-text-light);
    display: block;
    margin: var(--space-sm) 0;
}

.pull-quote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.35;
    color: var(--color-plum);
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    margin: var(--space-xl) 0;
    border-top: 1px solid var(--color-blush-deep);
    border-bottom: 1px solid var(--color-blush-deep);
}

.divider {
    text-align: center;
    margin: var(--space-xl) 0;
    color: var(--color-blush-deep);
    font-size: 1.2rem;
    letter-spacing: 0.5em;
}

/* ============================================
   BLOG / POSTS
   ============================================ */
.post-list {
    display: grid;
    gap: var(--space-xl);
}

.post-preview {
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-blush);
}

.post-preview:last-child {
    border-bottom: none;
}

.post-preview-date {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-plum-light);
    margin-bottom: var(--space-xs);
}

.post-preview-title {
    font-size: 1.4rem;
    margin-bottom: var(--space-xs);
}

.post-preview-title a {
    color: var(--color-charcoal);
    text-decoration: none;
}

.post-preview-title a:hover {
    color: var(--color-plum);
}

.post-preview-excerpt {
    color: var(--color-text-light);
}

.post-preview-excerpt a {
    font-weight: 600;
}

/* Single post */
.post-header {
    margin-bottom: var(--space-xl);
}

.post-date {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-plum-light);
    margin-bottom: var(--space-xs);
}

.post-title {
    font-size: 2.2rem;
}

/* Pagination */
.pagination {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-blush);
    display: flex;
    justify-content: space-between;
}

.pagination a {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   IMAGES & FIGURES
   ============================================ */
.prose img,
.entry-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: var(--space-md) 0;
}

.prose figure,
.entry-content figure {
    margin: var(--space-lg) 0;
}

.prose figure img,
.entry-content figure img {
    margin: 0;
}

.prose figcaption,
.entry-content figcaption {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: var(--space-xs);
    font-style: italic;
}

.image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.image-row figure {
    margin: 0;
}

.image-wide {
    margin-left: calc(-1 * var(--space-lg));
    margin-right: calc(-1 * var(--space-lg));
}

.image-wide img {
    border-radius: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--color-blush-light);
    padding: var(--space-lg) 0;
    margin-top: auto;
}

.footer-newsletter {
    text-align: center;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-blush-deep);
}

.footer-newsletter-cta {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.footer-newsletter-cta a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.footer-socials {
    display: flex;
    gap: var(--space-sm);
}

.footer-socials .social-icon {
    color: var(--color-text-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --space-xl: 3rem;
        --space-xxl: 4rem;
    }

    .site-title { font-size: 2.4rem; }
    .hero-heading { font-size: 2rem; }
    .page-title { font-size: 1.8rem; }
    .feature-title { font-size: 2rem; }
    .feature-subtitle { font-size: 1.1rem; }
    .prose .question { font-size: 1.1rem; }
    .pull-quote { font-size: 1.25rem; }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: var(--space-lg);
        right: var(--space-md);
    }

    .site-nav {
        display: none;
        flex-direction: column;
        gap: var(--space-sm);
        padding-bottom: var(--space-md);
    }

    .site-nav.nav-open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
    }

    .nav-socials {
        justify-content: center;
    }

    .site-header .container {
        position: relative;
    }

    .featured-book {
        grid-template-columns: 140px 1fr;
        gap: var(--space-md);
    }

    .book-card {
        grid-template-columns: 120px 1fr;
        gap: var(--space-md);
    }

    .image-row {
        grid-template-columns: 1fr;
    }

    .image-wide {
        margin-left: calc(-1 * var(--space-md));
        margin-right: calc(-1 * var(--space-md));
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-box {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .site-title { font-size: 2rem; }
    .hero-heading { font-size: 1.7rem; }

    .featured-book {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .featured-book-cover {
        max-width: 160px;
        margin: 0 auto;
    }

    .featured-description {
        margin-left: auto;
        margin-right: auto;
    }

    .book-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-card-cover {
        max-width: 140px;
        margin: 0 auto;
    }

    .hero-accent { display: none; }
}
