/* ==========================================================================
   产业前沿 · 前台
   A quiet editorial system for industry intelligence.
   ========================================================================== */

:root {
  --paper: #f6f1e7;
  --paper-deep: #ece4d5;
  --paper-soft: #fbf8f1;
  --ink: #111a25;
  --ink-soft: #303b48;
  --muted: #6f726e;
  --muted-light: #96958d;
  --line: #d8cfbf;
  --line-dark: #b9ad99;
  --accent: #dd512c;
  --accent-deep: #b63a1b;
  --accent-soft: #f5d9cc;
  --navy: #101b2b;
  --navy-soft: #1b2b42;
  --teal: #0f6058;
  --white: #fffdf8;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1280px;
  --shadow: 0 16px 45px rgba(17, 26, 37, 0.09);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.container {
  width: min(100% - 80px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.eyebrow {
  display: inline-block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(255, 253, 248, 0.55);
}

.meta-dot {
  color: var(--muted-light);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.muted-copy {
  color: var(--muted);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button--dark {
  background: var(--ink);
  color: var(--white);
}

.button--dark:hover {
  background: var(--accent);
}

.button--ghost {
  border-color: var(--line-dark);
}

.button--ghost:hover {
  border-color: var(--ink);
  background: rgba(17, 26, 37, 0.04);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.utility-bar {
  background: var(--navy);
  color: rgba(255, 253, 248, 0.65);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.utility-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.utility-meta,
.utility-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.utility-links a {
  transition: color 0.2s ease;
}

.utility-links a:hover {
  color: var(--white);
}

.utility-sep {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.24);
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(221, 81, 44, 0.12);
}

.masthead {
  display: grid;
  grid-template-columns: minmax(280px, auto) 1fr minmax(220px, 290px);
  align-items: center;
  gap: 44px;
  padding-block: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 51px;
  height: 51px;
  flex: 0 0 auto;
  background: var(--accent);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
}

.brand-mark--small {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(30px, 3.1vw, 40px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-en {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.masthead-note {
  justify-self: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-align: center;
}

.header-search {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  height: 38px;
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}

.header-search input::placeholder {
  color: var(--muted-light);
}

.header-search button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 9px 6px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 26px;
  height: 1.5px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--ink);
  background: rgba(246, 241, 231, 0.96);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  min-height: 52px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:first-child {
  padding-left: 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:first-child::after {
  left: 0;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dot-color, var(--accent));
}

.nav-spacer {
  flex: 1;
}

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

.nav-admin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-block: 9px;
  padding: 0 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-admin:hover {
  color: var(--accent-deep);
}

.nav-admin svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* --------------------------------------------------------------------------
   Shared editorial pieces
   -------------------------------------------------------------------------- */

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

.section-heading h2 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.section-heading--inverse {
  border-color: rgba(255, 253, 248, 0.24);
}

.section-heading--inverse h2 {
  color: var(--white);
}

.section-heading--inverse .eyebrow {
  color: rgba(255, 253, 248, 0.48);
}

.section-heading__note {
  color: rgba(255, 253, 248, 0.48);
  font-size: 12px;
}

.section-rule {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}

.section-rule h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
}

.rule-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-rule__en {
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.category-label,
.collection-label,
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.category-label {
  color: var(--cat-color, var(--accent));
}

.category-label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.collection-label {
  padding-left: 9px;
  border-left: 1px solid var(--line-dark);
  color: var(--muted);
}

.featured-label {
  padding: 1px 6px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 9px;
}

.story-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.story-kicker time {
  color: var(--muted-light);
  font-size: 10px;
}

.story-kicker--light .collection-label {
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 253, 248, 0.62);
}

.story-kicker--light .category-label {
  color: var(--white);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted-light);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted-light);
  font-size: 11px;
}

.breadcrumbs a {
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--accent-deep);
}

.breadcrumbs--light {
  color: rgba(255, 253, 248, 0.55);
}

.breadcrumbs--light a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Home
   -------------------------------------------------------------------------- */

.home-page {
  background: var(--paper);
}

.home-intro {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: end;
  gap: 40px;
  padding-block: 30px 26px;
}

.home-intro__date {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.home-intro__date strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.home-intro p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.04em;
}

.home-intro > .text-link {
  margin-bottom: 5px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.66fr) minmax(300px, 0.84fr);
  gap: 40px;
  align-items: stretch;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.hero-lead {
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero-lead__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 8.6;
  background: var(--navy-soft);
}

.hero-lead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-lead:hover .hero-lead__media img {
  transform: scale(1.025);
}

.hero-lead__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 14, 23, 0.38));
}

.hero-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--navy-soft);
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--serif);
  font-size: 120px;
}

.hero-lead__content {
  position: relative;
  padding: 26px 34px 31px;
  border-top: 1px solid rgba(255, 253, 248, 0.15);
}

.hero-lead__content h1 {
  margin-top: 11px;
  font-family: var(--serif);
  font-size: clamp(28px, 2.65vw, 37px);
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: 0.01em;
}

.hero-lead__content h1 a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: left 96%;
  transition: background-size 0.35s ease;
}

.hero-lead:hover .hero-lead__content h1 a {
  background-size: 100% 2px;
}

.hero-lead__content > p {
  margin-top: 13px;
  max-width: 640px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 13px;
  line-height: 1.8;
}

.hero-lead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: rgba(255, 253, 248, 0.42);
  font-size: 10px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.hero-side .section-rule {
  border-top: 3px solid var(--ink);
  border-bottom: 0;
  padding-top: 12px;
}

.hero-briefs {
  display: flex;
  flex-direction: column;
}

.hero-brief {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.hero-brief__number {
  padding-top: 2px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1;
}

.hero-brief__body h3 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.hero-brief__body h3 a {
  transition: color 0.2s ease;
}

.hero-brief__body h3 a:hover {
  color: var(--accent-deep);
}

.hero-side__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--ink);
  transition: color 0.2s ease;
}

.hero-side__all:hover {
  color: var(--accent-deep);
}

.empty-feature {
  margin-block: 40px;
  padding: 70px 60px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.empty-feature h1 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: 42px;
}

.empty-feature p {
  margin-bottom: 24px;
  color: var(--muted);
}

.latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 58px;
  padding-block: 48px 60px;
}

.latest-main .section-heading {
  margin-bottom: 28px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 30px;
}

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

.story-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.story-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--paper-deep);
}

.story-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.story-card:hover .story-cover img {
  transform: scale(1.035);
}

.story-cover__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--paper-deep), #ded2bf);
  color: var(--cat-color);
}

.story-cover__fallback span {
  font-family: var(--serif);
  font-size: 74px;
  opacity: 0.55;
}

.story-cover__shade {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(17, 26, 37, 0.08);
  pointer-events: none;
}

.story-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 14px;
}

.story-title {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.005em;
}

.story-title a {
  transition: color 0.2s ease;
}

.story-title a:hover {
  color: var(--accent-deep);
}

.story-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.story-meta {
  margin-top: auto;
  padding-top: 12px;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.sidebar-block .section-rule {
  margin-bottom: 17px;
}

.popular-list {
  list-style: none;
  counter-reset: popular;
}

.popular-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.popular-list li:first-child {
  padding-top: 0;
}

.popular-rank {
  color: var(--line-dark);
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.4;
}

.popular-list h3 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.popular-list h3 a:hover {
  color: var(--accent-deep);
}

.popular-meta {
  display: block;
  margin-top: 5px;
  color: var(--muted-light);
  font-size: 10px;
}

.mini-collections {
  display: flex;
  flex-direction: column;
}

.mini-collection {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mini-collection:first-child {
  padding-top: 0;
}

.mini-collection__media {
  display: block;
  width: 62px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--paper-deep);
}

.mini-collection__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-collection__media > span {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 22px;
}

.mini-collection__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.mini-collection__body strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-collection__body small {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 9px;
}

.mini-collection__arrow {
  color: var(--muted);
  font-size: 13px;
  transition: transform 0.2s ease;
}

.mini-collection:hover .mini-collection__arrow {
  transform: translateX(3px);
}

.sidebar-all {
  margin-top: 16px;
}

.category-bands {
  background: var(--navy);
  color: var(--white);
  padding-block: 56px 62px;
  margin-top: 8px;
}

.category-band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  margin-top: 35px;
}

.category-band {
  min-width: 0;
}

.category-band__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.18);
}

.category-band__head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.category-band__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat-color);
}

.category-band__head h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}

.category-band__count {
  color: rgba(255, 253, 248, 0.38);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.category-band__desc {
  min-height: 42px;
  margin-block: 12px 6px;
  color: rgba(255, 253, 248, 0.44);
  font-size: 11px;
  line-height: 1.7;
}

.category-band__list {
  display: flex;
  flex-direction: column;
}

.category-band__item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.1);
}

.category-band__index {
  padding-top: 2px;
  color: var(--cat-color);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
}

.category-band__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.category-band__text strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.category-band__item:hover strong {
  color: var(--cat-color);
}

.category-band__text small {
  margin-top: 4px;
  color: rgba(255, 253, 248, 0.32);
  font-size: 9px;
}

.category-band__more {
  display: inline-block;
  margin-top: 17px;
  color: rgba(255, 253, 248, 0.58);
  font-size: 10px;
  transition: color 0.2s ease;
}

.category-band__more:hover {
  color: var(--white);
}

.home-collections {
  padding-block: 54px 72px;
}

.home-collections .section-heading {
  margin-bottom: 27px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.collection-card {
  min-width: 0;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}

.collection-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--navy);
}

.collection-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.collection-card:hover .collection-card__media img {
  transform: scale(1.035);
}

.collection-card__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 60px;
}

.collection-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8, 14, 23, 0.3));
}

.collection-card__count {
  position: absolute;
  right: 11px;
  bottom: 10px;
  color: var(--white);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.collection-card__body {
  padding: 17px 17px 18px;
}

.collection-card__body .eyebrow {
  font-size: 8px;
  letter-spacing: 0.14em;
}

.collection-card__body h3 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.collection-card__body h3 a:hover {
  color: var(--accent-deep);
}

.collection-card__body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.collection-card__body .text-link {
  margin-top: 13px;
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   List pages
   -------------------------------------------------------------------------- */

.list-main {
  padding-block: 26px 70px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-block: 21px 29px;
  border-bottom: 3px solid var(--ink);
}

.page-heading__main {
  max-width: 740px;
}

.page-heading h1 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 66px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.page-heading__main > p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.page-heading__count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: 0 0 auto;
  padding-bottom: 5px;
}

.page-heading__count strong {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
}

.page-heading__count span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.page-heading--wide .page-heading__main {
  max-width: 820px;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 17px;
  border-bottom: 1px solid var(--line);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 11px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

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

.filter-tab.is-active {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}

.list-search {
  display: flex;
  align-items: center;
  width: 230px;
  height: 36px;
  border-bottom: 1px solid var(--line-dark);
}

.list-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  outline: none;
}

.list-search button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.article-list {
  border-bottom: 1px solid var(--line);
}

.article-row {
  position: relative;
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 28px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}

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

.article-row__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--paper-deep);
}

.article-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-row:hover .article-row__media img {
  transform: scale(1.03);
}

.article-row__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--cat-color);
  font-family: var(--serif);
  font-size: 52px;
}

.article-row__body {
  min-width: 0;
}

.article-row__body h2 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.42;
}

.article-row__body h2 a {
  transition: color 0.2s ease;
}

.article-row__body h2 a:hover {
  color: var(--accent-deep);
}

.article-row__body > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.article-row__body .story-meta {
  margin-top: 11px;
}

.article-row__arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
  transition: all 0.2s ease;
}

.article-row:hover .article-row__arrow {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 30px;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-number,
.page-arrow,
.page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding-inline: 7px;
  color: var(--muted);
  font-size: 11px;
  border: 1px solid transparent;
}

.page-number:hover,
.page-arrow:hover {
  border-color: var(--line-dark);
  color: var(--ink);
}

.page-number.is-current {
  background: var(--ink);
  color: var(--white);
}

.page-arrow {
  gap: 5px;
  padding-inline: 0;
  border: 0;
}

.page-arrow.is-disabled {
  opacity: 0.28;
  pointer-events: none;
}

.page-gap {
  min-width: 20px;
  padding: 0;
}

.empty-state {
  padding: 70px 30px;
  text-align: center;
}

.empty-state__mark {
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border: 1px solid var(--line-dark);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 28px;
}

.empty-state h2 {
  font-family: var(--serif);
  font-size: 30px;
}

.empty-state p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Article detail
   -------------------------------------------------------------------------- */

.article-main {
  padding-block: 26px 72px;
}

.preview-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border: 1px solid #d9b779;
  background: #fbf1d9;
  color: #6b5225;
  font-size: 12px;
}

.preview-banner__tag {
  padding: 2px 7px;
  background: #6b5225;
  color: #fff8e7;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.preview-banner a {
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
}

.article-header {
  max-width: 890px;
  margin: 54px auto 0;
}

.article-header h1 {
  margin-top: 15px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.article-dek {
  max-width: 760px;
  margin-top: 17px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.article-meta__author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-weight: 600;
}

.author-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 10px;
}

.copy-link {
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.article-hero {
  max-width: 1100px;
  margin: 35px auto 0;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper-deep);
}

.article-hero figcaption {
  margin-top: 7px;
  color: var(--muted-light);
  font-size: 9px;
  text-align: right;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 770px) 230px;
  justify-content: center;
  gap: 55px;
  margin-top: 44px;
}

.article-content {
  min-width: 0;
}

.series-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 12px 15px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.series-note__label {
  color: var(--muted-light);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.series-note__name {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
}

.series-note__position {
  color: var(--muted-light);
  font-size: 9px;
}

.series-note__arrow {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.series-note:hover .series-note__arrow {
  transform: translateX(4px);
}

.prose {
  color: #222b35;
  font-size: 16.5px;
  line-height: 1.95;
  word-break: break-word;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 82px;
}

.prose h2 {
  margin-top: 1.9em;
  padding-top: 0.2em;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.38;
}

.prose h3 {
  margin-top: 1.7em;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
}

.prose h4 {
  margin-top: 1.4em;
  font-size: 18px;
}

.prose p {
  color: #26313c;
}

.prose a {
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(182, 58, 27, 0.35);
}

.prose a:hover {
  border-color: var(--accent-deep);
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose blockquote {
  margin: 1.7em 0;
  padding: 7px 0 7px 24px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.75;
}

.prose blockquote p {
  color: inherit;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--accent);
}

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

.prose img {
  width: auto;
  max-width: 100%;
  margin: 1.8em auto;
}

.prose figure {
  margin: 1.8em 0;
}

.prose figure img {
  margin-bottom: 0.4em;
}

.prose figcaption {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.prose pre {
  overflow-x: auto;
  margin: 1.6em 0;
  padding: 20px 22px;
  background: var(--navy);
  color: #e4eadf;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  tab-size: 2;
}

.prose code {
  padding: 0.12em 0.3em;
  background: #eae2d4;
  color: #9f341b;
  font-family: var(--mono);
  font-size: 0.86em;
}

.prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.prose table {
  width: 100%;
  margin: 1.7em 0;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.65;
}

.prose th,
.prose td {
  padding: 9px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--paper-deep);
  color: var(--ink);
  font-weight: 600;
}

.prose tbody tr:nth-child(even) {
  background: rgba(255, 253, 248, 0.5);
}

.article-source {
  margin-top: 30px;
  color: var(--muted);
  font-size: 11px;
}

.article-source a {
  border-bottom: 1px solid var(--line-dark);
}

.article-end {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 35px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 9px;
}

.article-end__mark {
  color: var(--accent);
  font-size: 7px;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 27px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 10px;
}

.article-share button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  cursor: pointer;
}

.article-share a {
  color: var(--ink-soft);
}

.series-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 32px;
}

.series-nav__item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}

.series-nav__item:hover {
  border-color: var(--ink);
}

.series-nav__item span {
  color: var(--muted-light);
  font-size: 9px;
}

.series-nav__item strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.series-nav__item--next {
  text-align: right;
}

.article-aside__sticky {
  position: sticky;
  top: 78px;
}

.toc-placeholder h2 {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 14px;
}

.toc-placeholder nav {
  display: flex;
  flex-direction: column;
  padding-top: 9px;
}

.toc-placeholder a {
  padding: 6px 0 6px 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  transition: all 0.2s ease;
}

.toc-placeholder a:hover,
.toc-placeholder a.is-active {
  border-color: var(--accent);
  color: var(--ink);
}

.toc-placeholder a.toc-h3 {
  padding-left: 20px;
  font-size: 9px;
}

.aside-note {
  margin-top: 28px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.aside-note p {
  margin-block: 8px 10px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.7;
}

.aside-note a {
  color: var(--muted);
  font-size: 9px;
}

.related-section {
  margin-top: 65px;
  padding-top: 32px;
  border-top: 1px solid var(--ink);
}

.related-section .section-heading {
  margin-bottom: 26px;
  border-bottom: 0;
  padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   Collections
   -------------------------------------------------------------------------- */

.collections-main {
  padding-block: 26px 72px;
}

.collection-grid--large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 32px;
}

.collection-grid--large .collection-card__media {
  aspect-ratio: 16 / 9;
}

.collection-grid--large .collection-card__body {
  padding: 22px 24px 25px;
}

.collection-grid--large .collection-card__body h3 {
  font-size: 27px;
}

.collection-grid--large .collection-card__body p {
  font-size: 12px;
  -webkit-line-clamp: 2;
}

.collection-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.collection-hero__bg {
  position: absolute;
  inset: 0;
}

.collection-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.collection-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 15, 24, 0.9) 0%, rgba(9, 15, 24, 0.48) 55%, rgba(9, 15, 24, 0.3) 100%);
}

.collection-hero__inner {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 26px 58px;
}

.collection-hero__content {
  max-width: 690px;
  margin-top: 50px;
}

.collection-hero__content h1 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.15;
}

.collection-hero__content p {
  max-width: 570px;
  margin-top: 14px;
  color: rgba(255, 253, 248, 0.68);
  font-size: 14px;
  line-height: 1.8;
}

.collection-hero__meta {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 253, 248, 0.45);
  font-size: 10px;
}

.collection-body {
  padding-block: 35px 72px;
}

.collection-index {
  border-top: 2px solid var(--ink);
}

.collection-index__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.collection-item {
  display: grid;
  grid-template-columns: 34px 215px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 24px;
  padding-block: 25px;
  border-bottom: 1px solid var(--line);
}

.collection-item__number {
  color: var(--line-dark);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}

.collection-item__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-deep);
}

.collection-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.collection-item:hover .collection-item__media img {
  transform: scale(1.03);
}

.collection-item__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 42px;
}

.collection-item__body h2 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.42;
}

.collection-item__body h2 a:hover {
  color: var(--accent-deep);
}

.collection-item__body > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.collection-item__body .story-meta {
  margin-top: 9px;
}

.collection-item__arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--muted);
  font-size: 10px;
  transition: all 0.2s ease;
}

.collection-item:hover .collection-item__arrow {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 20px;
  padding-top: 48px;
  background: var(--navy);
  color: rgba(255, 253, 248, 0.58);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(120px, 0.55fr));
  gap: 46px;
  padding-bottom: 43px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.14);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}

.footer-brand > p {
  max-width: 360px;
  margin-top: 15px;
  font-size: 11px;
  line-height: 1.8;
}

.footer-meta {
  margin-top: 14px;
  color: rgba(255, 253, 248, 0.3);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-column h2 {
  margin-bottom: 6px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
}

.footer-column a {
  width: fit-content;
  font-size: 10px;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--white);
}

.demo-note {
  padding-block: 13px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.1);
  color: rgba(255, 253, 248, 0.27);
  font-size: 9px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px 22px;
  color: rgba(255, 253, 248, 0.26);
  font-size: 9px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-dark);
  background: rgba(246, 241, 231, 0.94);
  color: var(--ink);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   API documentation
   -------------------------------------------------------------------------- */

.api-docs-page {
  background: var(--paper);
}

.docs-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.docs-hero::before {
  content: "";
  position: absolute;
  width: 660px;
  height: 660px;
  right: -230px;
  top: -340px;
  border: 1px solid rgba(221, 81, 44, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(221, 81, 44, 0.05), 0 0 0 160px rgba(221, 81, 44, 0.035);
}

.docs-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  gap: 70px;
  align-items: center;
  padding-block: 74px 80px;
}

.docs-hero .eyebrow {
  color: rgba(255, 253, 248, 0.42);
}

.docs-hero h1 {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: clamp(46px, 5.6vw, 68px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.18;
}

.docs-hero__copy > p {
  max-width: 510px;
  margin-top: 19px;
  color: rgba(255, 253, 248, 0.58);
  font-size: 13px;
  line-height: 1.9;
}

.docs-hero__copy > p code {
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.9em;
}

.docs-hero__actions {
  display: flex;
  gap: 9px;
  margin-top: 28px;
}

.docs-hero__actions .button--dark {
  background: var(--accent);
  color: var(--white);
}

.docs-hero__actions .button--dark:hover {
  background: var(--accent-deep);
}

.docs-hero__actions .button--ghost {
  border-color: rgba(255, 253, 248, 0.24);
  color: var(--white);
}

.docs-hero__actions .button--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.docs-hero__terminal {
  min-width: 0;
  border: 1px solid rgba(255, 253, 248, 0.15);
  background: #0b1420;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.docs-terminal__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.1);
}

.docs-terminal__bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.22);
}

.docs-terminal__bar span:first-child {
  background: var(--accent);
}

.docs-terminal__bar em {
  margin-left: 7px;
  color: rgba(255, 253, 248, 0.36);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}

.docs-hero__terminal pre {
  overflow-x: auto;
  margin: 0;
  padding: 21px 22px 24px;
  color: rgba(255, 253, 248, 0.72);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.85;
  tab-size: 2;
}

.docs-hero__terminal code {
  font-family: inherit;
}

.c-muted {
  color: rgba(255, 253, 248, 0.3);
}

.c-green {
  color: #9bd7b4;
}

.c-amber {
  color: #f0c987;
}

.docs-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 72px;
  padding-block: 58px 82px;
}

.docs-nav {
  position: sticky;
  top: 77px;
  align-self: start;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.docs-nav nav {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.docs-nav nav a {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  transition: color 0.18s ease, padding 0.18s ease;
}

.docs-nav nav a:hover {
  padding-left: 5px;
  color: var(--accent-deep);
}

.docs-nav__meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
  margin-top: 23px;
  color: var(--muted-light);
  font-size: 9px;
}

.docs-nav__meta strong {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  text-align: right;
}

.docs-article {
  min-width: 0;
}

.docs-section {
  padding-bottom: 42px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.docs-section:last-of-type {
  margin-bottom: 0;
}

.docs-section h2 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
}

.docs-section h3 {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
}

.docs-section > p {
  max-width: 760px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.docs-section > p code,
.docs-note code,
.docs-callout code,
.docs-cases code {
  padding: 1px 4px;
  background: var(--paper-deep);
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 0.9em;
}

.docs-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.docs-steps > div {
  padding: 17px 16px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.docs-steps > div > span {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}

.docs-steps h3 {
  margin-top: 8px;
  font-size: 17px;
}

.docs-steps p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.docs-callout {
  margin-top: 24px;
  padding: 14px 17px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.docs-callout--warm {
  border-color: #b77927;
  background: #f7ebd5;
}

.docs-callout strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.docs-callout p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.75;
}

.docs-callout p code {
  background: rgba(255, 255, 255, 0.5);
}

.docs-code {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--navy);
}

.docs-code pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px 20px;
  color: #d7e2dc;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  tab-size: 2;
}

.docs-code code {
  font-family: inherit;
}

.docs-api-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.docs-api-line code,
.docs-endpoint code {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
}

.method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 43px;
  padding: 2px 5px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.method--post {
  background: var(--accent);
  color: var(--white);
}

.method--get {
  background: var(--teal);
  color: var(--white);
}

.docs-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--line);
}

.docs-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.65;
}

.docs-table th,
.docs-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

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

.docs-table td:first-child {
  width: 150px;
  white-space: nowrap;
}

.docs-table td:nth-child(2),
.docs-table td:nth-child(3) {
  white-space: nowrap;
}

.docs-table code {
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 9.5px;
}

.required-mark {
  color: var(--accent);
  font-size: 9px;
}

.docs-note {
  margin-top: 9px !important;
  color: var(--muted-light) !important;
  font-size: 10px !important;
}

.docs-response {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 9px;
}

.response-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.docs-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 20px;
}

.docs-cases > div {
  padding: 14px 15px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.docs-cases strong {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 16px;
}

.docs-cases p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.case-code {
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 9px;
}

.docs-endpoint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.docs-endpoint > span:last-child {
  margin-left: auto;
  color: var(--muted-light);
  font-size: 10px;
}

.docs-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 35px;
  padding: 27px 28px;
  background: var(--navy);
  color: var(--white);
}

.docs-cta h2 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.25;
}

.docs-cta p {
  margin-top: 3px;
  color: rgba(255, 253, 248, 0.45);
  font-size: 10px;
}

.docs-cta .eyebrow {
  color: rgba(255, 253, 248, 0.4);
}

/* --------------------------------------------------------------------------
   Error page
   -------------------------------------------------------------------------- */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-header {
  border-bottom: 1px solid var(--line);
}

.error-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.error-header .brand-name {
  font-size: 27px;
}

.error-header .brand-mark {
  width: 40px;
  height: 40px;
  font-size: 21px;
}

.error-main {
  flex: 1;
  padding-block: 70px 80px;
}

.error-code {
  color: var(--line-dark);
  font-family: var(--serif);
  font-size: 112px;
  font-style: italic;
  line-height: 0.9;
}

.error-main h1 {
  margin-top: 15px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 47px);
  line-height: 1.25;
}

.error-main > p {
  max-width: 550px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
}

.error-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 45px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.error-links a:hover {
  color: var(--accent-deep);
}

.error-footer {
  border-top: 1px solid var(--line);
}

.error-footer > .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
  color: var(--muted-light);
  font-size: 9px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1160px) {
  .masthead {
    grid-template-columns: minmax(240px, auto) 1fr 230px;
    gap: 25px;
  }

  .masthead-note {
    font-size: 11px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 30px;
  }

  .latest-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 40px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 38px;
  }

  .collection-grid {
    gap: 18px;
  }

  .collection-grid--large {
    gap: 24px;
  }
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 48px, var(--container));
  }

  .masthead {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding-block: 22px;
  }

  .masthead-note {
    display: none;
  }

  .header-search {
    display: none;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .nav-inner {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-block: 10px;
    min-height: auto;
  }

  .site-nav.is-open .nav-inner {
    display: flex;
  }

  .nav-link {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .nav-link:first-child {
    padding-left: 4px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-spacer,
  .nav-admin {
    display: none;
  }

  .nav-mobile-search {
    display: flex;
    margin: 12px 0 4px;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav-mobile-search input {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: 0;
    background: transparent;
    font-size: 12px;
    outline: none;
  }

  .nav-mobile-search button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    cursor: pointer;
  }

  .home-intro {
    grid-template-columns: 1fr auto;
    gap: 14px 30px;
  }

  .home-intro p {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 44px;
  }

  .hero-side {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-side .hero-side__all {
    margin-top: 15px;
  }

  .latest-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .home-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .category-band-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .category-band__desc {
    min-height: 0;
  }

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

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 770px;
    margin-inline: auto;
  }

  .article-aside {
    display: none;
  }

  .article-header {
    margin-top: 39px;
  }

  .article-row {
    grid-template-columns: 210px minmax(0, 1fr) 32px;
    gap: 20px;
  }

  .collection-item {
    grid-template-columns: 28px 180px minmax(0, 1fr) 28px;
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 0.7fr);
    gap: 28px;
  }

  .docs-hero__inner {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 48px;
  }

  .docs-hero__terminal {
    max-width: 680px;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 38px 60px;
  }

  .docs-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 18px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    padding-top: 0;
    padding-bottom: 10px;
  }

  .docs-nav > .eyebrow {
    width: 100%;
    margin-bottom: 3px;
  }

  .docs-nav nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 15px;
    margin-top: 0;
  }

  .docs-nav nav a {
    padding: 6px 0;
    border-bottom: 0;
    font-size: 10px;
  }

  .docs-nav__meta {
    display: none;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 36px);
  }

  .utility-meta .utility-sep,
  .utility-meta span:last-child {
    display: none;
  }

  .utility-inner {
    min-height: 31px;
  }

  .utility-links {
    gap: 12px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .brand-name {
    font-size: 27px;
  }

  .brand-en {
    font-size: 7px;
  }

  .site-nav {
    position: relative;
  }

  .home-intro {
    display: block;
    padding-block: 23px;
  }

  .home-intro > .text-link {
    margin-top: 11px;
  }

  .hero-lead__content {
    padding: 22px 21px 25px;
  }

  .hero-lead__content h1 {
    font-size: 27px;
  }

  .hero-lead__content > p {
    font-size: 12px;
  }

  .hero-brief {
    grid-template-columns: 31px 1fr;
    gap: 9px;
    padding: 14px 0;
  }

  .hero-brief__body h3 {
    font-size: 17px;
  }

  .section-heading {
    align-items: flex-start;
    gap: 15px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .section-heading__note {
    display: none;
  }

  .story-grid,
  .story-grid--three {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .story-title {
    font-size: 23px;
  }

  .home-sidebar {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .category-bands {
    padding-block: 42px 48px;
  }

  .home-collections {
    padding-block: 42px 54px;
  }

  .collection-grid,
  .collection-grid--large {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .collection-grid--large .collection-card__body h3 {
    font-size: 23px;
  }

  .page-heading {
    display: block;
    padding-bottom: 22px;
  }

  .page-heading h1 {
    font-size: 42px;
  }

  .page-heading__count {
    display: none;
  }

  .list-toolbar {
    display: block;
    padding-block: 13px;
  }

  .filter-tabs {
    gap: 0;
    margin-bottom: 13px;
  }

  .filter-tab {
    padding: 6px 9px;
    font-size: 10px;
  }

  .list-search {
    width: 100%;
  }

  .article-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
    padding-block: 21px;
  }

  .article-row__media {
    aspect-ratio: 16 / 9;
  }

  .article-row__body h2 {
    font-size: 23px;
  }

  .article-row__arrow {
    display: none;
  }

  .pagination {
    gap: 8px;
  }

  .page-arrow {
    font-size: 0;
  }

  .page-arrow span {
    font-size: 14px;
  }

  .page-number {
    min-width: 30px;
    height: 30px;
  }

  .article-main {
    padding-top: 18px;
  }

  .preview-banner {
    flex-wrap: wrap;
    gap: 7px;
  }

  .preview-banner a {
    margin-left: 0;
    width: 100%;
  }

  .article-header {
    margin-top: 29px;
  }

  .article-header h1 {
    font-size: 34px;
  }

  .article-dek {
    font-size: 16px;
  }

  .article-meta {
    font-size: 9px;
  }

  .article-meta time {
    order: 5;
  }

  .copy-link {
    margin-left: 0;
  }

  .article-hero {
    margin-top: 23px;
  }

  .article-layout {
    margin-top: 27px;
  }

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

  .prose h2 {
    font-size: 25px;
  }

  .prose h3 {
    font-size: 20px;
  }

  .prose blockquote {
    padding-left: 17px;
    font-size: 18px;
  }

  .prose table {
    display: block;
    overflow-x: auto;
    font-size: 12px;
  }

  .series-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .series-nav__item--next {
    text-align: left;
  }

  .related-section {
    margin-top: 45px;
  }

  .collection-hero__inner {
    min-height: 330px;
    padding-bottom: 37px;
  }

  .collection-hero__content {
    margin-top: 35px;
  }

  .collection-hero__content h1 {
    font-size: 39px;
  }

  .collection-item {
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    gap: 11px;
    padding-block: 19px;
  }

  .collection-item__media {
    display: none;
  }

  .collection-item__body h2 {
    font-size: 20px;
  }

  .collection-item__body > p {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding-bottom: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column:nth-child(4) {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 5px;
  }

  .error-main {
    padding-block: 44px 55px;
  }

  .error-code {
    font-size: 74px;
  }

  .error-footer > .container {
    flex-direction: column;
    gap: 4px;
  }

  .back-top {
    right: 15px;
    bottom: 15px;
  }

  .docs-hero__inner {
    padding-block: 38px 42px;
  }

  .docs-hero h1 {
    font-size: 39px;
  }

  .docs-hero__copy > p {
    font-size: 12px;
  }

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

  .docs-hero__actions .button {
    width: 100%;
  }

  .docs-hero__terminal pre {
    padding: 15px;
    font-size: 9px;
  }

  .docs-section {
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .docs-section h2 {
    font-size: 29px;
  }

  .docs-steps,
  .docs-cases {
    grid-template-columns: 1fr;
  }

  .docs-steps > div {
    padding: 14px;
  }

  .docs-endpoint {
    align-items: flex-start;
  }

  .docs-endpoint > span:last-child {
    width: 100%;
    margin-left: 0;
  }

  .docs-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .docs-cta .button {
    width: 100%;
  }

  .docs-table {
    min-width: 600px;
  }
}

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