:root {
  --ink: #171717;
  --muted: #6f6b65;
  --paper: #f7f4ee;
  --line: #d9d3c8;
  --orange: #ef5b2a;
  --yellow: #f4c84a;
  --teal: #197b78;
  --max: 1160px;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.blog-header { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.blog-nav { max-width: var(--max); min-height: 76px; margin: auto; padding: 0 24px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 200px;
  object-fit: contain;
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: .9rem; color: var(--muted); }
.nav-links a:hover, .nav-links .is-active { color: var(--orange); }
.nav-button { padding: 10px 16px; color: #fff; background: var(--ink); font-weight: 700; font-size: .85rem; border-radius: 3px; }
.nav-button:hover { background: var(--orange); }

.blog-hero { max-width: var(--max); margin: auto; padding: 56px 24px 44px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 14px; color: var(--orange); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.04; letter-spacing: -.045em; }
h1 { max-width: 720px; font-size: clamp(2.4rem, 6vw, 4.5rem); }
h1 em, h2 em { color: var(--orange); font-style: normal; }
.hero-copy { max-width: 490px; margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; }
.hero-stamp { width: 172px; height: 172px; flex: 0 0 auto; display: grid; place-content: center; gap: 4px; text-align: center; color: var(--ink); border: 2px solid var(--ink); border-radius: 50%; transform: rotate(8deg); font: 700 .76rem var(--body); letter-spacing: .2em; }
.hero-stamp strong { font: 800 2rem var(--display); letter-spacing: -.04em; }

.blog-content { max-width: var(--max); margin: auto; padding: 48px 24px 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-note { max-width: 200px; margin: 0; color: var(--muted); text-align: right; }
.filter-bar { margin: 36px 0 32px; border-bottom: 1px solid var(--line); }
.filter-row {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-overflow-scrolling: touch;
}
.filter-row::-webkit-scrollbar { height: 4px; }
.filter-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.filter {
  flex: 0 0 auto;
  padding: 14px 16px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: 700 .78rem var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.filter:hover { color: var(--ink); background: transparent; }
.filter.is-active {
  color: var(--orange);
  background: transparent;
  border-bottom-color: var(--orange);
}
.filter:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.filter-empty {
  display: none;
  margin: 36px 0 8px;
  padding: 56px 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 18px;
  font: 700 1.15rem var(--display);
  letter-spacing: -.02em;
}
.filter-empty.is-on { display: block; }
.story-grid.is-empty { display: none; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.story {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.story-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.story.is-off,
.story[hidden] { display: none !important; }
.story-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: #16121c;
}
.story-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.story-image:hover img { transform: scale(1.04); }
.story-featured .story-image {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}
.story-featured .story-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transform: none;
  filter: none;
}
.story-featured .story-image:hover img { transform: scale(1.03); }
.image-thunder { background: #101522; }
.image-thunder img { object-fit: cover; }
.image-chess { background: #24122f; }
.image-chess img { object-fit: cover; }
.image-brick { background: radial-gradient(circle at 50% 42%, #5a2458, #1c0d1c 68%); }
.image-brick img {
  object-fit: contain;
  padding: 22px;
  transform: none;
}

.story-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: inherit;
  overflow: hidden;
}
.cover-kicker {
  position: relative;
  z-index: 1;
  padding: 6px 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.cover-title {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #fff;
  font: 800 clamp(1.6rem, 3vw, 2.4rem) var(--display);
  letter-spacing: -.04em;
  text-align: center;
}
.story-cover .cover-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cover-ninja,
.story-featured .story-image.cover-ninja { background: radial-gradient(circle at 20% 20%, #5a1d1d, #140c10 62%); }
.cover-bounce { background: linear-gradient(160deg, #f07a1a 0%, #b42318 48%, #2b1408 100%); }
.cover-bubble { background: radial-gradient(circle at 70% 20%, #7a5cff, #2a1258 58%, #12081f 100%); }
.cover-candy { background: linear-gradient(135deg, #ff7eb6 0%, #ff5470 40%, #7b2d8e 100%); }
.cover-slash, .cover-orb, .cover-tile {
  position: absolute;
  pointer-events: none;
}
.cover-slash {
  width: 140%;
  height: 8px;
  top: 46%;
  left: -20%;
  background: linear-gradient(90deg, transparent, #f4c84a, #fff, #f4c84a, transparent);
  transform: rotate(-18deg);
  box-shadow: 0 0 24px #f4c84a;
}
.cover-orb {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff7, #fff0);
  border: 2px solid rgba(255,255,255,.35);
}
.cover-orb.o1 { width: 92px; height: 92px; top: 18%; left: 12%; background: radial-gradient(circle at 30% 30%, #ffd36a, #e4572e); }
.cover-orb.o2 { width: 54px; height: 54px; right: 16%; bottom: 18%; background: radial-gradient(circle at 30% 30%, #fff, #c9a227); }
.cover-orb.o3 { width: 70px; height: 70px; top: 22%; left: 14%; background: radial-gradient(circle at 30% 30%, #f4b5ff, #6d3bff); }
.cover-orb.o4 { width: 46px; height: 46px; right: 18%; top: 28%; background: radial-gradient(circle at 30% 30%, #9be7ff, #3558ff); }
.cover-orb.o5 { width: 38px; height: 38px; left: 22%; bottom: 16%; background: radial-gradient(circle at 30% 30%, #ffe08a, #ff5d8f); }
.cover-tile {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
}
.cover-tile.t1 { top: 22%; left: 16%; background: #ff6b9d; }
.cover-tile.t2 { top: 38%; right: 18%; background: #ffd166; }
.cover-tile.t3 { bottom: 20%; left: 28%; background: #7bdff2; }

.catalog {
  max-width: var(--max);
  margin: auto;
  padding: 0 24px 96px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.catalog-card strong { font: 800 1.05rem var(--display); letter-spacing: -.03em; }
.catalog-card span { color: var(--muted); font-size: .82rem; }
.catalog-card a { color: var(--orange); font-size: .8rem; font-weight: 800; }
.store-links { display: flex; flex-wrap: wrap; gap: 12px; }

body.is-post { background: #efece6; }
.post-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 24px 88px;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.post-back:hover { color: var(--orange); }
.post-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  height: auto;
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 18px;
  background: #16121c;
  box-shadow: 0 18px 40px rgba(23, 23, 23, .08);
}
.post-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-cover.image-brick {
  background: radial-gradient(circle at 50% 42%, #5a2458, #1c0d1c 68%);
}
.post-cover.image-brick img,
.post-cover.image-thunder img {
  object-fit: contain;
  padding: 28px;
}
.post-cover.image-chess img { object-fit: cover; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.post-meta span {
  padding: 5px 10px;
  color: var(--orange);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .68rem;
}
.post-wrap h1 {
  max-width: 18ch;
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -.03em;
  overflow-wrap: break-word;
}
.post-lead {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.post-body {
  margin-top: 28px;
  padding: 28px 30px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.post-body p { margin: 0 0 16px; font-size: 1.02rem; color: #3b3936; }
.post-body a { color: var(--orange); font-weight: 700; }
.post-body a:hover { text-decoration: underline; }
.post-body h2 { margin: 26px 0 12px; font-size: 1.28rem; letter-spacing: -.03em; }
.post-body ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.post-body li {
  position: relative;
  margin: 0 0 10px;
  padding: 12px 14px 12px 36px;
  color: #4b4844;
  background: var(--paper);
  border-radius: 10px;
}
.post-body li:before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}
.post-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.post-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: .85rem;
  font-weight: 800;
  border-radius: 8px;
}
.post-cta .btn-play { color: #fff; background: var(--ink); }
.post-cta .btn-play:hover { background: var(--orange); }
.post-cta .btn-soft { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.post-cta .btn-soft:hover { border-color: var(--ink); }
.post-related { margin-top: 36px; }
.post-related h2 { margin-bottom: 14px; font-size: 1.2rem; }
.post-related ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-related li { margin: 0; }
.post-related a {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  font-size: .92rem;
}
.post-related a:hover { color: var(--orange); border-color: var(--orange); }
.story-arrow { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); background: var(--yellow); border-radius: 50%; font-size: 1.2rem; }
.story-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.story-featured .story-body { padding: 28px 28px 28px 8px; justify-content: center; }
.story-meta { display: flex; gap: 12px; margin-bottom: 10px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.story-meta span { color: var(--orange); text-transform: uppercase; letter-spacing: .06em; }
.story h3 { max-width: none; font-size: 1.28rem; line-height: 1.22; letter-spacing: -.03em; }
.story-featured h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.story:not(.story-featured) h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.44em;
  font-size: 1.22rem;
}
.story h3 a:hover { color: var(--orange); }
.story p { max-width: none; margin: 10px 0 16px; color: var(--muted); font-size: .95rem; }
.story:not(.story-featured) p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.85em;
  margin: 8px 0 14px;
}
.story-featured p { font-size: 1rem; }
.read-link { margin-top: auto; color: var(--ink); font-size: .85rem; font-weight: 800; }
.read-link span { color: var(--orange); font-size: 1.1rem; }
.read-link:hover { color: var(--orange); }

.studio-note { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 74px max(24px, calc((100vw - var(--max)) / 2 + 24px)); color: #fff; background: var(--teal); }
.studio-note h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
.studio-note > p { max-width: 420px; align-self: end; margin: 0; color: rgba(255,255,255,.78); font-size: 1.05rem; }
.blog-footer {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 38px max(24px, calc((100vw - var(--max)) / 2 + 24px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 30px;
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
}
.blog-footer > div { display: flex; gap: 20px; color: var(--muted); font-size: .85rem; }
.blog-footer > div a:hover { color: var(--orange); }
.blog-footer p { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

@media (max-width: 760px) {
  .blog-nav { min-height: 68px; padding: 0 18px; gap: 16px; }
  .nav-links { display: none; }
  .nav-button { margin-left: auto; }
  .blog-hero { min-height: 0; padding: 60px 18px 56px; align-items: flex-start; }
  .hero-stamp { width: 112px; height: 112px; }
  .hero-stamp strong { font-size: 1.35rem; }
  .hero-stamp span { font-size: .55rem; }
  .blog-content { padding: 56px 18px 72px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-note { text-align: left; }
  .story-grid, .story-featured { grid-template-columns: 1fr; gap: 18px; }
  .story-featured { padding-bottom: 0; }
  .story-featured .story-image { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .story-featured .story-body { padding: 18px 18px 20px; }
  .story-image, .story-image img { min-height: 0; }
  .filter { padding: 12px 12px 10px; font-size: .72rem; letter-spacing: .06em; }
  .catalog { padding: 0 18px 72px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .post-wrap { padding: 22px 16px 64px; }
  .post-cover { border-radius: 14px; }
  .post-wrap h1 { max-width: none; font-size: 1.7rem; }
  .post-body { padding: 20px 18px 6px; }
  .post-related a { padding: 12px 14px; }
  .studio-note { grid-template-columns: 1fr; gap: 24px; padding: 56px 18px; }
  .blog-footer { grid-template-columns: 1fr; padding: 30px 18px; }
  .blog-footer > div { flex-wrap: wrap; }
}

@media (max-width: 980px) {
  .catalog-grid { grid-template-columns: 1fr 1fr; }
}
