.build-story .site-bar { position: relative; }
.blog-article { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 72px; }
.blog-header { margin-bottom: 36px; }
.blog-header h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 1.04; }
.blog-lead { font-size: 1.3rem; line-height: 1.55; color: var(--muted); }
.blog-byline { font-size: .95rem; color: var(--muted); }
.blog-byline span { margin: 0 8px; }
.blog-article section { padding: 32px 0 0; scroll-margin-top: 24px; }
.blog-article h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.15; margin-bottom: 18px; }
.blog-article p, .blog-article li { font-size: 1.08rem; line-height: 1.8; }
.blog-article li { margin-bottom: 10px; }
.blog-article a { text-underline-offset: 3px; }
.blog-takeaway, .blog-contents { border: 2px solid var(--ink); border-radius: 20px; padding: 24px; margin: 28px 0; }
.blog-takeaway { background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); }
.blog-takeaway h2 { font-size: 1.4rem; margin-bottom: 8px; }
.blog-takeaway p { margin-bottom: 0; }
.blog-contents { background: var(--paper); }
.blog-contents ol { margin-bottom: 0; padding-left: 24px; }
.blog-contents li { font-size: 1rem; line-height: 1.6; }
.blog-article blockquote { border-left: 6px solid var(--yellow); padding: 4px 24px; margin: 28px 0; font-weight: 800; }
.blog-about { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: start; gap: 24px; border-top: 2px solid var(--ink); margin-top: 40px; }
.blog-about img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 20px; }
.blog-about > img { grid-column: 1 / -1; }
.blog-personal-photo { margin: 0; padding: 10px; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.blog-personal-photo img { border: 0; border-radius: 10px; }
.blog-personal-photo figcaption { margin-top: 10px; font-size: .95rem; font-weight: 700; line-height: 1.4; text-align: center; }
.blog-article code { overflow-wrap: anywhere; }
.blog-cast { display: flex; align-items: end; justify-content: center; gap: 20px; margin: 36px 0 12px; padding: 24px 20px 0; border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); overflow: hidden; }
.blog-cast > img { width: 24%; max-width: 160px; height: auto; }
.cast-dossier { align-self: center; flex: 1; text-align: center; border: 2px solid var(--ink); border-radius: 12px; padding: 16px 8px 8px; background: var(--yellow); transform: rotate(-3deg); margin-bottom: 20px; box-shadow: 4px 4px 0 var(--ink); }
.cast-dossier > span { display: block; font: 700 .75rem Consolas, monospace; letter-spacing: .12em; }
.cast-dossier strong { display: block; font-size: clamp(1rem, 3vw, 1.6rem); line-height: 1.2; margin-top: 10px; }
.cast-dossier img { display: block; margin: 12px auto 0; max-width: 80px; height: auto; }
.blog-scene-heading { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.blog-scene-heading img { flex: none; width: 80px; height: 110px; object-fit: contain; }
.blog-scene-heading h2 { margin-bottom: 0; }
.blog-gallery-link { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; margin: 28px 0 20px; padding: 18px; border: 2px solid var(--ink); border-radius: 20px; background: var(--paper); box-shadow: 5px 5px 0 var(--ink); text-decoration: none; }
.blog-gallery-link:hover strong { text-decoration: underline; }
.blog-gallery-link img { width: 100%; height: auto; border-radius: 10px; }
.blog-gallery-link strong, .blog-gallery-link span span, .blog-gallery-link small { display: block; }
.blog-gallery-link strong { font-size: 1.2rem; margin-bottom: 8px; }
.blog-gallery-link small { margin-top: 8px; font-weight: 700; }
.blog-article figure { margin: 24px 0; }
.blog-article figure img { width: 100%; height: auto; display: block; border: 2px solid var(--ink); border-radius: 12px; }
.blog-article figcaption { margin-top: 12px; font-size: .95rem; color: var(--muted); text-align: center; }
.blog-article figcaption a { color: inherit; }
.blog-article .blog-game-shot { margin: 32px 0; }
.blog-article .blog-game-shot img { border: 0; border-radius: 14px; }
.blog-article .blog-game-shot-compact { max-width: 520px; margin-inline: auto; }
.blog-article .blog-game-shot figcaption { line-height: 1.5; }
.blog-character-studies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.blog-article .blog-character-studies figure { margin: 0; min-width: 0; }
.blog-character-studies figcaption { font-weight: 700; line-height: 1.4; }
.blog-design-mix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.blog-design-mix a { text-decoration: none; padding: 16px; border: 2px solid var(--ink); border-radius: 12px; background: #8fe3cf; }
.blog-design-mix a:nth-child(2) { background: #ffe156; }
.blog-design-mix a:nth-child(3) { background: #ffc5ba; }
.blog-design-mix a:hover strong { text-decoration: underline; }
.blog-design-mix span { font: 900 1.4rem Consolas, monospace; }
.blog-design-mix strong, .blog-design-mix small { display: block; margin-top: 8px; }
.blog-character-note { display: flex; align-items: center; gap: 20px; background: var(--paper); border: 2px dashed var(--ink); border-radius: 16px; padding: 18px; margin: 24px 0 0; }
.blog-character-note img { width: 90px; height: auto; flex: none; }
.blog-character-note p { margin: 0; }
.gallery-modal { width: min(1400px, calc(100vw - 32px)); max-width: none; height: calc(100dvh - 40px); max-height: none; padding: 0; border: 3px solid var(--ink); border-radius: 18px; background: white; color: var(--ink); }
.gallery-modal[open] { display: flex; flex-direction: column; }
.gallery-modal::backdrop { background: rgba(0, 0, 0, .7); }
.gallery-modal-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding: 14px 20px; border-bottom: 2px solid var(--ink); background: var(--yellow); }
.gallery-modal-bar h2 { font-size: 1.25rem; margin: 0; flex: 1; }
.gallery-modal-bar button { font: inherit; font-weight: 700; background: white; border: 2px solid var(--ink); border-radius: 8px; padding: 10px 14px; cursor: pointer; }
.gallery-modal iframe { width: 100%; flex: 1; min-height: 0; border: 0; }
.gallery-modal > p { padding: 12px 20px; margin: 0; }
body.gallery-open { overflow: hidden; }
@media (max-width: 600px) {
  .blog-character-studies { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .blog-article { padding-top: 28px; }
  .blog-about { grid-template-columns: 1fr; }
  .blog-personal-photo { width: min(280px, 100%); justify-self: center; }
  .blog-cast { gap: 8px; padding: 20px 8px 0; }
  .cast-dossier { padding: 12px 4px 6px; }
  .cast-dossier > span { font-size: .6rem; }
  .blog-gallery-link { grid-template-columns: 1fr; }
  .blog-gallery-link img { max-height: 160px; object-fit: cover; }
  .blog-design-mix { grid-template-columns: 1fr; }
  .blog-scene-heading { gap: 14px; }
  .blog-scene-heading img { width: 64px; height: 90px; }
  .blog-character-note { gap: 14px; }
  .blog-character-note img { width: 60px; }
  .gallery-modal { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 12px; }
  .gallery-modal-bar { padding: 12px; gap: 10px; }
  .gallery-modal-bar h2 { flex-basis: 100%; }
  .gallery-modal-bar button { flex: 1; }
}
