/* Round 40 blog (src/pages/blog.php): articles on the night ground of the public pages (share.css). No scripts.
   Body text is a serif at 19 px / 1.75 in a 68 ch column; every image has its size in the HTML (no layout shift). */
.bl-main { max-width: 1100px; }
.bl-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 8px; }
.bl-head h1 { margin: 0; color: var(--paper); font: 400 clamp(38px, 6vw, 68px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; overflow-wrap: anywhere; }
.bl-head-kibun { flex: none; width: 150px; height: 150px; }
.bl-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.bl-topics a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: #c9c5b9; border: 1px solid var(--line); text-decoration: none; font: 700 12px/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.bl-topics a:hover { color: var(--paper); border-color: var(--paper); }
.bl-topics a[aria-current] { color: var(--night); background: var(--paper); border-color: var(--paper); }
.bl-empty { margin: 44px 0; color: #b9b5aa; font: italic 20px/1.5 Georgia, serif; }

.bl-list { display: grid; gap: 40px; margin: 36px 0 0; }
.bl-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(18px, 3vw, 36px); align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.bl-card:not(:has(.bl-card-hero)) { grid-template-columns: minmax(0, 1fr); }
.bl-card-hero { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: #24242a; box-shadow: 8px 8px 0 #080808; transition: transform .2s ease; }
.bl-card-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-card:hover .bl-card-hero { transform: translate(-2px, -2px); }
.bl-card h2 { margin: 8px 0 0; font: 400 clamp(26px, 3.4vw, 36px)/1.12 Georgia, serif; letter-spacing: -.02em; overflow-wrap: anywhere; }
.bl-card h2 a { color: var(--paper); text-decoration: none; }
.bl-card h2 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--red); }
.bl-excerpt { margin: 12px 0 0; color: #c9c5b9; font: 17px/1.6 Georgia, serif; }
.bl-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--red); font: 800 12px/1.5 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.bl-meta span + span::before { content: '/'; margin-right: 14px; color: #6d6a62; }
.bl-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.bl-tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; color: #c9c5b9; border: 1px solid var(--line); text-decoration: none; font: 700 11px/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.bl-tags a:hover { color: var(--paper); border-color: var(--paper); }

.bl-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 0; color: #a3a097; font: 14px/1.4 Arial, sans-serif; }
.bl-pager a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; color: var(--paper); background: var(--red); box-shadow: 4px 4px 0 #080808; text-decoration: none; font: 800 12px/1.2 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.bl-rss { margin: 28px 0 0; font: 14px/1.4 Arial, sans-serif; }
.bl-rss a { display: inline-flex; align-items: center; min-height: 44px; color: #c9c5b9; text-underline-offset: 4px; }

/* The article. */
.bl-post { max-width: 720px; margin: 0 auto; }
.bl-post-head { margin: 8px 0 0; }
.bl-post-head h1 { margin: 14px 0 0; color: var(--paper); font: 400 clamp(36px, 6vw, 62px)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.04em; overflow-wrap: anywhere; text-wrap: balance; }
.bl-lead { margin: 18px 0 0; color: #d6d2c4; font: italic 21px/1.55 Georgia, serif; }
.bl-hero { max-width: 1000px; margin: 32px auto 0; }
.bl-post:has(.bl-hero) { max-width: 1000px; }
.bl-post:has(.bl-hero) .bl-post-head, .bl-post:has(.bl-hero) .bl-body, .bl-post:has(.bl-hero) .bl-post-tags, .bl-post:has(.bl-hero) .bl-translations { max-width: 720px; margin-left: auto; margin-right: auto; }
.bl-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: #24242a; box-shadow: 10px 10px 0 #080808; }
.bl-body { margin: 36px 0 0; color: #e6e2d3; font: 19px/1.75 Georgia, "Times New Roman", serif; overflow-wrap: break-word; }
.bl-body > :first-child { margin-top: 0; }
.bl-body p { margin: 1.1em 0 0; }
.bl-body h2, .bl-body h3, .bl-body h4 { margin: 2em 0 0; color: var(--paper); font-family: Georgia, serif; font-weight: 400; line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: 20px; text-wrap: balance; }
.bl-body h2 { font-size: 34px; padding-top: 14px; border-top: 1px solid var(--line); }
.bl-body h3 { font-size: 26px; }
.bl-body h4 { color: #d6d2c4; font-size: 21px; font-style: italic; }
.bl-body a { color: var(--paper); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bl-body a:hover { color: var(--red); }
.bl-body strong { color: var(--paper); }
.bl-body ul, .bl-body ol { margin: 1.1em 0 0; padding-left: 1.4em; }
.bl-body li { margin: .4em 0 0; padding-left: .2em; }
.bl-body li::marker { color: var(--red); }
.bl-body blockquote { margin: 1.6em 0 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--red); color: #d6d2c4; font-style: italic; }
.bl-body blockquote > :first-child { margin-top: 0; }
.bl-body hr { margin: 2.4em auto; width: 80px; border: 0; border-top: 2px solid var(--red); }
.bl-body code { padding: .1em .35em; color: var(--paper); background: #24242a; font: .86em/1.4 "SFMono-Regular", Menlo, Consolas, monospace; }
.bl-body pre { margin: 1.4em 0 0; padding: 16px 18px; overflow-x: auto; background: #101012; border: 1px solid var(--line); font: 15px/1.55 "SFMono-Regular", Menlo, Consolas, monospace; }
.bl-body pre code { padding: 0; background: none; font: inherit; }
.bl-body figure { margin: 1.8em 0 0; }
.bl-body figure img { display: block; max-width: 100%; height: auto; }
.bl-body figcaption { margin-top: 8px; color: #a3a097; font: italic 14px/1.5 Georgia, serif; }
.bl-body p > img { max-width: 100%; height: auto; }
/* [[anime:ID]] alone on a line: a small card with the cover. */
.bl-body .bl-anime { margin: 1.4em 0 0; }
.bl-anime a { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; min-height: 90px; padding: 0 18px 0 0; color: var(--paper); background: #202024; border: 1px solid var(--line); box-shadow: 5px 5px 0 #080808; text-decoration: none; font: 400 19px/1.3 Georgia, serif; }
.bl-body .bl-anime a:hover { color: var(--paper); border-color: var(--red); }
.bl-anime img { flex: none; display: block; width: 64px; height: 90px; object-fit: cover; }
.bl-anime i { flex: none; display: grid; place-items: center; width: 64px; height: 90px; color: #6d6a62; background: #24242a; font: normal 400 28px/1 "Yu Mincho", serif; }
.bl-anime span { min-width: 0; overflow-wrap: anywhere; }

.bl-post-tags { margin-top: 36px; }
.bl-translations { margin: 22px 0 0; color: #a3a097; font: 15px/1.6 Arial, sans-serif; }
.bl-translations a { color: var(--paper); text-underline-offset: 3px; }
.bl-cta { display: flex; align-items: center; gap: 24px; max-width: 720px; margin: 56px auto 0; padding: 24px; color: var(--ink); background: var(--paper); box-shadow: 8px 8px 0 #080808; }
.bl-cta img { flex: none; width: 120px; height: 120px; }
.bl-cta h2 { margin: 0; color: var(--ink); font: italic 400 28px/1.15 Georgia, serif; }
.bl-cta p { margin: 8px 0 0; color: #3d3a35; font: 16px/1.55 Georgia, serif; }
.bl-cta .share-similar-cta { margin-top: 16px; }
.bl-back { max-width: 720px; margin: 28px auto 0; font: 14px/1.4 Arial, sans-serif; }
.bl-back a { display: inline-flex; align-items: center; min-height: 44px; color: #c9c5b9; text-underline-offset: 4px; }

@media (max-width: 720px) {
    .bl-head-kibun { width: 96px; height: 96px; }
    .bl-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .bl-body { font-size: 18px; }
    .bl-body h2 { font-size: 28px; }
    .bl-lead { font-size: 19px; }
    .bl-cta { flex-direction: column; align-items: flex-start; }
    .bl-hero img { box-shadow: 6px 6px 0 #080808; }
}
@media (prefers-reduced-motion: reduce) {
    .bl-card-hero { transition: none; }
}

/* Round 43: "Related articles" on a title page (src/share-page.php) */
.bl-related { margin-top: 28px; }
.bl-related-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.bl-related-list a { display: grid; gap: 4px; padding: 14px 16px; color: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.bl-related-list a:hover { border-color: var(--paper); }
.bl-related-list b { font: 400 20px/1.25 Georgia, "Times New Roman", serif; }
.bl-related-list span { color: #c9c5b9; font: 15px/1.5 Georgia, serif; }

/* Round 48 (flag 'blog-save', assets/blog-save.js): a small Save next to each [[anime:ID]] title. Inline after a link in
   the text it is a quiet pill; next to a title card it sits at the card's right. */
.bl-save { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0 0 0 8px; padding: 0 12px; color: #c9c5b9; background: transparent; border: 1px solid var(--line); border-radius: 0; vertical-align: middle; text-decoration: none; font: 700 11px/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.bl-save:hover, .bl-save:focus-visible { color: var(--paper); border-color: var(--paper); }
.bl-save:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.bl-save svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.bl-save[data-state="saved"] { color: var(--night); background: var(--paper); border-color: var(--paper); cursor: default; }
.bl-save[data-state="saved"] svg { fill: currentColor; }
.bl-save:disabled:not([data-state="saved"]) { opacity: .6; cursor: progress; }
.bl-body a.bl-save { color: #c9c5b9; text-decoration: none; }
.bl-body a.bl-save:hover { color: var(--paper); }
.bl-anime .bl-save, .bl-body .bl-anime a.bl-save { min-height: 44px; margin-left: 12px; padding: 0 12px; gap: 6px; background: transparent; box-shadow: none; font: 700 11px/1 Arial, sans-serif; }
.bl-save-error { display: block; margin: 6px 0 0; color: #ff9b8f; font: 14px/1.4 Arial, sans-serif; }
.bl-body .bl-save[data-state="saved"] { color: var(--night); background: var(--paper); border-color: var(--paper); }
.bl-body .bl-anime:has(.bl-save) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bl-body .bl-anime:has(.bl-save) .bl-save { margin-left: 0; }
