:root {
    --burgundy: #651f2a;
    --burgundy-dark: #42141c;
    --gold: #b9964f;
    --gold-light: #d5bd7a;
    --parchment: #f4ead3;
    --paper: #fbf6e9;
    --ink: #29241e;
    --muted: #776e61;
    --border: rgba(185, 150, 79, .45);
    --shadow: 0 20px 50px rgba(54, 30, 18, .10);
    --radius: 8px;
    --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.55), transparent 45%), var(--parchment);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(65,20,28,.97);
    border-bottom: 1px solid rgba(213,189,122,.35);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(40,15,15,.15);
}

.header-inner {
    width: min(calc(100% - 48px), var(--max-width));
    min-height: 76px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--paper);
    text-decoration: none;
    white-space: nowrap;
}

.logo-mark { color: var(--gold-light); font-size: 19px; }

.logo-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.header-caption {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 300;
    font-style: italic;
    color: rgba(251, 246, 233, 0.65);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.navigation { display: flex; align-items: center; gap: 4px; }

.nav-link {
    position: relative;
    padding: 9px 16px;
    color: rgba(251,246,233,.75);
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    letter-spacing: .8px;
    border-radius: 5px;
    transition: color .2s, background .2s;
}

.nav-link:hover { color: var(--paper); background: rgba(255,255,255,.07); }
.nav-link.active { color: var(--gold-light); background: rgba(185,150,79,.12); }

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 3px;
    height: 1px;
    background: var(--gold-light);
}

.main-content {
    width: min(calc(100% - 48px), var(--max-width));
    margin: auto;
    padding: 65px 0 90px;
}

.title-placeholder,
.writing-placeholder,
.image-placeholder,
.content-card,
.quiz-card {
    background: rgba(251,246,233,.55);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.title-placeholder {
    min-height: 125px;
    margin-bottom: 28px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.title-placeholder .placeholder-text {
    color: var(--burgundy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: 1.5px;
}

.image-placeholder {
    position: relative;
    min-height: 380px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow);

    background: linear-gradient(135deg, rgba(255,255,255,.3), rgba(185,150,79,.05));
}

.image-placeholder::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(185,150,79,.25);
    border-radius: 4px;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 24px;
    opacity: .7;
}

.writing-placeholder {
    position: relative;
    min-height: 210px;
    margin-bottom: 28px;
    padding: 34px;
    box-shadow: 0 10px 30px rgba(54,30,18,.05);
}

.writing-placeholder::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(var(--gold-light), var(--gold));
    border-radius: var(--radius) 0 0 var(--radius);
}

.placeholder-label {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .5px;
}

/* Main titles and subtitles */
.writing-placeholder h2,
.content-card h2 {
    color: var(--burgundy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
}

/* All regular paragraph text across the website */
p {
    font-size: 26px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.writing-placeholder ul,
.content-card ul {
    margin: 10px 0 22px 30px;
    padding-left: 12px;
}

.writing-placeholder li,
.content-card li {
    font-size: 26px;
    line-height: 1.55;
    margin-bottom: 10px;
}

.writing-placeholder li::marker,
.content-card li::marker {
    color: var(--gold);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.content-card {
    min-height: 220px;
    padding: 28px;
}

.content-card + .content-card { }

.quiz-intro {
    min-height: 150px;
    margin-bottom: 30px;
}

.quiz-list {
    display: grid;
    gap: 22px;
}

.quiz-card {
    padding: 28px;
    box-shadow: 0 10px 30px rgba(54,30,18,.05);
}

.quiz-question {
    margin-bottom: 20px;
}

.quiz-question-number {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.quiz-question-placeholder {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
}

.quiz-options {
    display: grid;
    gap: 10px;
}

.quiz-option {
    width: 100%;
    padding: 13px 16px;
    text-align: left;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: 26px;
    line-height: 1.45;
    transition: .2s ease;
}

.quiz-option:hover:not(:disabled) {
    border-color: var(--gold);
    transform: translateX(3px);
}

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

.quiz-option.correct {
    border-color: #557a57;
    background: rgba(85,122,87,.12);
}

.quiz-option.incorrect {
    border-color: #9a4a4a;
    background: rgba(154,74,74,.10);
}

.quiz-feedback {
    display: none;
    margin-top: 18px;
    padding: 16px;
    border-left: 3px solid var(--gold);
    background: rgba(185,150,79,.08);
    color: var(--muted);
    font-size: 26px;
    line-height: 1.5;
}

.quiz-feedback.visible { display: block; }

.quiz-explanation {
    margin-top: 8px;
    color: var(--ink);
}

.quiz-reset {
    margin-top: 25px;
    padding: 11px 20px;
    color: var(--paper);
    background: var(--burgundy);
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
    font-size: 26px;
}

.quiz-reset:hover { background: var(--burgundy-dark); }

.bibliography {
    margin-top: 28px;
}

.bibliography h2 {
    margin-bottom: 20px;
}

.bib-entry {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-left: 36px;
    text-indent: -36px;
    word-break: break-word;
}

.bib-entry a {
    color: var(--burgundy);
    text-decoration: underline;
}

.bib-entry a:hover {
    color: var(--gold);
}

.site-footer {
    padding: 30px 0;
    background: var(--burgundy-dark);
    border-top: 1px solid rgba(213,189,122,.3);
}

.footer-inner {
    width: min(calc(100% - 48px), var(--max-width));
    margin: auto;
    display: flex;
    justify-content: center;
    color: rgba(251,246,233,.55);
    font-size: 12px;
}

.footer-symbol { color: var(--gold-light); }

@media (max-width: 800px) {
    .header-inner {
        min-height: auto;
        padding: 18px 0;
        flex-direction: column;
        gap: 10px;
    }

    .header-caption {
        font-size: 12px;
    }

    .navigation { width: 100%; justify-content: center; flex-wrap: wrap; }
    .main-content { padding: 45px 0 60px; }
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .header-inner, .main-content, .footer-inner {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .nav-link { padding: 8px 10px; font-size: 10px; }
    .image-placeholder { min-height: 240px; }
    .writing-placeholder, .quiz-card { padding: 22px; }

    .title-placeholder .placeholder-text {
        font-size: 36px;
    }
}

/* Reliable image layout */
.image-placeholder img {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: contain;
    margin: auto;
}

.content-card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    margin: auto;
}