:root {
    --paper-bg: #f5f0e1;
    --ink-black: #1a1a1a;
    --aged-brown: #3d3226;
    --rule-color: #2a2a2a;
    --highlight-bg: #e8e0c8;
    --success-green: #2d5a27;
    --error-red: #8b2500;
}

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

body {
    background-color: var(--paper-bg);
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    color: var(--ink-black);
    font-family: 'Old Standard TT', serif;
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: var(--aged-brown);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-style: solid;
}

.newspaper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    border-bottom: 3px double var(--rule-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.back-link {
    font-family: 'IM Fell English', serif;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.back-link a {
    color: var(--aged-brown);
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.page-subtitle {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 1.2rem;
    margin-top: 10px;
    text-align: center;
}

/* Main Article */
.main-article {
    margin-bottom: 40px;
}

.article-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--rule-color);
}

.article-section:last-child {
    border-bottom: none;
}

.section-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 3px solid var(--rule-color);
    padding-bottom: 8px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-intro {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: justify;
    text-indent: 1.5em;
}

.section-intro:first-letter {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 3.5rem;
    float: left;
    line-height: 0.8;
    padding-right: 4px;
    margin-right: -2px;
    padding-top: 5px;
    color: var(--aged-brown);
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Quote Block */
.quote-block {
    border-left: 4px solid var(--rule-color);
    padding: 15px 20px;
    margin: 25px 0;
    font-style: italic;
    background: linear-gradient(to right, var(--highlight-bg), transparent);
}

.quote-block cite {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: normal;
}

/* Content Lists */
.content-list {
    margin: 20px 0 20px 25px;
}

.content-list li {
    margin-bottom: 12px;
    text-align: justify;
}

.content-list.numbered {
    list-style-type: decimal;
}

/* Example and Concept Boxes */
.example-box,
.concept-box,
.strategy-box {
    background: var(--highlight-bg);
    border: 2px solid var(--rule-color);
    padding: 20px;
    margin: 20px 0;
}

.example-box h4,
.concept-box h4,
.strategy-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--rule-color);
    padding-bottom: 8px;
}

.example-box ul,
.concept-box ul,
.strategy-box ul,
.example-box ol,
.concept-box ol,
.strategy-box ol {
    margin: 10px 0 10px 20px;
}

.example-box li,
.concept-box li,
.strategy-box li {
    margin-bottom: 8px;
}

.example-box p,
.concept-box p,
.strategy-box p {
    margin-bottom: 10px;
}

.example-box p:last-child,
.concept-box p:last-child,
.strategy-box p:last-child {
    margin-bottom: 0;
}

.example-box.success {
    border-color: var(--success-green);
    background: #e8f0e6;
}

/* Feature Box */
.feature-box {
    background: var(--highlight-bg);
    border: 2px solid var(--rule-color);
    padding: 20px;
    margin: 25px 0;
}

.feature-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--rule-color);
    padding-bottom: 10px;
}

.feature-box ul {
    margin: 10px 0 0 20px;
}

.feature-box li {
    margin-bottom: 8px;
}

/* Video Embed */
.video-embed {
    background: var(--highlight-bg);
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid var(--rule-color);
}

.video-embed a {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Resource Items */
.resource-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--rule-color);
}

.resource-item:last-child {
    border-bottom: none;
}

.resource-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.resource-item h4 a {
    color: var(--ink-black);
}

.resource-item h4 a:hover {
    color: var(--aged-brown);
}

.resource-item p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.resource-type {
    font-family: 'IM Fell English', serif;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--aged-brown);
}

/* Page Navigation */
.page-navigation {
    background: var(--highlight-bg);
    border: 2px solid var(--rule-color);
    padding: 20px;
    margin: 30px 0;
}

.page-navigation h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--rule-color);
    padding-bottom: 8px;
}

.page-navigation ul {
    list-style: none;
    margin: 0;
}

.page-navigation li {
    margin-bottom: 8px;
}

.page-navigation a {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-decoration: none;
}

.page-navigation a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    margin-top: 40px;
    border-top: 3px double var(--rule-color);
    padding-top: 20px;
    text-align: center;
}

.footer-ornament {
    font-size: 1.5rem;
    letter-spacing: 10px;
    margin-bottom: 10px;
}

footer p {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
}

footer a {
    color: var(--aged-brown);
}

/* Quiz Styles */
#quiz-container {
    background: var(--highlight-bg);
    border: 2px solid var(--rule-color);
    padding: 30px;
    margin: 20px 0;
}

#quiz-progress {
    font-family: 'IM Fell English', serif;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--aged-brown);
}

.quiz-question {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.4;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.option-btn {
    background: var(--paper-bg);
    border: 2px solid var(--rule-color);
    padding: 15px 20px;
    font-family: 'Old Standard TT', serif;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.option-btn:hover:not(:disabled) {
    background: #e0d8c0;
}

.option-btn:disabled {
    cursor: default;
}

.option-btn.correct {
    background: #c8e6c9;
    border-color: var(--success-green);
}

.option-btn.incorrect {
    background: #ffcdd2;
    border-color: var(--error-red);
}

.quiz-feedback {
    padding: 20px;
    margin: 20px 0;
    border-radius: 0;
    display: none;
}

.quiz-feedback.correct,
.quiz-feedback.incorrect {
    display: block;
}

.quiz-feedback.correct {
    background: #e8f5e9;
    border: 2px solid var(--success-green);
}

.quiz-feedback.incorrect {
    background: #ffebee;
    border: 2px solid var(--error-red);
}

.quiz-button {
    background: var(--ink-black);
    color: var(--paper-bg);
    border: none;
    padding: 15px 30px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-button:hover {
    background: var(--aged-brown);
}

.quiz-results {
    text-align: center;
}

.quiz-results h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

#score-text {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

#score-feedback {
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .section-header {
        font-size: 1.3rem;
    }
    
    .quiz-question {
        font-size: 1.1rem;
    }
}
