/* =========================================================================
   Design tokens — lifted from the Blog Mockups design file.
   ========================================================================= */

:root {
  --ink: #212121;
  --muted: #616161;
  --faint: #9e9e9e;
  --line: #e0e0e0;
  --line-soft: #f0f0f0;
  --surface: #ffffff;
  --surface-alt: #fafafa;

  --deep: #28034e;
  --accent: #fec02d;
  --link: #731dcf;
  --link-hover: #4b1583;
  --link-tint: #f3edf9;

  --green: #1a872c;
  --green-bg: #e6f4e7;
  --green-line: #c3e4c4;
  --amber: #99631b;
  --amber-bg: #fff7e5;
  --amber-line: #ffeabe;

  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;

  --shell: 1160px;
  --gutter: 40px;
  --header-h: 64px;

  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* =========================================================================
   Reset & base
   ========================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* This site never sets type in italics. Emphasis is carried by weight. */
em,
i,
cite,
dfn,
var,
address,
blockquote,
figcaption {
  font-style: normal;
}

em,
i {
  font-weight: 600;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* =========================================================================
   Shared primitives
   ========================================================================= */

.section {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px var(--gutter) 40px;
  border-bottom: 1px solid var(--line);
}

main > .section:last-child,
main > *:last-child .section:last-child {
  border-bottom: 0;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section__head--tight {
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.section__title {
  margin: 0;
  font: 600 15px/20px var(--sans);
  color: var(--ink);
}

/* A section heading standing on its own still needs to clear what follows. */
.section > .section__title {
  margin-bottom: 20px;
}

.kicker,
.mono-meta {
  margin: 0;
  font: 400 12px/16px var(--mono);
  color: var(--faint);
  letter-spacing: 0.01em;
}

.grid {
  display: grid;
  gap: 28px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--apps {
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 14px/1 var(--sans);
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--deep);
  color: #fff;
}

.btn--primary:hover {
  background: #3b0a6d;
  color: #fff;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.btn--ghost:hover {
  background: var(--surface-alt);
  border-color: #cfcfcf;
  color: var(--ink);
}

.link-arrow {
  font: 600 13px/20px var(--sans);
  color: var(--link);
}

.link-arrow--lg {
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  font: 400 12px/16px var(--sans);
  padding: 4px 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.chip--tag {
  color: var(--link);
  background: var(--link-tint);
}

.chip--tag:hover {
  background: #e8dcf5;
  text-decoration: none;
}

.chip--outline {
  color: var(--muted);
  border-color: var(--line);
  padding: 2px 7px;
  font-size: 11px;
}

.chip--accent {
  color: var(--amber);
  background: var(--amber-bg);
  border-color: var(--amber-line);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
}

.chip--success {
  color: var(--green);
  background: var(--green-bg);
  border-color: var(--green-line);
  font-size: 11px;
  padding: 2px 7px;
}

.chips--filter {
  gap: 6px;
}

.chip--filter {
  background: none;
  border-color: var(--line);
  color: var(--muted);
  padding: 3px 9px;
  font-weight: 400;
}

.chip--filter:hover {
  background: var(--surface-alt);
}

.chip--filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 600;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--link-tint);
  color: var(--link);
  font: 600 13px/1 var(--sans);
  flex: none;
}

.avatar--lg {
  width: 52px;
  height: 52px;
  font-size: 17px;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.table-scroll table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

.table-scroll th,
.table-scroll td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

.table-scroll th {
  background: var(--surface-alt);
  font-weight: 600;
}

.table-scroll tr:last-child td {
  border-bottom: 0;
}

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--accent);
  font: 700 14px/1 var(--sans);
}

.brand__name {
  font: 600 15px/20px var(--sans);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav__link {
  font: 400 14px/20px var(--sans);
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav__link:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-nav__link.is-active {
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.site-nav--mobile {
  display: none;
}

.progress {
  position: sticky;
  top: var(--header-h);
  z-index: 39;
  height: 3px;
  background: var(--line-soft);
}

.progress__bar {
  width: 0;
  height: 3px;
  background: var(--accent);
}

/* =========================================================================
   Home — masthead, featured, cards, archive rows
   ========================================================================= */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  padding-top: 56px;
}

.masthead--compact {
  padding-top: 48px;
  padding-bottom: 32px;
  align-items: flex-end;
}

.masthead__text {
  max-width: 640px;
}

.masthead__title {
  margin: 0 0 12px;
  font: 600 34px/42px var(--sans);
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.masthead__intro {
  margin: 0;
  font: 400 16px/26px var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}

.stats {
  display: flex;
  gap: 32px;
  margin: 0;
  padding-bottom: 6px;
}

.stats__item {
  text-align: left;
}

.stats__value {
  font: 600 22px/28px var(--sans);
  color: var(--ink);
}

.stats__label {
  margin: 0;
  font: 400 12px/16px var(--sans);
  color: var(--faint);
}

.featured__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.featured__grid {
  display: grid;
  grid-template-columns: minmax(0, 600px) 1fr;
  gap: 36px;
  align-items: start;
}

.featured__media {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.featured__cover {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.featured__body {
  padding-top: 4px;
}

.featured__title {
  margin: 0 0 14px;
  font: 600 30px/38px var(--sans);
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.featured__title a {
  color: var(--ink);
}

.featured__title a:hover {
  color: var(--link);
  text-decoration: none;
}

.featured__excerpt {
  margin: 0 0 20px;
  font: 400 16px/26px var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}

.featured__body .chips {
  margin-bottom: 24px;
}

.card {
  display: flex;
  flex-direction: column;
}

.card__link,
.card--compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
}

.card__link:hover,
.card--compact:hover {
  text-decoration: none;
  color: inherit;
}

.card__cover {
  width: 100%;
  height: 184px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.card__title {
  margin: 0;
  font: 600 18px/26px var(--sans);
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.card__link:hover .card__title,
.card--compact:hover .card__title {
  color: var(--link);
}

.card__excerpt {
  margin: 0;
  font: 400 14px/22px var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}

.card--compact {
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card--compact .card__cover {
  height: 130px;
  border-radius: 0;
}

.card--compact .card__body {
  padding: 14px 16px 16px;
}

.card--compact .card__title {
  margin-top: 6px;
  font-size: 15px;
  line-height: 22px;
}

.rows {
  display: block;
}

.row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 14px 10px;
  margin: 0 -10px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: inherit;
}

.row:hover {
  background: var(--surface-alt);
  text-decoration: none;
  color: inherit;
}

.row:hover .row__title {
  color: var(--link);
}

.row:last-child {
  border-bottom: 0;
}

.row__date {
  font: 400 12px/20px var(--mono);
  color: var(--faint);
}

.row__title {
  font: 500 15px/22px var(--sans);
  color: var(--ink);
  text-wrap: pretty;
}

.row__meta {
  font: 400 12px/20px var(--sans);
  color: var(--faint);
  white-space: nowrap;
}

.rows__more {
  margin: 20px 0 0;
}

.rows__empty {
  margin: 20px 0 0;
  font: 400 14px/22px var(--sans);
  color: var(--faint);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.pagination__status {
  font: 400 13px/20px var(--sans);
  color: var(--faint);
}

/* --- home two-column block ------------------------------------------- */

.with-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 48px;
  padding-top: 32px;
  padding-bottom: 44px;
}

.with-rail__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.panel--bare {
  border: 0;
  padding: 0;
}

.panel--divided {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 20px 0 0;
}

.panel__title {
  margin: 0 0 6px;
  font: 600 14px/20px var(--sans);
  color: var(--ink);
}

.panel__title--sm {
  font-size: 13px;
  line-height: 18px;
}

.panel__text {
  margin: 0 0 14px;
  font: 400 13px/20px var(--sans);
  color: var(--muted);
}

.topics {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topics a {
  display: flex;
  justify-content: space-between;
  font: 400 13px/24px var(--sans);
  color: var(--muted);
}

.topics a:hover {
  color: var(--link);
  text-decoration: none;
}

.topics__count {
  color: #bdbdbd;
}

.app-mini {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-mini a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.app-mini a:hover {
  text-decoration: none;
  color: inherit;
}

.app-mini__text {
  display: flex;
  flex-direction: column;
}

.app-mini__text strong {
  font: 600 13px/18px var(--sans);
  color: var(--ink);
}

.app-mini__text span {
  font: 400 12px/16px var(--sans);
  color: var(--faint);
}

.app-mini a:hover .app-mini__text strong {
  color: var(--link);
}

.app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-family: var(--sans);
  font-weight: 700;
}

.app-icon--sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
}

.app-icon--md {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 16px;
}

.app-icon--lg {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 22px;
}

/* =========================================================================
   Article
   ========================================================================= */

.article__head {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px var(--gutter) 0;
}

.article__head .kicker {
  margin-bottom: 14px;
  text-transform: uppercase;
}

.article__title {
  margin: 0 0 16px;
  font: 600 40px/50px var(--sans);
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.article__lead {
  margin: 0 0 24px;
  font: 400 19px/30px var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.byline__name {
  font: 500 14px/20px var(--sans);
  color: var(--ink);
}

.byline__sep {
  color: var(--line);
}

.byline__role {
  font: 400 14px/20px var(--sans);
  color: var(--muted);
}

.figure figcaption {
  margin-top: 8px;
  font: 400 12px/16px var(--sans);
  color: var(--faint);
}

.article__grid {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px var(--gutter) 48px;
}

.article__body .chips {
  margin: 32px 0 0;
}

.author {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.author__name {
  margin: 0 0 4px;
  font: 600 15px/22px var(--sans);
}

.author__bio {
  margin: 0 0 10px;
  font: 400 14px/22px var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}

.author__links {
  display: flex;
  gap: 14px;
  font: 600 13px/20px var(--sans);
}

.related {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  padding: 36px var(--gutter) 44px;
}

.related__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.related .section__title {
  margin-bottom: 20px;
}

.related .grid {
  gap: 24px;
}

/* =========================================================================
   Prose
   ========================================================================= */

.prose {
  font: 400 18px/32px var(--sans);
  color: var(--ink);
}

.prose > p {
  margin: 0 0 22px;
  text-wrap: pretty;
}

.prose > p:last-child {
  margin-bottom: 0;
}

.prose .heading {
  position: relative;
  margin: 36px 0 14px;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose .heading--2 {
  font: 600 24px/32px var(--sans);
}

.prose .heading--3 {
  font: 600 19px/28px var(--sans);
}

.prose .heading--4 {
  font: 600 16px/24px var(--sans);
}

.heading__anchor {
  position: absolute;
  left: -0.75em;
  opacity: 0;
  color: var(--faint);
  font-weight: 400;
  text-decoration: none;
}

.prose .heading:hover .heading__anchor,
.heading__anchor:focus-visible {
  opacity: 1;
}

.prose ul,
.prose ol {
  margin: 0 0 32px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
  text-wrap: pretty;
}

.prose li:last-child {
  margin-bottom: 0;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

.prose--tight {
  font-size: 16px;
  line-height: 28px;
}

.prose--tight > p {
  margin-bottom: 14px;
}

.pullquote {
  margin: 0 0 26px;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--accent);
}

.pullquote p {
  margin: 0;
  font: 400 18px/30px var(--sans);
  color: var(--muted);
}

.figure {
  margin: 0 0 26px;
}

.figure img {
  width: 100%;
  border-radius: var(--radius-md);
}

.inline-code {
  font: 400 0.875em/1.5 var(--mono);
  color: var(--ink);
  background: #f1f2f4;
  border: 0;
  border-radius: 3px;
  padding: 0.14em 0.36em;
  overflow-wrap: break-word;
  /* Without this a span that wraps gets one sheared box across two lines. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* --- code blocks ------------------------------------------------------ */

.codeblock {
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.codeblock__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.codeblock__name {
  font: 400 12px/16px var(--mono);
  color: var(--muted);
}

.codeblock__copy {
  border: 0;
  background: none;
  padding: 0;
  font: 500 11px/16px var(--sans);
  color: var(--faint);
}

.codeblock__copy:hover {
  color: var(--ink);
}

.codeblock__pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: #fbfbfc;
}

.codeblock__pre code {
  font: 400 13px/22px var(--mono);
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
}

/* Syntax colours — deliberately quiet: near-black text, one blue, one brown. */
.hljs-comment,
.hljs-quote,
.hljs-meta {
  color: #8b949e;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in,
.hljs-literal,
.hljs-type,
.hljs-class .hljs-title {
  color: #1f4a7a;
}

.hljs-string,
.hljs-number,
.hljs-regexp,
.hljs-attr,
.hljs-attribute,
.hljs-symbol {
  color: #8a5a2b;
}

.hljs-title,
.hljs-title.function_,
.hljs-section,
.hljs-name,
.hljs-variable,
.hljs-template-variable,
.hljs-params {
  color: var(--ink);
}

.hljs-addition {
  color: #2f6f4f;
}

.hljs-deletion {
  color: #a4243b;
}

.hljs-emphasis,
.hljs-strong {
  font-weight: 600;
}

/* =========================================================================
   Apps
   ========================================================================= */

.app-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 44px;
  align-items: center;
}

.app-featured__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.app-featured__name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-featured__name h1,
.app-featured__name h2 {
  margin: 0;
  font: 600 22px/28px var(--sans);
  letter-spacing: -0.01em;
}

.app-featured__name h1 {
  font-size: 28px;
  line-height: 34px;
}

.app-featured__platform {
  margin: 0;
  font: 400 13px/20px var(--sans);
  color: var(--faint);
}

.app-featured__text {
  margin: 0 0 20px;
  font: 400 17px/28px var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}

.app-featured__body .chips {
  margin-bottom: 24px;
}

.app-featured__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-featured__shot {
  width: 100%;
  height: 320px;
  object-fit: cover;
  /* Anchor to the top: a screenshot's useful content is at the top, not the middle. */
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-featured__shot--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 96px/1 var(--sans);
  border: 1px solid var(--line);
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 180px;
}

.app-card:hover {
  background: var(--surface-alt);
}

.app-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.app-card__title {
  margin: 0 0 4px;
  font: 600 16px/22px var(--sans);
  color: var(--ink);
}

.app-card__text {
  margin: 0;
  font: 400 14px/22px var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}

.app-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
}

.app-card--wip {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  border-style: dashed;
  border-color: #bdbdbd;
  background: var(--surface-alt);
}

.app-card--wip .app-card__title {
  color: var(--muted);
  font-size: 15px;
}

.app-card--wip .app-card__text {
  color: var(--faint);
  font-size: 13px;
  line-height: 20px;
  max-width: 220px;
}

.app-detail {
  max-width: 820px;
}

.app-detail__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.app-detail__lead {
  margin: 0 0 16px;
  font: 400 18px/30px var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}

.app-detail .chips {
  margin-bottom: 20px;
}

.app-detail__shot {
  width: 100%;
  border-radius: 8px;
  margin: 28px 0;
}

.app-detail .prose {
  margin-top: 28px;
}

.app-detail__posts {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.app-detail__posts .section__title {
  margin-bottom: 12px;
}

/* =========================================================================
   Simple pages
   ========================================================================= */

.page {
  max-width: 820px;
}

.page__head {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page__head .masthead__title {
  margin-bottom: 8px;
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__note {
  font: 400 12px/16px var(--sans);
  color: var(--faint);
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 960px) {
  :root {
    --gutter: 28px;
  }
  .with-rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .with-rail__aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
  }
  .featured__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .featured__cover {
    height: 280px;
  }
  .app-featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
    --header-h: 52px;
  }

  .site-header__inner {
    gap: 12px;
  }.site-header .site-nav:not(.site-nav--mobile) {
    display: none;
  }
  .site-nav--mobile {
    display: flex;
    gap: 16px;
    padding: 12px var(--gutter);
    border-top: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav--mobile::-webkit-scrollbar {
    display: none;
  }
  .site-nav--mobile .site-nav__link {
    font-size: 13px;
    white-space: nowrap;
  }

  .brand__mark {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .brand__name {
    font-size: 14px;
  }

  .section {
    padding: 24px var(--gutter) 28px;
  }
  .masthead,
  .masthead--compact {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 20px;
  }
  .masthead__title {
    font: 600 24px/32px var(--sans);
  }
  .masthead__intro {
    font-size: 14px;
    line-height: 22px;
  }
  .stats {
    gap: 24px;
    padding-bottom: 0;
  }

  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .with-rail__aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured__cover {
    height: 200px;
  }
  .featured__title {
    font: 600 20px/28px var(--sans);
  }
  .featured__excerpt {
    font-size: 14px;
    line-height: 22px;
  }

  .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    padding: 12px 0;
    margin: 0;
  }
  .row:hover {
    background: none;
  }
  .row__date {
    font-size: 11px;
    line-height: 16px;
  }
  .row__meta {
    font-size: 11px;
    line-height: 16px;
    color: var(--faint);
  }

  .article__head {
    padding-top: 24px;
  }
  .article__title {
    font: 600 27px/34px var(--sans);
    letter-spacing: -0.02em;
  }
  .article__lead {
    font-size: 16px;
    line-height: 26px;
  }
  .article__grid {
    padding: 24px var(--gutter) 32px;
  }
  .prose {
    font: 400 17px/30px var(--sans);
  }
  .prose .heading--2 {
    font: 600 20px/28px var(--sans);
  }
  .codeblock__pre code {
    font-size: 12px;
    line-height: 20px;
  }
  .related {
    padding: 28px var(--gutter) 32px;
  }

  .app-featured__shot {
    height: 220px;
  }
  .app-card {
    min-height: 0;
  }

}
