<<<<<<< HEAD
:root {
    --navy: #20364d;
    --navy-deep: #152937;
    --sky: #8ec5e8;
    --sky-soft: #dfeef9;
    --slate: #30465d;
    --paper: #f5f9fc;
    --white: #ffffff;
    --border: rgba(32, 54, 77, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.6;
}

.site-watermark {
    width: min(12vw, 90px);
    max-width: 90px;
    opacity: 0.45;
    filter: grayscale(100%) contrast(0.9) brightness(0.7);
    pointer-events: none;
    background: transparent;
    flex-shrink: 0;
}

.site-footer-mark {
    width: min(8vw, 54px);
    max-width: 54px;
    opacity: 0.42;
    filter: none;
    flex-shrink: 0;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    width: 100%;
    background: var(--navy);
    color: var(--white);
}

.site-header-inner {
    max-width: 1320px;
    min-height: 92px;
    margin: 0 auto;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-title {
    margin: 0;
    font-size: 28px;
    font-weight: normal;
    letter-spacing: 2px;
}

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

.header-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.2s ease, background 0.2s ease;
}

.header-back:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 42px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    position: relative;
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    letter-spacing: 1.5px;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 2px;
    background: var(--sky);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
    transform: scaleX(1);
}

.site-nav a.active {
    color: var(--sky);
}

.page-container,
.about-container,
.books-grid,
.contact-layout {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 56px 7% 32px;
    flex: 1;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-copy h1,
.about-text h1,
.section-heading {
    margin: 0 0 1rem;
    color: var(--navy);
    font-size: clamp(40px, 4vw, 58px);
    font-weight: normal;
    line-height: 1.15;
}

.hero-copy p,
.about-text p,
.book-card p,
.contact-info p,
.contact-form label,
.contact-form input,
.contact-form textarea {
    color: var(--slate);
    font-family: Arial, Helvetica, sans-serif;
}

.eyebrow {
    margin: 0 0 1.25rem;
    color: #3f5872;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.hero-copy p,
.about-text p {
    max-width: 650px;
    margin: 0 0 1.5rem;
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button-row {
    margin-top: 1rem;
}

a.button,
.button,
button[type="submit"],
.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button.secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.back-button {
    margin-top: 1.5rem;
}

.back-button:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
}

.button:hover,
button[type="submit"]:hover,
a.button:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: var(--white);
}

.button.secondary:hover {
    background: var(--sky-soft);
    color: var(--navy);
}

.hero-visual,
.about-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    background: linear-gradient(135deg, rgba(142, 197, 232, 0.35), rgba(32, 54, 77, 0.2));
    border: 1px solid var(--border);
    color: var(--navy);
    font-size: clamp(2rem, 3vw, 3rem);
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.about-container,
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr;
    gap: 70px;
    align-items: start;
    padding-bottom: 70px;
}

.about-divider {
    width: 100%;
    height: 2px;
    margin: 0 0 2rem;
    background: var(--sky);
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding-top: 2rem;
}

.book-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 8px 22px rgba(21, 41, 55, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.book-cover-wrap {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border: 1px solid rgba(32, 54, 77, 0.12);
    background: #0d1d2a;
    box-shadow: 0 10px 25px rgba(21, 41, 55, 0.12);
}

.book-cover {
    display: block;
    width: 100%;
    height: auto;
}

.book-card:nth-child(4) {
    background: rgba(255, 255, 255, 0.72);
    border-style: dashed;
    opacity: 0.92;
}

.book-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.7rem, 2vw, 2.1rem);
    line-height: 1.2;
}

.book-card:nth-child(4) h3 {
    font-size: clamp(1.45rem, 1.8vw, 1.8rem);
    color: #415d7d;
}

.book-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #314a67;
}

.book-meta {
    color: #4f6785;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14rem;
    text-transform: uppercase;
}

.book-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.book-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.15rem;
    border: 1px solid rgba(32, 54, 77, 0.15);
    background: linear-gradient(135deg, rgba(32, 54, 77, 0.97), rgba(21, 41, 55, 0.9));
    color: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(21, 41, 55, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.book-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(21, 41, 55, 0.18);
    filter: brightness(1.04);
}

.site-credit {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 1rem 30px 2rem;
    border-top: 1px solid rgba(32, 54, 77, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    color: rgba(32, 54, 77, 0.62);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    width: 100%;
}

.site-credit span {
    display: block;
    margin: 0;
    text-align: center;
    flex: 1 1 auto;
}

.site-credit a {
    color: rgba(32, 54, 77, 0.8);
}

.contact-card,
.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    display: grid;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(32, 54, 77, 0.2);
    background: #fdfefe;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    display: grid;
    gap: 1rem;
}

.contact-info h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.8rem;
}

@media (max-width: 880px) {
    .site-watermark {
        width: 72px;
        opacity: 0.42;
    }

    .site-footer-mark {
        width: 48px;
        opacity: 0.38;
    }

    .site-credit {
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-header-inner {
        min-height: auto;
        padding-top: 24px;
        padding-bottom: 24px;
        flex-direction: column;
        gap: 22px;
    }

    .site-title {
        font-size: 24px;
    }

    .site-nav ul {
        gap: 22px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-nav a {
        font-size: 13px;
    }

    .hero,
    .about-container,
    .contact-layout,
    .book-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .about-text {
        order: 2;
    }

    .about-text h1,
    .hero-copy h1,
    .section-heading {
        font-size: 40px;
    }

    .eyebrow {
        font-size: 13px;
        letter-spacing: 3px;
    }

    .hero-copy p,
    .about-text p {
        font-size: 16px;
    }

    .hero-actions,
    .button-row {
        flex-direction: column;
        align-items: flex-start;
    }

    a.button,
    .button,
    button[type="submit"],
    .back-button {
        width: auto;
        min-width: 180px;
        text-align: center;
    }

    .back-button {
        margin-top: 0;
    }
}

