/* Color Palette 
   Primary: #4a6149
   Accents: #c8d4aa, #f6c8dc, #f7bcb2
*/

h1, h2, p {
    margin: 0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
}

:root {
    --green-light: #c8d4aa;   /* header + navbar */
    --green-dark: #4a6149;    /* intro focus section */
    --ink: #2f3f2f;           /* deep readable text */
    --paper: #ffffff;
}
.cursor {
    display: inline-block;
    margin-left: 2px;
    color: var(--paper);
    animation: cursorBlink 0.8s steps(1) infinite;
    flex-shrink: 0;
}
.intro-cursor {
    display: inline-block;
    margin-left: 2px;
    color: var(--paper);
    animation: cursorBlink 0.8s steps(1) infinite;
    flex-shrink: 0;
}

@keyframes cursorBlink {
    50% {
        opacity: 0;
    }
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Navigation */
.navbar {
    width: 100%;
    background: var(--green-light);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo a {
    color: #c8d4aa;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color .3s ease;
}

.logo a:hover {
    color: #f7bcb2;
}
header.hero {
    background: linear-gradient(
        to bottom,
        var(--green-light),
        #d7e0c2
    );
    text-align: center;
    padding: 22px 16px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Author name */
.hero h1 {
    font-size: 2rem;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}


/* NAV becomes part of header (not separate block) */
.navbar {
    padding: 0;
    position: sticky;
    background: white;
}

/* center nav like a book site */
.nav-links {
    display: flex;
    justify-content: space-evenly;
    gap: 28px;
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
}

/* elegant nav styling */
.nav-links a {
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--green-dark);
    position: relative;
}

/* subtle underline hover (very “author site”) */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 1px;
    background: var(--green-dark);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Intro Section */
.intro {
    background: #c8d4aa;
    padding: 16px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.hero {
    margin-bottom: 0;
}

.intro {
    margin-top: 0;
    margin-bottom: 0;
    background: var(--green-dark);
    color: var(--paper);
}
.intro-content {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.intro h1 {
    font-size: 1.8rem;
    margin: 0 0 5px;
    color: var(--paper);
}
#typewriter {
    min-height: 28px;
    text-align: center;
    line-height: 1.4;
    color: var(--paper);
}
.typewriter-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.intro .btn {
    margin-top: 10px;
    border-color: var(--paper);
    color: var(--paper);
}

/* Buttons */
.btn {
    display: inline-block;
    background: transparent;
    color: #4a6149;
    padding: 10px 30px;
    text-decoration: none;
    border-radius: 30px;
    border: 2px solid #4a6149;
    margin-top: 20px;
    transition: all .3s ease;
    cursor: pointer;
}

.btn:hover {
    background: #4a6149;
    color: #fff;
}
.intro .btn:hover{
    background: var(--paper);
    color: var(--green-dark);
}

/* Sections */
.container {
    padding: 45px 10%;
    max-width: 1200px;
    margin: auto;
}

.container:first-of-type {
    padding-top: 35px;
}

h2 {
    color: #4a6149;
    margin-bottom: 30px;
    border-bottom: 2px solid #f7bcb2;
    display: inline-block;
    font-size: 2rem;
    letter-spacing: 1px;
}

.book-link {
    color:#4a6149;
    text-decoration:none;
    font-weight:bold;
}

.book-link:hover {
    color:#f7bcb2;
}
.book-cover img {
    transition:.3s ease;
}

.book-cover img:hover {
    transform:scale(1.03);
}
.book-info p {
    margin-bottom: 24px;
}
.trigger-warning {
    font-size: 0.95rem;
}

/* Testimonials */
.testimonial-grid {
    column-count: 3;
    column-gap: 22px;
    max-width: 1000px;
    margin: 0 auto;
}
.testimonial-card {
    break-inside: avoid;
    margin-bottom: 22px;
    display: inline-block;
    width: 100%;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.testimonial {
    padding: 20px;
    border-radius: 14px;
    text-align: left;
    line-height: 1.7;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.testimonial footer {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.25); /* soft overlay so white text is readable */
}
.testimonial footer h3 {
    font-size: 0.9rem;
    font-weight: 600;
}
.testimonial footer p {
    font-size: 0.8rem;
}
.testimonial footer h3,
.testimonial footer p {
    color: #fff;
    margin: 0;
}
.testimonial-card:nth-child(odd) .testimonial {
    background: #f6c8dc;
}

.testimonial-card:nth-child(even) .testimonial {
    background: #f7bcb2;
}

@media (max-width: 1000px) {
    .testimonial-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .testimonial-grid {
        column-count: 1;
    }
}


/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-content img{
    width:100%;
}



/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.book-card {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}
.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.book-cover {
    width: 100%;
    height: 320px;              /* you can tweak this */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #f7bcb2;        /* keeps your soft color frame */
    border-radius: 10px;
}
.book-cover img{
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;   /* 👈 key difference */
}
.book-cover a{
    height: inherit;
}
.book-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--green-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.book-header-spacer {
    flex: 1;
}

.back-link {
    text-decoration: none;
    color: var(--green-dark);
    font-size: 1rem;
    transition: color .3s ease;
}

.back-link:hover {
    color: #f7bcb2;
}

.book-header-logo {
    height: 55px;   /* 👈 make it bigger here */
    width: auto;
}


/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
}

.contact-form input, .contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

footer {
    background: #4a6149;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .book-details {
        flex-direction: column;
    }

    .bookcover {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .placeholder-img {
        width: 250px;
    }
    .intro-cursor {
        display: none;
    }
}

.placeholder-img {
    flex: 0 0 300px;
    width: 250px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}


.about-content p {
    flex: 1;
    font-size: 1.1rem;
}

/*Book Page*/


.logo a {
    color: #c8d4aa;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo a:hover {
    color: #f7bcb2;
}

.book-nav {
    padding-bottom: 0;
}

.back-link {
    display: inline-block;
    color: #4a6149;
    text-decoration: none;
    font-size: 1rem;
    transition: color .3s ease;
}

.back-link:hover {
    color: #f7bcb2;
}
.book{
   display: inline-block;
}
.book-details {
    display: flex;
    gap: 40px;
    align-items: center;   /* 👈 THIS vertically centers image + text */
    padding-top: 20px;
}

.bookcover {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.book-info {
    flex: 1;
    max-width: 700px;
}

.book-tagline {
    color: #4a6149;
    font-style: italic;
    min-height: 35px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.book-tagline::after {
    content: "|";
    animation: taglineBlink .7s steps(1) infinite;
}

.orderinfo{
    font-size: .9rem;
}

.contact-section {
    text-align: center;
}

.contact-card {
    max-width: 650px;
    margin: 0 auto;
    padding: 25px;
    border-radius: 12px;
    background: rgba(200, 212, 170, 0.25); /* soft green tint */
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.contact-intro {
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.social-btn {
    display: block;
    padding: 12px 16px;
    border-radius: 30px;
    text-decoration: none;
    border: 2px solid var(--green-dark);
    color: var(--green-dark);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--green-dark);
    color: white;
}

.contact-signoff {
    margin-top: 20px;
    font-style: italic;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}
@keyframes taglineBlink {
    50% {
        opacity: 0;
    }
}