/*
Theme Name: CoceBase008
Description: 自作ゲームを紹介するための、明るくシンプルなブログテーマ。
Version: 2.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: CoceBase008
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Layout uses Tailwind CDN. These rules style the theme and WordPress-generated content. */
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ---------- Design tokens ---------- */
:root {
  --page: #ffffff;
  --ink: #101c16;
  --ink-muted: #59675f;
  --line: #e1e8e3;
  --line-strong: #b9c4be;
  --accent: #006b4f;
  --accent-hover: #00553f;
  --on-accent: #ffffff;
  --article-marker: #ffe36c;
  --screen: #0f1a15;
  --heading-leading: 1.4;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Inter Tight", "Noto Sans JP", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans JP", ui-monospace, monospace;
  --gut: 32px;
  --img-l: 25%;
}
@media (max-width: 1279px) { :root { --img-l: 34%; --gut: 28px; } }
@media (max-width: 767px) { :root { --gut: 20px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
h1, h2, h3, h4, h5, h6 { line-height: var(--heading-leading) !important; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text:focus { clip-path: none; width: auto; height: auto; top: 12px; left: 12px; padding: 12px 20px; z-index: 100000; background: var(--accent); color: #fff; }
.ph { display: inline-block; }
.wrap { padding-left: var(--gut); padding-right: var(--gut); }
section[id], #genres { scroll-margin-top: 24px; }

/* ---------- Shared type and controls ---------- */
.k { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); letter-spacing: .06em; line-height: 1.5; }
.label { font-size: 13px; color: var(--ink-muted); letter-spacing: .04em; }
.date { font-family: var(--font-mono); font-size: 14px; letter-spacing: .02em; }
.icon { width: 1em; height: 1em; flex: 0 0 auto; }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px; background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 15px; border-radius: 2px; transition: background .2s; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); }
.btn .icon { font-size: 12px; }
.tlink { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; font-size: 14px; white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 2px; line-height: 1.4; }
.tlink:hover { color: var(--accent-hover); }
.tlink .icon { font-size: 11px; }
.live, .wip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.live::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.wip { color: var(--ink-muted); }
.wip::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--ink-muted); }

/* ---------- Header: a grid of menu names ---------- */
.hdr { display: grid; grid-template-columns: 140px minmax(0, 1fr) 160px; border-bottom: 1px solid var(--line); background: #fff; }
.hcell { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 84px; padding: 0 20px; border-right: 1px solid var(--line); }
.hcell:first-child { padding-left: var(--gut); }
.hcell:last-child { border-right: 0; padding-right: var(--gut); }
.wordmark { font-family: var(--font-en); font-weight: 600; font-size: 28px; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.custom-logo { width: auto; max-width: 220px; max-height: 44px; }
.hdr-nav { display: flex; }
.hdr-nav ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; margin: 0; padding: 0; list-style: none; }
.hdr-nav li { display: flex; border-right: 1px solid var(--line); }
.hdr-nav a { display: flex; align-items: center; width: 100%; min-height: 84px; padding: 0 20px; font-size: 16px; font-weight: 500; transition: color .2s; white-space: nowrap; }
.hdr-nav a:hover, .hdr-nav .current-menu-item > a { color: var(--accent); }
.status-cell .date { font-weight: 500; }
.nav-m { display: none; }

/* ---------- Site intro ---------- */
.intro { display: flex; align-items: baseline; gap: 8px 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
#hero-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .02em; }
#hero-title span { display: inline; }
.intro p { margin: 0; color: var(--ink-muted); font-size: 15px; white-space: pre-line; }
.play-scene-custom { border-bottom: 1px solid var(--line); }
.play-scene-custom img { width: 100%; max-height: 420px; object-fit: cover; }

/* ---------- Newest game: image and a name that crosses white and image ---------- */
.hero { position: relative; height: clamp(520px, 64vh, 620px); }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: var(--img-l); background: var(--screen); overflow: hidden; z-index: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 42%; }
.name-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.name-layer.on-img { clip-path: inset(0 0 0 var(--img-l)); z-index: 3; }
.hero-name { position: absolute; left: calc(var(--gut) - .05em); bottom: -.035em; margin: 0; font-family: var(--font-en); font-weight: 600; letter-spacing: -.055em; line-height: .74; font-size: min(16vw, 220px, calc((100vw - 2 * var(--gut)) / var(--name-w, 4))); white-space: nowrap; color: var(--ink); }
.on-img .hero-name { color: #fff; }
.hero-side { position: absolute; top: 0; left: 0; width: var(--img-l); padding: 26px 32px 0 var(--gut); background: #fff; z-index: 4; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hero-meta > .label { flex-shrink: 0; white-space: nowrap; }
.hero-genre { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; max-width: 100%; }
.hero-genre > span { white-space: nowrap; }
.hero-genre > span + span::before { content: "/"; padding-right: 10px; }
.hero-meta > .date { font-size: 13px; white-space: nowrap; }
.hero-sub { margin: 22px 0 0; font-size: 22px; font-weight: 700; line-height: 1.55; letter-spacing: .01em; }
.hero-ex { margin: 12px 0 0; color: var(--ink-muted); font-size: 14.5px; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }

/* ---------- The game before the newest: a wide image band ---------- */
.band { display: grid; grid-template-columns: 3fr 9fr; margin-top: 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-info { display: flex; flex-direction: column; padding: 30px 32px 32px var(--gut); }
.band-name { margin: 26px 0 0; font-family: var(--font-en); font-weight: 500; font-size: clamp(36px, 3.8vw, 56px); letter-spacing: -.045em; line-height: 1 !important; overflow-wrap: anywhere; }
.band-name a:hover { color: var(--accent); }
.band-sub { margin: 14px 0 0; font-size: 16px; font-weight: 500; }
.band-go { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: auto; padding-top: 28px; }
.band-media { position: relative; display: block; min-height: 360px; background: var(--screen); overflow: hidden; }
.band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* ---------- Section heads ---------- */
.sec { margin-top: 140px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.sec-head h2, .sec-head h1 { margin: 4px 0 0; font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.archive-main { margin-top: 48px; }
.archive-head { margin-top: 28px; }
.sec-head .archive-desc { margin-top: 8px; color: var(--ink-muted); }

/* ---------- Game index ---------- */
.tools { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px 24px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.tab { position: relative; display: inline-block; padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--ink-muted); }
.tab:hover, .tab.is-current { color: var(--ink); }
.tab.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.library-search { display: flex; align-items: center; gap: 10px; width: 220px; height: 38px; margin: 0; border-bottom: 1px solid var(--line-strong); }
.library-search:focus-within { border-color: var(--accent); }
.library-search label { font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.library-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 15px; outline: none; appearance: none; -webkit-appearance: none; }
.library-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.library-search button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 16px; }

.list { margin: 0; padding: 0; list-style: none; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 24px; align-items: center; padding: 38px 0; border-bottom: 1px solid var(--line); }
.r-thumb { display: none; }
.r-title h2, .r-title h3 { margin: 0; font-family: var(--font-en); font-weight: 500; font-size: clamp(36px, 5.6vw, 88px); letter-spacing: -.045em; line-height: 1 !important; transition: color .2s; overflow-wrap: anywhere; }
.r-title a:hover { color: var(--accent); }
.r-sub { margin: 14px 0 0; font-size: 15px; color: var(--ink-muted); }
.r-cell { font-size: 14px; }
.r-date { font-family: var(--font-mono); }
.r-go { text-align: right; }
.m-meta { display: none; }
/* Game screens are part of the list, with fixed places for choosing and playing. */
.row-game { grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); grid-template-areas: "th ti" "th go"; align-items: stretch; column-gap: 40px; row-gap: 24px; padding: 32px 0; }
.row-game .r-thumb { display: block; grid-area: th; position: relative; overflow: hidden; background: var(--line); }
.row-game .r-thumb::before { content: ""; display: block; padding-top: 62.5%; }
.row-game .r-thumb a { position: absolute; inset: 0; display: block; }
.row-game .r-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.row-game .r-title { grid-area: ti; min-width: 0; align-self: center; }
.row-game .r-title h2, .row-game .r-title h3 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.1 !important; }
.row-game .m-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 18px; color: var(--ink-muted); font-size: 13px; }
.row-game .m-meta .date { font-size: 13px; }
.row-game .r-go { display: flex; grid-area: go; align-items: center; align-self: end; flex-wrap: wrap; gap: 16px 28px; text-align: left; }
.row-game .r-summary { margin: 16px 0 0; max-width: 64ch; font-size: 15px; line-height: 1.9; color: var(--ink-muted); overflow-wrap: anywhere; }
.row-game .r-go .btn { min-width: 120px; justify-content: center; }
.more { margin-top: 22px; font-size: 13px; color: var(--ink-muted); }
.more summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { color: var(--ink); }
.more ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; padding: 0; list-style: none; }
.more a:hover { color: var(--accent); }
.empty-state { padding: 64px 0; color: var(--ink-muted); }
.empty-state .library-search { margin-top: 24px; }

/* ---------- Reading: permanent thumbnails and aligned editorial cards ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 18px; }
.entry { display: grid; grid-template-rows: auto auto auto 1fr auto; grid-row: span 5; row-gap: 18px; min-width: 0; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
@supports (grid-template-rows: subgrid) { .entry { grid-template-rows: subgrid; } }
.entry-visual { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.entry .thumb { display: block; width: 100%; height: 100%; }
.entry .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.entry-date { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.entry h2, .entry h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.025em; line-height: 1.5 !important; overflow-wrap: anywhere; }
.entry h2 a:hover, .entry h3 a:hover { color: var(--accent); }
.entry .ex { margin: 0; font-size: 15px; line-height: 1.9; color: var(--ink-muted); }
.entry-action { padding-top: 6px; }
.entry .tlink { margin: 0; }
.row-article { grid-template-columns: minmax(160px, 22%) minmax(0, 1fr) 8rem 7rem 7rem; }
.row-article::before { display: none; }
.row-article .r-thumb { display: block; align-self: stretch; min-height: 160px; overflow: hidden; position: relative; background: var(--line); }
.row-article .r-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row-article .r-title h2, .row-article .r-title h3 { font-family: inherit; font-size: 24px; letter-spacing: -.025em; line-height: 1.5 !important; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer: the site name closes the page ---------- */
.ftr { margin-top: 160px; border-top: 1px solid var(--ink); }
.f-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px 48px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 40px; }
.f-main p { margin: 0; color: var(--ink-muted); max-width: 30em; white-space: pre-line; }
.f-nav ul { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; }
.f-nav a:hover { color: var(--accent); }
.f-word { margin: 0; padding: 0 0 0 calc(var(--gut) - .04em); font-family: var(--font-en); font-weight: 600; font-size: min(calc((100vw - 2 * var(--gut)) / var(--word-w, 5.6)), 250px); letter-spacing: -.065em; line-height: .76; white-space: nowrap; overflow: hidden; }
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; color: var(--ink-muted); }
.f-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; min-width: 0; font-size: 14px; }
.f-meta a:hover { color: var(--accent); }
.back-to-top { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; background: var(--accent); color: var(--on-accent); transition: background .2s; }
.back-to-top .icon { width: 20px; height: 20px; }
.back-to-top:hover { background: var(--accent-hover); }
.back-to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- Article and page ---------- */
.article-shell { width: min(100% - 2 * var(--gut), 820px); margin: 0 auto; padding-top: 48px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 13px; }
.back-link:hover { color: var(--accent); }
.back-link .icon { transform: rotate(180deg); font-size: 11px; }
.article-head { margin-top: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.article-meta a { font-size: 14px; font-weight: 500; color: var(--accent); }
.article-head h1 { margin: 16px 0 0; font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: .01em; word-break: auto-phrase; }
.article-visual { position: relative; display: block; margin-top: 32px; background: var(--screen); overflow: hidden; }
.article-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.article-cta { margin-top: 64px; padding: 40px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.article-cta p { margin: 0 0 20px; font-size: 20px; font-weight: 700; }
.article-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; color: var(--ink-muted); font-size: 13px; }
.not-found { width: min(100% - 2 * var(--gut), 640px); margin: 0 auto; padding-top: 96px; }
.not-found-code { margin: 0; font-family: var(--font-en); font-weight: 600; font-size: 120px; letter-spacing: -.06em; line-height: .8; }
.not-found h1 { margin: 32px 0 0; font-size: 24px; font-weight: 700; }
.not-found p { margin: 12px 0 28px; color: var(--ink-muted); }
.not-found .library-search { width: 100%; max-width: 360px; margin-bottom: 32px; }

/* ---------- Article body ---------- */
.entry-content { margin-top: 48px; color: var(--ink); font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); font-weight: 700; margin-top: 2.4em; margin-bottom: .8em; }
.entry-content h2 { font-size: 1.5em; padding-bottom: .6em; border-bottom: 1px solid var(--line); }
.entry-content h3 { font-size: 1.2em; }
.entry-content a:not(.wp-block-button__link) { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
/* A broad yellow stroke distinguishes emphasis from underlined links. */
.entry-content mark.article-marker,
.entry-content u {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  background-color: transparent;
  background-image: linear-gradient(transparent 56%, var(--article-marker) 56%, var(--article-marker) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.entry-content a mark.article-marker,
.entry-content a u { background: none; }

.entry-content ul { list-style: disc; padding-left: 1.5em; }
.entry-content ol { list-style: decimal; padding-left: 1.5em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img, .entry-content video { max-width: 100%; height: auto; }
.entry-content iframe, .entry-content figure { max-width: 100%; }
.entry-content figcaption, .wp-caption-text { margin-top: .6em; font-size: 13px; color: var(--ink-muted); }
.entry-content blockquote { margin-left: 0; border-left: 2px solid var(--accent); padding: .5em 1.5em; background: #f2f5f3; }
.entry-content pre { max-width: 100%; overflow: auto; padding: 1.2em; background: #f2f5f3; border: 1px solid var(--line); font-size: 13px; }
.entry-content code { font-family: var(--font-mono); }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .6em 1em; text-align: left; }
.entry-content th { background: #f2f5f3; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.entry-content .wp-block-button__link { background: var(--accent); color: #fff; border-radius: 2px; padding: 1em 1.8em; font-weight: 500; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--accent-hover); }
.entry-content .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.entry-content .wp-block-embed__wrapper iframe { width: 100%; height: 100%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin-right: 1.5em; }
.entry-content .alignright { float: right; margin-left: 1.5em; }
.entry-content::after { content: ""; display: table; clear: both; }

/* ---------- Comments ---------- */
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5em; }
.comment-body { border-bottom: 1px solid var(--line); padding: 1.5em 0; font-size: 14px; line-height: 1.9; }
.comment-author .avatar { display: inline-block; margin-right: 8px; border-radius: 50%; }
.comment-metadata, .reply { font-size: 13px; color: var(--accent); }
.comment-content { margin: 1em 0; overflow-wrap: anywhere; }
.comment-form p { margin: 1em 0; }
.comment-form label { display: block; margin-bottom: .5em; font-size: 13px; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea, .post-password-form input[type="password"] { width: 100%; background: #fff; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 2px; padding: 12px; }
.comment-form input[type="submit"], .post-password-form input[type="submit"] { background: var(--accent); color: #fff; padding: 14px 28px; border: 0; border-radius: 2px; font-weight: 500; cursor: pointer; }
.comment-form-cookies-consent label { display: inline; margin-left: 8px; }
.comment-reply-title { font-size: 20px; margin-top: 2em; }
.comment-notes, .logged-in-as { color: var(--ink-muted); font-size: 13px; }

/* ---------- Motion: rows and entries move in, never turn transparent ---------- */
[data-reveal] { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].reveal-pending { transform: translateY(20px); }
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; transition: none !important; }
[data-motion="off"] { scroll-behavior: auto; }
[data-motion="off"] [data-reveal] { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal].reveal-pending { transform: none; }
}

/* ---------- 1024-1279 ---------- */
@media (max-width: 1279px) {
  .hdr { grid-template-columns: 140px minmax(0, 1fr); }
  .status-cell { display: none; }
  .hdr-nav li:last-child { border-right: 0; }
  .hdr-nav a { padding-right: 16px; padding-left: 16px; }
  .band { grid-template-columns: 4fr 8fr; }
}

/* ---------- Tablet and phone: image on top, the name crosses it, details below ---------- */
@media (max-width: 1023px) {
  .hdr { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 18px var(--gut); }
  .hcell, .hdr-nav { display: none; }
  .hcell.wm { display: flex; min-height: 0; padding: 0; border: 0; }
  .nav-m { display: block; }
  .nav-m summary { cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; }
  .nav-m ul { position: absolute; top: 100%; right: 0; left: 0; display: grid; gap: 4px; margin: 0; padding: 20px var(--gut); border-bottom: 1px solid var(--line); background: #fff; list-style: none; font-size: 15px; font-weight: 500; }
  .nav-m a { display: block; padding: 10px 0; white-space: nowrap; }
  .hero { --mh: 56vw; --nm: min(26vw, 170px); height: auto; }
  .hero-media { position: relative; left: 0; height: var(--mh); }
  .name-layer.on-img { clip-path: inset(0 0 calc(100% - var(--mh)) 0); }
  .hero-name { top: calc(var(--mh) - .4em); bottom: auto; font-size: min(var(--nm), calc((100vw - 2 * var(--gut)) / var(--name-w, 4))); }
  .hero-side { position: relative; width: auto; max-width: 720px; padding: calc(var(--nm) * .42 + 20px) var(--gut) 0; background: transparent; }
  .hero-meta { border-bottom: 0; padding-bottom: 0; }
  .band { grid-template-columns: 1fr; }
  .band-media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .row-article { grid-template-columns: minmax(160px, 26%) minmax(0, 1fr) 7rem; }
  .row-article > .r-cell { display: none; }
}
@media (max-width: 767px) {
  .wordmark { font-size: 24px; }
  .intro { display: block; padding-top: 14px; padding-bottom: 18px; }
  #hero-title { font-size: 22px; }
  .intro p { margin-top: 2px; font-size: 14px; }
  .hero { --mh: 58vw; --nm: min(24vw, 140px); }
  .hero-sub { margin-top: 12px; font-size: 19px; }
  .hero-act .btn { flex: 1 1 auto; justify-content: center; }
  .band { margin-top: 80px; }
  .band-info { padding: 22px var(--gut) 26px; }
  .band-name { margin-top: 16px; }
  .sec { margin-top: 96px; }
  .sec-head { padding-bottom: 18px; }
  .sec-head h2, .sec-head h1 { font-size: 24px; }
  .tools { width: 100%; gap: 16px; }
  .library-search { width: 100%; }
  .row { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "th ti" "th me" "go go"; column-gap: 16px; row-gap: 10px; padding: 24px 0; align-items: start; }
  .r-thumb { display: block; grid-area: th; aspect-ratio: 1; overflow: hidden; background: var(--screen); }
  .r-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .r-title { grid-area: ti; }
  .r-title h2, .r-title h3 { font-size: clamp(26px, 8vw, 36px); }
  .r-sub { margin-top: 6px; font-size: 14px; }
  .row > .r-cell { display: none; }
  .m-meta { display: flex; grid-area: me; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-muted); }
  .m-meta .date { font-size: 13px; }
  .r-go { grid-area: go; text-align: left; }
  .row-game { grid-template-columns: minmax(0, 1fr); grid-template-areas: "th" "ti" "go"; row-gap: 22px; padding: 28px 0; }
  .row-game .r-thumb { aspect-ratio: 16 / 10; }
  .row-game .r-thumb::before { display: none; }
  .row-game .r-title h2, .row-game .r-title h3 { font-size: clamp(36px, 10vw, 56px); }
  .row-game .m-meta { margin-bottom: 14px; }
  .row-game .r-sub { margin-top: 12px; font-size: 15px; }
  .row-game .r-go { gap: 16px 24px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .entry { padding-bottom: 32px; }
  .entry h2, .entry h3 { font-size: 22px; }
  .row-article .r-thumb { aspect-ratio: 1; min-height: 0; }
  .row-article .r-title h2, .row-article .r-title h3 { font-size: 21px; }
  .ftr { margin-top: 112px; }
  .f-main { flex-direction: column; padding-top: 28px; padding-bottom: 32px; }
  .f-nav ul { gap: 12px 22px; }
  .f-meta { flex-direction: column; align-items: flex-start; }
  .article-shell { padding-top: 32px; }
  .not-found { padding-top: 64px; }
  .not-found-code { font-size: 88px; }
}
