.blog-skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 70;
  background: #fff;
  color: var(--foreground);
  padding: 8px 12px;
  border-radius: 8px;
}

.blog-skip:focus {
  top: 12px;
}

.blog-header .blog-bar {
  min-height: 70px;
  height: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}

.blog-nav {
  gap: 12px 28px;
}

.blog-nav a:focus-visible,
.blog-sub a:focus-visible,
.blog-body a:focus-visible,
.blog-choices a:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 3px;
}

.blog-wrap {
  max-width: 760px;
}

.blog-wrap h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.blog-kicker {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mint-deep);
}

.blog-kicker a,
.blog-note a,
.blog-translation a,
.blog-body a {
  color: var(--mint-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-deck,
.blog-meta,
.blog-empty,
.blog-note {
  color: var(--muted);
  line-height: 1.8;
}

.blog-meta {
  margin-top: 12px;
  font-size: 0.9rem;
}

.blog-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.blog-sub a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--charcoal);
  background: #fff;
}

.blog-sub a[aria-current="page"] {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--mint-deep);
  font-weight: 700;
}

.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.post-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.post-card:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 3px;
}

.media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f3f1ec;
}

.media-frame img,
.blog-body img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: #f3f1ec;
}

/* 16:9 illustrations fill the frame. Portrait screenshots stay fully visible inside it. */
.media-frame img.media-landscape {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-frame img.media-portrait {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.blog-body img {
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.blog-body img.media-portrait {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.blog-body img.media-landscape {
  height: auto;
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.blog-body img.app-screen,
.blog-body img[src$="app-screen.png"],
.blog-body img[src$="app-screen.en.png"] {
  display: block;
  margin: 1.5rem auto;
  width: 300px;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.blog-body a.app-icon-link {
  display: inline-block;
  margin: 0.75rem 0 0.35rem;
  line-height: 0;
  text-decoration: none;
  vertical-align: middle;
}

.blog-body img.app-icon {
  display: inline-block;
  width: 68px;
  height: 68px;
  max-width: 68px;
  aspect-ratio: 1;
  margin: 0;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  vertical-align: middle;
}

.blog-date {
  margin: 8px 0 16px;
  text-align: right;
  color: var(--muted);
  font-size: 0.9rem;
}

.play-badge {
  display: inline-block;
  margin-top: 16px;
  line-height: 0;
}

.play-badge-img {
  display: block;
  width: auto;
  height: 60px;
  max-width: 100%;
}

.posts h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.posts h2 a:hover {
  color: var(--mint-deep);
}

.posts time,
.posts p {
  color: var(--muted);
}

.blog-body {
  font-size: 1.02rem;
  line-height: 1.8;
}

.blog-body h2,
.blog-body h3 {
  margin: 1.6rem 0 0.6rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.35;
}

.blog-body h2 { font-size: 1.35rem; }
.blog-body h3 { font-size: 1.15rem; }

.blog-body p,
.blog-body ul,
.blog-body ol,
.blog-body blockquote,
.blog-body pre {
  margin: 0.85rem 0;
}

.blog-body ul,
.blog-body ol {
  padding-left: 1.25rem;
}

.blog-body ul {
  list-style: disc outside;
}

.blog-body ol {
  list-style: decimal outside;
}

.blog-body li {
  display: list-item;
}

.blog-body strong {
  font-weight: 800;
}

.blog-body small {
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-body blockquote {
  border-left: 3px solid var(--mint);
  padding-left: 1rem;
  color: var(--muted);
}

.blog-body pre {
  overflow: auto;
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.blog-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.blog-wrap aside {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 20px 24px;
}

.blog-wrap aside a {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 700;
  color: var(--mint-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-translation {
  margin-top: 28px;
}

.blog-choices {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.blog-choices a {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--mint-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-choices p {
  margin: 6px 0 0;
  color: var(--muted);
}
