/* ============================================================
   广告主观察 · 编辑部红黑
   Dense editorial system: 4/8/12/16/24 spacing, square rules,
   paper ground, ink type, signal red. Images never cropped.
   ============================================================ */

:root {
  --paper: #f4f3ef;
  --paper-2: #fbfaf7;
  --ink: #101010;
  --ink-2: #2b2b2b;
  --ink-3: #3f3f3f;
  --muted: #676767;
  --line: #d8d5cd;
  --line-soft: #e6e3db;
  --red: #d71920;
  --red-ink: #a50f15;
  --serif: "SimHei", "Heiti SC", "Microsoft YaHei", sans-serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --max: 1320px;
  --gutter: clamp(12px, 2vw, 24px);
  --nav-h: 54px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.container {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
}

.skip-link:focus {
  top: 8px;
}

/* ---------- utility bar ---------- */
.utility {
  background: var(--ink);
  color: #e7e4dc;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.utility .container {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.utility-date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.utility-center {
  color: #a9a59b;
  letter-spacing: 0.08em;
  text-align: center;
}

.utility-links {
  display: flex;
  gap: var(--s3);
  white-space: nowrap;
}

.utility a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- masthead ---------- */
.masthead {
  padding: var(--s4) 0 var(--s3);
}

.masthead .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: block;
  object-fit: cover;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-tag {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.masthead-meta {
  text-align: right;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.masthead-meta strong {
  display: block;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- channel nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--nav-h);
}

.nav-list {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 2px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.nav-link:hover {
  background: #eae7df;
  color: var(--ink);
}

.nav-link.is-active {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.nav-search {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-search:hover {
  color: var(--red);
}

/* ---------- search panel ---------- */
.search-panel {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.search-panel .container {
  display: flex;
  gap: var(--s2);
  padding: var(--s3) 0;
}

.search-panel input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 var(--s3);
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-panel input:focus {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.search-panel button {
  height: 42px;
  padding: 0 var(--s5);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.search-panel button:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ---------- shared type ---------- */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.meta .cat {
  color: var(--red);
  font-weight: 700;
}

.meta .dot {
  color: var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s3);
  padding-bottom: var(--s2);
  margin: var(--s5) 0 0;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-link {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}

.section-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- home hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--s6);
  padding: var(--s5) 0;
}

.hero-lead {
  min-width: 0;
}

.hero-carousel {
  margin: 0 0 var(--s2);
}

.carousel-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--line-soft);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-copy {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  bottom: 0;
  padding: 56px var(--s5) var(--s4);
  color: #fff;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.72) 38%, rgba(0, 0, 0, 0.88));
  pointer-events: none;
}

.carousel-copy a {
  pointer-events: auto;
}

.carousel-copy .hero-title {
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.2;
}

.carousel-copy .hero-title a:hover,
.carousel-copy .meta .cat:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.carousel-copy .hero-dek {
  min-height: 0;
  max-width: 68ch;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: var(--s2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.5;
}

.carousel-copy .meta {
  margin-top: var(--s2);
  color: rgba(255, 255, 255, 0.85);
}

.carousel-copy .meta .cat {
  color: #fff;
}

.carousel-copy .meta .dot {
  color: rgba(255, 255, 255, 0.55);
}

.carousel-arrow {
  position: absolute;
  top: var(--s4);
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(244, 243, 239, 0.94);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.carousel-arrow:hover {
  background: var(--ink);
  color: #fff;
}

.carousel-prev {
  left: var(--s4);
}

.carousel-next {
  right: var(--s4);
}

.carousel-bar {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding-top: 8px;
}

.carousel-dots {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8c4b9;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.carousel-dot.is-active {
  width: 18px;
  border-radius: 2px;
  background: var(--red);
}

.carousel-count {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.carousel-toggle {
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.carousel-toggle:hover {
  color: var(--red);
}

.hero-figure {
  margin: 0 0 var(--s3);
  background: var(--line-soft);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  min-height: 2.28em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-title a:hover {
  color: var(--red);
}

.hero-dek {
  min-height: 3.5em;
  max-width: 60ch;
  margin: var(--s2) 0 0;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.75;
}

.hero-lead .meta {
  margin-top: var(--s2);
}

.hero-side {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 8 / 9;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  padding-bottom: var(--s2);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.hero-side-head h2 {
  margin: 0;
  font: inherit;
}

.hero-brief {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: var(--s3);
  padding: 6px 0;
}

.hero-brief figure {
  margin: 0;
  background: var(--line-soft);
  aspect-ratio: 90 / 70;
  overflow: hidden;
}

.hero-brief img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-brief h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.hero-brief:hover h3 {
  color: var(--red);
}

.hero-brief .meta {
  margin-top: 5px;
  font-size: 11px;
}

.quick-mini {
  margin-top: var(--s3);
}

.quick-mini-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.quick-mini-title::before {
  content: "";
  width: 12px;
  height: 2px;
  background: var(--red);
}

.quick-mini ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.quick-mini li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: var(--s2);
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.5;
}

.quick-mini time {
  color: var(--red);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.quick-mini a:hover {
  color: var(--red);
}

/* ---------- home layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--s6);
  padding-top: var(--s2);
}

.primary {
  min-width: 0;
}

/* ---------- feed rows ---------- */
.feed {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  grid-template-rows: auto 1fr;
  grid-template-areas: "date thumb" "body thumb";
  gap: 4px var(--s4);
  padding: var(--s4) 0;
  align-items: start;
}

.feed-date {
  grid-area: date;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px var(--s2);
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.feed-date time {
  font-weight: 400;
  white-space: nowrap;
}

.feed-date .cat {
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.feed-body {
  grid-area: body;
  min-width: 0;
}

.feed-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.feed-title a:hover {
  color: var(--red);
}

.feed-dek {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.feed-meta {
  margin-top: 5px;
  font-size: 11px;
}

.feed-thumb {
  grid-area: thumb;
  margin: 0;
  background: var(--line-soft);
  aspect-ratio: 240 / 150;
  overflow: hidden;
}

.feed-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.feed-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-item:hover .feed-title {
  color: var(--red);
}

.feed-item + .feed-item {
  border-top: 1px solid var(--line-soft);
}

.feed-meta .cat {
  color: var(--red-ink);
}

.feed-home .feed-item:first-child {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 38%);
  min-height: 250px;
  padding: var(--s3) 0 var(--s5);
}

.feed-home .feed-item:first-child .feed-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feed-home .feed-item:first-child .feed-title {
  font-size: clamp(23px, 2.4vw, 30px);
  line-height: 1.3;
}

.feed-home .feed-item:first-child .feed-dek {
  margin-top: var(--s2);
  font-size: 14px;
}

.feed-home .feed-item:first-child .feed-meta {
  margin-top: auto;
  padding-top: var(--s3);
}

.feed-home .feed-item:first-child .feed-thumb {
  height: 100%;
  aspect-ratio: auto;
}

/* ---------- channel blocks ---------- */
.channels {
  margin-top: var(--s5);
}

.channel {
  padding-top: var(--s2);
}

.channel + .channel {
  margin-top: var(--s5);
}

.channel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding-bottom: var(--s2);
}

.channel-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.channel-title a:hover {
  color: var(--red);
}

.channel-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s4);
  padding: var(--s3) 0;
}

.channel-lead figure {
  margin: 0;
  background: var(--line-soft);
  aspect-ratio: 340 / 220;
  overflow: hidden;
}

.channel-lead img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-lead h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.channel-lead h3 a:hover {
  color: var(--red);
}

.channel-lead p {
  margin: var(--s2) 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.channel-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: baseline;
  padding: 9px 0;
}

.channel-list li + li {
  border-top: 1px solid var(--line-soft);
}

.channel-list a {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.channel-list a:hover {
  color: var(--red);
}

.channel-list time {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- recommend ---------- */
.recommend {
  margin-top: var(--s5);
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  padding-top: var(--s3);
}

.recommend-item {
  min-width: 0;
  padding-top: var(--s2);
}

.recommend-item figure {
  margin: 0 0 var(--s2);
  background: var(--line-soft);
  aspect-ratio: 11 / 5;
  overflow: hidden;
}

.recommend-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommend-item h3 {
  margin: 0;
  height: 2.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.recommend-item h3 a:hover {
  color: var(--red);
}

.recommend-item .meta {
  margin-top: 5px;
  font-size: 11px;
}

/* ---------- rail ---------- */
.rail {
  min-width: 0;
}

.rail-inner {
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.widget {
  padding-top: var(--s2);
  min-width: 0;
}

.widget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  padding-bottom: 6px;
}

.widget-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.widget-head a {
  color: var(--red);
  font-size: 11px;
}

.widget-head a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quick-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: var(--s2);
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.5;
}

.quick-list time {
  color: var(--red);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.quick-list a:hover {
  color: var(--red);
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.rank-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--s2);
  padding: 8px 0;
}

.rank-list li::before {
  counter-increment: rank;
  content: counter(rank, decimal-leading-zero);
  color: var(--red);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.rank-list a {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.rank-list a:hover {
  color: var(--red);
}

.thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2) var(--s3);
  padding-top: var(--s2);
}

.thumb-grid a {
  display: block;
  min-width: 0;
  font-size: 12px;
  line-height: 1.45;
}

.thumb-grid figure {
  margin: 0 0 4px;
  background: var(--line-soft);
  aspect-ratio: 5 / 3;
  overflow: hidden;
}

.thumb-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-grid a:hover {
  color: var(--red);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: var(--s2);
}

.tag-cloud a {
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
}

.tag-cloud a:hover {
  border-color: var(--red);
  color: var(--red);
}

.link-list {
  margin: 0;
  padding: var(--s2) 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px var(--s3);
}

.link-list a {
  display: block;
  padding: 3px 0;
  color: var(--muted);
  font-size: 12px;
}

.link-list a:hover {
  color: var(--red);
}

/* ---------- page head / category / search / tag ---------- */
.page-head {
  padding: var(--s4) 0 var(--s3);
  margin-bottom: var(--s2);
}

.page-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.page-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.search-hint,
.search-empty {
  margin: 0;
  padding: var(--s4) 0 var(--s5);
  color: var(--muted);
  font-size: 14px;
}

.search-empty p {
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: var(--s2) 0 0;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumb a:hover {
  color: var(--red);
}

/* ---------- pager ---------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s5);
  padding-top: var(--s3);
}

.pager a,
.pager span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.pager a:hover {
  border-color: var(--ink);
  color: var(--red);
}

.pager .is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pager .is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pager-info {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* ---------- article ---------- */
.article-wrap {
  padding-top: var(--s2);
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--s6);
}

.article-main {
  min-width: 0;
}

.article-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 50px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.article-note {
  max-width: 44em;
  margin: 0 0 var(--s5);
  padding: var(--s4);
  background: #ece9e1;
  color: var(--ink-3);
}

.article-dek {
  font-size: 16px;
  line-height: 1.8;
}

.article-points h2 {
  margin: 0 0 var(--s2);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
}

.article-points ul {
  display: grid;
  gap: var(--s2);
  margin: 0;
  padding-left: 1.3em;
  font-size: 15px;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: var(--s3) 0;
  padding: var(--s2) var(--s3);
  background: #ece9e1;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.article-meta .cat {
  color: var(--red);
  font-weight: 700;
}

.article-date-day {
  display: none;
}

.article-figure {
  margin: 0 0 var(--s5);
  background: var(--line-soft);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-body {
  max-width: 44em;
  color: #1c1c1c;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.article-body p {
  margin: 0 0 1.15em;
}

.article-body a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body img {
  display: block;
  max-width: 100%;
  height: auto !important;
  margin: 20px auto;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 1.6em 0 0.6em;
  font-family: var(--serif);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.article-body h1 {
  font-size: 1.6em;
}

.article-body h2 {
  font-size: 1.35em;
}

.article-body h3 {
  font-size: 1.18em;
}

.article-body blockquote {
  margin: 1.4em 0;
  padding: var(--s3) var(--s4);
  background: #ece9e1;
  color: var(--ink-3);
  font-size: 16px;
}

.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: var(--s3);
  background: #eceae3;
  font-size: 13px;
}

.article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-body td,
.article-body th {
  border: 1px solid var(--line);
  padding: 6px 8px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: var(--s5);
  padding-top: var(--s3);
}

.article-tags .label {
  color: var(--muted);
  font-size: 12px;
}

.article-tags a {
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
}

.article-tags a:hover {
  border-color: var(--red);
  color: var(--red);
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s4);
  color: var(--muted);
  font-size: 11px;
}

.article-share a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.article-share a:hover {
  color: var(--red);
  border-color: var(--red);
}

.related {
  margin-top: var(--s5);
  padding-top: var(--s3);
}

.related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s2);
}

.related-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.related-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
  padding-top: var(--s2);
}

.related-item figure {
  margin: 0;
  background: var(--line-soft);
  aspect-ratio: 9 / 5;
  overflow: hidden;
}

.related-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.related-item:hover h3 {
  color: var(--red);
}

.related-item > div,
.hero-brief > div {
  min-width: 0;
}

.feed-thumb img,
.hero-brief img,
.channel-lead img,
.recommend-item img,
.thumb-grid img,
.related-item img {
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-item:hover .feed-thumb img,
.hero-brief:hover img,
.channel-lead:hover img,
.recommend-item:hover img,
.thumb-grid a:hover img,
.related-item:hover img {
  transform: scale(1.04);
}

/* ---------- reading progress ---------- */
.reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 80ms linear;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: var(--s6);
  background: var(--ink);
  color: #c8c4ba;
  font-size: 12px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: var(--s5);
  padding: var(--s5) 0;
}

.footer-brand .brand-name {
  color: #fff;
  font-size: 20px;
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: cover;
}

.footer-brand .brand-tag {
  color: #9d998f;
}

.footer-block h3 {
  margin: 0 0 var(--s2);
  color: #fff;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px var(--s4);
}

.footer-nav a,
.footer-links a {
  display: block;
  padding: 2px 0;
  color: #c8c4ba;
}

.footer-nav a:hover,
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s3) 0;
  color: #8f8b82;
  font-size: 11px;
}

.footer-bottom a {
  color: #b8b4aa;
}

/* ---------- 404 ---------- */
.notfound {
  padding: var(--s6) 0;
}

.notfound-code {
  margin: 0;
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(88px, 16vw, 180px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.notfound h1 {
  margin: var(--s2) 0 var(--s2);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
}

.notfound p:not(.notfound-code) {
  max-width: 52ch;
  margin: 0 0 var(--s3);
  color: var(--muted);
}

.notfound-search {
  display: flex;
  gap: var(--s2);
  max-width: 520px;
  margin: var(--s4) 0;
}

.notfound-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 var(--s3);
  border: 1px solid var(--ink);
  background: #fff;
}

.notfound-search button {
  height: 44px;
  padding: 0 var(--s5);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.notfound-search button:hover {
  background: var(--red);
  border-color: var(--red);
}

.notfound-list {
  margin-top: var(--s5);
  border-top: 2px solid var(--ink);
  padding-top: var(--s2);
  max-width: 720px;
}

.notfound-list h2 {
  margin: 0 0 var(--s2);
  font-family: var(--serif);
  font-size: 18px;
}

.notfound-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- member pages ---------- */
.member-page {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.member-page > .whitebg {
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.member-page .htitle {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.member-page label {
  color: var(--ink-3);
}

.member-page input:not([type="hidden"]):not([type="file"]),
.member-page textarea,
.member-page select {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.member-page input:focus-visible,
.member-page textarea:focus-visible,
.member-page select:focus-visible {
  border-color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.member-page button,
.member-page a {
  text-underline-offset: 3px;
}

.member-page button:hover,
.member-page a:hover {
  filter: brightness(0.88);
}

.member-page table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.member-page table th,
.member-page table td {
  white-space: nowrap;
}

.notfound-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

/* ---------- motion ---------- */
@keyframes lead-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-lead {
  animation: lead-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-lead {
    animation: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s4);
  }

  .hero-side {
    display: grid;
    aspect-ratio: auto;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--s4);
  }

  .hero-side-head {
    grid-column: 1 / -1;
  }

  .quick-mini {
    margin-top: 0;
  }
}

@media (max-width: 1080px) {
  .layout,
  .article-grid {
    gap: var(--s5);
  }

  .recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .layout,
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail-inner {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    align-items: start;
  }

  .rail-inner .widget {
    min-width: 0;
  }

  .rail-inner .widget:first-child {
    grid-column: 1 / -1;
  }

  .channel-lead {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .utility .container {
    min-height: 30px;
  }

  .utility-center,
  .masthead-meta {
    display: none;
  }

  .utility-links {
    gap: var(--s2);
  }

  .masthead {
    padding: 10px 0 8px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-name {
    font-size: 23px;
  }

  .brand-tag {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .nav-inner {
    gap: 0;
  }

  .nav-link {
    padding: 0 11px;
    height: 44px;
    font-size: 13px;
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
  }

  .carousel-prev {
    left: var(--s2);
  }

  .carousel-next {
    right: var(--s2);
  }

  .carousel-copy {
    padding: 36px var(--s4) var(--s3);
  }

  .carousel-copy .hero-title {
    font-size: clamp(20px, 5vw, 28px);
  }

  .carousel-copy .hero-dek {
    -webkit-line-clamp: 1;
    font-size: 12px;
  }

  .carousel-copy .meta {
    font-size: 11px;
  }

  .nav-list .nav-item:first-child .nav-link {
    padding-left: 0;
  }

  .hero {
    padding: var(--s4) 0 var(--s5);
  }

  .hero-title {
    min-height: 3.42em;
    font-size: clamp(28px, 8.4vw, 38px);
  }

  .hero-dek {
    font-size: 14px;
  }

  .hero-side {
    display: block;
  }

  .hero-brief {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: var(--s2);
  }

  .hero-brief h3 {
    font-size: 14px;
  }

  .feed-item {
    grid-template-columns: minmax(0, 1fr) 88px;
    grid-template-rows: auto auto;
    gap: 4px var(--s2);
    padding: var(--s3) 0;
  }

  .feed-date {
    gap: var(--s2);
  }

  .feed-title {
    font-size: 17px;
  }

  .feed-dek {
    -webkit-line-clamp: 2;
    font-size: 12px;
  }

  .feed-home .feed-item:first-child {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "thumb" "date" "body";
    gap: var(--s2);
    min-height: 0;
    padding: var(--s3) 0 var(--s4);
  }

  .feed-home .feed-item:first-child .feed-thumb {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .feed-home .feed-item:first-child .feed-title {
    font-size: 20px;
  }

  .feed-home .feed-item:first-child .feed-dek {
    font-size: 12px;
  }

  .feed-home .feed-item:first-child .feed-meta {
    margin-top: var(--s2);
    padding-top: 0;
  }

  .channel-lead {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s2);
  }

  .channel-lead h3 {
    font-size: 19px;
  }

  .recommend-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s3);
  }

  .rail-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail-inner .widget:first-child {
    grid-column: auto;
  }

  .article-title {
    font-size: 20px;
  }

  .article-meta {
    gap: 2px 6px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.5;
  }

  .article-date-full {
    display: none;
  }

  .article-date-day {
    display: inline;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.9;
  }

  .related-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s3);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--s4);
    padding: var(--s5) 0;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .carousel-copy .hero-dek {
    display: none;
  }

  .feed-item {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .pager-info {
    width: 100%;
    margin-left: 0;
  }
}

/* ---------- refinements ---------- */
.footer-brand p {
  max-width: 40ch;
  margin: var(--s2) 0 0;
  color: #9d998f;
  font-size: 12px;
  line-height: 1.8;
}

.article-share button {
  padding: 2px 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 11px;
  cursor: pointer;
}

.article-share button:hover {
  border-color: var(--red);
  color: var(--red);
}

.feed-title font {
  color: var(--red);
  font-style: normal;
}

.page-title {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .article-share {
    flex-wrap: wrap;
  }

  .article-share a {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .pager a,
  .pager span {
    height: 40px;
    min-width: 40px;
  }
}
.page-search {
  display: flex;
  gap: var(--s2);
  max-width: 560px;
  margin: 0 0 var(--s4);
}

.page-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 var(--s3);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.page-search input:focus {
  border-color: var(--red);
}

.page-search button {
  height: 44px;
  padding: 0 var(--s4);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.page-search button:hover {
  background: var(--red);
  border-color: var(--red);
}

@media (max-width: 720px) {
  .member-page > .whitebg {
    padding: var(--s4) !important;
  }

  .member-page > .whitebg > div:first-child {
    flex-wrap: wrap;
    gap: var(--s3);
  }

  .member-page [style*="min-width"] {
    min-width: 0 !important;
  }

  .member-page #litpic {
    width: 100% !important;
  }

  .member-page #pick-image {
    margin: var(--s2) 0 0 !important;
  }
}

.nowrap {
  white-space: nowrap;
}
