/* Vintage Book Landing Page - Enhanced */
:root {
    --parchment: #f4e8d0;
    --dark-brown: #3e2723;
    --medium-brown: #5d4037;
    --light-brown: #8d6e63;
    --gold: #d4af37;
    --dark-gold: #b8941f;
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 50%, #2c1810 100%);
    min-height: 100vh;
    color: var(--dark-brown);
    line-height: 1.8;
    padding: 2rem 1rem;
}

/* Page Wrapper */
.page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--parchment);
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Paper Texture Overlay */
.page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.02) 2px, rgba(0, 0, 0, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.02) 2px, rgba(0, 0, 0, 0.02) 4px);
    pointer-events: none;
    z-index: 1;
}

/* Book Cover */
.book-cover {
    background: linear-gradient(135deg, var(--medium-brown) 0%, var(--dark-brown) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0, 0, 0, 0.1) 3px, rgba(0, 0, 0, 0.1) 6px),
        repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.05) 3px, rgba(0, 0, 0, 0.05) 6px);
    opacity: 0.3;
}

.cover-ornament {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    box-shadow: 0 0 10px var(--gold);
}

.cover-ornament.top {
    top: 2rem;
}

.cover-ornament.bottom {
    bottom: 2rem;
}

.cover-content {
    position: relative;
    z-index: 2;
}

.book-spine {
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto 2rem;
    box-shadow: 0 0 15px var(--gold);
}

.book-title {
    margin: 2rem 0;
}

.title-main {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.3em;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(212, 175, 55, 0.5);
    margin-bottom: 1rem;
}

.title-sub {
    display: block;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: rgba(212, 175, 55, 0.9);
    letter-spacing: 0.5em;
    font-style: italic;
    font-weight: 400;
}

.cover-decoration {
    width: 100px;
    height: 100px;
    margin: 2rem auto 0;
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    position: relative;
}

.cover-decoration::before {
    content: 'M';
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
}

/* Main Content */
.book-content {
    position: relative;
    z-index: 2;
}

/* Page Sections */
.page {
    padding: 4rem 3rem;
    border-bottom: 2px solid rgba(62, 39, 35, 0.1);
    position: relative;
    animation: pageFlip 0.6s ease-out;
}

@keyframes pageFlip {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page:last-child {
    border-bottom: none;
}

.page-inner {
    max-width: 700px;
    margin: 0 auto;
}

.page-number {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--medium-brown);
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.6;
}

.chapter-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--dark-brown);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.ornamental-divider {
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto 3rem;
}

/* Content Text */
.content-text {
    font-size: 1.1rem;
    line-height: 1.9;
}

.lead-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--medium-brown);
}

.mission-text {
    margin-bottom: 2rem;
    text-align: justify;
}

.decorative-initial {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    margin: 0.2rem 1rem 0 0;
    color: var(--dark-brown);
    font-weight: 700;
}

/* Wisdom Box */
.wisdom-box {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.wisdom-item {
    margin: 1.5rem 0;
    padding-left: 3rem;
    position: relative;
}

.wisdom-item .icon {
    position: absolute;
    left: 0;
    font-size: 2rem;
}

.wisdom-item strong {
    color: var(--dark-brown);
    font-size: 1.3rem;
}

/* Values Section */
.values-section {
    margin: 3rem 0;
}

.values-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-brown);
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    background: white;
    border-left: 4px solid var(--gold);
    padding: 1.2rem 1.5rem;
    margin: 1rem 0;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.values-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Notice Section */
.salutation {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.notice-box {
    background: rgba(255, 255, 255, 0.7);
    border: 3px solid var(--gold);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.notice-seal {
    position: absolute;
    top: -30px;
    right: 30px;
    width: 60px;
    height: 60px;
    color: var(--gold);
    background: var(--parchment);
    border-radius: 50%;
    padding: 5px;
}

.notice-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark-brown);
    font-weight: 600;
}

.notice-main {
    text-align: center;
    font-size: 1.2rem;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    margin: 2rem 0;
}

.notice-main strong {
    color: #c0392b;
    font-weight: 700;
}

.notice-details {
    margin: 2rem 0;
}

.notice-details p {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
    position: relative;
}

.notice-details .marker {
    position: absolute;
    left: 0;
    font-size: 1.3rem;
}

.encouragement {
    margin: 2rem 0;
    text-align: justify;
    line-height: 2;
}

.gratitude {
    text-align: center;
    font-weight: 700;
    color: #27ae60;
    font-size: 1.3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gold);
}

/* Contact Section */
.section-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-item {
    background: white;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-left-width: 6px;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-label {
    font-weight: 600;
    color: var(--medium-brown);
    min-width: 120px;
}

.contact-item a {
    color: var(--dark-brown);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--gold);
}

/* Footer Quote */
.footer-quote {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--medium-brown);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

/* Book Back Cover */
.book-back {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--medium-brown) 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--gold);
}

.back-content {
    max-width: 600px;
    margin: 0 auto;
}

.copyright {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.book-back .tagline {
    font-size: 0.95rem;
    opacity: 0.8;
    font-style: italic;
}

/* Scroll Animations */
.wisdom-box,
.values-list li,
.notice-box,
.contact-item,
.footer-quote {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .page {
        padding: 3rem 1.5rem;
    }

    .book-cover {
        padding: 3rem 1.5rem;
    }

    .title-main {
        letter-spacing: 0.2em;
    }

    .title-sub {
        letter-spacing: 0.3em;
    }

    .decorative-initial {
        font-size: 3rem;
        margin-right: 0.5rem;
    }

    .wisdom-item {
        padding-left: 2.5rem;
    }

    .notice-box {
        padding: 2rem 1.5rem;
    }

    .notice-seal {
        width: 50px;
        height: 50px;
        right: 15px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 2rem 1rem;
    }

    .book-cover {
        padding: 2rem 1rem;
    }

    .chapter-title {
        font-size: 1.8rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .wisdom-box {
        padding: 1.5rem;
    }

    .notice-box {
        padding: 1.5rem 1rem;
    }

    .cover-decoration {
        width: 80px;
        height: 80px;
    }

    .cover-decoration::before {
        font-size: 2.5rem;
    }
}