.content-page {
  background: #f4f5f8;
  color: #111522;
}

.content-page .site-header {
  position: fixed;
  color: #111522;
  background: rgba(248, 249, 252, 0.9);
  border-bottom-color: rgba(17, 21, 34, 0.1);
  backdrop-filter: blur(18px);
}

.content-page .brand-mark,
.content-page .desktop-nav a,
.content-page .search-link,
.content-page .menu-toggle {
  color: #111522;
}

.content-page .desktop-nav a::after {
  background: #2854ff;
}

.content-main {
  padding-top: 86px;
  min-height: 75vh;
}

.content-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid rgba(17, 21, 34, 0.12);
}

.content-hero::after {
  content: "";
  position: absolute;
  width: min(34vw, 31rem);
  aspect-ratio: 1;
  right: -8vw;
  top: -36%;
  border: 1px solid rgba(40, 84, 255, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(40, 84, 255, 0.03),
    0 0 0 10rem rgba(40, 84, 255, 0.025);
}

.content-hero p,
.article-category {
  display: inline-flex;
  color: #2854ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.content-hero h1 {
  max-width: 11ch;
  margin: 0.8rem 0 1.5rem;
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.content-hero-note {
  max-width: 35rem;
  color: #6b7181;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}

.article-index {
  padding-block: clamp(2rem, 5vw, 5rem) clamp(5rem, 9vw, 9rem);
}

.category-filter {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
}

.category-filter a {
  flex: 0 0 auto;
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(17, 21, 34, 0.15);
  border-radius: 999px;
  color: #596071;
  font-size: 0.84rem;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.category-filter a:hover {
  transform: translateY(-2px);
}
.category-filter a.is-active {
  color: white;
  background: #2854ff;
  border-color: #2854ff;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.2rem;
  background: rgba(17, 21, 34, 0.12);
  border: 1px solid rgba(17, 21, 34, 0.12);
}

.article-card {
  min-width: 0;
  background: #f8f9fc;
}
.article-card-featured {
  grid-column: span 2;
}

.article-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe3ed;
}

.article-card-featured .article-card-media {
  aspect-ratio: 16 / 7.5;
}
.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.article-card:hover .article-card-media img {
  transform: scale(1.045);
}
.article-card-media span {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  color: white;
  background: #2854ff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.article-card-copy {
  padding: clamp(1.3rem, 3vw, 2.2rem);
}
.article-card-copy time {
  color: #858b99;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}
.article-card-copy h2 {
  margin: 0.8rem 0;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.article-card-copy p {
  min-height: 3.6em;
  color: #6b7181;
  line-height: 1.8;
}
.card-link {
  display: inline-flex;
  gap: 0.8rem;
  margin-top: 1.3rem;
  color: #2854ff;
  font-weight: 700;
  font-size: 0.85rem;
}

.public-empty {
  padding: 7rem 1rem;
  text-align: center;
  border: 1px solid rgba(17, 21, 34, 0.12);
  background: #f8f9fc;
}
.public-empty span,
.not-found > span {
  color: #2854ff;
  font: 700 5rem/1 monospace;
}
.public-empty h2 {
  margin: 1rem 0 0.5rem;
  font-size: 2rem;
}
.public-empty p {
  color: #6b7181;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}
.pagination a {
  display: grid;
  place-items: center;
  width: 2.8rem;
  aspect-ratio: 1;
  border: 1px solid rgba(17, 21, 34, 0.16);
  font-family: monospace;
}
.pagination a.is-active {
  color: white;
  background: #2854ff;
  border-color: #2854ff;
}

.article-detail {
  padding: clamp(4rem, 9vw, 8rem) 0 7rem;
}
.article-detail-head {
  max-width: 66rem;
}
.article-detail-head h1 {
  max-width: 14ch;
  margin: 1.3rem 0 1.8rem;
  overflow-wrap: anywhere;
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}
.article-deck {
  max-width: 47rem;
  color: #676d7c;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.8;
}
.article-byline {
  display: flex;
  gap: 2rem;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(17, 21, 34, 0.13);
  color: #777e8e;
  font-size: 0.83rem;
}
.article-cover {
  margin-top: 3rem;
}
.article-cover img {
  width: 100%;
  max-height: 46rem;
  object-fit: cover;
}
.article-body {
  max-width: 51rem;
  padding-block: 4rem;
  font-size: 1.08rem;
  line-height: 2;
}
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 0 0 1.65rem;
}
.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 2.8rem 0 1rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.article-body h2 {
  font-size: 2rem;
}
.article-body h3 {
  font-size: 1.5rem;
}
.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
}
.article-body blockquote {
  padding: 1.2rem 1.5rem;
  border-left: 3px solid #2854ff;
  background: #eef1fa;
  color: #4e5565;
}
.article-body a {
  color: #2854ff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.article-body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 0.9rem;
}
.article-body figure {
  margin: 2.4rem 0;
}
.article-body figcaption {
  margin-top: -1rem;
  color: #777e8e;
  font-size: 0.86rem;
  text-align: center;
}
.article-body table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.article-body th,
.article-body td {
  padding: 0.8rem;
  border: 1px solid rgba(17, 21, 34, 0.14);
  text-align: left;
  vertical-align: top;
}
.article-body th {
  background: #eef1fa;
}
.article-back {
  max-width: 51rem;
}
.article-back a {
  display: inline-flex;
  gap: 1rem;
  color: #2854ff;
  font-weight: 700;
}

.not-found {
  padding-block: 12rem;
  text-align: center;
}
.not-found h1 {
  margin: 1.5rem 0 0.8rem;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}
.not-found p {
  color: #6b7181;
}
.not-found a {
  display: inline-flex;
  gap: 0.8rem;
  margin-top: 2rem;
  color: #2854ff;
  font-weight: 700;
}

.content-footer {
  padding: 3rem 0;
  color: rgba(255, 255, 255, 0.76);
  background: #111522;
}
.content-footer .shell {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.content-footer strong,
.content-footer span {
  display: block;
}
.content-footer strong {
  color: white;
}
.content-footer span {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}
.content-footer p {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-card-featured {
    grid-column: span 2;
  }
}

@media (max-width: 1280px) {
  .content-page .search-link {
    display: none;
  }
  .content-page .desktop-nav {
    margin-left: auto;
    gap: clamp(1.2rem, 2.5vw, 2.5rem);
  }
}

@media (max-width: 640px) {
  .content-main {
    padding-top: 72px;
  }
  .content-hero h1 {
    font-size: 3.5rem;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-card-featured {
    grid-column: auto;
  }
  .article-card-featured .article-card-media {
    aspect-ratio: 16 / 10;
  }
  .article-detail {
    padding-top: 3.5rem;
  }
  .article-detail-head h1 {
    font-size: 2.8rem;
  }
  .article-body {
    font-size: 1rem;
  }
  .content-footer .shell {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-card-media img,
  .category-filter a {
    transition: none;
  }
}
.page-detail {
  padding: 150px 0 96px;
}
.page-detail-head {
  max-width: 1000px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}
.page-detail-head > p {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.page-detail-head h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.14;
  letter-spacing: -0.025em;
}
.page-detail-head > div {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.page-detail-body {
  max-width: 900px;
  padding-top: 54px;
  font-size: 16px;
  line-height: 2;
}
.page-detail-body h2 {
  margin: 48px 0 16px;
  font-size: 28px;
  letter-spacing: -0.025em;
}
.page-detail-body p {
  color: #343b4c;
}
.page-contact {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-top: 70px;
  padding: 44px;
  border-radius: 18px;
  color: #f4f6ff;
  background: #121526;
}
.page-contact h2 {
  margin: 0 0 12px;
  font-size: 30px;
}
.page-contact p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.8;
}
.page-contact a {
  min-width: 180px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 18px;
  color: #fff;
  background: #3153e8;
}
@media (max-width: 767px) {
  .page-detail {
    padding: 118px 0 70px;
  }
  .page-detail-head h1 {
    font-size: 44px;
  }
  .page-detail-head > div {
    font-size: 15px;
  }
  .page-contact {
    grid-template-columns: 1fr;
    padding: 26px;
  }
  .page-contact a {
    width: 100%;
  }
}
