* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #fef9e7;
}

/* Header & Navigation */
header {
    background-color: #8b7355;
    color: #fef9e7;
    padding: 1rem 0;
    border-bottom: 3px solid #6d5a45;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: #fef9e7;
    text-decoration: none;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #fef9e7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background-color: #fef9e7;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    border-bottom: 2px solid #d4c5a9;
}

.hero h1 {
    font-size: 2.5rem;
    color: #4a3f35;
    margin-bottom: 0.75rem;
    font-weight: 400;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.subtitle {
    font-size: 1.05rem;
    color: #6d5a45;
    font-weight: 300;
    font-style: italic;
}

/* Test Container */
.test-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.test-instructions {
    background-color: #f9f4e8;
    padding: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    border: 2px solid #d4c5a9;
    font-size: 1rem;
    color: #4a3f35;
}

.test-instructions p {
    margin-bottom: 0.5rem;
}

.test-instructions p:last-child {
    margin-bottom: 0;
}

/* Question List */
#purity-test {
    background-color: #fef9e7;
}

.question-list {
    margin-bottom: 2.5rem;
}

.question-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1.6;
    border-bottom: 1px solid #e8dcc4;
}

.question-item:hover {
    background-color: #f9f4e8;
}

.question-item input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.4rem;
    cursor: pointer;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.question-item span {
    flex: 1;
    user-select: none;
    color: #2c2c2c;
}

/* Buttons */
.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 400;
    border: 2px solid #8b7355;
    background-color: #8b7355;
    color: #fef9e7;
    cursor: pointer;
    transition: all 0.3s;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.btn:hover {
    background-color: #6d5a45;
    border-color: #6d5a45;
}

.btn-primary {
    background-color: #8b7355;
    border-color: #8b7355;
    color: #fef9e7;
}

.btn-secondary {
    background-color: #9d8b73;
    border-color: #9d8b73;
    color: #fef9e7;
}

.btn-secondary:hover {
    background-color: #7d6b53;
    border-color: #7d6b53;
}

.btn-share {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
}

.btn-share:hover {
    background-color: #1da851;
    border-color: #1da851;
}

/* Result Container */
.result-container {
    background-color: #f9f4e8;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 2rem;
    border: 2px solid #d4c5a9;
}

.result-container h2 {
    color: #4a3f35;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-size: 2rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.score-display {
    font-size: 5rem;
    font-weight: 700;
    color: #8b7355;
    margin: 1rem 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

#score-message {
    font-size: 1.15rem;
    color: #4a3f35;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Content Section */
.content-section {
    max-width: 750px;
    margin: 3rem auto;
    padding: 0 1.5rem 2rem;
}

.content-section h1 {
    color: #4a3f35;
    margin-bottom: 1.5rem;
    font-size: 2.25rem;
    font-weight: 400;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.content-section h2 {
    color: #4a3f35;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-size: 1.75rem;
    font-weight: 400;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.content-section h3 {
    color: #4a3f35;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    font-weight: 400;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #2c2c2c;
}

.content-section ul {
    margin: 1rem 0 1rem 1.5rem;
}

.content-section li {
    margin-bottom: 0.65rem;
    line-height: 1.6;
    color: #2c2c2c;
}

.content-section a {
    color: #8b7355;
    text-decoration: underline;
}

.content-section a:hover {
    color: #6d5a45;
}

/* Footer */
footer {
    background-color: #8b7355;
    color: #fef9e7;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 3px solid #6d5a45;
}

.footer-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fef9e7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    #purity-test {
        padding: 0;
    }

    .score-display {
        font-size: 3.5rem;
    }

    .content-section h1 {
        font-size: 1.85rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {

    .test-container,
    .content-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .button-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .score-display {
        font-size: 3rem;
    }
}

/* Performance Optimization - Prevent CLS */
.question-item {
    min-height: 48px;
}

.result-container {
    min-height: 320px;
}

/* Print Styles */
@media print {

    header,
    footer,
    .button-container,
    .btn-share {
        display: none;
    }

    .question-item {
        page-break-inside: avoid;
    }

    body {
        background-color: white;
    }
}