:root {
  color-scheme: light;
  --ink: #050505;
  --muted: #626262;
  --line: #d8d8d8;
  --soft: #f3f3f3;
  --accent: #6400ff;
  --accent-dark: #4b00c7;
  --max: 1304px;
  --page-gutter: 6rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: #fff;
  color: #000;
  padding: .75rem 1rem;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #000;
  color: #fff;
}

.top-line {
  height: 2px;
  background: var(--accent);
}

.nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 2rem;
}

.brand,
.nav-links,
.footer-action,
.back-link,
.category-strip a {
  text-transform: none;
  font-size: .86rem;
  font-weight: 700;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-size: 1.05rem;
}

.brand span span,
.footer-brand span {
  color: rgba(255, 255, 255, .45);
  margin-left: .15rem;
}

.brand-mark {
  width: .7rem;
  height: .7rem;
  background: var(--accent);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
}

.blog-hero,
.category-strip,
.featured-article,
.article-section,
.post,
.related-posts {
  width: min(var(--max), calc(100% - var(--page-gutter)));
  margin-inline: auto;
}

.blog-hero {
  padding: 7rem 0 4rem;
  border-bottom: 1px solid var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
  gap: 4rem;
  align-items: end;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 700;
  text-transform: none;
  margin-bottom: 1.5rem;
}

.blog-hero h1 {
  font-size: 5.8rem;
  line-height: .88;
  margin: 0;
  text-transform: uppercase;
  font-weight: 950;
}

.blog-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 .3rem;
  max-width: 34rem;
}

.category-strip {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  padding: 2rem 0 1rem;
}

.category-strip a {
  text-decoration: none;
  border: 1px solid var(--line);
  padding: .7rem .95rem;
  background: #fff;
}

.category-strip a.is-active,
.category-strip a:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.featured-article {
  padding: 2rem 0 4rem;
}

.featured-link {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem;
  align-items: stretch;
  color: inherit;
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
}

.featured-copy {
  border-top: 1px solid var(--ink);
  padding-top: 2rem;
  min-width: 0;
}

.featured-copy h2 {
  font-size: 3rem;
  line-height: 1;
  margin: 0 0 1rem;
  max-width: 13ch;
}

.featured-copy p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 35rem;
}

.featured-copy time,
.article-card time,
.post-meta {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  text-transform: none;
}

.featured-media,
.card-media,
.post-cover {
  background: var(--soft);
  overflow: hidden;
  position: relative;
}

.cover-category {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: #000;
  color: #fff;
  padding: .35rem .75rem;
  font-size: .62rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: none;
  max-width: calc(100% - 1rem);
  overflow-wrap: anywhere;
}

.featured-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-width: 0;
}

.featured-media img,
.card-media img,
.post-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.4rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
  text-transform: none;
}

.section-heading span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  text-transform: none;
}

.article-section {
  padding-bottom: 6rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4rem 2rem;
}

.article-card {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.article-card article {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-media {
  aspect-ratio: 4 / 3;
  margin-bottom: 1.25rem;
}

.article-card:hover img,
.featured-link:hover img {
  transform: scale(1.03);
}

.article-card img,
.featured-link img {
  transition: transform .25s ease;
}

.card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  font-weight: 800;
  text-transform: none;
  margin-bottom: .8rem;
}

.article-card h2 {
  font-size: 1.45rem;
  line-height: 1.08;
  margin: 0 0 .8rem;
  overflow-wrap: anywhere;
}

.article-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.article-card time {
  margin-top: auto;
}

.empty-state {
  border: 1px solid var(--line);
  padding: 2rem;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.pagination-link,
.pagination-ellipsis {
  min-width: 2.75rem;
  padding: .72rem .95rem;
  border: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.pagination-link:hover,
.pagination-link.is-active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.pagination-link.is-disabled {
  color: var(--muted);
  pointer-events: none;
  background: var(--soft);
}

.pagination-ellipsis {
  border-style: dashed;
  color: var(--muted);
}

.post {
  padding: 2.4rem 0 4rem;
}

.post-header {
  max-width: 980px;
  padding-bottom: 2.25rem;
}

.post-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(100, 0, 255, .06), rgba(100, 0, 255, 0)),
    #fff;
}

.breadcrumb-link,
.breadcrumb-current,
.breadcrumb-separator {
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.breadcrumb-link {
  color: var(--muted);
}

.breadcrumb-link:hover {
  color: var(--accent);
}

.breadcrumb-link.is-category {
  padding: .38rem .65rem;
  border: 1px solid rgba(100, 0, 255, .16);
  background: rgba(100, 0, 255, .08);
  color: var(--accent-dark);
}

.breadcrumb-link.is-category:hover {
  border-color: var(--accent);
  background: rgba(100, 0, 255, .12);
  color: var(--accent);
}

.breadcrumb-separator {
  color: #a5a5a5;
}

.breadcrumb-current {
  color: var(--ink);
}

.post-header h1 {
  font-size: 4.3rem;
  line-height: .98;
  margin: 0 0 1.3rem;
  max-width: 26ch;
  overflow-wrap: anywhere;
}

.post-header p {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
  width: 210%;
  max-width: calc(26ch * 2.1);
}

.post-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-cover {
  aspect-ratio: 16 / 9;
  margin-bottom: 4rem;
}

.post-body {
  max-width: 95%;
  margin: 20px auto;
  font-size: 1.08rem;
  line-height: 1.8;
}

.post-body h2 {
  font-size: 2rem;
  line-height: 1.1;
  margin: 2.5rem 0 1rem;
}

.post-body p {
  color: #333;
}

.post-body .is-broken-image,
.post-body .is-broken-media-block {
  display: none !important;
}

.related-posts {
  padding: 1rem 0 6rem;
}

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

.site-footer {
  background: #000;
  color: #fff;
  padding: 4rem 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  display: inline-block;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  font-weight: 950;
  text-decoration: none;
  margin-bottom: 1rem;
}

.site-footer p {
  color: rgba(255, 255, 255, .55);
  max-width: 30rem;
  margin: 0;
}

.footer-action {
  align-self: start;
  color: #000;
  background: #fff;
  padding: 1rem 1.25rem;
  text-decoration: none;
}

.footer-action:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 980px) {
  :root {
    --page-gutter: 3rem;
  }

  .hero-grid,
  .featured-link {
    grid-template-columns: 1fr;
  }

  .blog-hero h1 {
    font-size: 4rem;
  }

  .featured-copy h2,
  .post-header h1 {
    font-size: 3rem;
  }

  .post-header {
    max-width: 100%;
  }

  .post-header p {
    width: 100%;
    max-width: 100%;
    font-size: 1.08rem;
  }

  .post-cover {
    margin-bottom: 2.25rem;
  }

  .post-body {
    max-width: 100%;
    margin: 16px auto;
    line-height: 1.75;
  }

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

@media (max-width: 640px) {
  .nav-inner {
    padding: 0 1rem;
  }

  .blog-hero,
  .category-strip,
  .featured-article,
  .article-section,
  .post,
  .related-posts {
    width: min(var(--max), calc(100% - 2rem));
  }

  .blog-hero {
    padding-top: 4rem;
  }

  .blog-hero h1 {
    font-size: 3rem;
  }

  .featured-copy h2,
  .post-header h1 {
    font-size: 2.35rem;
    line-height: 1.05;
    max-width: 100%;
  }

  .post {
    padding-top: 1.4rem;
    padding-bottom: 2.8rem;
  }

  .post-breadcrumb {
    width: 100%;
    gap: .5rem;
    padding: .5rem .6rem;
    margin-bottom: 1rem;
  }

  .post-header p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .post-meta {
    gap: .5rem .75rem;
    font-size: .8rem;
  }

  .post-cover {
    aspect-ratio: 4 / 3;
    margin-bottom: 1.5rem;
  }

  .post-body {
    margin: 12px auto;
    font-size: 1rem;
    line-height: 1.7;
    word-break: break-word;
  }

  .post-body h2 {
    font-size: 1.55rem;
    line-height: 1.2;
    margin: 2rem 0 .8rem;
  }

  .post-body img,
  .post-body table,
  .post-body iframe {
    max-width: 100%;
    height: auto;
  }

  .post-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-grid,
  .article-grid.compact {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-link {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
