/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --accent: #2a2a2a;
}

body {
    font-family: 'Sabon', 'Garamond', 'Georgia', serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-secondary);
}

.title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-family: 'Sabon', 'Garamond', serif;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.author {
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 0;
}

/* Dedication Section */
.dedication-section {
    background-color: #f5f5f5;
    padding: 4rem 0;
    text-align: center;
}

.dedication-section h2 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.dedication-main {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.dedication-verse {
    max-width: 600px;
    margin: 0 auto;
}

.dedication-verse p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.dedication-verse br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

/* About Book Section */
.about-book {
    background-color: var(--bg-primary);
}

.about-book h2 {
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

.about-book .about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.book-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.book-text p {
    margin-bottom: 1.5rem;
}

/* Utterances Section */
.utterances {
    background-color: var(--bg-secondary);
}

.utterances h2 {
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.utterances-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.utterance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.utterance {
    padding: 2rem;
    background-color: var(--bg-primary);
    border-left: 1px solid var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
}

.utterance.visible {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.utterance:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.utterance p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

/* About Scribe Section */
.about-scribe {
    background-color: var(--bg-primary);
}

.about-scribe h2 {
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
}

.scribe-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.scribe-image img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.scribe-image img:hover {
    filter: grayscale(0%);
}

.scribe-text p {
    margin-bottom: 1.5rem;
}

.scribe-text a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
}

.scribe-text a:hover {
    text-decoration-color: transparent;
}

.scribe-text em {
    font-style: italic;
}

/* Purchase Section */
.purchase {
    background-color: var(--bg-secondary);
    text-align: center;
}

.purchase h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

.purchase-message {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.purchase-message p {
    margin-bottom: 0.5rem;
}

.purchase-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.purchase-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.purchase-button:hover {
    background-color: var(--text-primary);
    color: var(--bg-secondary);
}

.isbn {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Footer */
footer {
    padding: 4rem 0 3rem;
    background-color: var(--bg-primary);
    text-align: center;
}

.footer-utterance {
    max-width: 500px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--text-primary);
}

.footer-utterance p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.copyright a {
    color: var(--text-secondary);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .about-book .about-content,
    .scribe-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-image,
    .scribe-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .utterance-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .purchase-options {
        flex-direction: column;
        gap: 1rem;
    }

    .purchase-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .title {
        font-size: 2.5rem;
    }

    .verse p,
    .purchase-message {
        font-size: 1.2rem;
    }
}

/* Subtle scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
