/* ========================================
   HEATHER KEATON WEBSITE
   Global Styles
======================================== */

/* ---------- COLOR SYSTEM ---------- */

:root {
    --chocolate-brown: #4A2C2A;
    --parchment: #EFE9E7;
    --evergreen: #324C47;
    --dusty-lavender: #975E7D;
}


/* ---------- RESET ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--parchment);
    color: var(--evergreen);
    line-height: 1.6;
}


/* ---------- NAVIGATION ---------- */

nav {
    background-color: var(--evergreen);
    padding: 15px 20px;
    text-align: center;
}

nav a {
    color: var(--parchment);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--dusty-lavender);
}


/* ---------- HEADER ---------- */

header {
    background-color: var(--chocolate-brown);
    color: var(--parchment);
    padding: 35px 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 42px;
    letter-spacing: 1px;
}

header p {
    margin: 10px 0 0;
    font-size: 20px;
    letter-spacing: 0.5px;
    color: rgba(239, 233, 231, 0.85);
}


/* ---------- HERO ---------- */

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.book-cover {
    width: 230px;
    height: 340px;
    background-color: var(--dusty-lavender);
    color: var(--parchment);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(21, 40, 28, 0.18);
}
.book-cover img {
    width: 230px;
    height: 340px;
    object-fit: fill;
    border-radius: 8px;
    display: block;
}
.book-cover {
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: translateY(-6px);
}
.hero-text {
    max-width: 550px;
}

.hero-text h2 {
    color: var(--chocolate-brown);
    font-size: 40px;
    margin-top: 0;
}


/* ---------- BUTTONS ---------- */

button {
    background-color: var(--chocolate-brown);
    color: var(--parchment);
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

button:hover {
    background-color: var(--dusty-lavender);
    transform: translateY(-2px);
}


/* ---------- ABOUT SECTION ON HOME PAGE ---------- */

.about {
    background-color: var(--evergreen);
    color: var(--parchment);
    padding: 60px 20px;
    text-align: center;
}

.about h2 {
    color: var(--dusty-lavender);
}


/* ---------- FOOTER ---------- */

footer {
    background-color: var(--evergreen);
    color: var(--parchment);
    padding: 30px 20px;
    text-align: center;
}

footer a {
    color: var(--dusty-lavender);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    color: var(--parchment);
}


/* ---------- BOOKS PAGE ---------- */

.books-intro {
    text-align: center;
    padding: 60px 20px 30px;
}

.books-intro h2 {
    color: var(--chocolate-brown);
    font-size: 34px;
    margin: 0;
}

.book-showcase {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 20px 80px;
}

.book-placeholder {
    display: flex;
    align-items: center;
    gap: 35px;
    max-width: 700px;
    width: 100%;
    padding: 35px;
    background-color: var(--parchment);
    border: 1px solid rgba(151, 94, 125, 0.35);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(21, 40, 28, 0.12);
}

.book-placeholder-cover {
    width: 180px;
    height: 260px;
    flex-shrink: 0;
    background-color: var(--dusty-lavender);
    color: var(--parchment);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 600;
}
.book-placeholder-cover img {
    width: 180px;
    height: 260px;
    object-fit: fill;
    border-radius: 8px;
    display: block;
}
.book-placeholder-text h3 {
    color: var(--chocolate-brown);
    font-size: 28px;
    margin-top: 0;
}

.book-placeholder-text p {
    color: var(--evergreen);
    font-size: 17px;
}



/* ---------- ABOUT PAGE ---------- */

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 850px;
    margin: 0 auto;
    padding: 70px 70px;
}

.about-content > div:first-child {
    max-width: 500px;
}

.about-content h2 {
    color: var(--chocolate-brown);
    font-size: 34px;
    margin-top: 0;
}

.about-content p {
    color: var(--evergreen);
    font-size: 18px;
}

.author-photo {
    flex-shrink: 0;
}

.author-photo img {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(21, 40, 28, 0.18);
}


/* ---------- CONTACT PAGE ---------- */

.contact-intro {
    max-width: 700px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.contact-intro h2 {
    color: var(--chocolate-brown);
    font-size: 36px;
    margin-top: 0;
}

.contact-intro p {
    color: var(--evergreen);
    font-size: 18px;
}


/* ---------- RESPONSIVE DESIGN ---------- */

@media (max-width: 768px) {

    nav a {
        display: inline-block;
        margin: 5px 8px;
    }

    header h1 {
        font-size: 34px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }

    .hero-text h2 {
        font-size: 32px;
    }

    .book-placeholder {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 35px;
        padding: 50px 20px;
    }

    .contact-intro {
        padding: 60px 20px;
    }

.book-showcase {
    flex-direction: column;
    align-items: center;
}
}/* ---------- BOOK LINKS ---------- */

.book-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background-color: var(--chocolate-brown);
    color: var(--parchment);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.book-link:hover {
    background-color: var(--dusty-lavender);
    transform: translateY(-2px);
}
.story-info {
    display: none;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
/* ---------- LIBRARY TITLE ---------- */


header h1.library-title {
    font-family: "Lobster", cursive;
    font-weight: 400;
    font-size: 76px !important;
    letter-spacing: 1px;
    color: var(--dusty-lavender);
    -webkit-text-stroke: 1px var(--chocolate-brown);
}
.path-title {
    font-family: Georgia, serif;
    font-size: 26px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--chocolate-brown);
}
/* ---------- SCROLL REVEAL ---------- */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
/* ---------- MAGICAL SPARKLES ---------- */

.book-cover,
.book-placeholder-cover {
    position: relative;
}


.sparkle {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--parchment);
    clip-path: polygon(
        50% 0%,
        62% 38%,
        100% 50%,
        62% 62%,
        50% 100%,
        38% 62%,
        0% 50%,
        38% 38%
    );
    filter: drop-shadow(0 0 5px var(--dusty-lavender));
    pointer-events: none;
    animation: sparkle-fade 2.5s ease-out forwards;
}
@keyframes sparkle-fade {
    0% {
        opacity: 0;
        transform: scale(0.2) translateY(5px);
    }

    20% {
        opacity: 1;
        transform: scale(1.3) translateY(0);
    }

    50% {
        opacity: 1;
        transform: scale(1) translateY(-8px);
    }

    100% {
        opacity: 0;
        transform: scale(0.4) translateY(-25px);
    }
}
.contact-intro a {
    color: var(--dusty-lavender);
    text-decoration: none;
    font-weight: 600;
}

.contact-intro a:hover {
    color: var(--chocolate-brown);
    text-decoration: underline;
}