/* OperaPedia — Editorial luxury palette
   Deep burgundy + midnight navy + warm gold on cream paper
   Display: Playfair Display · Body: EB Garamond · UI: Inter
*/
:root {
    --ink: #1a1410;
    --navy: #131c2e;
    --navy-2: #0c1422;
    --paper: #f6f0e2;
    --paper-2: #ece3cc;
    --paper-3: #e0d4b6;
    --crimson: #6e1622;
    --crimson-2: #4a0d18;
    --gold: #b9893c;
    --gold-bright: #d4a657;
    --rule: #d8cbab;
    --rule-soft: #ece3cc;
    --muted: #6b5d48;
    --muted-2: #8a7c66;
    --link: #6e1622;
    --serif: "EB Garamond", "Cormorant Garamond", "Garamond", Georgia, "Times New Roman", serif;
    --display: "Playfair Display", "EB Garamond", Georgia, serif;
    --sans: "Inter", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
    --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid rgba(110, 22, 34, 0.32);
    transition: color .18s ease, border-color .18s ease;
}
a:hover { color: var(--crimson-2); border-bottom-color: var(--crimson-2); }
hr.flourish {
    border: none;
    height: 28px;
    margin: 32px 0;
    background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24'><g fill='none' stroke='%23b9893c' stroke-width='1.2'><line x1='10' y1='12' x2='95' y2='12'/><line x1='145' y1='12' x2='230' y2='12'/></g><g fill='%23b9893c'><circle cx='120' cy='12' r='2.6'/><circle cx='106' cy='12' r='1.6'/><circle cx='134' cy='12' r='1.6'/></g></svg>");
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ====== Top bar ====== */
.topbar {
    background: var(--navy-2);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(185, 137, 60, 0.22);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: rgba(246, 240, 226, 0.78); border: none; }
.topbar a:hover { color: var(--gold-bright); }
.topbar nav a { margin-left: 22px; }
.topbar .gilded { color: var(--gold); }

/* ====== Masthead ====== */
.masthead {
    background:
        linear-gradient(to bottom, rgba(246,240,226,0) 0%, rgba(216,203,171,0.18) 100%),
        var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 36px 0 30px;
    text-align: center;
    position: relative;
}
.masthead::before, .masthead::after {
    content: "";
    position: absolute;
    left: 50%; transform: translateX(-50%);
    width: 120px; height: 1px;
    background: linear-gradient(to right, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
    opacity: 0.7;
}
.masthead::before { top: 14px; }
.masthead::after { bottom: 12px; }
.brand {
    font-family: var(--display);
    font-weight: 700;
    font-size: 64px;
    letter-spacing: -0.012em;
    color: var(--ink);
    border: none;
    display: inline-block;
    line-height: 1;
}
.brand .amp { color: var(--crimson); font-style: italic; font-weight: 400; }
.tagline {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 14px;
}
.tagline .gilded { color: var(--gold); }

/* ====== Primary nav ====== */
.primary-nav {
    background: var(--navy);
    border-bottom: 3px solid var(--gold);
    box-shadow: inset 0 -1px 0 rgba(212,166,87,0.28);
}
.primary-nav .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 32px;
    padding: 16px 32px;
}
.primary-nav a {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(246,240,226,0.85);
    border: none;
    padding: 4px 0;
    font-weight: 500;
}
.primary-nav a:hover { color: var(--gold-bright); }

/* ====== Layout ====== */
main { padding: 44px 0 72px; }
.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 56px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; gap: 48px; } }

/* ====== Hero ====== */
.hero {
    margin-bottom: 44px;
    background: var(--navy-2);
    color: var(--paper);
    border: 1px solid var(--navy-2);
    position: relative;
    overflow: hidden;
}
.hero-img-wrap { position: relative; }
.hero-img {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    display: block;
    opacity: 0.42;
    filter: saturate(0.85) contrast(1.05);
}
.hero-img-wrap::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(12,20,34,0.55) 0%, rgba(12,20,34,0.92) 95%);
    pointer-events: none;
}
.hero-content {
    padding: 36px 40px 44px;
    text-align: center;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}
.hero-eyebrow {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 14px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
    content: "·";
    color: var(--gold);
    margin: 0 14px;
    opacity: 0.7;
}
.hero h1 {
    font-family: var(--display);
    font-size: 56px;
    line-height: 1.1;
    margin: 0 0 16px;
    font-weight: 700;
    color: var(--paper);
    max-width: 880px;
    letter-spacing: -0.005em;
}
.hero h1 em { color: var(--gold-bright); font-style: italic; font-weight: 400; }
.hero p {
    color: rgba(246,240,226,0.86);
    margin: 0 auto;
    max-width: 720px;
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.6;
}
.hero .quote {
    font-family: var(--display);
    font-style: italic;
    font-size: 22px;
    color: var(--gold-bright);
    margin: 22px auto 0;
    max-width: 680px;
}
@media (max-width: 760px) {
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
    .hero-content { padding: 24px 22px 28px; position: relative; }
    .hero-img { aspect-ratio: 16/10; opacity: 0.32; }
    .hero-img-wrap::after { background: linear-gradient(to bottom, rgba(12,20,34,0.65), rgba(12,20,34,0.95)); }
}

/* ====== Section heads ====== */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 10px;
    margin: 36px 0 24px;
    position: relative;
}
.section-head::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 0;
    width: 64px; height: 3px;
    background: var(--gold);
}
.section-head h2 {
    font-family: var(--display);
    font-size: 22px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--ink);
}
.section-head .more { font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; border: none; color: var(--crimson); }
.section-head .more:hover { color: var(--gold); }

/* ====== Cards ====== */
.grid { display: grid; gap: 32px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: transparent; }
.card .thumb {
    aspect-ratio: 4/3;
    background: var(--paper-2);
    overflow: hidden;
    border: 1px solid var(--rule);
    position: relative;
}
.card .thumb::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(12,20,34,0.18), transparent 40%);
    pointer-events: none;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.045); }
.card .meta {
    font-family: var(--sans); font-size: 10px;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--crimson); margin: 16px 0 6px;
    font-weight: 600;
}
.card h3 {
    font-family: var(--display);
    font-size: 26px;
    line-height: 1.2;
    margin: 0 0 10px;
    font-weight: 700;
}
.card h3 em { font-style: italic; font-weight: 400; }
.card h3 a { color: var(--ink); border: none; }
.card h3 a:hover { color: var(--crimson); }
.card p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.55; }
.card .by { color: var(--ink); font-weight: 600; }

/* ====== Article ====== */
.article-header {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--rule);
    position: relative;
}
.article-header::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 0;
    width: 80px; height: 3px;
    background: var(--gold);
}
.article-eyebrow {
    font-family: var(--sans); font-size: 10px;
    letter-spacing: 0.36em; text-transform: uppercase;
    color: var(--crimson); margin-bottom: 16px; font-weight: 600;
}
.article-title {
    font-family: var(--display);
    font-size: 56px;
    line-height: 1.08;
    margin: 0 0 18px;
    font-weight: 700;
    letter-spacing: -0.008em;
}
.article-title em { font-style: italic; font-weight: 400; }
.article-deck {
    font-family: var(--serif);
    font-style: italic;
    color: var(--muted);
    font-size: 22px;
    line-height: 1.5;
    margin: 0 0 22px;
    max-width: 720px;
}
.article-byline {
    font-family: var(--sans); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted-2);
    padding: 14px 0 0;
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    align-items: center;
}
.article-byline strong { color: var(--ink); font-weight: 600; }
.article-byline .gold-rule {
    width: 20px; height: 1px; background: var(--gold); display: inline-block; opacity: 0.6;
}
.featured-image { margin: 28px 0 32px; }
.featured-image img {
    width: 100%; aspect-ratio: 16/9;
    object-fit: cover;
    border: 1px solid var(--rule);
    box-shadow: 0 1px 0 rgba(185,137,60,0.18);
}
.featured-image figcaption {
    font-family: var(--sans); font-size: 12px;
    color: var(--muted); margin-top: 10px;
    text-align: center; letter-spacing: 0.04em;
}

.prose p { margin: 0 0 1.1em; }
.prose p:first-of-type::first-letter {
    font-family: var(--display);
    font-size: 5em;
    float: left;
    line-height: 0.82;
    padding: 8px 12px 0 0;
    color: var(--crimson);
    font-weight: 700;
}
.prose h2 {
    font-family: var(--display);
    font-size: 30px;
    margin: 44px 0 14px;
    font-weight: 700;
    color: var(--ink);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
    position: relative;
    letter-spacing: -0.005em;
}
.prose h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: 40px; height: 2px;
    background: var(--gold);
}
.prose h3 {
    font-family: var(--display);
    font-size: 22px;
    margin: 32px 0 10px;
    font-weight: 700;
    color: var(--crimson);
}
.prose ul { padding-left: 22px; }
.prose ul li { margin-bottom: 8px; }
.prose blockquote {
    margin: 28px 0;
    padding: 18px 28px;
    border-left: 3px solid var(--gold);
    font-family: var(--display);
    font-style: italic;
    font-size: 22px;
    line-height: 1.5;
    color: var(--ink);
    background: rgba(216,203,171,0.18);
}

.factbox {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--crimson);
    padding: 24px 28px;
    margin: 28px 0 32px;
    font-family: var(--sans);
    font-size: 14px;
    position: relative;
}
.factbox::before {
    content: "";
    position: absolute;
    top: -1px; right: -1px;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 14px 14px 0;
    border-color: transparent var(--gold) transparent transparent;
    opacity: 0.7;
}
.factbox h4 {
    margin: 0 0 14px;
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--crimson);
    font-family: var(--sans);
    font-weight: 700;
}
.factbox dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 8px 18px; }
.factbox dt { color: var(--muted); font-weight: 600; }
.factbox dd { margin: 0; color: var(--ink); }
.factbox dd a { border-bottom-color: rgba(110,22,34,0.18); }

/* ====== Sidebar ====== */
aside.sidebar { font-family: var(--sans); font-size: 14px; }
.sidebar-block {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    padding: 22px 22px 20px;
    margin-bottom: 26px;
    position: relative;
}
.sidebar-block.recommended {
    background: var(--navy-2);
    color: var(--paper);
    border-color: var(--navy-2);
}
.sidebar-block.recommended h3 { color: var(--gold-bright); border-bottom-color: rgba(212,166,87,0.28); }
.sidebar-block.recommended a { color: var(--paper); }
.sidebar-block.recommended a:hover { color: var(--gold-bright); }
.sidebar-block.recommended .small { color: rgba(246,240,226,0.55); }
.sidebar-block.recommended li { border-bottom-color: rgba(212,166,87,0.18); }
.sidebar-block.recommended .pbn-title {
    color: var(--paper); font-weight: 600; font-size: 14px;
    font-family: var(--sans); display: block; line-height: 1.35;
}
.sidebar-block h3 {
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 10px;
    margin: 0 0 14px;
    font-weight: 700;
    position: relative;
}
.sidebar-block h3::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 0;
    width: 28px; height: 2px;
    background: var(--gold);
}
.sidebar-block ul { list-style: none; padding: 0; margin: 0; }
.sidebar-block li { padding: 9px 0; border-bottom: 1px dotted var(--rule); }
.sidebar-block li:last-child { border-bottom: none; }
.sidebar-block a { border: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.sidebar-block a:hover { color: var(--crimson); }
.sidebar-block .small { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; font-weight: 400; font-family: var(--serif); font-style: italic; }
.sidebar-block .rec-meta {
    font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
    color: var(--gold); display: block; margin-bottom: 4px; font-weight: 600;
    font-family: var(--sans); font-style: normal;
}

/* ====== Search ====== */
.search-form { display: flex; gap: 0; margin-bottom: 14px; }
.search-form input {
    flex: 1; font-family: var(--serif); font-size: 16px;
    padding: 10px 14px; border: 1px solid var(--ink);
    background: var(--paper); color: var(--ink); outline: none;
    border-right: none;
}
.search-form input:focus { border-color: var(--crimson); box-shadow: inset 0 0 0 1px var(--crimson); }
.search-form button {
    background: var(--ink); color: var(--paper);
    border: 1px solid var(--ink);
    padding: 10px 18px; font-family: var(--sans);
    font-size: 11px; letter-spacing: 0.24em;
    text-transform: uppercase; cursor: pointer; font-weight: 600;
}
.search-form button:hover { background: var(--crimson); border-color: var(--crimson); }

/* ====== AdSense placeholder ====== */
.ad-slot {
    background:
        repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 12px, var(--paper-3) 12px, var(--paper-3) 24px);
    border: 1px dashed rgba(185,137,60,0.45);
    text-align: center;
    color: var(--muted-2);
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    padding: 14px;
    margin: 28px 0;
}
.ad-leaderboard { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-rect { min-height: 240px; display: flex; align-items: center; justify-content: center; }
.ad-sidebar { min-height: 240px; }

/* ====== Index list ====== */
.index-list { list-style: none; padding: 0; margin: 0; }
.index-list li {
    display: grid;
    grid-template-columns: 70px 1fr 220px 90px;
    gap: 16px; padding: 14px 0;
    border-bottom: 1px dotted var(--rule);
    align-items: baseline;
}
.index-list li:hover { background: rgba(216,203,171,0.20); }
@media (max-width: 760px) {
    .index-list li { grid-template-columns: 60px 1fr; gap: 4px 14px; }
    .index-list .who, .index-list .lang { grid-column: 2; font-size: 12px; }
}
.index-list .year {
    font-family: var(--sans); font-size: 12px;
    letter-spacing: 0.16em; color: var(--crimson); font-weight: 600;
}
.index-list .ttl { font-family: var(--display); font-size: 20px; font-weight: 600; }
.index-list .ttl em { font-style: italic; font-weight: 400; }
.index-list .ttl a { color: var(--ink); border: none; }
.index-list .ttl a:hover { color: var(--crimson); }
.index-list .who { font-family: var(--serif); font-size: 16px; color: var(--muted); font-style: italic; }
.index-list .who a { color: var(--muted); border: none; }
.index-list .who a:hover { color: var(--crimson); }
.index-list .lang {
    font-family: var(--sans); font-size: 10px;
    letter-spacing: 0.22em; color: var(--muted-2);
    text-transform: uppercase; text-align: right;
}

.pagination {
    display: flex; justify-content: center; gap: 6px;
    margin: 44px 0 0;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.08em;
}
.pagination a, .pagination span {
    padding: 8px 14px; border: 1px solid var(--rule);
    color: var(--ink); border-bottom-color: var(--rule);
}
.pagination a { border-bottom-color: var(--rule); }
.pagination a:hover { background: var(--paper-2); border-color: var(--ink); color: var(--crimson); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ====== Footer ====== */
footer {
    background:
        linear-gradient(to bottom, var(--navy) 0%, var(--navy-2) 100%);
    color: var(--paper); padding: 56px 0 28px;
    margin-top: 72px;
    border-top: 4px solid var(--gold);
}
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { footer .container { grid-template-columns: 1fr 1fr; } }
footer h4 {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin: 0 0 16px;
    font-weight: 600;
}
footer a { color: rgba(246,240,226,0.85); border: none; font-family: var(--sans); font-size: 14px; }
footer a:hover { color: var(--gold-bright); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 9px; }
footer .colophon {
    font-family: var(--serif);
    font-style: italic;
    color: rgba(246,240,226,0.75);
    font-size: 16px;
    line-height: 1.6;
}
footer .colophon strong { color: var(--gold-bright); font-style: normal; font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; }
footer .copyright {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(212,166,87,0.18);
    padding-top: 22px; margin-top: 16px;
    font-family: var(--sans); font-size: 10px;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: rgba(246,240,226,0.55);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ====== Breadcrumbs ====== */
.crumbs {
    font-family: var(--sans); font-size: 11px;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 22px;
    font-weight: 500;
}
.crumbs a { color: var(--muted-2); border: none; }
.crumbs a:hover { color: var(--crimson); }
.crumbs .sep { margin: 0 10px; opacity: 0.5; color: var(--gold); }

/* ====== Composer cards ====== */
.composer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 28px;
}
@media (max-width: 960px) { .composer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .composer-grid { grid-template-columns: repeat(2, 1fr); } }
.composer-card { text-align: center; }
.composer-card .portrait {
    aspect-ratio: 1/1;
    background: var(--paper-2);
    border: 2px solid var(--rule);
    border-radius: 50%;
    overflow: hidden;
    width: 75%;
    margin: 0 auto 14px;
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(185,137,60,0.5);
    transition: box-shadow .2s ease;
}
.composer-card:hover .portrait { box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--crimson); }
.composer-card .portrait img { width: 100%; height: 100%; object-fit: cover; }
.composer-card .name { font-family: var(--display); font-size: 19px; margin: 8px 0 2px; font-weight: 700; }
.composer-card .name a { color: var(--ink); border: none; }
.composer-card .name a:hover { color: var(--crimson); }
.composer-card .dates { font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.composer-card .count { font-family: var(--sans); font-size: 10px; color: var(--crimson); margin-top: 6px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }

/* ====== Pills ====== */
.era-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.era-pill {
    font-family: var(--sans); font-size: 11px;
    letter-spacing: 0.22em; text-transform: uppercase;
    padding: 8px 16px; border: 1px solid var(--ink);
    color: var(--ink); border-radius: 0;
    background: transparent; font-weight: 500;
}
.era-pill:hover { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }
.era-pill .ct { color: var(--crimson); margin-left: 6px; font-weight: 700; }
.era-pill:hover .ct { color: var(--gold-bright); }
.era-pill.active { background: var(--ink); color: var(--paper); }
.era-pill.active .ct { color: var(--gold-bright); }

/* ====== Pull-quote / luxury accent ====== */
.gilded-quote {
    text-align: center;
    font-family: var(--display);
    font-style: italic;
    color: var(--crimson);
    font-size: 22px;
    line-height: 1.5;
    padding: 18px 0;
    margin: 28px 0 28px;
    position: relative;
}
.gilded-quote::before, .gilded-quote::after {
    content: "❦";
    color: var(--gold);
    font-size: 18px;
    margin: 0 14px;
    vertical-align: middle;
}

/* ====== Tag chips for in-content cross-links ====== */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.chip {
    font-family: var(--sans); font-size: 11px;
    letter-spacing: 0.16em; text-transform: uppercase;
    padding: 6px 12px;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    color: var(--ink);
    border-bottom-color: var(--rule);
    font-weight: 500;
}
.chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ====== Tables for catalogue/era pages ====== */
.alpha-jump {
    display: flex; flex-wrap: wrap; gap: 4px;
    margin: 0 0 32px; padding: 14px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    justify-content: center;
}
.alpha-jump a {
    font-family: var(--sans); font-weight: 600;
    color: var(--ink); border: none;
    padding: 4px 8px;
    font-size: 12px; letter-spacing: 0.06em;
}
.alpha-jump a:hover { color: var(--crimson); }
.alpha-jump .disabled { color: var(--rule); padding: 4px 8px; font-size: 12px; }

/* ====== Print niceties ====== */
@media print {
    .topbar, .primary-nav, footer, aside.sidebar, .ad-slot, .pagination { display: none; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a { color: #000; }
}

/* ====== Venue / Librettist / Genre grid ====== */
.venue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 36px;
}
@media (max-width: 720px) { .venue-grid { grid-template-columns: 1fr; } }
.venue-grid li {
    grid-template-columns: 56px 1fr !important;
    padding: 12px 4px !important;
}
.venue-grid .year {
    font-family: var(--sans) !important;
    font-size: 12px !important;
    background: var(--paper-2);
    color: var(--crimson) !important;
    padding: 3px 8px;
    border-radius: 3px;
    text-align: center;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    align-self: center;
}
.venue-grid .ttl { font-size: 17px !important; }

/* ====== Hero polish ====== */
.hero-img-wrap::after {
    background: linear-gradient(135deg, rgba(12,20,34,0.10) 0%, rgba(12,20,34,0.45) 60%, rgba(110,22,34,0.55) 100%);
}
.hero-content {
    position: relative;
}
.hero-content::before {
    content: "";
    position: absolute;
    top: 18px; left: 28px; right: 28px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212,166,87,0.55) 25%, rgba(212,166,87,0.55) 75%, transparent);
}

/* ====== Mobile polish ====== */
@media (max-width: 760px) {
    body { font-size: 17px; line-height: 1.65; }
    .container { padding: 0 18px; }
    .article-title { font-size: 32px !important; line-height: 1.18; }
    .article-deck { font-size: 17px !important; }
    .article-header { padding: 18px 0 14px !important; }
    .crumbs { font-size: 12px; }
    .factbox { padding: 18px 16px !important; margin: 18px 0 !important; }
    .factbox dl { grid-template-columns: 1fr !important; gap: 8px 0 !important; }
    .factbox dt { padding-top: 6px; }
    .prose h2 { font-size: 24px !important; margin-top: 28px !important; }
    .prose p { font-size: 17px; line-height: 1.7; }
    .layout { gap: 32px; }
    .topbar { font-size: 10px; letter-spacing: 0.12em; }
    .topbar nav a { margin-left: 12px; }
    .topbar .container { flex-direction: column; gap: 6px; padding: 8px 18px; }
    .masthead { padding: 22px 0 18px; }
    .nav-primary { gap: 14px !important; }
    .nav-primary a { font-size: 12px !important; }
    .ad-leaderboard { min-height: 70px !important; }
    .composer-grid { gap: 14px !important; }
    aside.sidebar { margin-top: 12px; }
    .sidebar-block { padding: 18px !important; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 30px; }
    .article-title { font-size: 28px !important; }
    .composer-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .grid-3, .grid-2 { gap: 16px !important; }
    .nav-primary { flex-wrap: wrap; row-gap: 6px; justify-content: center; }
}

/* ====== Hero typography refinement ====== */
.hero h1 {
    text-shadow: 0 2px 24px rgba(12, 20, 34, 0.5);
}
.hero p {
    text-shadow: 0 1px 12px rgba(12, 20, 34, 0.45);
}
.hero .quote {
    border-left: 2px solid var(--gold);
    padding-left: 14px;
}

/* ========================================================================
   ====== v2 — Belle Époque Programme polish (loaded last, wins) ==========
   ======================================================================== */

/* --- Paper grain on body, custom selection, scrollbar tinting --- */
body {
    background-color: var(--paper);
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.62  0 0 0 0 0.51  0 0 0 0 0.32  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
        radial-gradient(ellipse at top, rgba(216,203,171,0.32), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(110,22,34,0.06), transparent 70%);
    background-attachment: fixed, fixed, fixed;
    background-size: 160px 160px, auto, auto;
}
::selection { background: var(--crimson); color: var(--paper); }
::-moz-selection { background: var(--crimson); color: var(--paper); }
html { scrollbar-color: var(--crimson) var(--paper-2); }

/* --- Page-load fade-in (one orchestrated reveal) --- */
@keyframes pageRise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
@keyframes heroRise {
    from { opacity: 0; transform: scale(1.02); }
    to   { opacity: 1; transform: none; }
}
@keyframes goldShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.masthead { animation: pageRise 0.7s ease-out both; }
.primary-nav { animation: pageRise 0.7s ease-out 0.1s both; }
.hero { animation: heroRise 0.9s ease-out 0.15s both; }
main > .container > * { animation: pageRise 0.6s ease-out 0.25s both; }

/* --- Topbar refined --- */
.topbar { font-size: 10.5px; letter-spacing: 0.22em; }
.topbar .container { padding-top: 9px; padding-bottom: 9px; }
.topbar .sep { color: var(--gold); margin: 0 8px; opacity: 0.7; }
.topbar-edition { font-family: var(--display); letter-spacing: 0.18em; font-size: 11px; color: rgba(246,240,226,0.7); font-style: italic; text-transform: none; }
.topbar-edition sup { font-size: 0.65em; vertical-align: super; }
@media (max-width: 760px) { .topbar-edition { display: none; } }

/* --- Masthead — flanked, tighter, gilded crest --- */
.masthead { padding: 28px 0 22px; }
.masthead .container { display: flex; flex-direction: column; align-items: center; gap: 0; }
.masthead-flank {
    display: none;
}
@media (min-width: 880px) {
    .masthead .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
    .masthead-flank {
        display: flex; align-items: center; gap: 14px;
        font-family: var(--display); font-style: italic;
        color: var(--muted); font-size: 14px; letter-spacing: 0.06em;
    }
    .masthead-flank.left { justify-content: flex-end; }
    .masthead-flank.right { justify-content: flex-start; }
    .flank-rule {
        flex: 0 0 64px; height: 1px;
        background: linear-gradient(to right, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
        opacity: 0.7;
    }
    .masthead .tagline { grid-column: 1 / -1; margin-top: 12px; }
}
.brand { font-size: 58px; }
.brand .amp { color: var(--crimson); }

/* --- Primary nav — gold underline animation, reduced height --- */
.primary-nav .container { padding: 13px 32px; gap: 4px 28px; }
.primary-nav a.nav-link { position: relative; padding: 4px 2px; }
.primary-nav a.nav-link::after {
    content: ""; position: absolute;
    left: 50%; bottom: -2px;
    width: 0; height: 1px;
    background: var(--gold-bright);
    transition: width .25s ease, left .25s ease;
}
.primary-nav a.nav-link:hover::after { left: 0; width: 100%; }

/* --- Patron slot (replaces ad-slot in editorial contexts) --- */
.patron-slot {
    position: relative;
    text-align: center;
    margin: 0 0 36px;
    padding: 14px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: transparent;
}
.patron-slot::before, .patron-slot::after {
    content: ""; position: absolute; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(185,137,60,0.5) 20%, rgba(185,137,60,0.5) 80%, transparent);
}
.patron-slot::before { top: -3px; }
.patron-slot::after { bottom: -3px; }
.patron-slot span {
    font-family: var(--display); font-style: italic;
    color: var(--muted); font-size: 13px;
    letter-spacing: 0.06em;
    background: var(--paper);
    padding: 0 16px;
    position: relative;
}
.patron-slot span::before, .patron-slot span::after {
    content: "❦"; color: var(--gold); margin: 0 10px; font-size: 11px; opacity: 0.7; vertical-align: 1px;
}
.patron-slot.inline { margin: 36px 0; }
.patron-slot.tall {
    margin: 0 0 26px; padding: 22px 16px;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--gold);
}
.patron-slot.tall span { background: var(--paper-2); }

/* --- Hero — tighter, programme cover composition --- */
.hero {
    margin-bottom: 36px;
    border: none;
    box-shadow: 0 1px 0 var(--gold), 0 24px 60px -32px rgba(12,20,34,0.55);
}
.hero-img { aspect-ratio: 24/9; opacity: 0.5; }
.hero-img-wrap::after {
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(12,20,34,0.55) 70%, rgba(12,20,34,0.92) 100%),
        linear-gradient(135deg, rgba(110,22,34,0.32) 0%, transparent 40%, rgba(12,20,34,0.6) 100%);
}
.hero-img-wrap::before {
    content: "";
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 14px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}
.hero-content { padding: 44px 40px 48px; }
.hero-content::after {
    content: "";
    position: absolute;
    bottom: 22px; left: 28px; right: 28px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212,166,87,0.55) 25%, rgba(212,166,87,0.55) 75%, transparent);
}
.hero-eyebrow {
    color: var(--gold-bright);
    background: linear-gradient(90deg, var(--gold), var(--gold-bright) 40%, #f0d68b 50%, var(--gold-bright) 60%, var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 8s linear infinite;
}
.hero h1 { font-size: 60px; font-weight: 800; letter-spacing: -0.012em; }
.hero h1 em { color: #e8c980; }
.hero .quote {
    font-family: "Cormorant Garamond", var(--display);
    font-size: 19px;
    border: none;
    padding: 0;
    margin-top: 26px;
    color: rgba(232,201,128,0.92);
}
.hero .quote::before { content: "“"; font-size: 32px; vertical-align: -8px; color: var(--gold); margin-right: 4px; opacity: 0.7; }
.hero .quote::after { content: "”"; font-size: 32px; vertical-align: -8px; color: var(--gold); margin-left: 4px; opacity: 0.7; }

/* --- Main / layout: tighter top so hero sits up --- */
main { padding: 32px 0 64px; }
.layout { gap: 60px; }
@media (min-width: 1024px) {
    aside.sidebar > div:first-child + .sidebar-block,
    aside.sidebar { position: sticky; top: 22px; align-self: start; }
}

/* --- Section heads: ornamented, small-caps --- */
.section-head {
    align-items: center;
    border-bottom: none;
    padding-bottom: 0;
    margin: 44px 0 22px;
    gap: 18px;
}
.section-head::after { display: none; }
.section-head h2 {
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ink);
    flex: 0 0 auto;
    position: relative;
    padding-right: 14px;
}
.section-head h2::before {
    content: "✦";
    color: var(--gold);
    margin-right: 12px;
    font-size: 10px;
    vertical-align: 2px;
}
.section-head::before {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--rule), var(--gold) 60%, var(--rule));
    order: 2;
    align-self: center;
}
.section-head .more {
    order: 3;
    font-family: var(--sans); font-size: 10px;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--crimson);
    border: 1px solid transparent;
    padding: 4px 10px;
    transition: border-color .2s ease, color .2s ease;
}
.section-head .more:hover { color: var(--ink); border-color: var(--gold); border-bottom-color: var(--gold); }

/* --- Featured cards: lift on hover, refined meta --- */
.card { transition: transform .25s ease; }
.card:hover { transform: translateY(-3px); }
.card .thumb { box-shadow: 0 1px 0 var(--gold), 0 12px 28px -16px rgba(12,20,34,0.45); border: none; }
.card .thumb::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(110,22,34,0.18) 100%);
    z-index: 1; pointer-events: none;
}
.card .meta { color: var(--crimson); font-weight: 700; font-size: 9.5px; }
.card .meta::before { content: "·"; margin-right: 8px; color: var(--gold); }
.card h3 { font-size: 24px; }

/* --- Composer cards: oval portrait + ribbon --- */
.composer-card .portrait {
    border-radius: 50%;
    box-shadow:
        0 0 0 4px var(--paper),
        0 0 0 5px rgba(185,137,60,0.5),
        0 8px 22px -10px rgba(12,20,34,0.4);
    transition: box-shadow .25s ease, transform .25s ease;
}
.composer-card:hover .portrait {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 4px var(--paper),
        0 0 0 5px var(--crimson),
        0 14px 28px -12px rgba(110,22,34,0.55);
}
.composer-card .name { font-size: 18px; }
.composer-card .count {
    display: inline-block;
    margin-top: 8px; padding: 3px 10px;
    background: var(--ink); color: var(--gold-bright);
    font-size: 9.5px;
}

/* --- Era pills: stamp-like with corner serifs --- */
.era-pill {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--ink);
    box-shadow: 2px 2px 0 var(--gold);
    transition: transform .15s ease, box-shadow .15s ease;
}
.era-pill:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--crimson);
    background: var(--ink);
    color: var(--paper);
}

/* --- Chips: refined hover with gold underline grow --- */
.chip {
    background: transparent;
    border: 1px solid var(--rule);
    border-bottom: 2px solid var(--rule);
    transition: border-color .2s ease, color .2s ease, background .2s ease;
    padding: 7px 13px;
}
.chip:hover {
    background: var(--paper);
    color: var(--crimson);
    border-color: var(--gold);
    border-bottom-color: var(--crimson);
}

/* --- Index list: numbered ranking, larger year stamp, zebra --- */
.index-list { counter-reset: idx; border-top: 1px solid var(--rule); }
.index-list li {
    counter-increment: idx;
    grid-template-columns: 36px 80px 1fr 200px 80px;
    padding: 18px 4px 18px 0;
    border-bottom-style: solid;
    border-bottom-color: var(--rule-soft);
    transition: background .15s ease;
    position: relative;
}
.index-list li::before {
    content: counter(idx, decimal-leading-zero);
    font-family: var(--display); font-style: italic;
    font-size: 16px; color: var(--gold); font-weight: 400;
    align-self: center;
}
.index-list li:hover { background: rgba(216,203,171,0.32); }
.index-list .year {
    font-family: var(--display); font-style: italic;
    font-size: 22px; color: var(--crimson); font-weight: 600;
    letter-spacing: 0;
    align-self: center;
}
.index-list .ttl { font-size: 21px; }
.index-list .ttl a { transition: color .2s ease; }
.index-list .lang { letter-spacing: 0.18em; font-weight: 600; }
@media (max-width: 760px) {
    .index-list li { grid-template-columns: 28px 60px 1fr; padding: 14px 0; }
    .index-list li::before { font-size: 14px; }
    .index-list .who, .index-list .lang { grid-column: 3; font-size: 12px; }
    .index-list .lang { text-align: left; }
    .index-list .year { font-size: 18px; }
    .index-list .ttl { font-size: 18px; }
}

/* --- Venue grid override: numbered, no year-as-pill --- */
.venue-grid li::before { display: none; }
.venue-grid li { grid-template-columns: 56px 1fr !important; }

/* --- Article header: more dramatic --- */
.article-header { padding-bottom: 24px; }
.article-header::after { width: 64px; height: 2px; }
.article-eyebrow {
    color: var(--crimson); font-weight: 700;
    display: inline-flex; align-items: center; gap: 10px;
}
.article-eyebrow::before {
    content: ""; width: 24px; height: 1px; background: var(--gold);
}
.article-title { font-size: 64px; line-height: 1.05; font-weight: 800; letter-spacing: -0.018em; }
.article-title em { font-weight: 400; color: var(--crimson); }
.article-deck { font-size: 21px; color: var(--muted); font-style: italic; max-width: 640px; }
.article-byline {
    border-top: 1px solid var(--rule);
    padding-top: 16px;
    margin-top: 18px;
    font-size: 10.5px;
    letter-spacing: 0.22em;
}

/* --- Featured image: sepia-tinted historical look --- */
.featured-image img {
    border: none;
    box-shadow:
        0 0 0 1px var(--rule),
        0 0 0 6px var(--paper),
        0 0 0 7px var(--gold),
        0 24px 48px -24px rgba(12,20,34,0.4);
    filter: sepia(0.18) saturate(0.92);
}
.featured-image figcaption {
    font-family: "Cormorant Garamond", var(--display);
    font-style: italic;
    font-size: 14px;
    color: var(--muted);
    margin-top: 18px;
}

/* --- Prose: drop cap refined, blockquote as aria-card --- */
.prose { max-width: 68ch; }
.prose p { font-size: 19px; line-height: 1.78; }
.prose p:first-of-type::first-letter {
    font-family: var(--display); font-weight: 800;
    font-size: 5.4em; line-height: 0.78;
    float: left; padding: 6px 14px 0 0;
    color: var(--crimson);
    background: linear-gradient(180deg, var(--crimson) 0%, var(--crimson-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.prose h2 {
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ink);
    border-bottom: none;
    margin: 52px 0 18px;
    padding-bottom: 0;
    display: flex; align-items: center; gap: 18px;
}
.prose h2::before { content: "✦"; color: var(--gold); font-size: 11px; }
.prose h2::after {
    content: "";
    flex: 1; height: 1px;
    background: linear-gradient(to right, var(--gold), var(--rule) 70%, transparent);
    margin-top: 2px;
}
.prose h3 { font-size: 22px; color: var(--crimson); font-style: italic; font-weight: 600; }
.prose blockquote {
    border: none;
    background: var(--paper-2);
    padding: 28px 36px;
    margin: 32px 0;
    position: relative;
    font-family: "Cormorant Garamond", var(--display);
    font-style: italic;
    font-size: 22px;
    line-height: 1.45;
}
.prose blockquote::before {
    content: "❝";
    position: absolute;
    top: -10px; left: 14px;
    font-family: var(--display);
    font-size: 56px; color: var(--gold); line-height: 1;
}
.prose blockquote::after {
    content: ""; position: absolute;
    top: 0; bottom: 0; right: 0; width: 3px;
    background: linear-gradient(to bottom, var(--gold), var(--crimson));
}
.prose ul li::marker { color: var(--gold); }
.prose a { color: var(--crimson); border-bottom: 1px solid rgba(110,22,34,0.25); }
.prose a:hover { background: rgba(212,166,87,0.18); }

/* --- Factbox: programme card with gold corner ornaments --- */
.factbox {
    background: var(--paper);
    border: 1px solid var(--ink);
    border-left-width: 1px;
    box-shadow:
        4px 4px 0 var(--paper-3),
        4px 4px 0 1px var(--ink);
    padding: 26px 28px 24px;
    position: relative;
}
.factbox::before {
    content: ""; position: absolute;
    inset: 4px;
    border: 1px solid var(--gold);
    pointer-events: none;
    border-image: none;
    border-style: solid;
    border-width: 1px;
    /* corners only */
    -webkit-mask:
        linear-gradient(to right, #000 18px, transparent 18px) top left/100% 1px no-repeat,
        linear-gradient(to right, transparent calc(100% - 18px), #000 calc(100% - 18px)) top right/100% 1px no-repeat,
        linear-gradient(to right, #000 18px, transparent 18px) bottom left/100% 1px no-repeat,
        linear-gradient(to right, transparent calc(100% - 18px), #000 calc(100% - 18px)) bottom right/100% 1px no-repeat,
        linear-gradient(to bottom, #000 18px, transparent 18px) top left/1px 100% no-repeat,
        linear-gradient(to bottom, transparent calc(100% - 18px), #000 calc(100% - 18px)) bottom left/1px 100% no-repeat,
        linear-gradient(to bottom, #000 18px, transparent 18px) top right/1px 100% no-repeat,
        linear-gradient(to bottom, transparent calc(100% - 18px), #000 calc(100% - 18px)) bottom right/1px 100% no-repeat;
    border-color: var(--gold);
}
.factbox h4 {
    text-align: center;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 10px;
    margin-bottom: 16px;
    letter-spacing: 0.36em;
    position: relative;
}
.factbox h4::after {
    content: "✦";
    position: absolute;
    left: 50%; bottom: -7px;
    transform: translateX(-50%);
    background: var(--paper);
    color: var(--gold);
    padding: 0 6px;
    font-size: 9px;
}
.factbox dl { grid-template-columns: 100px 1fr; gap: 10px 18px; }
.factbox dt {
    font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--muted); font-weight: 700; padding-top: 2px;
}
.factbox dd { font-family: var(--serif); font-size: 16px; }

/* --- Sidebar: refined frames --- */
.sidebar-block {
    background: var(--paper);
    border: 1px solid var(--rule);
    box-shadow: 3px 3px 0 var(--paper-2);
    padding: 22px 22px 20px;
}
.sidebar-block h3 {
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.36em;
    text-align: center;
    border-bottom: none;
    padding-bottom: 16px;
    margin-bottom: 14px;
    position: relative;
}
.sidebar-block h3::before, .sidebar-block h3::after {
    content: "";
    position: absolute;
    bottom: 8px;
    height: 1px;
    background: var(--gold);
    width: 30%;
    opacity: 0.5;
}
.sidebar-block h3::before { left: 0; }
.sidebar-block h3::after { right: 0; }
.sidebar-block h3 {
    background-image: radial-gradient(circle at center 8px, var(--gold) 1.5px, transparent 1.5px);
    background-repeat: no-repeat;
    background-size: 100% 16px;
    background-position: center bottom;
}
.sidebar-block li { padding: 10px 0; }
.sidebar-block .small { font-style: italic; color: var(--muted-2); }
.sidebar-block.recommended {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    border: 1px solid var(--navy-2);
    box-shadow: 3px 3px 0 rgba(110,22,34,0.4);
    position: relative;
}
.sidebar-block.recommended::before {
    content: "EDITORIAL";
    position: absolute;
    top: -10px; right: 16px;
    background: var(--crimson); color: var(--gold-bright);
    font-family: var(--sans); font-size: 9px;
    letter-spacing: 0.32em; font-weight: 700;
    padding: 4px 10px;
    box-shadow: 2px 2px 0 var(--navy-2);
}
.sidebar-block.recommended h3::before, .sidebar-block.recommended h3::after { background: var(--gold-bright); opacity: 0.6; }
.sidebar-block.recommended h3 { background-image: radial-gradient(circle at center 8px, var(--gold-bright) 1.5px, transparent 1.5px); }
.sidebar-block.recommended .rec-meta { color: var(--gold-bright); }
.sidebar-block.recommended .pbn-title { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.3; }

/* --- Search form: themed --- */
.search-form input {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-bottom: 1px solid var(--ink);
    font-family: var(--serif);
    font-style: italic;
}
.search-form input:focus { border-color: var(--crimson); box-shadow: none; background: #fffcf3; }
.search-form button { background: var(--crimson); border-color: var(--crimson); }
.search-form button:hover { background: var(--ink); border-color: var(--ink); }

/* --- Curtain divider above footer --- */
.curtain {
    height: 14px;
    margin-top: 64px;
    background:
        linear-gradient(180deg, transparent 0%, transparent 60%, var(--gold) 60%, var(--gold) 64%, transparent 64%),
        repeating-linear-gradient(90deg,
            #6e1622 0,
            #8e1e2c 8px,
            #6e1622 16px,
            #4a0d18 24px,
            #6e1622 32px);
    position: relative;
    box-shadow: inset 0 -8px 14px -6px rgba(0,0,0,0.45);
}
.curtain::before {
    content: ""; position: absolute;
    left: 0; right: 0; top: 100%;
    height: 18px;
    background:
        radial-gradient(ellipse 22px 18px at 16px 0, #4a0d18 0%, #4a0d18 60%, transparent 65%),
        radial-gradient(ellipse 22px 18px at 48px 0, #4a0d18 0%, #4a0d18 60%, transparent 65%),
        radial-gradient(ellipse 22px 18px at 80px 0, #4a0d18 0%, #4a0d18 60%, transparent 65%);
    background-size: 64px 18px, 64px 18px, 64px 18px;
    background-repeat: repeat-x;
    background-position: 0 0, 32px 0, 16px 0;
}

/* --- Footer refined --- */
footer { margin-top: 0; border-top: none; padding: 64px 0 28px; }
footer h4 { color: var(--gold-bright); }
.copyright .finis {
    font-family: var(--display); font-style: italic;
    color: var(--gold); letter-spacing: 0.1em;
    font-size: 12px; text-transform: none;
}

/* --- Breadcrumbs: refined --- */
.crumbs { font-size: 10px; letter-spacing: 0.28em; }
.crumbs .sep { font-family: var(--display); font-style: italic; color: var(--gold); }

/* --- Focus rings for keyboard users --- */
:focus-visible {
    outline: 2px solid var(--crimson);
    outline-offset: 3px;
    border-radius: 1px;
}

/* --- Mobile re-tuning of new pieces --- */
@media (max-width: 760px) {
    .brand { font-size: 40px !important; }
    .masthead { padding: 16px 0 14px; }
    .tagline { font-size: 9px; letter-spacing: 0.32em; }
    .hero-content { padding: 22px 18px 28px; }
    .hero h1 { font-size: 32px; }
    .article-title { font-size: 36px !important; }
    .section-head { gap: 12px; flex-wrap: wrap; }
    .section-head h2 { font-size: 11px; letter-spacing: 0.28em; }
    .index-list li { padding: 12px 0; }
    .factbox { padding: 18px !important; box-shadow: 3px 3px 0 var(--paper-3), 3px 3px 0 1px var(--ink); }
    .factbox dl { grid-template-columns: 1fr !important; gap: 4px 0 !important; }
    .factbox dt { padding-top: 8px; }
    .patron-slot { margin-bottom: 24px; }
    .composer-grid { gap: 18px 14px !important; }
    .curtain { margin-top: 40px; }
    footer { padding: 48px 0 28px; }
}

/* ====== v2.1 — Architect feedback fixes ====== */

/* Reduced-motion guard for all entrance + shimmer animations */
@media (prefers-reduced-motion: reduce) {
    .masthead, .primary-nav, .hero, main > .container > * {
        animation: none !important;
    }
    .hero-eyebrow {
        animation: none !important;
        background: none !important;
        -webkit-text-fill-color: var(--gold-bright) !important;
        color: var(--gold-bright) !important;
    }
    .card, .composer-card .portrait, .era-pill, .chip, .index-list li {
        transition: none !important;
    }
}

/* Factbox dt contrast: bump from --muted (#6b5d48 ~3.6:1) to --ink */
.factbox dt { color: var(--ink) !important; opacity: 0.85; }

/* Gilded "stamped ink" depth on hero text */
.hero h1 {
    text-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 2px 24px rgba(12,20,34,0.55);
}
.hero-eyebrow {
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

/* Avoid title orphans on long opera names */
.article-title, .hero h1, .section-head h2, .composer-card .name, .card h3 {
    text-wrap: balance;
}

/* Body vignette — aged parchment edges */
body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    box-shadow: inset 0 0 140px rgba(74,30,12,0.10);
}
main, .topbar, .masthead, .primary-nav, footer, .curtain { position: relative; z-index: 2; }

/* Curtain — stage depth */
.curtain { z-index: 3; box-shadow: 0 -10px 20px -4px rgba(0,0,0,0.35), inset 0 -8px 14px -6px rgba(0,0,0,0.45); }

/* Hero-content: ensure absolute positioning is preserved at all desktop widths
   (the v1 rule sets position:absolute; inset:0 — confirm v2 doesn't clobber) */
@media (min-width: 761px) {
    .hero-content { position: absolute !important; inset: 0 !important; }
}

/* Index-list zebra refinement: vintage double rule */
.index-list li { border-bottom: 1px solid var(--rule-soft); }
.index-list li:nth-child(even) { background: rgba(216,203,171,0.10); }
.index-list li:nth-child(even):hover { background: rgba(216,203,171,0.32); }

/* Drop cap: tighten line-height to reduce trapped whitespace */
.prose p:first-of-type::first-letter {
    line-height: 0.74;
    margin-top: 4px;
    padding: 4px 14px 0 0;
}

/* Visually hidden — readable to assistive tech but not painted. */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
