:root {
  --background: #f6f4ee;
  --foreground: #1c1a17;
  --muted: #f1ede3;
  --muted-foreground: #676258;
  --accent: #b8860b;
  --accent-secondary: #d4a84b;
  --accent-soft: rgba(184, 134, 11, 0.08);
  --border: #ddd5c5;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 8px 24px rgba(26, 26, 26, 0.08);
  --container-gutter: clamp(24px, 3.6vw, 40px);
  --container-width: 1120px;
  --header-offset: 108px;
  --header-offset-mobile: 146px;
  --header-content-gap: 32px;
  --header-anchor-gap: 56px;
  --header-content-gap-mobile: 22px;
  --header-anchor-gap-mobile: 40px;
  --font-size-body: 16px;
  --font-size-brand-title: 19px;
  --font-size-brand-subtitle: 12px;
  --font-size-section-title: 42px;
  --font-size-card-title: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

[id] {
  scroll-margin-top: 132px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: var(--font-size-body);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-shell {
  position: relative;
  overflow: visible;
}

.paper-noise,
.ambient-glow {
  display: none;
}

.paper-noise {
  opacity: 0.3;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(26, 26, 26, 0.025) 0, transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(26, 26, 26, 0.02) 0, transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(26, 26, 26, 0.018) 0, transparent 22%);
}

.ambient-glow {
  background:
    radial-gradient(circle at 50% 15%, rgba(212, 168, 75, 0.16), transparent 35%);
  opacity: 0.28;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(var(--container-width), 100%);
  padding-inline: var(--container-gutter);
  margin: 0 auto;
}

.section {
  padding: 4.75rem 0;
}

.section:not(.hero) {
  padding: 0.9rem 0;
}

.section-tight {
  padding-top: 0;
}

.muted-section {
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

.section:not(.hero) > .container {
  padding: 26px 0 0;
  border-top: 1px solid rgba(232, 228, 223, 0.94);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(144, 109, 35, 0.96), rgba(126, 94, 28, 0.96));
  border-bottom: 1px solid rgba(255, 233, 181, 0.22);
  box-shadow: none;
}

main {
  padding-top: 18px;
}

.header-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  min-height: 76px;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 241, 205, 0.42);
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  color: #fff9ed;
  background: rgba(255, 232, 180, 0.06);
  box-shadow: none;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: var(--font-size-brand-title);
  font-weight: 600;
  color: #fff9ed;
}

.brand-text span {
  font-family: "IBM Plex Mono", monospace;
  font-size: var(--font-size-brand-subtitle);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 243, 214, 0.9);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: clamp(16px, 1.8vw, 28px);
  min-width: 0;
}

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  margin-left: 0;
}

.header-search-input {
  width: 220px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 238, 194, 0.34);
  border-radius: 999px;
  background: rgba(255, 248, 229, 0.08);
  color: #fff9ed;
  font: inherit;
}

.header-search-input::placeholder {
  color: rgba(255, 243, 214, 0.74);
}

.header-search-input:focus {
  outline: none;
  border-color: rgba(255, 241, 205, 0.68);
  background: rgba(255, 248, 229, 0.14);
}

.header-search-button {
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 238, 194, 0.34);
  border-radius: 999px;
  background: rgba(255, 248, 229, 0.12);
  color: #fff9ed;
  font: inherit;
  cursor: pointer;
}

.header-search-button:hover {
  background: rgba(255, 248, 229, 0.2);
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  color: #fff4d6;
  transition: color 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out;
  padding: 0;
  border-radius: 0;
  border: 0;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff9ed;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: rgba(255, 233, 181, 0.7);
}

.site-nav a.is-active {
  position: relative;
  box-shadow: none;
}

.site-nav a.is-active::after {
  display: none;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 72px;
  padding: 0 16px;
  border: 1px solid rgba(255, 239, 201, 0.4);
  border-radius: 999px;
  background: rgba(255, 243, 214, 0.08);
  color: #fff9ef;
}

.hero {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

.hero-inner {
  width: min(var(--container-width), 100%);
  max-width: none;
  padding-inline: 0;
}

.hero-stage {
  position: relative;
  display: block;
  min-height: clamp(260px, 34vh, 360px);
  overflow: hidden;
  border-radius: 0;
  background: #26221d;
  box-shadow: none;
}

.hero-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-stage-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 12, 9, 0.44) 0%, rgba(14, 12, 9, 0.28) 56%, rgba(14, 12, 9, 0.18) 100%),
    linear-gradient(180deg, rgba(14, 12, 9, 0.14) 0%, rgba(14, 12, 9, 0.22) 100%);
  z-index: 1;
}

.hero-stage-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: center;
  padding: 32px 20px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  color: rgba(255, 250, 244, 0.96);
  text-align: center;
}

.hero-stage-kicker,
.hero-scroll-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-stage-kicker {
  margin: 0;
  color: rgba(255, 250, 244, 0.78);
}

.hero-stage h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(calc(var(--font-size-section-title) * 0.86), 5vw, calc(var(--font-size-section-title) * 1.7));
  line-height: 1.02;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: rgba(255, 250, 244, 0.96);
  text-shadow: none;
}

.hero-stage-lead {
  max-width: none;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.55;
  white-space: nowrap;
  color: rgba(255, 250, 244, 0.84);
}

.hero-stage-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 250, 244, 0.78);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-stage-topics span {
  position: relative;
  padding-right: 18px;
}

.hero-stage-topics span:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: 0;
  color: rgba(255, 250, 244, 0.52);
}

.hero-scroll-link {
  width: fit-content;
  margin-top: 8px;
  color: rgba(255, 250, 244, 0.94);
  text-decoration: underline;
  text-decoration-color: rgba(255, 250, 244, 0.5);
  text-underline-offset: 8px;
}

.hero-scroll-link:hover {
  text-decoration-color: rgba(255, 250, 244, 0.94);
}

.hero-feed-shell {
  position: relative;
  z-index: 1;
  width: min(var(--container-width), 100%);
  padding-inline: 0;
  margin: 24px auto 0;
  scroll-margin-top: 180px;
}

.home-featured-section .hero-feed-shell {
  margin-top: 0;
}

.eyebrow,
.label-text,
.platform-tag,
.panel-card small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent);
  margin: 0 0 24px;
}

.hero h1,
.section h2,
.section h3,
.explore-page h1,
.post-page h1,
.about-page-card h1,
.stat-number,
.quote-mark {
  font-family: "Playfair Display", Georgia, serif;
}

.hero h1 {
  margin: 0;
  font-size: clamp(calc(var(--font-size-section-title) * 0.9), 5vw, var(--font-size-section-title));
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted-foreground);
  font-size: 1.18rem;
}

.hero-lead span {
  color: var(--foreground);
  font-weight: 600;
}

.hero-visual {
  display: grid;
  gap: 0;
  align-self: start;
}

.hero-visual-card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-visual-frame {
  display: grid;
  align-items: end;
  justify-items: center;
  position: relative;
  aspect-ratio: 0.8;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(26, 26, 26, 0.08), rgba(184, 134, 11, 0.14));
}

.hero-visual-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

.hero-visual-placeholder {
  display: grid;
  place-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 32px;
  text-align: center;
  color: var(--muted-foreground);
}

.hero-visual-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0), rgba(26, 26, 26, 0.68));
}

.placeholder-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-visual-placeholder p {
  max-width: 280px;
  margin: 0;
}

.hero-visual-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-feed {
  padding: 28px 0 0;
  border-top: 1px solid rgba(232, 228, 223, 0.92);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.feed-header {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.feed-header .platform-tag {
  color: var(--accent);
}

.feed-header h2 {
  margin-top: 4px;
  margin-bottom: 4px;
  font-size: clamp(calc(var(--font-size-section-title) * 0.68), 3vw, calc(var(--font-size-section-title) * 0.82));
}

.feed-header p {
  margin: 0;
  color: var(--muted-foreground);
}

.featured-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.module-entry-grid {
  align-items: stretch;
}

.home-focus-grid {
  align-items: stretch;
}

.home-module-section.section:not(.hero) {
  padding-top: 0.35rem;
}

.home-module-panel {
  display: grid;
  gap: 22px;
  padding: 8px 0 0;
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  border-top: 1px solid rgba(232, 228, 223, 0.94);
}

.home-service-card {
  display: grid;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(232, 228, 223, 0.94);
}

.home-service-card h3 {
  margin: 0;
  font-size: var(--font-size-card-title);
  line-height: 1.3;
}

.home-service-card p {
  margin: 0;
  color: var(--muted-foreground);
}

.home-about-module-panel {
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 360px);
  align-items: stretch;
  gap: clamp(12px, 2vw, 20px);
}

.home-about-intro-section .home-module-link-panel {
  border-top: 0;
  padding-top: 8px;
}

.home-about-module-panel .home-module-copy {
  max-width: none;
  min-width: 0;
  gap: 16px;
  padding-right: 0;
}

.home-about-module-panel h2 {
  font-size: clamp(calc(var(--font-size-section-title) * 0.9), 4.8vw, calc(var(--font-size-section-title) * 0.96));
  line-height: 1.06;
}

.home-about-module-panel #home-about-lead {
  max-width: 42ch;
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: clamp(1.32rem, 2vw, 1.72rem);
  font-weight: 700;
  line-height: 1.72;
  color: rgba(166, 118, 16, 0.96);
}

.home-about-module-panel #home-about-body {
  max-width: 56ch;
  font-size: 1.04rem;
  line-height: 1.8;
}

.home-module-copy {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.home-module-copy > p {
  margin: 0;
}

.home-module-panel h2 {
  margin: 0;
}

.home-about-visual-card {
  margin: 0;
  width: 100%;
  max-width: 340px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  justify-self: end;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
}

.home-about-visual-frame {
  width: 100%;
  min-height: 420px;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  background: transparent;
}

.home-about-visual-frame,
.home-about-visual-frame .hero-visual-image,
.home-about-visual-frame .hero-visual-placeholder {
  aspect-ratio: 3 / 4;
}

.home-about-visual-frame .hero-visual-image {
  object-fit: contain;
  object-position: center bottom;
}

.home-about-visual-frame .hero-visual-overlay {
  display: none;
}

.home-focus-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.home-focus-card > p {
  margin: 0;
}

.home-focus-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-focus-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 999px;
  background: rgba(184, 134, 11, 0.08);
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-publications-card,
.home-about-card {
  min-height: 100%;
}

.home-publication-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(232, 228, 223, 0.94);
}

.home-publication-item {
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(232, 228, 223, 0.94);
}

.home-publication-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  align-items: center;
  gap: 24px;
}

.home-publication-item.no-cover,
.home-publication-main.no-cover {
  grid-template-columns: 1fr;
}

.home-publication-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.home-publication-cover {
  width: min(100%, 260px);
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(232, 228, 223, 0.94);
  background: rgba(245, 243, 240, 0.82);
}

.home-publication-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-publication-item:first-child {
  padding-top: 18px;
}

.home-publication-item h4 {
  margin: 0;
  font-size: var(--font-size-card-title);
  line-height: 1.4;
}

.home-publication-item p,
.home-inline-note {
  margin: 0;
  color: var(--muted-foreground);
}

.home-inline-note {
  font-size: 0.95rem;
}

.home-publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.publication-action-button {
  min-height: 52px;
  padding: 0 22px;
  font-size: 1.08rem;
}

.module-entry-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.module-entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.module-entry-direct {
  margin-top: 8px;
}

.module-entry-stack {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 228, 223, 0.94);
}

.module-entry-direct-label {
  margin: 0;
  color: var(--muted-foreground);
}

.module-entry-teaser {
  display: grid;
  gap: 10px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid rgba(232, 228, 223, 0.94);
  border-radius: 0;
  background: transparent;
}

.module-entry-teaser.is-empty {
  background: transparent;
}

.module-entry-teaser h4 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
}

.module-entry-teaser p {
  margin: 0;
  color: var(--muted-foreground);
}

.module-entry-teaser-meta,
.content-card-inline-links,
.module-entry-actions,
.content-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.module-entry-teaser-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.module-entry-topic {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: auto;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(184, 134, 11, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.module-entry-topic:hover {
  border-color: rgba(184, 134, 11, 0.5);
}

.explore-module-summary {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

.explore-spotlight {
  margin-bottom: 28px;
}

.explore-spotlight-card {
  padding: 24px 0;
  border-top: 1px solid rgba(232, 228, 223, 0.94);
  border-bottom: 1px solid rgba(232, 228, 223, 0.94);
}

.module-summary-panel {
  display: grid;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(232, 228, 223, 0.94);
}

.module-summary-panel > p,
.module-summary-note {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.8;
}

.module-summary-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid rgba(232, 228, 223, 0.94);
}

.module-book-cover {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 6px 0 18px;
  border: 0;
  border-bottom: 1px solid rgba(232, 228, 223, 0.92);
  border-radius: 0;
  background: transparent;
}

.module-book-cover img {
  width: 100%;
  max-width: 220px;
  max-height: 300px;
  object-fit: contain;
  display: block;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid rgba(232, 228, 223, 0.94);
}

.explore-layout,
.post-layout {
  width: min(var(--container-width), 100%);
  margin-inline: auto;
}

.explore-page,
.post-page {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.explore-page .section-head,
.post-page {
  max-width: none;
}

.explore-page h1,
.post-page h1 {
  margin: 0;
  font-size: clamp(calc(var(--font-size-section-title) * 0.92), 5.2vw, calc(var(--font-size-section-title) * 1.02));
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.post-page {
  display: grid;
  gap: 18px;
}

.post-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-excerpt {
  max-width: none;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted-foreground);
}

.post-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.post-purchase-button {
  font-size: 1.12rem;
}

.post-cover {
  display: block;
  width: min(100%, 720px);
  max-width: 720px;
  margin: 6px 0 0;
  border: 1px solid rgba(232, 228, 223, 0.94);
  border-radius: 0;
}

body[data-post-section="publications"] .post-cover {
  width: min(100%, 360px);
  max-width: 360px;
}

.post-body {
  display: block;
  width: 100%;
  max-width: none;
  font-size: 1.06rem;
  line-height: 1.9;
}

.post-body > * {
  margin: 0 0 18px;
}

.post-body > *:last-child {
  margin-bottom: 0;
}

.post-body figure {
  display: grid;
  gap: 10px;
  margin: 8px 0 28px;
  justify-items: start;
}

.post-body img {
  display: block;
  width: min(100%, 720px);
  max-width: 720px;
  height: auto;
  border: 1px solid rgba(232, 228, 223, 0.94);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  margin-inline: 0;
}

.post-body figcaption {
  color: var(--muted-foreground);
  font-size: 0.94rem;
  line-height: 1.7;
  width: min(100%, 720px);
}

.post-body p > img:only-child {
  margin: 8px 0 10px;
  margin-inline: 0;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin-top: 18px;
}

.explore-page .cards-grid,
.post-page .cards-grid,
.module-summary-panel .cards-grid {
  gap: 0 28px;
}

.about-page-layout {
  margin-top: 0;
  align-items: start;
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.98fr);
  gap: 28px;
}

.about-page-card {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-page-main {
  display: grid;
  gap: 24px;
}

.about-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 6px;
}

.about-page-tags span {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.about-page-card h1 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  font-size: clamp(calc(var(--font-size-section-title) * 0.92), 5.2vw, calc(var(--font-size-section-title) * 1.02));
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-page-headline {
  display: grid;
  gap: 4px;
}

.about-page-headline p {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  font-style: italic;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.about-page-intro {
  display: grid;
  gap: 8px;
}

.about-page-intro p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--foreground);
}

.about-page-description {
  display: grid;
  gap: 12px;
}

.about-page-description p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted-foreground);
  line-height: 1.78;
}

.about-page-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  border-top: 1px solid rgba(207, 211, 223, 0.92);
  border-bottom: 1px solid rgba(207, 211, 223, 0.92);
}

.about-page-focus-card {
  display: grid;
  gap: 10px;
  padding: 14px 0 16px;
}

.about-page-focus-card h2 {
  margin: 0;
  color: var(--accent);
  font-size: 0.95rem;
}

.about-page-focus-card p {
  margin: 0;
  color: var(--foreground);
  line-height: 1.7;
}

.about-page-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.about-page-stat-card {
  display: grid;
  gap: 4px;
}

.about-page-stat-card strong {
  color: var(--accent);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

.about-page-stat-card span {
  color: var(--foreground);
  font-size: 0.95rem;
  line-height: 1.45;
}

.about-page-contact {
  margin-top: 28px;
}

.featured-item {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  align-items: stretch;
  gap: 28px;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid rgba(232, 228, 223, 0.95);
  border-radius: 0;
  background: transparent;
  transition: all 200ms ease-out;
}

.featured-item:hover {
  border-color: rgba(184, 134, 11, 0.42);
  box-shadow: none;
  background: rgba(184, 134, 11, 0.05);
}

.featured-item-spotlight {
  grid-row: auto;
  padding: 22px 0 24px;
  background: transparent;
  border-top: 1px solid rgba(184, 134, 11, 0.28);
  border-bottom: 1px solid rgba(184, 134, 11, 0.28);
}

.featured-item-spotlight h3 {
  font-size: 1.7rem;
  line-height: 1.28;
}

.featured-item-spotlight p {
  font-size: 1.02rem;
  line-height: 1.8;
}

.featured-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.featured-type {
  color: var(--accent);
}

.featured-item h3 {
  margin: 0;
  font-size: var(--font-size-card-title);
  line-height: 1.28;
}

.featured-item p {
  margin: 0;
  color: var(--muted-foreground);
}

.featured-media {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 180px;
  border-left: 1px solid rgba(232, 228, 223, 0.95);
  padding-left: 24px;
}

.featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: 240px;
  object-fit: cover;
  border: 1px solid rgba(232, 228, 223, 0.95);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.76);
}

.featured-media.is-empty {
  background: transparent;
}

.featured-media.is-empty span {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 180px;
  padding: 20px;
  border: 1px dashed rgba(184, 134, 11, 0.38);
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
}

.featured-link {
  width: fit-content;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: rgba(184, 134, 11, 0.45);
  text-underline-offset: 5px;
}

.featured-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 200ms ease-out;
  touch-action: manipulation;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: saturate(1.05);
}

.button-secondary {
  color: var(--foreground);
  border-color: var(--foreground);
  background: transparent;
}

.button-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.8);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 52px;
  color: var(--muted-foreground);
}

.hero-note p {
  margin: 0;
}

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

.stats-grid,
.cards-grid {
  display: grid;
  gap: 24px;
}

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

.stat-card,
.info-card,
.link-card,
.empty-card,
.contact-card,
.quote-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.stat-card {
  padding: 28px 24px;
  border-radius: 12px;
  border-top: 2px solid var(--accent);
}

.stat-card h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.stat-card p {
  margin: 0;
  color: var(--muted-foreground);
}

.stat-number {
  display: block;
  margin-bottom: 16px;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--accent);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.label-text {
  color: var(--accent);
  white-space: nowrap;
}

.split-layout,
.method-layout,
.contact-card,
.footer-row {
  display: grid;
  gap: 32px;
}

.split-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  align-items: center;
}

.about-layout {
  align-items: start;
}

.about-visual-panel {
  display: grid;
  gap: 20px;
  align-self: start;
  justify-items: end;
  margin-top: 0;
}

.about-visual-card {
  margin: 0;
  padding-bottom: 0;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}

.about-visual-frame {
  width: 100%;
  align-items: start;
  justify-items: stretch;
  aspect-ratio: 2 / 3;
  background: transparent;
}

.about-visual-frame,
.about-visual-frame .hero-visual-image,
.about-visual-frame .hero-visual-placeholder {
  aspect-ratio: 2 / 3;
}

.about-visual-frame .hero-visual-image {
  align-self: start;
  object-fit: cover;
  object-position: center top;
}

.about-visual-frame .hero-visual-overlay {
  padding: 14px 14px 16px;
}

.section h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lead,
.section-head p,
.method-copy > p,
.contact-card p {
  font-size: 1.12rem;
  color: var(--muted-foreground);
}

.quote-card {
  position: relative;
  padding: 30px 0 0;
  border-radius: 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.quote-mark {
  position: absolute;
  top: -18px;
  left: 18px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(184, 134, 11, 0.2);
}

.quote-card p,
.quote-card strong {
  position: relative;
  z-index: 1;
}

.quote-card p {
  margin: 0 0 18px;
  font-size: 1.12rem;
}

.quote-card strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  max-width: 740px;
  margin-bottom: 34px;
}

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

.publication-grid {
  align-items: stretch;
}

.reading-stack {
  display: grid;
  gap: 20px;
}

.note-card {
  display: grid;
  gap: 10px;
}

.note-card .platform-tag {
  color: var(--accent);
}

.publication-card {
  display: grid;
  gap: 18px;
}

.book-cover-slot {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px dashed rgba(184, 134, 11, 0.45);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 243, 240, 0.9));
  color: var(--accent);
  text-align: center;
}

.book-cover-slot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.book-cover-slot span {
  padding: 0 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 30px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: auto;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--foreground);
  transition: color 180ms ease-out, border-color 180ms ease-out;
}

.topic-pill.topic-pill-return {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(184, 134, 11, 0.28);
  border-radius: 999px;
  background: rgba(184, 134, 11, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.topic-pill:hover {
  color: var(--accent);
  border-color: rgba(184, 134, 11, 0.45);
}

.topic-pill.topic-pill-return:hover {
  background: rgba(184, 134, 11, 0.16);
  border-color: rgba(184, 134, 11, 0.45);
}

.topic-pill.is-active {
  color: var(--accent);
  border-color: rgba(184, 134, 11, 0.7);
}

.explore-page .topic-nav,
.post-page .topic-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.explore-page .topic-pill,
.post-page .topic-pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

.info-card,
.link-card {
  padding: 22px 0;
  border-top: 1px solid rgba(232, 228, 223, 0.94);
  border-radius: 0;
  transition: all 200ms ease-out;
}

.empty-card {
  padding: 24px 0;
  border-radius: 0;
  border-top: 1px solid var(--border);
}

.info-card:hover,
.link-card:hover {
  box-shadow: none;
  background: transparent;
}

.featured-card {
  background: transparent;
  border-top: 1px solid rgba(184, 134, 11, 0.22);
}

.info-card h3,
.link-card h3,
.method-steps h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.info-card p,
.info-card ul,
.link-card p,
.panel-card p,
.method-steps p,
.content-note p {
  margin: 0;
  color: var(--muted-foreground);
}

.info-card ul {
  margin-top: 18px;
  padding-left: 18px;
}

.info-card li + li {
  margin-top: 8px;
}

.method-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: stretch;
}

.method-steps {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.method-steps article {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.method-steps article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.method-steps span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  color: var(--accent);
}

.method-panel {
  display: flex;
  align-items: stretch;
}

.panel-stack {
  position: relative;
  width: 100%;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(212, 168, 75, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 243, 240, 0.88));
  box-shadow: var(--shadow-md);
}

.panel-stack::before,
.panel-stack::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(184, 134, 11, 0.18);
}

.panel-stack::before {
  inset: 24px auto auto 24px;
  width: 120px;
  height: 120px;
}

.panel-stack::after {
  inset: auto 18px 24px auto;
  width: 84px;
  height: 84px;
}

.panel-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(232, 228, 223, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.panel-card + .panel-card {
  margin-top: 16px;
}

.panel-card-large {
  min-height: 220px;
}

.panel-card small {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
}

.panel-card strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.platform-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: rgba(184, 134, 11, 0.5);
  text-underline-offset: 5px;
  transition: color 200ms ease-out, text-decoration-color 200ms ease-out;
}

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

.line-card-link {
  display: grid;
  color: inherit;
  transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out;
}

.line-card-link:hover {
  color: inherit;
  background: rgba(184, 134, 11, 0.035);
}

.line-card-link:hover h2,
.line-card-link:hover h3,
.line-card-link:hover h4,
.line-card-link:hover .line-card-tail,
.line-card-link:hover .home-module-tail {
  color: var(--accent);
}

.line-card-tail,
.home-module-tail {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(184, 134, 11, 0.86);
}

.home-module-link-panel {
  border-top: 1px solid rgba(232, 228, 223, 0.94);
  padding-top: 20px;
}

.home-module-link-panel:hover,
.home-publication-item:hover,
.footer-simple-link:hover,
.info-card.line-card-link:hover,
.featured-item.line-card-link:hover {
  background: rgba(184, 134, 11, 0.05);
}

.module-entry-actions .text-link,
.content-card-actions .text-link {
  margin-top: 0;
}

.text-link.text-link-subtle {
  color: var(--muted-foreground);
  text-decoration-color: rgba(107, 107, 107, 0.35);
}

.text-link.text-link-subtle:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.content-note {
  margin-top: 22px;
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.62);
}

.content-grid {
  margin-bottom: 24px;
  gap: 0 28px;
}

.module-summary-panel .cards-grid {
  gap: 0 28px;
}

.content-card-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.post-breadcrumbs {
  margin-bottom: 18px;
}

.post-drilldown {
  display: grid;
  gap: 22px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.post-drilldown-head {
  display: grid;
  gap: 10px;
}

.post-drilldown-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.post-drilldown-head p {
  margin: 0;
  color: var(--muted-foreground);
}

.post-drilldown-actions {
  margin-bottom: 0;
}

.contact-card {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  padding: 30px 0 0;
  border-radius: 0;
  border-top: 1px solid var(--border);
}

.contact-meta {
  display: grid;
  gap: 20px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.contact-meta span {
  display: block;
  margin-bottom: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.contact-meta strong {
  font-size: 1.06rem;
}

.site-footer {
  margin-top: 40px;
  padding: 42px 0 24px;
  background:
    linear-gradient(180deg, rgba(102, 74, 21, 0.98), rgba(132, 97, 33, 0.98));
  border-top: 1px solid rgba(255, 224, 158, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 239, 201, 0.06);
}

.footer-panel {
  display: grid;
  gap: 24px;
  padding: 0;
}

.footer-widgets {
  display: grid;
  grid-template-columns: minmax(340px, 1.3fr) minmax(180px, 0.6fr) minmax(260px, 0.9fr);
  gap: 56px;
}

.footer-widget {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-widget h2 {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: rgba(255, 233, 181, 0.86);
}

.footer-widget p,
.footer-note {
  margin: 0;
  color: rgba(255, 233, 181, 0.78);
}

.footer-widget-intro p {
  max-width: 34ch;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer-brand .brand-mark {
  width: 48px;
  height: 48px;
  font-size: 1.35rem;
}

.footer-brand .brand-text strong {
  font-size: calc(var(--font-size-brand-title) * 1.65);
  line-height: 1;
  color: #fff9ed;
}

.footer-brand .brand-text span {
  display: none;
}

.footer-links-grid {
  display: block;
  margin-top: 2px;
}

.footer-platforms {
  display: grid;
  gap: 14px;
}

.footer-platform-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-platform-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 224, 158, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: none;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out,
    background-color 180ms ease-out;
  overflow: hidden;
}

.footer-platform-icon:hover,
.footer-platform-icon:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 224, 158, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.footer-platform-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

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

.footer-links-grid[data-icon-shape="circle"] .footer-platform-icon {
  border-radius: 999px;
}

.footer-platform-icon-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.96);
}

.footer-platform-bilibili {
  background: linear-gradient(135deg, #2aa6df, #3b8ce6);
}

.footer-platform-zhihu {
  background: linear-gradient(135deg, #1677ff, #0b56cc);
}

.footer-platform-wechat {
  background: linear-gradient(135deg, #1bc95b, #08a347);
}

.footer-platform-douyin {
  background: linear-gradient(135deg, #111111, #f03d76);
}

.footer-platform-ximalaya {
  background: linear-gradient(135deg, #ff6a4d, #e33c20);
}

.footer-platform-youtube {
  background: linear-gradient(135deg, #ff4848, #cf2020);
}

.footer-platform-linkedin {
  background: linear-gradient(135deg, #1b74c9, #0f5aa7);
}

.footer-platform-facebook {
  background: linear-gradient(135deg, #4367b2, #325399);
}

.footer-platform-twitter {
  background: linear-gradient(135deg, #242424, #111111);
}

.footer-platform-generic {
  background: linear-gradient(135deg, #8d6a22, #b8860b);
}

.footer-platform-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 156px));
  gap: 12px;
  justify-content: start;
}

.footer-platform-qr-card {
  display: grid;
  gap: 6px;
  align-content: start;
  justify-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 224, 158, 0.18);
  background: rgba(40, 27, 8, 0.97);
  min-height: 100%;
}

.footer-platform-qr-hint {
  color: rgba(255, 233, 181, 0.76);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.footer-platform-qr-image {
  display: block;
  width: 100%;
  max-width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.96);
}

.footer-quick-links {
  display: grid;
  gap: 10px;
}

.footer-quick-links a {
  width: fit-content;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 240, 209, 0.9);
}

.footer-quick-links a:hover {
  color: rgba(255, 224, 158, 0.98);
}

.footer-contact-list {
  display: grid;
  gap: 14px;
}

.footer-contact-item {
  display: grid;
  gap: 4px;
  position: relative;
}

.footer-contact-item span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 233, 181, 0.62);
}

.footer-contact-item a,
.footer-contact-item strong {
  font-size: 1rem;
  color: rgba(255, 247, 229, 0.96);
  word-break: break-word;
}

.footer-wechat-popover {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  width: fit-content;
}

.footer-wechat-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: rgba(255, 247, 229, 0.96);
  text-align: left;
  cursor: pointer;
}

.footer-wechat-trigger:hover,
.footer-wechat-trigger:focus-visible {
  color: rgba(255, 224, 158, 0.98);
  outline: none;
}

.footer-wechat-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  z-index: 5;
  display: grid;
  gap: 10px;
  width: 180px;
  padding: 14px;
  border: 1px solid rgba(255, 224, 158, 0.18);
  background: rgba(40, 27, 8, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.footer-wechat-popover.is-open .footer-wechat-panel,
.footer-wechat-popover:hover .footer-wechat-panel,
.footer-wechat-popover:focus-within .footer-wechat-panel {
  display: grid;
}

.footer-wechat-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.96);
}

.footer-wechat-caption {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 233, 181, 0.78);
}

.footer-contact-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 4px;
  font-weight: 600;
  color: rgba(255, 224, 158, 0.96);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-empty-card {
  padding: 14px 16px;
  border: 1px solid rgba(255, 224, 158, 0.14);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0;
  box-shadow: none;
}

.footer-empty-card p {
  color: rgba(255, 233, 181, 0.78);
}

.footer-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 224, 158, 0.16);
  color: rgba(255, 233, 181, 0.68);
}

.footer-row p {
  margin: 0;
}

.footer-record-separator {
  margin: 0 8px;
  color: rgba(255, 224, 158, 0.36);
}

.footer-record-link {
  color: rgba(255, 247, 229, 0.96);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-record-link:hover,
.footer-record-link:focus-visible {
  color: #f5c66c;
}

.footer-row a {
  justify-self: end;
  color: rgba(255, 247, 229, 0.96);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .stats-grid,
  .cards-grid-3,
  .split-layout,
  .method-layout,
  .contact-card,
  .footer-row,
  .footer-widgets,
  .home-about-module-panel {
    grid-template-columns: 1fr;
  }

  .home-services-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .featured-list {
    grid-template-columns: 1fr;
  }

  .featured-item {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-publication-item,
  .home-publication-item.no-cover,
  .home-publication-main,
  .home-publication-main.no-cover {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-publication-cover {
    width: 100%;
    justify-self: stretch;
  }

  .featured-item-spotlight {
    grid-row: auto;
  }

  .featured-media {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid rgba(232, 228, 223, 0.95);
    padding-left: 0;
    padding-top: 18px;
  }

  .featured-media img,
  .featured-media.is-empty span {
    min-height: 160px;
    max-height: none;
  }

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

  .hero-visual-frame,
  .hero-visual-image,
  .hero-visual-placeholder {
    aspect-ratio: 0.9;
  }

  .home-about-visual-frame,
  .home-about-visual-frame .hero-visual-image,
  .home-about-visual-frame .hero-visual-placeholder {
    aspect-ratio: 3 / 4;
  }

  .about-visual-frame,
  .about-visual-frame .hero-visual-image,
  .about-visual-frame .hero-visual-placeholder {
    aspect-ratio: 2 / 3;
  }

  .home-about-visual-frame {
    min-height: 360px;
  }

  .about-page-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .about-visual-card {
    max-width: 460px;
    justify-self: start;
  }

  .topic-nav {
    gap: 12px;
  }

  .hero-note .rule:first-child {
    display: none;
  }

  .footer-row a {
    justify-self: start;
  }

  .site-footer {
    padding: 34px 0 24px;
  }

  .footer-platform-icons {
    gap: 12px;
  }

  .hero-stage-content {
    padding: 32px 28px;
    max-width: none;
  }

  .hero-feed-shell {
    width: min(var(--container-width), 100%);
    margin-top: 20px;
    scroll-margin-top: 164px;
  }
}

@media (max-width: 768px) {
  main {
    padding-top: 12px;
  }

  html {
    scroll-padding-top: 148px;
  }

  [id] {
    scroll-margin-top: 148px;
  }

  .section {
    padding: 5.5rem 0;
  }

  .section:not(.hero) {
    padding: 1rem 0;
  }

  .footer-widgets {
    gap: 28px;
  }

  .footer-wechat-panel {
    width: 156px;
  }

  .footer-platform-qr-grid {
    grid-template-columns: 1fr;
  }

  .header-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 72px;
    gap: 14px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    top: 122px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 8px;
    padding: 16px;
    background: rgba(124, 92, 31, 0.98);
    border: 1px solid rgba(255, 238, 194, 0.3);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease-out, transform 200ms ease-out;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 10px 6px;
  }

  .header-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    order: 4;
    width: 100%;
    margin-left: 0;
  }

  .header-search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .header-search-button {
    flex: 0 0 auto;
    min-width: 76px;
    padding: 0 18px;
    white-space: nowrap;
    writing-mode: horizontal-tb;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-inner {
    width: min(var(--container-width), 100%);
  }

  .hero-stage {
    min-height: 300px;
    border-radius: 24px;
  }

  .hero-stage h1 {
    font-size: 2.4rem;
    white-space: normal;
  }

  .hero-stage-lead {
    font-size: 0.98rem;
    white-space: normal;
  }

  .hero-stage-topics {
    gap: 8px 14px;
    font-size: 0.72rem;
  }

  .hero-visual-frame,
  .hero-visual-image,
  .hero-visual-placeholder {
    aspect-ratio: 0.95;
  }

  .home-about-visual-frame,
  .home-about-visual-frame .hero-visual-image,
  .home-about-visual-frame .hero-visual-placeholder {
    aspect-ratio: 3 / 4;
  }

  .about-visual-frame,
  .about-visual-frame .hero-visual-image,
  .about-visual-frame .hero-visual-placeholder {
    aspect-ratio: 2 / 3;
  }

  .home-about-visual-frame {
    min-height: 300px;
  }

  .home-about-module-panel #home-about-lead {
    font-size: 1.14rem;
    line-height: 1.82;
  }

  .hero-lead,
  .lead,
  .section-head p,
  .method-copy > p,
  .contact-card p {
    font-size: 1rem;
  }

  .hero-feed {
    padding: 22px;
  }

  .feed-header h2 {
    font-size: 2rem;
  }

  .about-page-card h1 {
    font-size: 2.8rem;
  }

  .about-page-headline p {
    font-size: 1.55rem;
  }

  .about-page-focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-text span {
    display: none;
  }

  .stat-number {
    font-size: 2.6rem;
  }

  .stat-card,
  .contact-card {
    padding: 22px;
  }

  .info-card,
  .link-card {
    padding: 22px 0;
  }

  .contact-meta {
    padding: 20px;
  }

  .section:not(.hero) > .container {
    padding: 24px var(--container-gutter);
    border-radius: 20px;
  }

  .hero-stage {
    min-height: 260px;
    border-radius: 20px;
  }

  .hero-stage-content {
    gap: 14px;
    padding: 24px 20px;
    justify-items: center;
    text-align: center;
  }

  .hero-stage h1 {
    font-size: 1.9rem;
  }

  .hero-stage-topics {
    display: none;
  }

  .hero-feed-shell {
    width: min(var(--container-width), 100%);
    margin-top: 16px;
    scroll-margin-top: 148px;
  }

  .about-page-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }


  .footer-row {
    padding-top: 16px;
  }

  .footer-platform-icon {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
