.blog-index, .blog-detail { max-width: 1180px; margin-inline: auto; color: var(--text); }
.blog-index { max-width: 860px; }
.blog-index__header { padding-block: 20px 32px; border-bottom: 1px solid var(--line); }
.blog-index h1, .blog-article-header h1 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.16; font-weight: 800; text-wrap: balance; margin: 0 0 20px; }
.blog-index__header p { font-size: 1.2rem; max-width: 60ch; line-height: 1.6; margin: 0; color: var(--muted); }
.blog-entry { padding-block: 28px 30px; border-bottom: 1px solid var(--line); }
.blog-entry time, .blog-article-header time { display: block; font-size: .92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.blog-entry h2 { margin: 8px 0 12px; font-size: clamp(1.35rem, 2.3vw, 1.75rem); font-weight: 800; line-height: 1.3; text-wrap: pretty; }
.blog-entry h2 a { color: var(--text); text-decoration-color: var(--line); text-underline-offset: .18em; }
.blog-entry h2 a:hover { text-decoration-color: currentColor; }
.blog-entry p { margin: 0; color: var(--muted); line-height: 1.65; max-width: 70ch; }
.blog-pagination { padding-block: 32px 8px; text-align: center; }
.blog-pagination .htmx-request { opacity: .65; pointer-events: none; }
.blog-load-status { min-height: 1.6em; margin-top: 16px; color: var(--muted); text-align: center; }
.blog-previous { display: inline-block; padding-block: 16px; }
.blog-empty { margin-block: 32px; }
.blog-article-header { max-width: 930px; padding-block: 20px 40px; }
.blog-article-header time { margin-bottom: 14px; }
.blog-cover { display: block; width: 100%; max-height: 520px; object-fit: contain; margin-top: 28px; border-radius: 12px; }
.blog-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.blog-contents { grid-column: 2; grid-row: 1; position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow-y: auto; scrollbar-color: var(--muted) var(--bg); }
.blog-contents h2 { font-size: 1rem; font-weight: 800; margin: 0 0 14px; }
.blog-contents ol { list-style: none; padding: 0; margin: 0; }
.blog-contents li + li { margin-top: 12px; }
.blog-contents a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2em; line-height: 1.5; }
.blog-contents a:hover { color: var(--text); }
:where(.blog-prose) { grid-column: 1; grid-row: 1; min-width: 0; max-width: 72ch; font-size: 1.125rem; line-height: 1.8; overflow-wrap: anywhere; }
:where(.blog-prose) p { margin: 0 0 1.2em; }
:where(.blog-prose) h2 { margin: 2.2em 0 .75em; font-size: clamp(1.55rem, 2.6vw, 2rem); line-height: 1.25; font-weight: 800; text-wrap: pretty; }
:where(.blog-prose) h3 { margin: 1.6em 0 .6em; font-size: 1.35rem; font-weight: 800; line-height: 1.4; }
:where(.blog-prose) h4 { margin-top: 1.5em; font-size: 1.2rem; }
:where(.blog-prose) :is(h2, h3, h4) { scroll-margin-top: 28px; }
:where(.blog-prose) a, .blog-previous { color: #865130; text-decoration: underline; text-underline-offset: .18em; }
:where(.blog-prose) :is(ul, ol) { padding-left: 1.5em; margin-bottom: 1.4em; }
:where(.blog-prose) li + li { margin-top: .4em; }
:where(.blog-prose) figure { margin: 1.6em 0; }
:where(.blog-prose) :is(img, video) { display: block; width: 100%; height: auto; border-radius: 12px; }
:where(.blog-prose) audio { width: 100%; }
:where(.blog-prose) figcaption, :where(.blog-prose) blockquote footer { font-size: .92rem; line-height: 1.6; color: var(--muted); margin-top: 12px; }
:where(.blog-prose) blockquote { margin: 1.6em 0; padding: 24px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
:where(.blog-prose) blockquote p:last-of-type { margin-bottom: 0; }
:where(.blog-prose) pre { white-space: pre-wrap; padding: 16px; background: var(--surface-soft); }
:where(.blog-prose) table { display: block; max-width: 100%; overflow-x: auto; margin-bottom: 24px; }
:where(.blog-prose) :is(td, th) { padding: 8px 12px; border: 1px solid var(--line); }
.blog-game.game-card-shell { display: block; height: auto; overflow: hidden; margin-block: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.blog-game__visual { position: relative; }
.blog-game__preview { display: block; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; background: var(--surface-soft); }
.blog-game__preview :is(img, video, canvas) { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.blog-game__body { padding: 26px 28px 28px; }
.blog-game__title { margin: 0 0 16px; font-size: clamp(1.4rem, 2.3vw, 1.7rem); line-height: 1.3; font-weight: 800; text-wrap: pretty; }
.blog-game__title a { color: var(--text); text-decoration: none; }
.blog-game__title a:hover { text-decoration: underline; text-underline-offset: .16em; }
.blog-game__description { font-size: 1.0625rem; line-height: 1.7; }
.blog-game__description p { margin-bottom: 16px; }
.blog-game__description > :last-child { margin-bottom: 0; }
.blog-game__open { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; margin-top: 24px; padding: 11px 20px; border-radius: 12px; background: var(--text); color: var(--surface); font-size: 1rem; font-weight: 800; line-height: 1.5; text-decoration: none; transition: opacity 160ms ease; }
.blog-game__open:hover { color: var(--surface); opacity: .85; }
.blog-game__open svg { flex-shrink: 0; }
.blog-preview { padding: 16px; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 12px; }
.blog-detail .breadcrumbs__list { flex-wrap: wrap; }
.blog-index a:focus-visible, .blog-detail a:focus-visible { outline: 3px solid var(--muted); outline-offset: 4px; border-radius: 3px; }
.blog-detail ::selection, .blog-index ::selection { background: var(--sun); color: #2f2a26; }
:where([data-theme="dark"] .blog-prose) a { color: #f6bb90; }
@media (max-width: 900px) {
  .blog-reading-layout { display: flex; flex-direction: column; gap: 28px; }
  .blog-contents { position: static; max-height: none; width: 100%; padding-block: 20px; border-block: 1px solid var(--line); }
  .blog-contents ol { columns: 2; column-gap: 28px; }
  .blog-contents li { break-inside: avoid; margin-bottom: 10px; }
  .blog-contents li + li { margin-top: 0; }
  .blog-article-header { padding-bottom: 24px; }
}
@media (max-width: 540px) {
  .blog-contents ol { columns: 1; }
  :where(.blog-prose) { font-size: 1.0625rem; line-height: 1.75; }
  .blog-index__header { padding-top: 12px; }
  :where(.blog-prose) blockquote { padding: 18px; }
  .blog-game.game-card-shell { margin-block: 28px; }
  .blog-game__preview { aspect-ratio: 16 / 9; }
  .blog-game__body { padding: 20px; }
  .blog-game__open { display: flex; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .blog-game__open { transition: none; } }
