:root {
    --bg: #0f0e0c;
    --surface: #1c1917;
    --text: #e8e2d9;
    --muted: #a09080;
    --accent: #d4955a;
    --border: rgba(255, 255, 255, 0.1);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background:
        radial-gradient(1000px 600px at 12% -10%, rgba(212, 149, 90, 0.13), transparent 65%),
        var(--bg);
    color: var(--text);
    font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
    line-height: 1.75;
    font-size: 17px;
}
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }
.topbar {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding-bottom: 1.25rem; margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 0.82rem; letter-spacing: 0.03em;
}
.topbar a { text-decoration: none; }
.topbar .brand { color: var(--text); font-weight: 600; }
.hero { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }
.cover {
    width: 100%; aspect-ratio: 5 / 8; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.8);
    background: var(--surface);
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kicker {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 0.6rem;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 0.4rem; font-weight: 600; }
.subtitle { color: var(--muted); font-style: italic; font-size: 1.1rem; margin: 0 0 0.9rem; }
.author { color: var(--text); margin: 0 0 0.35rem; }
.year { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.6rem; }
.illustration-note { color: var(--accent); font-size: 0.82rem; font-style: italic; margin: 0 0 1rem; }
.rights { color: var(--muted); font-size: 0.78rem; margin: 0 0 1.4rem; }
.rights a { text-decoration: none; border-bottom: 1px dotted rgba(212, 149, 90, 0.5); }
.badge {
    display: inline-block; margin-bottom: 0.8rem; padding: 0.15rem 0.6rem;
    border: 1px solid rgba(212, 149, 90, 0.45); border-radius: 999px;
    color: var(--accent); font-size: 0.68rem; letter-spacing: 0.08em;
    text-transform: uppercase; font-family: system-ui, sans-serif;
}
.cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: linear-gradient(135deg, #d4955a, #b87c45);
    color: #1a1208; text-decoration: none; font-weight: 700;
    padding: 0.85rem 1.6rem; border-radius: 8px;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 0.92rem;
    box-shadow: 0 14px 28px -12px rgba(212, 149, 90, 0.6);
}
.cta:hover { filter: brightness(1.06); }
.section { margin-top: 3rem; }
.section h2 {
    font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent); font-family: system-ui, sans-serif; font-weight: 600;
    margin: 0 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.intro { font-size: 1.02rem; color: var(--text); }
.intro :is(h1, h2, h3) { font-size: 1.25rem; color: var(--text); margin: 1.6rem 0 0.7rem; }
.intro p { margin: 0 0 1rem; }
.intro hr.ornament { width: 70px; margin: 1.2rem auto; border: 0; border-top: 1px solid var(--accent); opacity: 0.6; }
.intro .chapter-byline, .intro .chapter-continuation { color: var(--muted); font-style: italic; font-size: 0.88rem; }
.intro a { color: var(--accent); }
.intro .chapter-download {
    margin: 1.8rem 0;
    padding: 1.2rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.intro .chapter-download-meta {
    margin: 0 0 0.7rem;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.intro .chapter-download ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.intro .chapter-download li {
    margin-bottom: 0.55rem;
    line-height: 1.5;
}
.intro .chapter-download li:last-child { margin-bottom: 0; }
.intro .chapter-download a {
    text-decoration: none;
    border-bottom: 1px dotted rgba(212, 149, 90, 0.5);
}
.intro .chapter-download a:hover { color: #e8b07a; }
.cite-model {
    margin: 0 0 1rem; padding: 1.1rem 1.4rem;
    background: var(--surface); border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
}
.cite-model p { margin: 0; }
.cite-model .cite-source {
    margin: 0.55rem 0 0; color: var(--muted); font-size: 0.86rem;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.cite-note { color: var(--muted); font-size: 0.86rem; }
ol.chapters { margin: 0; padding-left: 1.3rem; color: var(--muted); }
ol.chapters li { margin-bottom: 0.35rem; }
footer {
    margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
    color: var(--muted); font-size: 0.8rem; font-family: system-ui, sans-serif;
}
footer a { color: var(--accent); text-decoration: none; }
@media (max-width: 720px) {
    .wrap { padding: 1.75rem 1.1rem 3.5rem; }
    .hero { grid-template-columns: 1fr; gap: 1.5rem; }
    .cover { max-width: 220px; }
}
