:root {
  --bg: #f7f7f2;
  --surface: #fff;
  --ink: #242b2c;
  --muted: #677173;
  --line: #dfe2dd;
  --accent: #6484b8;
  --accent-ink: color-mix(in srgb, var(--accent) 80%, #152733);
  --accent-soft: #e7edf4;
  --nav: rgba(252, 253, 248, 0.87);
  --shadow: 0 20px 70px #14243016;
  --radius: 18px;
  --reader-width: 720px;
  --reader-font: 18px;
  --ease: cubic-bezier(0.2, 0.65, 0.25, 1);
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "MiSans VF", Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-code: "JetBrains Mono", "SFMono-Regular", Menlo, "PingFang SC", "Noto Sans SC", Consolas, monospace;
  font-family: var(--font-sans);
}
:root[data-theme="dark"] {
  --bg: #191e22;
  --surface: #232a30;
  --ink: #e5e8e7;
  --muted: #a2acb1;
  --line: #363f44;
  --accent-soft: #29394c;
  --accent-ink: color-mix(in srgb, var(--accent) 65%, #fff);
  --nav: rgba(32, 39, 44, 0.9);
  --shadow: 0 20px 70px #0003;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:disabled,
fieldset:disabled button {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.4;
}
::selection {
  background: #6484b847;
}
svg.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
}
button svg {
  pointer-events: none;
}
button {
  touch-action: manipulation;
}
button[hidden],
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -70px;
  z-index: 500;
  background: var(--surface);
  padding: 12px 20px;
  border-radius: 10px;
}
.skip-link:focus {
  top: 16px;
}
.page-width {
  width: min(1160px, calc(100% - 96px));
  margin-inline: auto;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 15px;
}
.wordmark {
  display: inline-flex;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--accent-soft);
}
.site-header {
  height: 56px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding-inline: max(48px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  z-index: 50;
  isolation: isolate;
  color: var(--ink);
  background: var(--nav);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition:
    transform 0.35s var(--ease),
    height 0.25s var(--ease),
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.site-header .wordmark {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(.header-home, .header-cover)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 160px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #102027b8, #10202740 60%, transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
:is(.header-home, .header-cover):not(.is-scrolled) {
  height: 72px;
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
}
[data-hero="landscape"] .header-home:not(.is-scrolled),
.header-cover:not(.is-scrolled) {
  color: #fafbf6;
}
[data-hero="landscape"] .header-home:not(.is-scrolled)::before,
.header-cover:not(.is-scrolled)::before {
  opacity: 1;
}
[data-hero="landscape"] .header-home:not(.is-scrolled) .icon-button:hover,
.header-cover:not(.is-scrolled) .icon-button:hover {
  background: #ffffff1f;
}
[data-hero="landscape"] .header-home:not(.is-scrolled) :focus-visible,
.header-cover:not(.is-scrolled) :focus-visible {
  outline-color: currentColor;
}
[data-hero="landscape"] .header-home:not(.is-scrolled) .desktop-nav a::after,
.header-cover:not(.is-scrolled) .desktop-nav a::after {
  background: currentColor;
}
.site-header.is-hidden {
  transform: translateY(-110%);
}
:is(.header-home, .header-cover):not(.is-scrolled).is-hidden {
  transform: translateY(-170px);
}
.site-header:focus-within {
  transform: translateY(0);
}
:is(.header-home, .header-cover):not(.is-scrolled):focus-within {
  transform: translateY(0);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  flex-shrink: 0;
  font-size: 13px;
}
.desktop-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  position: relative;
}
.desktop-nav a:after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 14px;
  height: 1px;
  left: calc(50% - 7px);
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.desktop-nav a[aria-current]:after,
.desktop-nav a:hover:after {
  opacity: 1;
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-tools [aria-label="打开导航菜单"] {
  display: none;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: var(--hero-vh, 100dvh);
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #394c4f;
}
.landscape-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(140deg, #63757b, #283d41);
}
.landscape-art picture {
  display: block;
  height: 100%;
}
.landscape-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
  transform: translateY(var(--parallax, 0px));
  will-change: transform;
}
.landscape-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #1728311a 0%,
    #1e333c58 40%,
    #142b3480 100%
  );
}
.hero-content {
  text-align: center;
  padding: 80px 24px 45px;
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
}
.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #fffdf1d4;
  margin: 0 0 22px;
}
.hero-kicker > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.hero h1 {
  font-size: clamp(44px, 6.5vw, 94px);
  font-weight: 500;
  letter-spacing: 0.075em;
  line-height: 1.3;
  margin: 0 0 24px;
  padding-left: 0.075em;
}
.hero-subtitle {
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 400;
  letter-spacing: 0.24em;
  margin: 0;
  opacity: 0.87;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-top: 58px;
  min-height: 44px;
}
.hero-cta .icon {
  width: 36px;
  height: 36px;
  padding: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform 0.3s;
}
.hero-cta:hover .icon {
  transform: translateY(5px);
}
.hero-bottom {
  position: absolute;
  bottom: 34px;
  left: 48px;
  right: 48px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.17em;
  color: #ffffffe0;
}
.photo-credit {
  font-size: 9px;
  letter-spacing: 0.03em;
}
.hero-scroll-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 46px;
  width: 1px;
  background: #ffffff5c;
  display: none;
}
.abstract-art,
.minimal-decoration {
  display: none;
}
[data-hero="abstract"] .hero {
  background: #edf0ee;
  color: var(--ink);
}
[data-hero="abstract"][data-theme="dark"] .hero {
  background: #1b252e;
}
[data-hero="abstract"] .landscape-art,
[data-hero="minimal"] .landscape-art {
  display: none;
}
[data-hero="abstract"] .abstract-art {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse at 80% 70%, #d4e2e6 0%, transparent 60%);
}
[data-hero="abstract"] .hero-content {
  text-align: left;
  padding-left: 0;
  padding-right: 0;
  width: min(1160px, calc(100% - 96px));
  padding-top: 130px;
}
[data-hero="abstract"] .hero-kicker {
  justify-content: flex-start;
  color: #59768b;
}
[data-hero="abstract"] .hero h1 {
  font-size: clamp(44px, 6.1vw, 86px);
  letter-spacing: 0.015em;
}
[data-hero="abstract"] .hero-subtitle {
  letter-spacing: 0.13em;
}
[data-hero="abstract"] .hero-bottom,
[data-hero="minimal"] .hero-bottom {
  color: var(--muted);
}
[data-hero="abstract"] .photo-credit,
[data-hero="minimal"] .photo-credit {
  display: none;
}
.art-orb {
  position: absolute;
  border-radius: 50%;
}
.orb-one {
  width: 610px;
  height: 610px;
  right: -50px;
  top: 50px;
  background: radial-gradient(
    circle at 32% 28%,
    #f8faf4 2%,
    #cadbdc 28%,
    #97afca 55%,
    #bfc1db 78%,
    #ffffff00 80%
  );
  box-shadow:
    inset 0 0 65px #edf1f599,
    0 30px 80px #768ba333;
  transform: rotate(-30deg);
}
.orb-two {
  width: 320px;
  height: 320px;
  left: 56%;
  bottom: -120px;
  background: radial-gradient(circle at 30% 30%, #f2f1dd, #ced5c1 50%, #abbfbc);
}
.art-ring {
  position: absolute;
  width: 690px;
  height: 290px;
  border: 1px solid #fff9;
  right: -76px;
  top: 280px;
  border-radius: 50%;
  transform: rotate(-35deg);
}
.ring-two {
  width: 850px;
  height: 380px;
  right: -155px;
  top: 230px;
  border-color: #9baabd45;
  transform: rotate(-40deg);
}
[data-theme="dark"] .abstract-art {
  opacity: 0.6;
  filter: brightness(0.62);
}
[data-hero="minimal"] .hero {
  background: var(--bg);
  color: var(--ink);
}
[data-hero="minimal"] .hero-content {
  text-align: left;
  width: min(1020px, calc(100% - 120px));
  padding-inline: 0;
  align-self: center;
}
[data-hero="minimal"] .hero h1 {
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: clamp(46px, 6.8vw, 96px);
}
[data-hero="minimal"] .hero-kicker {
  color: var(--muted);
  justify-content: flex-start;
  letter-spacing: 0.16em;
  margin-bottom: 40px;
}
[data-hero="minimal"] .hero-subtitle {
  font-size: 17px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
[data-hero="minimal"] .hero-cta {
  margin-top: 56px;
}
[data-hero="minimal"] .minimal-decoration {
  display: block;
  position: absolute;
  right: 9%;
  bottom: 100px;
  font:
    italic 44px/1.2 Georgia,
    serif;
  color: var(--muted);
  opacity: 0.18;
}
[data-hero="minimal"] .hero:after {
  content: "";
  height: 1px;
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 0;
  background: var(--line);
}
.section {
  padding-top: 90px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-heading h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.015em;
  margin: 0;
}
.section-heading .eyebrow {
  margin-bottom: 8px;
}
.accent-dot {
  color: var(--accent-ink);
  margin-left: 4px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  min-height: 44px;
}
.text-link:hover {
  color: var(--accent-ink);
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  grid-template-rows: 230px 230px;
  gap: 20px;
}
.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
  color: white;
  background: #52676c;
  display: flex;
  align-items: flex-end;
  min-width: 0;
}
.feature-0 {
  grid-row: span 2;
}
.feature-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.feature-media > img,
.feature-media > .cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.75s var(--ease),
    filter 0.6s;
}
.feature-media:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #07192400 20%, #152b35aa 100%);
  z-index: 1;
}
.feature-copy {
  padding: 26px;
  width: 100%;
  position: relative;
}
.feature-0 .feature-copy {
  padding: 36px;
}
.feature-copy .card-meta {
  color: #fff9;
  font-size: 10px;
  margin-bottom: 9px;
}
.meta-dot {
  margin: 0 8px;
}
.feature-copy h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  max-width: 450px;
}
.feature-0 h3 {
  font-size: 31px;
  line-height: 1.5;
  max-width: 355px;
}
.feature-excerpt {
  font-size: 12px;
  color: #ffffffb3;
  line-height: 1.8;
  max-width: 370px;
  margin: 12px 0 0;
}
.cover-art {
  position: relative;
  overflow: hidden;
  background: #bfcbd1;
  color: #334b64;
}
.cover-art > span {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  right: -25%;
  top: -35%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 20%,
    #fcfcf9,
    #cad8df 37%,
    #889ab6 64%,
    #abb8cc
  );
  box-shadow: 20px 20px 70px #546f9322;
}
.cover-art > i {
  position: absolute;
  right: -10%;
  top: 28%;
  width: 130%;
  height: 90%;
  border: 1px solid #ffffffad;
  border-radius: 50%;
  transform: rotate(-30deg);
}
.cover-art > b {
  position: absolute;
  top: 20%;
  left: 10%;
  font:
    italic 38px/1.15 Georgia,
    serif;
  font-weight: 400;
  max-width: 150px;
  color: #fff9;
}
.quiet-label {
  font-size: 11px;
  color: var(--muted);
}
.article-row {
  display: grid;
  grid-template-columns: 82px 1fr 172px;
  align-items: center;
  gap: 30px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.row-date {
  align-self: start;
  padding-top: 8px;
  color: var(--muted);
}
.row-date > span {
  display: block;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.row-date small {
  font-size: 11px;
}
.row-copy {
  min-width: 0;
}
.row-copy .card-meta {
  font-size: 11px;
  color: var(--accent-ink);
  margin: 0 0 6px;
}
.row-copy h3 {
  font-size: 21px;
  font-weight: 500;
  margin: 0 0 10px;
}
.row-copy h3 a:hover {
  color: var(--accent-ink);
}
.row-excerpt {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}
.read-time {
  font-size: 10px;
  color: var(--muted);
}
.row-image {
  height: 116px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--accent-soft);
}
.row-image > img,
.row-image > .cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.row-image .cover-art > b {
  font-size: 20px;
  max-width: 90px;
}
.row-mobile-date {
  display: none;
}
.browse-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 70px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.browse-more:hover {
  color: var(--accent-ink);
}
.browse-more .icon {
  width: 17px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.category-link {
  position: relative;
  padding: 34px 25px;
  border: 1px solid var(--line);
  display: block;
  transition: background 0.3s;
}
.category-link > .icon {
  width: 28px;
  height: 28px;
  color: var(--accent-ink);
  margin-bottom: 24px;
}
.category-link:hover {
  background: var(--accent-soft);
}
.category-number {
  position: absolute;
  right: 24px;
  top: 35px;
  font:
    italic 15px Georgia,
    serif;
  color: var(--muted);
  opacity: 0.55;
}
.category-link h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 7px;
}
.category-link > span:last-child {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.about-section {
  margin-top: 110px;
  padding: 64px 0 84px;
  display: flex;
  gap: 40px;
  align-items: center;
  position: relative;
}
.about-monogram {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  background: #e5ebe5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 42px;
  font-weight: 300;
  color: #607b77;
  flex-shrink: 0;
}
.about-monogram span {
  position: absolute;
  bottom: 18px;
  font-size: 9px;
  letter-spacing: 0.4em;
  margin-left: 0.4em;
}
.about-section .eyebrow {
  margin-bottom: 10px;
}
.about-section h2 {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 14px;
}
.about-section p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 18px;
}
.about-script {
  position: absolute;
  right: 20px;
  bottom: 110px;
  transform: rotate(-12deg);
  font:
    italic 31px Georgia,
    serif;
  opacity: 0.2;
}
.site-footer {
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 48px 24px 35px;
}
.site-footer > .wordmark {
  font-size: 22px;
  margin-bottom: 18px;
}
.site-footer p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
}
.site-footer > div {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 10px;
  color: var(--muted);
}
.site-footer > small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 20px;
}
.mobile-bar {
  display: none;
}
.back-top {
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 25;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.article-top {
  padding-top: 112px;
}
.article-heading {
  max-width: 850px;
  margin: 42px auto 48px;
  text-align: center;
}
.article-heading > .eyebrow {
  color: var(--accent-ink);
  font-size: 11px;
  margin-bottom: 20px;
  letter-spacing: 0.14em;
}
.article-heading h1 {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.015em;
  margin-bottom: 20px;
}
.article-summary {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 26px;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.mini-avatar {
  border-radius: 50%;
  background: #e1e7e3;
  color: #658376;
  width: 25px;
  height: 25px;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.reading-entry {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  min-height: 46px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent-soft);
  margin-top: 26px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.reading-entry:hover {
  border-color: var(--accent);
}
.reading-entry .icon {
  width: 17px;
  height: 17px;
}
.article-cover {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.article-cover img {
  transform-origin: 50% 30%;
}
.article-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(480px, var(--article-hero-vh, 72svh), 820px);
  padding-top: 0;
  color: #fafbf6;
  background: #293c40;
}
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(0deg, #0a181fa6, #0a181f0d 80%),
    rgb(10 24 31 / var(--article-hero-overlay, 0.3));
}
.article-hero .article-top-content {
  display: flex;
  flex-direction: column;
  padding-block: 104px 64px;
}
.article-hero .article-heading {
  width: 100%;
  margin: auto auto 0;
  padding-top: 80px;
}
.article-hero .article-heading h1 {
  line-height: 1.4;
  text-shadow: 0 2px 20px #0a181f33;
}
.article-hero .eyebrow,
.article-hero .article-meta,
.article-hero .article-summary {
  color: inherit;
}
.article-hero .article-summary {
  max-width: 650px;
  margin-inline: auto;
}
.article-hero .mini-avatar {
  background: #ffffff26;
  color: inherit;
}
.article-hero .reading-entry {
  border-color: #ffffff80;
  background: #f7f6efe8;
  color: #293438;
  box-shadow: 0 2px 12px #0b161f18;
}
.article-hero .reading-entry:hover {
  background: #fffdf5;
}
.article-hero :focus-visible {
  outline-color: currentColor;
}
.article-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 760px) 210px;
  gap: 72px;
  justify-content: center;
  margin-block: 70px 75px;
}
.prose {
  min-width: 0;
  font-size: 18px;
  line-height: 1.85;
  overflow-wrap: break-word;
}
.prose > .lead {
  font-size: 20px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 48px;
}
.prose p {
  margin-bottom: 25px;
}
.prose h2 {
  font-size: 26px;
  font-weight: 500;
  margin: 48px 0 24px;
  scroll-margin-top: 110px;
}
.prose blockquote {
  margin: 36px 0;
  padding: 5px 0 5px 26px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}
.prose blockquote p {
  margin: 0;
}
.prose figure {
  margin: 38px 0;
}
.prose figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.image-zoom {
  padding: 0;
  display: block;
  width: 100%;
  cursor: zoom-in;
}
.prose figcaption {
  font-size: 11px;
  color: var(--muted);
  margin: 13px 0 0;
  text-align: center;
}
.article-end {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 54px !important;
}
.toc {
  --toc-accent: color-mix(in srgb, var(--accent) 55%, #173453);
  --toc-active-bg: color-mix(in srgb, var(--accent-soft) 80%, var(--surface));
  --toc-active-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 16%, transparent);
  position: sticky;
  align-self: start;
  top: 116px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  font-size: 11px;
}
.toc-heading {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: 0.1em;
}
.toc-heading button {
  display: none;
}
.toc nav {
  display: grid;
  gap: 5px;
}
.toc a {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 10px 8px;
  border-radius: 7px;
  color: var(--muted);
  transition: color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
.toc a:hover {
  color: var(--toc-accent);
  background: color-mix(in srgb, var(--accent-soft) 50%, transparent);
}
.toc a.active {
  color: var(--toc-accent);
  background: var(--toc-active-bg);
  box-shadow: var(--toc-active-shadow);
}
.toc a.active .toc-text {
  font-weight: 600;
}
:root[data-theme="dark"] .toc {
  --toc-accent: color-mix(in srgb, var(--accent) 40%, #e4eeff);
  --toc-active-bg: color-mix(in srgb, var(--accent-soft) 85%, var(--surface));
  --toc-active-shadow: 0 2px 8px #0003;
}
.toc .toc-number {
  font: inherit;
  opacity: 1;
}
.toc-progress {
  margin-top: 34px;
  color: var(--muted);
  font-size: 10px;
}
.toc-progress > div {
  height: 2px;
  background: var(--line);
  margin-top: 12px;
}
.toc-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
}
.after-article {
  max-width: 1040px;
}
.article-note {
  border-block: 1px solid var(--line);
  padding: 28px 0;
  margin-bottom: 74px;
}
.article-note > span {
  font-size: 13px;
}
.article-note p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  height: 300px;
  margin-bottom: 84px;
}
.related-grid h3 {
  font-size: 22px;
}
.code-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin: 32px 0;
}
.code-heading {
  font-size: 10px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.code-heading button {
  min-height: 44px;
  font-size: 11px;
}
pre {
  overflow-x: auto;
  max-width: 100%;
  padding: 22px;
  margin: 0;
  font: 13px/1.9 var(--font-code);
  tab-size: 2;
}
code {
  font-family: var(--font-code);
}
pre code {
  white-space: pre;
}
.code-comment {
  color: var(--muted);
}
.table-scroll {
  overflow: auto;
  margin: 30px 0;
  max-width: 100%;
}
.table-scroll table {
  border-collapse: collapse;
  min-width: 600px;
  width: 100%;
  font-size: 14px;
}
.table-scroll th,
.table-scroll td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.table-scroll th {
  font-weight: 500;
  background: var(--accent-soft);
}
.reader-bar {
  display: none;
  position: fixed;
  top: 50%;
  right: max(16px, env(safe-area-inset-right));
  transform: translateY(-50%);
  z-index: 60;
  background: var(--nav);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 20px #101e2910;
  width: 56px;
  padding: 5px;
  gap: 2px;
  flex-direction: column;
  align-items: center;
  max-height: calc(
    100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  );
  overflow-y: auto;
  scrollbar-width: thin;
  color: var(--ink);
}
.reader-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  transition:
    background 0.18s,
    color 0.18s;
}
.reader-bar .icon {
  width: 18px;
  height: 18px;
}
.reader-bar button:hover,
.reader-bar button[aria-pressed="true"] {
  background: var(--accent-soft);
}
.reader-exit {
  flex-direction: column;
  gap: 1px;
}
.reader-exit span {
  font-size: 10px;
  line-height: 1.3;
}
.reader-exit .icon {
  width: 16px;
}
.toolbar-divider {
  width: 22px;
  height: 1px;
  flex-shrink: 0;
  background: var(--line);
  margin: 3px 0;
}
.reader-theme[data-current="light"] .theme-sun,
.reader-theme[data-current="dark"] .theme-moon {
  display: none;
}
.reader-bar.collapsed .reader-extra {
  display: none;
}
.reader-bar.collapsed #collapse-reader .icon {
  transform: rotate(180deg);
}
.reading-progress {
  display: none;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.reading-progress > i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
[data-reading="true"] .site-header,
[data-reading="true"] .article-top,
[data-reading="true"] .toc,
[data-reading="true"] .after-article,
[data-reading="true"] .site-footer,
[data-reading="true"] .mobile-bar,
[data-reading="true"] .back-top {
  display: none;
}
[data-reading="true"] .article-layout {
  display: block;
  width: min(var(--reader-width), calc(100% - 160px));
  margin: 65px auto 96px;
}
[data-reading="true"] .prose {
  font-size: var(--reader-font);
}
[data-reading="true"] .prose > .lead {
  font-size: 1.12em;
}
[data-reading="true"] .reader-bar {
  display: flex;
}
[data-reading="true"] .reading-progress {
  display: block;
}
[data-reading="true"] .prose h2 {
  font-size: 1.42em;
}
[data-reading="true"][data-reading-style="paper"] {
  --bg: #f3ead8;
  --surface: #f9f2e6;
  --ink: #3e3a32;
  --muted: #7d7466;
  --line: #dcd2bf;
  --accent-soft: #e7dfcf;
  --accent-ink: color-mix(in srgb, var(--accent) 80%, #152733);
  --nav: #f7efdeeb;
  color-scheme: light;
}
[data-reading="true"][data-reading-style="paper"][data-theme="dark"] {
  --bg: #282720;
  --surface: #333229;
  --ink: #d9d2bf;
  --muted: #aaa38f;
  --line: #494639;
  --accent-soft: #464339;
  --accent-ink: color-mix(in srgb, var(--accent) 65%, #fff);
  --nav: #343228f0;
  color-scheme: dark;
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0;
  border-radius: 22px;
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 48px);
}
dialog::backdrop {
  background: #17232b66;
  backdrop-filter: blur(6px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-heading {
  padding: 28px 28px 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.dialog-heading h2 {
  font-size: 21px;
  font-weight: 500;
  margin: 0;
}
.dialog-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 7px;
}
.dialog-heading .icon-button {
  margin: -5px -8px 0 0;
}
.panel-dialog {
  width: 440px;
}
.settings-body {
  padding: 26px 28px 24px;
  overflow-y: auto;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 27px;
  min-width: 0;
}
legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 12px;
}
.segmented {
  display: flex;
  padding: 4px;
  border-radius: 11px;
  background: var(--bg);
  gap: 3px;
}
.segmented button {
  flex: 1;
  font-size: 11px;
  min-height: 39px;
  border-radius: 8px;
  padding: 6px;
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 2px 8px #0000000d;
  color: var(--accent-ink);
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 16px;
  margin-top: 18px;
  min-height: 32px;
}
.switch-row input {
  width: 32px;
  height: 20px;
  accent-color: var(--accent-ink);
}
.setting-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin: 9px 0 0;
}
.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 20px;
  font-size: 12px;
}
.range-row output {
  color: var(--muted);
  font-size: 11px;
}
.range-row input {
  grid-column: 1/-1;
  accent-color: var(--accent-ink);
  width: 100%;
  min-height: 26px;
  margin: 0;
}
.reset-button {
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 5px;
  min-height: 38px;
  padding: 0;
}
.mobile-nav {
  display: grid;
  padding: 20px 28px;
}
.mobile-nav > a {
  font-size: 19px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.search-dialog {
  width: 640px;
  margin-top: min(160px, 15vh);
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.search-input-row > svg {
  color: var(--muted);
}
.search-input-row > input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--ink);
  font-size: 14px;
  min-height: 44px;
}
.search-input-row > input:focus-visible {
  outline: none;
}
.search-input-row:focus-within {
  box-shadow: inset 0 -2px var(--accent);
}
.search-results {
  padding: 10px;
  max-height: 400px;
  overflow-y: auto;
}
.empty-state {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 48px 22px;
  margin: 0;
  line-height: 1.9;
}
.search-result {
  display: block;
  padding: 14px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
}
.search-result.selected,
.search-result:hover {
  background: var(--accent-soft);
  border-color: var(--line);
}
.search-result h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 5px;
}
.search-result p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 7px;
}
.search-result small {
  font-size: 10px;
  color: var(--muted);
}
mark {
  background: #6484b82a;
  color: var(--accent-ink);
  border-radius: 2px;
}
.search-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
}
.search-foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.search-foot .icon {
  width: 14px;
}
.lightbox-dialog {
  background: #182126ed;
  max-width: calc(100% - 24px);
  width: 1150px;
  border: 0;
  padding: 60px 30px 20px;
  color: white;
}
.lightbox-dialog img {
  max-height: calc(100dvh - 180px);
  width: auto;
  max-width: 100%;
  margin: auto;
  object-fit: contain;
}
.lightbox-tools {
  position: absolute;
  top: 8px;
  right: 15px;
  display: flex;
}
.lightbox-tools button:hover {
  background: #ffffff18;
}
.lightbox-dialog p {
  font-size: 12px;
  text-align: center;
  margin: 16px 0 0;
  color: #fffc;
}
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translate(-50%, 10px);
  padding: 9px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  font-size: 12px;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.listing-page {
  padding-top: 158px;
  min-height: 70vh;
  max-width: 1040px;
}
.listing-heading {
  margin-bottom: 48px;
}
.listing-heading h1 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.listing-heading > p:last-child {
  color: var(--muted);
  font-size: 13px;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter-tabs button {
  font-size: 12px;
  min-height: 40px;
  padding: 7px 18px;
  border-radius: 30px;
}
.filter-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.archive-end {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 55px 0 90px;
}
.full-search-form {
  display: flex;
  gap: 12px;
}
.full-search-input {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 12px;
  min-width: 0;
}
.full-search-input input {
  border: 0;
  background: none;
  outline: 0;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  font-size: 15px;
  min-height: 32px;
}
.full-search-input:focus-within {
  outline: 2px solid var(--accent);
}
.primary-button {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 25px;
  border-radius: 12px;
  font-size: 12px;
  min-height: 48px;
}
.search-filters {
  display: flex;
  gap: 24px;
  margin: 24px 0 36px;
  font-size: 12px;
}
.search-filters label {
  display: flex;
  gap: 9px;
  align-items: center;
}
.search-filters select {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  min-height: 40px;
}
#search-count {
  font-size: 12px;
  color: var(--muted);
}
.full-results {
  padding-bottom: 75px;
}
.full-results .search-result {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.full-results .search-result h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.full-results .search-result p {
  font-size: 13px;
}
.full-results .search-result small {
  font-size: 11px;
}
/* 动效档位在类型、层次上有差异。无 JS 时内容也完整显示。 */
[data-motion="subtle"] .hero-content {
  animation: fade-in 0.6s ease both;
}
[data-motion="balanced"] .hero-kicker,
[data-motion="balanced"] .hero h1,
[data-motion="balanced"] .hero-subtitle,
[data-motion="balanced"] .hero-cta,
[data-motion="rich"] .hero-kicker,
[data-motion="rich"] .hero h1,
[data-motion="rich"] .hero-subtitle,
[data-motion="rich"] .hero-cta {
  animation: rise-in 0.9s var(--ease) both;
}
[data-motion="balanced"] .hero h1,
[data-motion="rich"] .hero h1 {
  animation-delay: 0.12s;
}
[data-motion="balanced"] .hero-subtitle,
[data-motion="rich"] .hero-subtitle {
  animation-delay: 0.23s;
}
[data-motion="balanced"] .hero-cta,
[data-motion="rich"] .hero-cta {
  animation-delay: 0.32s;
}
[data-motion="balanced"] .orb-one {
  animation: orb-breathe 14s ease-in-out infinite alternate;
}
[data-motion="rich"] .orb-one {
  animation: orb-float 18s ease-in-out infinite alternate;
}
[data-motion="rich"] .orb-two {
  animation: orb-float 15s ease-in-out infinite alternate-reverse;
}
[data-motion="rich"] .ring-one {
  animation: ring-orbit 24s ease-in-out infinite alternate;
}
[data-motion="rich"] .ring-two {
  animation: ring-orbit 20s ease-in-out infinite alternate-reverse;
}
[data-motion="balanced"] .feature-card:hover .feature-media > img,
[data-motion="balanced"] .row-image:hover > img {
  transform: scale(1.035);
}
[data-motion="rich"] .feature-card:hover .feature-media > img,
[data-motion="rich"] .row-image:hover > img {
  transform: scale(1.075);
}
[data-motion="rich"] .hero-scroll-line {
  display: block;
  animation: scroll-pulse 2.3s ease infinite;
}
.reveal.is-pending {
  opacity: 0;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
[data-motion="balanced"] .reveal.is-pending {
  transform: translateY(18px);
}
[data-motion="rich"] .reveal.is-pending {
  transform: translateY(36px) scale(0.98);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
[data-motion="subtle"] .site-header,
[data-motion="subtle"] .mobile-bar {
  transition: opacity 0.18s;
}
::view-transition-old(root) {
  animation: fade-out 0.2s ease;
}
::view-transition-new(root) {
  animation: fade-in 0.28s ease;
}
[data-motion="rich"]::view-transition-new(root) {
  animation: rise-in 0.45s var(--ease);
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes orb-breathe {
  to {
    transform: rotate(-25deg) scale(1.03);
  }
}
@keyframes orb-float {
  to {
    transform: translate(35px, 35px) rotate(-18deg) scale(1.08);
  }
}
@keyframes ring-orbit {
  to {
    transform: rotate(-10deg) translateY(28px);
  }
}
@keyframes scroll-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.7);
    transform-origin: bottom;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}
[data-reduced="true"] *,
[data-reduced="true"] *:before,
[data-reduced="true"] *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
[data-reduced="true"] {
  scroll-behavior: auto;
}
[data-reduced="true"] .landscape-art img {
  transform: none;
  will-change: auto;
}
[data-reduced="true"] .reveal.is-pending {
  opacity: 1;
  transform: none;
}
[data-reduced="true"]::view-transition-group(*),
[data-reduced="true"]::view-transition-old(*),
[data-reduced="true"]::view-transition-new(*) {
  animation: none !important;
}
@media (min-width: 1700px) {
  .hero h1 {
    font-size: 96px;
  }
}
@media (max-width: 1100px) {
  .page-width {
    width: calc(100% - 64px);
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 40px;
  }
  .featured-grid {
    grid-template-rows: 220px 220px;
  }
  .feature-0 h3 {
    font-size: 28px;
  }
  .feature-copy h3 {
    font-size: 20px;
  }
  .about-script {
    display: none;
  }
  .desktop-nav {
    gap: 24px;
  }
  .orb-one {
    right: -190px;
    opacity: 0.85;
  }
  .article-row {
    grid-template-columns: 66px 1fr 150px;
    gap: 22px;
  }
}
@media (max-width: 800px) {
  .page-width {
    width: calc(100% - 44px);
  }
  .site-header {
    padding: 0 20px;
    gap: 15px;
  }
  .desktop-nav {
    gap: 20px;
  }
  .article-layout {
    grid-template-columns: 1fr;
    max-width: 700px;
  }
  .toc {
    display: none;
    position: fixed;
    bottom: 110px;
    right: 22px;
    left: 22px;
    top: auto;
    background: var(--surface);
    z-index: 45;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
  }
  .toc.is-open {
    display: block;
  }
  .toc-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
  }
  .toc-heading button {
    display: inline-flex;
    margin: -12px -10px 0 0;
  }
  .toc-progress {
    display: none;
  }
  .mobile-bar {
    display: flex;
    position: fixed;
    z-index: 40;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 8px 35px #101c2125;
    padding: 6px 12px;
    gap: 10px;
    transition: transform 0.35s var(--ease);
    max-width: calc(100% - 32px);
  }
  .mobile-bar > a,
  .mobile-bar > button {
    width: 52px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
    border-radius: 14px;
  }
  .mobile-bar.is-hidden {
    transform: translate(-50%, calc(120% + env(safe-area-inset-bottom)));
  }
  .mobile-bar .icon {
    width: 19px;
    height: 19px;
  }
  .mobile-bar:focus-within {
    transform: translate(-50%, 0);
  }
  .site-footer {
    padding-bottom: 115px;
  }
  .back-top {
    bottom: 105px;
    right: 16px;
  }
  .hero h1 {
    font-size: 64px;
  }
  .hero-bottom {
    left: 24px;
    right: 24px;
    bottom: 26px;
  }
  body:has(.mobile-bar:not([hidden])) .hero-bottom {
    bottom: calc(104px + env(safe-area-inset-bottom));
  }
  .hero-content {
    padding-top: 90px;
  }
  .section {
    padding-top: 64px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .featured-grid {
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 14px;
  }
  .feature-0 .feature-copy {
    padding: 24px;
  }
  .feature-0 h3 {
    font-size: 26px;
  }
  .feature-copy {
    padding: 20px;
  }
  .feature-copy h3 {
    font-size: 18px;
  }
  .feature-excerpt {
    display: none;
  }
  .feature-copy .card-meta {
    font-size: 9px;
  }
  .category-link {
    padding: 27px 16px;
  }
  .category-link h3 {
    font-size: 16px;
  }
  .category-number {
    right: 17px;
    top: 27px;
  }
  .about-section {
    margin-top: 75px;
    padding: 45px 0 65px;
    gap: 28px;
  }
  .about-monogram {
    width: 90px;
    height: 90px;
    font-size: 35px;
  }
  .about-monogram span {
    bottom: 13px;
  }
  .about-section h2 {
    font-size: 23px;
  }
  .about-section p:not(.eyebrow) {
    font-size: 12px;
  }
  .hero-scroll-line {
    display: none !important;
  }
  [data-hero="abstract"] .hero-content {
    width: calc(100% - 60px);
  }
  [data-hero="abstract"] .hero h1 {
    font-size: 62px;
  }
  .orb-one {
    width: 500px;
    height: 500px;
    right: -235px;
    top: 0;
  }
  .orb-two {
    left: 40%;
    bottom: -160px;
  }
  .art-ring {
    right: -350px;
    top: 200px;
  }
  [data-hero="minimal"] .hero-content {
    width: calc(100% - 70px);
  }
  [data-hero="minimal"] .hero h1 {
    font-size: 66px;
  }
  [data-hero="minimal"] .minimal-decoration {
    font-size: 35px;
    right: 12%;
    bottom: 85px;
  }
  .article-top:not(.article-hero) {
    padding-top: 94px;
  }
  .article-heading {
    margin: 32px 0 38px;
  }
  .article-heading h1 {
    font-size: 34px;
  }
  .article-summary {
    font-size: 13px;
  }
  .article-hero .article-top-content {
    padding-block: 96px 48px;
  }
  .article-layout {
    margin-top: 44px;
  }
  .prose {
    font-size: 17px;
  }
  .prose > .lead {
    font-size: 19px;
  }
  .prose h2 {
    font-size: 24px;
  }
  .related-grid {
    height: 250px;
    gap: 18px;
  }
  .related-grid h3 {
    font-size: 19px;
  }
  .listing-page {
    padding-top: 130px;
  }
  .listing-heading h1 {
    font-size: 34px;
  }
  .reader-bar {
    right: max(8px, env(safe-area-inset-right));
    width: 52px;
    padding: 3px;
  }
  [data-reading="true"] .article-layout {
    width: calc(100% - 92px - env(safe-area-inset-right));
    margin: 42px 0 72px 20px;
  }
  .landscape-art img {
    will-change: auto;
  }
}
@media (max-width: 560px) {
  :is(.header-home, .header-cover):not(.is-scrolled) {
    height: 64px;
  }
  .wordmark {
    font-size: 18px;
  }
  .desktop-nav {
    display: none;
  }
  .nav-tools {
    gap: 0;
  }
  .nav-tools [aria-label="打开导航菜单"] {
    display: inline-flex;
  }
  .nav-tools [aria-label="阅读与外观设置"] {
    display: none;
  }
  .hero h1 {
    font-size: clamp(37px, 9.7vw, 53px);
    letter-spacing: 0.02em;
    white-space: nowrap;
    margin-bottom: 20px;
  }
  .hero-content {
    padding: 85px 20px 60px;
  }
  .hero-kicker {
    font-size: 9px;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
  }
  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 0.14em;
  }
  .hero-cta {
    margin-top: 40px;
    font-size: 11px;
    gap: 16px;
  }
  .hero-cta .icon {
    width: 32px;
    height: 32px;
    padding: 8px;
  }
  .hero-bottom {
    font-size: 8px;
    letter-spacing: 0.06em;
    bottom: 20px;
  }
  .photo-credit {
    font-size: 7px;
    letter-spacing: 0;
  }
  .landscape-art img {
    object-position: 57% center;
    height: 100%;
    transform: none !important;
  }
  .section {
    padding-top: 52px;
  }
  .section-heading {
    margin-bottom: 24px;
    gap: 16px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 0.16em;
    margin-bottom: 9px;
  }
  .section-heading .text-link {
    font-size: 10px;
    gap: 6px;
    white-space: nowrap;
  }
  .section-heading .quiet-label {
    display: none;
  }
  .featured-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 360px 240px;
    gap: 13px;
  }
  .feature-0 {
    grid-column: 1/-1;
    grid-row: auto;
  }
  .feature-0 h3 {
    font-size: 28px;
    max-width: 240px;
    line-height: 1.55;
  }
  .feature-0 .feature-copy {
    padding: 26px;
  }
  .feature-copy {
    padding: 17px;
  }
  .feature-copy h3 {
    font-size: 17px;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
  }
  .feature-copy .card-meta {
    font-size: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 10px;
  }
  .feature-copy .meta-dot {
    display: none;
  }
  .feature-copy .card-meta time {
    display: none;
  }
  .feature-0 .card-meta time {
    display: inline;
  }
  .feature-0 .card-meta {
    gap: 8px;
    font-size: 10px;
  }
  .feature-1 .feature-media:after,
  .feature-2 .feature-media:after {
    background: linear-gradient(0deg, #122b39c7, transparent);
  }
  .cover-art > b {
    font-size: 32px;
    max-width: 120px;
    top: 15%;
  }
  .article-row {
    grid-template-columns: 1fr 96px;
    gap: 17px;
    padding: 23px 0;
  }
  .row-date {
    display: none;
  }
  .row-image {
    height: 86px;
    border-radius: 10px;
  }
  .row-copy h3 {
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 8px;
    font-weight: 500;
  }
  .row-copy .card-meta {
    font-size: 9px;
    margin-bottom: 7px;
  }
  .row-excerpt {
    display: none;
  }
  .row-mobile-date {
    display: inline;
    color: var(--muted);
  }
  .read-time {
    font-size: 9px;
  }
  .row-image .cover-art > b {
    font-size: 16px;
    max-width: 60px;
  }
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
  .category-link {
    padding: 27px 20px !important;
  }
  .category-link > .icon {
    margin-bottom: 20px;
  }
  .category-link h3 {
    font-size: 17px;
  }
  .category-link > span:last-child {
    font-size: 10px;
  }
  .about-section {
    display: block;
    text-align: center;
    margin-top: 65px;
    padding: 12px 0 50px;
  }
  .about-monogram {
    margin: 0 auto 24px;
  }
  .about-section h2 {
    font-size: 22px;
  }
  .about-section .eyebrow {
    font-size: 9px;
  }
  .about-section p:not(.eyebrow) {
    font-size: 12px;
  }
  .desktop-only {
    display: none;
  }
  .about-section .text-link {
    font-size: 11px;
  }
  .site-footer {
    padding-top: 35px;
  }
  .site-footer > div {
    gap: 16px;
    font-size: 9px;
  }
  .site-footer small {
    font-size: 8px;
  }
  .article-heading {
    margin-top: 26px;
  }
  .article-heading h1 {
    font-size: 28px;
    line-height: 1.6;
  }
  .article-heading > .eyebrow {
    font-size: 9px;
    margin-bottom: 17px;
  }
  .article-summary {
    font-size: 12px;
    line-height: 1.9;
  }
  .article-meta {
    gap: 8px;
    font-size: 9px;
  }
  .article-hero .article-top-content {
    padding-block: 88px 40px;
  }
  .article-hero .article-heading {
    padding-top: 56px;
  }
  .article-layout {
    margin-top: 38px;
  }
  .prose {
    font-size: 16px;
    line-height: 1.9;
  }
  .prose > .lead {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 35px;
  }
  .prose h2 {
    font-size: 22px;
    margin-top: 38px;
  }
  .prose blockquote {
    font-size: 17px;
    padding-left: 20px;
  }
  .prose p {
    margin-bottom: 22px;
  }
  .prose figcaption {
    font-size: 10px;
  }
  .article-note {
    padding: 25px 0;
    margin-bottom: 50px;
  }
  .article-note p {
    font-size: 11px;
  }
  .related-grid {
    height: auto;
    grid-template-columns: 1fr;
    margin-bottom: 60px;
    gap: 16px;
  }
  .related-grid .feature-card {
    min-height: 220px;
  }
  .related-grid h3 {
    font-size: 22px;
    max-width: 230px;
  }
  .dialog-heading {
    padding: 22px 22px 18px;
  }
  .dialog-heading h2 {
    font-size: 19px;
  }
  .dialog-heading .eyebrow {
    font-size: 8px;
  }
  .settings-body {
    padding: 22px;
  }
  .search-dialog {
    margin-top: 70px;
  }
  .search-input-row {
    padding: 12px 13px;
    gap: 9px;
  }
  .search-input-row input {
    font-size: 12px;
  }
  .search-foot {
    padding: 14px;
    font-size: 9px;
  }
  .search-foot > span {
    display: none;
  }
  .search-foot > a {
    margin-left: auto;
  }
  .empty-state {
    font-size: 12px;
    padding: 35px 18px;
  }
  .search-result {
    padding: 13px;
  }
  .search-result h3 {
    font-size: 14px;
  }
  .search-result p {
    font-size: 10px;
  }
  .search-results {
    max-height: calc(100dvh - 250px);
  }
  .lightbox-dialog {
    padding: 58px 10px 18px;
  }
  .lightbox-dialog p {
    font-size: 10px;
  }
  .listing-page {
    padding-top: 112px;
  }
  .listing-heading {
    margin-bottom: 35px;
  }
  .listing-heading h1 {
    font-size: 28px;
  }
  .listing-heading p {
    font-size: 11px;
  }
  .filter-tabs {
    gap: 3px;
    margin-bottom: 20px;
  }
  .filter-tabs button {
    font-size: 11px;
    padding: 7px 13px;
  }
  .full-search-form {
    gap: 8px;
  }
  .full-search-input {
    padding: 8px 12px;
    gap: 10px;
  }
  .full-search-input input {
    font-size: 12px;
  }
  .primary-button {
    padding: 12px 16px;
    font-size: 11px;
    gap: 5px;
  }
  .primary-button > .icon {
    display: none;
  }
  .search-filters {
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11px;
    margin-bottom: 26px;
  }
  .search-filters select {
    font-size: 11px;
  }
  .full-results .search-result h3 {
    font-size: 18px;
  }
  .full-results .search-result p {
    font-size: 11px;
  }
  [data-hero="abstract"] .hero-content {
    width: calc(100% - 48px);
    padding-top: 80px;
  }
  [data-hero="abstract"] .hero h1 {
    font-size: clamp(36px, 9.7vw, 51px);
  }
  [data-hero="abstract"] .hero-kicker {
    margin-bottom: 26px;
  }
  [data-hero="abstract"] .hero-subtitle {
    font-size: 13px;
    letter-spacing: 0.12em;
  }
  .orb-one {
    width: 370px;
    height: 370px;
    top: -75px;
    right: -180px;
    opacity: 0.75;
  }
  .orb-two {
    width: 210px;
    height: 210px;
    bottom: -90px;
    left: 55%;
    opacity: 0.7;
  }
  .art-ring {
    width: 460px;
    height: 200px;
    right: -190px;
    top: 45px;
  }
  .ring-two {
    top: 90px;
    right: -165px;
  }
  .abstract-art {
    filter: none !important;
  }
  [data-hero="minimal"] .hero-content {
    width: calc(100% - 52px);
    padding: 50px 0 40px;
  }
  [data-hero="minimal"] .hero h1 {
    font-size: clamp(37px, 9.7vw, 52px);
    letter-spacing: 0.01em;
  }
  [data-hero="minimal"] .hero-kicker {
    font-size: 10px;
    margin-bottom: 30px;
  }
  [data-hero="minimal"] .hero-subtitle {
    font-size: 12px;
    letter-spacing: 0.13em;
  }
  [data-hero="minimal"] .hero-cta {
    margin-top: 45px;
  }
  [data-hero="minimal"] .minimal-decoration {
    font-size: 29px;
    bottom: 65px;
    right: 9%;
    opacity: 0.14;
  }
  [data-hero="minimal"] .hero:after {
    left: 24px;
    right: 24px;
  }
}
@media (max-width: 360px) {
  .page-width {
    width: calc(100% - 36px);
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-heading .text-link {
    font-size: 9px;
  }
  .featured-grid {
    grid-template-rows: 330px 220px;
    gap: 10px;
  }
  .feature-copy {
    padding: 14px;
  }
  .feature-copy h3 {
    font-size: 15px;
  }
  .feature-0 h3 {
    font-size: 26px;
  }
  .mobile-bar {
    gap: 2px;
    padding: 5px 9px;
  }
  .mobile-bar > a,
  .mobile-bar > button {
    width: 48px;
  }
  .row-copy h3 {
    font-size: 15px;
  }
  .row-copy .card-meta {
    font-size: 8px;
  }
  .row-image {
    width: 82px;
    height: 78px;
  }
  .article-row {
    grid-template-columns: 1fr 82px;
    gap: 13px;
  }
  .hero-bottom {
    left: 19px;
    right: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .landscape-art img {
    transform: none !important;
  }
  .reveal.is-pending {
    opacity: 1;
    transform: none;
  }
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
.article-heading h1 {
  text-wrap: balance;
}
/* 手机横屏及较矮窗口：标题、入口与底部导航在同一屏内留出各自空间。 */
@media (max-height: 600px) and (min-width: 561px) {
  [data-hero] .hero-content {
    padding-block: 72px 106px;
  }
  [data-hero] .hero h1 {
    font-size: 36px;
    margin-bottom: 12px;
  }
  [data-hero] .hero-kicker {
    font-size: 10px;
    margin-bottom: 12px;
  }
  [data-hero] .hero-subtitle {
    font-size: 12px;
  }
  [data-hero] .hero-cta {
    margin-top: 16px;
  }
}
.mobile-nav > button {
  text-align: left;
  min-height: 52px;
  font-size: 14px;
  padding: 15px 0;
  color: var(--accent-ink);
}

/* 正式 Hexo 内容与独立页面 */
:root {
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 48px;
  --duration-fast: 180ms;
  --duration-normal: 350ms;
}
.landscape-art:after {
  background: linear-gradient(
    180deg,
    rgba(18, 30, 38, 0.08),
    rgba(16, 33, 39, var(--hero-overlay, 0.3))
  );
}
.image-surface {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--accent-soft);
  overflow: hidden;
}
.image-surface img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font:
    italic 28px Georgia,
    serif;
  color: var(--muted);
  padding: 22px;
}
.image-failed {
  background: linear-gradient(135deg, #697f8c, #364d57);
}
.feature-media .image-fallback {
  color: #fffc;
}
[data-motion="balanced"][data-hover="true"]
  .feature-card:hover
  .image-surface
  img {
  transform: scale(1.035);
}
[data-motion="rich"][data-hover="true"] .feature-card:hover .image-surface img {
  transform: scale(1.075);
}
[data-hover="false"] .feature-card:hover .feature-media img,
[data-hover="false"] .row-image:hover img {
  transform: none;
}
.featured-grid.count-1 {
  display: block;
  height: 470px;
}
.featured-grid.count-1 .feature-card {
  height: 100%;
}
.featured-grid.count-2 {
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 460px;
}
.featured-grid.count-2 .feature-0 {
  grid-row: auto;
}
.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.category-link {
  border-bottom: 1px solid var(--line);
}
[data-hero="abstract"] .orb-one {
  background: radial-gradient(
    circle at 30% 30%,
    var(--orb-secondary),
    var(--orb-primary) 60%,
    #718695
  );
}
[data-hero="abstract"] .orb-two {
  background: var(--orb-secondary);
}
[data-hero="minimal"][data-minimal-align="center"] .hero-content {
  text-align: center;
}
[data-hero="minimal"][data-minimal-align="center"] .hero-kicker,
[data-hero="minimal"][data-minimal-align="center"] .hero-cta {
  justify-content: center;
}
.hero h1 {
  overflow-wrap: anywhere;
}
.pagination {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  margin: 42px 0 24px;
  font-size: 13px;
}
.pagination > a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  color: var(--accent-ink);
}
.pagination > span {
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 25px 0;
  font-size: 12px;
}
.footer-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
}
.article-layout.without-toc {
  display: block;
  max-width: 760px;
}
.toc nav {
  padding: 4px 4px 8px;
  margin: -4px -4px -8px;
  max-height: 55vh;
  overflow: auto;
  overscroll-behavior: contain;
}
.prose h1 {
  font-size: 1.9em;
}
.prose h3 {
  font-size: 1.2em;
  margin-top: 36px;
}
.prose h4,
.prose h5,
.prose h6 {
  font-size: 1em;
  margin-top: 30px;
}
.prose ul,
.prose ol {
  padding-left: 1.5em;
}
.prose li {
  margin: 0.55em 0;
}
.prose a:not(.headerlink) {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--accent-ink);
}
.prose .headerlink {
  float: left;
  margin-left: -24px;
  opacity: 0;
  width: 20px;
}
.prose .headerlink:focus-visible {
  opacity: 1;
}
.prose :not(pre) > code {
  background: var(--accent-soft);
  font-size: 0.86em;
  padding: 0.15em 0.3em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.prose pre,
.prose code {
  font-family: var(--font-code);
}
.prose figure.highlight {
  margin: 0;
  overflow: auto;
}
.prose figure.highlight table {
  margin: 0;
  width: 100%;
  border: 0;
  table-layout: auto;
}
.prose figure.highlight td {
  padding: 0;
  border: 0;
  white-space: normal;
}
.prose figure.highlight .gutter {
  user-select: none;
  color: var(--muted);
  width: 35px;
}
.prose figure.highlight pre {
  margin: 0;
  overflow: visible;
  background: none;
  white-space: pre;
  padding: 22px;
}
.prose figure.highlight td.code {
  width: 100%;
}
.prose pre .comment,
.prose pre .quote {
  color: #6f8b7a;
}
.prose pre .keyword,
.prose pre .selector-tag,
.prose pre .literal {
  color: #9572aa;
}
.prose pre .string,
.prose pre .attr {
  color: #75874d;
}
.prose pre .number,
.prose pre .built_in {
  color: #aa774a;
}
.prose pre .title,
.prose pre .function {
  color: #6088b7;
}
[data-theme="dark"] .prose pre .string {
  color: #b4c794;
}
[data-theme="dark"] .prose pre .keyword {
  color: #c0a0da;
}
[data-theme="dark"] .prose pre .comment {
  color: #99b6a8;
}
.prose img {
  height: auto;
}
.prose img.unmeasured-image {
  min-height: 180px;
  object-fit: contain;
  background: var(--accent-soft);
}
.prose .image-zoom {
  max-width: 100%;
  padding: 0;
  display: block;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.prose .image-zoom img {
  margin: 0;
}
.yae-image {
  margin: 40px 0;
}
.yae-image.image-wide {
  width: min(900px, calc(100vw - 64px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.yae-image.image-full {
  width: min(1100px, calc(100vw - 48px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
/* 有侧栏时守住正文列；目录隐藏的阅读模式和单栏文章可向两侧展开。 */
html:not([data-reading="true"]) .article-layout:not(.without-toc) .yae-image {
  max-width: 100%;
  margin-inline: 0;
  transform: none;
}
/* 阅读工具停靠屏幕右侧；宽幅图片也要守住为工具预留的空白。 */
[data-reading="true"] .yae-image.image-wide {
  width: min(900px, calc(100vw - 160px));
}
[data-reading="true"] .yae-image.image-full {
  width: min(1100px, calc(100vw - 160px));
}
@media (max-width: 800px) {
  [data-reading="true"] .yae-image {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    transform: none;
  }
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px auto 70px;
  max-width: 760px;
  font-size: 12px;
}
.post-tags a {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 25px;
}
.comments-section {
  margin: 50px auto 80px;
  max-width: 860px;
  overflow-wrap: anywhere;
}
.comments-section > h2 {
  font-size: 25px;
  font-weight: 500;
}
.comments-section > p {
  font-size: 13px;
  color: var(--muted);
}
.comments-section .el-textarea__inner,
.comments-section .el-input__inner {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.comments-section .tk-content,
.comments-section .tk-nick {
  color: var(--ink);
}
.comments-section .tk-meta,
.comments-section .tk-time {
  color: var(--muted);
}
body:has(.comments-section :focus) .mobile-bar {
  transform: translate(-50%, 150%);
}
.archive-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 35px;
}
.archive-jump a {
  font-size: 12px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 25px;
}
.archive-month {
  scroll-margin-top: 110px;
  border-left: 1px solid var(--line);
  padding: 0 0 30px 28px;
}
.archive-month summary {
  cursor: pointer;
  padding: 16px 0;
  font-size: 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  list-style: none;
}
.archive-month summary:before {
  content: "−";
  font-size: 18px;
  color: var(--muted);
}
.archive-month:not([open]) summary:before {
  content: "+";
}
.archive-month summary small {
  font-size: 11px;
  color: var(--muted);
}
.timeline-post {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-post time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.timeline-post > span {
  font-size: 17px;
}
.tag-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 390px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 38px;
}
.tag-filter input {
  min-width: 0;
  width: 100%;
  border: 0;
  color: var(--ink);
  background: none;
  min-height: 52px;
  outline: none;
}
.tag-filter:focus-within {
  border-color: var(--accent-ink);
}
.tag-cloud {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 75px;
}
.tag-cloud a {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 13px 22px;
  transition: background 0.2s;
  font-size: 15px;
}
.tag-cloud a:hover {
  background: var(--accent-soft);
}
.tag-cloud small {
  font-size: 11px;
  color: var(--muted);
}
.general-page {
  max-width: 900px;
}
.page-prose {
  max-width: 760px;
  margin: 40px auto 70px;
}
.custom-page-content {
  margin: 60px auto;
  max-width: 760px;
}
.about-profile {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 0 50px;
}
.about-profile img {
  border-radius: 50%;
}
.about-profile p {
  font-size: 18px;
  line-height: 1.9;
  max-width: 560px;
  color: var(--muted);
}
.about-module {
  margin: 45px 0;
}
.about-module h2 {
  font-size: 22px;
  font-weight: 500;
}
.skill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.skill-list span {
  padding: 9px 16px;
  border: 1px solid var(--line);
  font-size: 12px;
  border-radius: 30px;
}
.about-timeline {
  list-style: none;
  padding: 0;
}
.about-timeline li {
  display: flex;
  gap: 25px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.about-timeline time {
  color: var(--muted);
  font-size: 13px;
}
.social-links {
  display: flex;
  gap: 20px;
  margin: 35px 0;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
}
.friend-group {
  margin: 50px 0 65px;
}
.friend-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 42px;
}
.friend {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.friend > img,
.friend-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}
.friend-avatar {
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font:
    italic 22px Georgia,
    serif;
}
.friend > div {
  min-width: 0;
}
.friend h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 6px;
}
.friend p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.friend > .icon {
  margin-left: auto;
  width: 16px;
}
.friend:hover h3 {
  color: var(--accent-ink);
}
.update-timeline {
  list-style: none;
  padding: 0;
}
.update-timeline > li {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 35px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.update-timeline time {
  font-size: 12px;
  color: var(--muted);
}
.update-timeline h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 15px;
}
.update-timeline ul {
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted);
}
.update-timeline li li {
  margin: 8px 0;
}
[data-adapted="true"] .art-orb,
[data-adapted="true"] .art-ring {
  animation: none !important;
}
[data-adapted="true"] .landscape-art img {
  transform: none !important;
  will-change: auto;
}
[data-adapted="true"] .site-header,
[data-adapted="true"] .mobile-bar {
  backdrop-filter: none;
}
[data-transition="off"]::view-transition-old(*),
[data-transition="off"]::view-transition-new(*) {
  animation: none !important;
}
[data-theme="dark"] mark {
  color: #a7c4ed;
}
.segmented button[aria-pressed="true"] {
  font-weight: 600;
}
[data-theme="dark"] .segmented button[aria-pressed="true"] {
  color: #a7c4ed;
}
@media (max-width: 800px) {
  .yae-image.image-wide,
  .yae-image.image-full {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
  .friend-list {
    grid-template-columns: 1fr;
  }
  .timeline-post {
    gap: 20px;
  }
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
  .prose figure.highlight pre {
    padding: 18px;
    font-size: 12px;
  }
}
@media (max-width: 560px) {
  .hero h1 {
    white-space: normal;
  }
  .featured-grid.count-1 {
    height: 360px;
  }
  .featured-grid.count-2 {
    grid-template-columns: 1fr;
    grid-template-rows: 360px 230px;
  }
  .friend h3 {
    font-size: 16px;
  }
  .archive-month {
    padding-left: 18px;
  }
  .archive-month summary {
    font-size: 20px;
  }
  .timeline-post {
    gap: 15px;
  }
  .timeline-post > span {
    font-size: 15px;
  }
  .timeline-post time {
    font-size: 10px;
  }
  .tag-cloud {
    gap: 10px;
  }
  .tag-cloud a {
    padding: 10px 15px;
    font-size: 13px;
  }
  .update-timeline > li {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .about-profile {
    display: block;
  }
  .about-profile p {
    font-size: 16px;
  }
  .post-tags {
    margin: 30px 0 50px;
  }
  .footer-links {
    gap: 20px;
  }
  .pagination {
    gap: 16px;
  }
  .comments-section {
    margin: 35px auto 65px;
  }
  .comments-section > h2 {
    font-size: 22px;
  }
  .general-page .listing-heading h1 {
    font-size: 28px;
  }
  .article-heading h1 {
    overflow-wrap: anywhere;
  }
}

/* Search controls and editorial archive */
.search-page .search-filters { gap: 28px; margin: 22px 0 26px; padding: 0 0 22px; border-bottom: 1px solid var(--line); align-items: center; }
.search-page .search-filter { gap: 12px; color: var(--muted); font-size: 12px; }
.filter-control { position: relative; display: inline-flex; align-items: center; }
.search-page .filter-control select { appearance: none; -webkit-appearance: none; min-height: 44px; min-width: 144px; padding: 10px 38px 10px 16px; border: 1px solid transparent; border-radius: 24px; background: color-mix(in srgb, var(--line) 38%, var(--bg)); font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s; }
.search-page .filter-control select:hover { border-color: var(--line); background: var(--accent-soft); }
.search-page .filter-control select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.filter-control > .icon { position: absolute; right: 14px; width: 14px; height: 14px; pointer-events: none; color: var(--accent-ink); }
.archive-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; border-bottom: 1px solid var(--line); padding-bottom: 38px; margin-bottom: 42px; }
.archive-heading .archive-total { display: flex; flex-direction: column; gap: 8px; margin: 0; text-align: right; white-space: nowrap; }
.archive-total strong { font-family: inherit; font-size: 44px; font-weight: 500; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; color: var(--accent-ink); }
.archive-total span { font-size: 12px; color: var(--muted); }
.archive-layout { display: grid; grid-template-columns: 155px minmax(0,1fr); gap: 64px; align-items: start; }
.archive-years { position: sticky; top: 100px; display: grid; gap: 5px; }
.archive-nav-title { color: var(--muted); font-size: 11px; letter-spacing: .12em; padding: 0 12px 16px; }
.archive-years a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border-radius: 6px; font-size: 14px; transition: color .2s, background .2s; }
.archive-years small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.archive-years a:hover, .archive-years a[aria-current] { color: var(--accent-ink); background: var(--accent-soft); }
.archive-year-group { margin-bottom: 54px; }
.archive-year-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 0 6px; }
.archive-year-heading h2 { margin: 0; font-family: inherit; font-size: 36px; font-weight: 500; line-height: 1.2; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; }
.archive-year-heading h2 span { font: 12px/1.5 var(--font-sans); color: var(--muted); margin-left: 12px; }
.archive-year-heading > span { color: var(--muted); font-size: 11px; }
.archive-month-group { margin-top: 24px; }
.archive-month-label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; font-size: 13px; color: var(--accent-ink); }
.archive-month-label small { color: var(--muted); font-size: 11px; }
.archive-entries { padding-left: 0; }
.archive-entry { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: baseline; gap: 18px; padding: 16px 0; }
.archive-entry time { white-space: nowrap; font-family: inherit; font-size: 18px; font-weight: 400; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; }
.archive-entry time span { font: 10px var(--font-sans); margin-left: 4px; }
.archive-entry h3 { font-size: 17px; font-weight: 500; line-height: 1.6; margin: 0 0 7px; overflow-wrap: anywhere; transition: color .2s; }
.archive-entry p { margin: 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.archive-entry:hover h3 { color: var(--accent-ink); }
@media(max-width: 700px) {
  .search-page .search-filters { gap: 12px; flex-wrap: nowrap; }
  .search-page .search-filter { flex: 1; min-width: 0; flex-direction: column; align-items: stretch; gap: 8px; }
  .search-filter > span:first-child { padding-left: 12px; }
  .filter-control { width: 100%; }
  .search-page .filter-control select { min-width: 0; width: 100%; }
  .archive-heading { align-items: start; gap: 24px; padding-bottom: 26px; margin-bottom: 24px; }
  .archive-heading h1 { font-size: 27px; }
  .archive-heading .archive-total { display: none; }
  .archive-layout { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .archive-years { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
  .archive-nav-title { display: none; }
  .archive-years a { flex-shrink: 0; padding: 11px 13px; gap: 10px; }
  .archive-year-heading h2 { font-size: 30px; }
  .archive-year-group { margin-bottom: 38px; }
  .archive-entry { grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 18px 0; }
  .archive-entry h3 { font-size: 15px; }
  .archive-entry time { font-size: 16px; }
}
@media(prefers-reduced-motion: reduce) { .archive-entry h3, .archive-years a, .search-page .filter-control select { transition: none; } }

/* Quiet journal: year, date, and text carry the hierarchy. */
.update-page { max-width: 1040px; }
.update-page .update-heading { margin-bottom: 68px; }
.update-page .update-records { max-width: none; margin: 0 0 90px; }
.update-page .legacy-timeline { position: relative; padding-left: 164px; margin: 0 0 60px; }
.update-page .legacy-timeline > h2 { position: absolute; top: 0; left: 0; margin: 0; padding: 0; border: 0; font-family: inherit; font-size: 30px; font-weight: 500; line-height: 1.4; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; }
.update-page .legacy-timeline > section { display: grid; grid-template-columns: 68px minmax(0,1fr); column-gap: 28px; padding: 8px 0 26px; }
.update-page .legacy-timeline > section > h3 { margin: 0; padding: 0; border: 0; font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.9; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.update-page .legacy-timeline > section > :not(h3) { grid-column: 2; min-width: 0; }
.update-page .legacy-timeline p { margin: 0 0 12px; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.update-page .legacy-timeline p:last-child { margin-bottom: 0; }
.update-page .legacy-timeline a:not(.headerlink) { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
.update-page .legacy-timeline a:not(.headerlink):hover { color: var(--accent-ink); text-decoration-color: var(--accent-ink); }
.update-page .update-timeline { margin: 0 0 70px; }
.update-page .update-timeline > li { grid-template-columns: 136px minmax(0,1fr); gap: 28px; border: 0; padding: 8px 0 36px; }
.update-page .update-timeline time { line-height: 1.9; font-size: 13px; font-variant-numeric: tabular-nums; }
.update-page .update-timeline h2 { font-size: 18px; line-height: 1.7; }
.update-page .update-timeline ul { margin: 0; padding-left: 17px; line-height: 1.9; color: var(--ink); }
@media(max-width:700px) {
  .update-page .update-heading { margin-bottom: 46px; }
  .update-page .legacy-timeline { padding-left: 0; margin-bottom: 40px; }
  .update-page .legacy-timeline > h2 { position: static; font-size: 27px; margin-bottom: 20px; }
  .update-page .legacy-timeline > section { grid-template-columns: 54px minmax(0,1fr); column-gap: 18px; padding-bottom: 22px; }
  .update-page .legacy-timeline p { font-size: 14px; }
  .update-page .update-timeline > li { grid-template-columns: minmax(0,1fr); gap: 8px; }
}
@media(prefers-reduced-motion:reduce) { .update-page .legacy-timeline a:not(.headerlink) { transition: none; } }

/* Readable code and plain text across system font renderers. */
.prose .code-block { min-width: 0; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--line) 35%, var(--bg)); margin: 28px 0; }
.prose .code-heading { padding: 8px 16px 0 22px; min-height: 40px; border: 0; font-size: 11px; letter-spacing: 0; line-height: 1.5; }
.prose .code-heading button { min-height: 36px; padding: 6px 10px; border-radius: 6px; font-family: var(--font-sans); font-size: 12px; color: var(--muted); }
.prose .code-heading button:hover { color: var(--ink); background: var(--accent-soft); }
.prose .code-heading button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prose pre { font-family: var(--font-code); font-size: 14px; line-height: 1.85; font-weight: 400; font-variant-ligatures: none; tab-size: 2; }
.prose .code-block > pre { padding: 12px 22px 22px; background: none; }
.prose figure.highlight pre { padding: 12px 22px 22px; font-size: 14px; line-height: 1.85; }
.prose figure.highlight .gutter { width: 1%; color: color-mix(in srgb, var(--muted) 75%, var(--bg)); }
.prose figure.highlight .gutter pre { padding-right: 0; font-size: 12px; line-height: calc(14px * 1.85); }
.prose .code-block.is-plaintext .gutter { display: none; }
.prose .code-block.is-plaintext figure.highlight table { table-layout: fixed; }
.prose .code-block.is-plaintext pre, .prose .code-block.is-plaintext code { font-family: var(--font-code); font-size: 15px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
@media(max-width:700px) {
  .prose .code-heading { padding-left: 16px; padding-right: 10px; }
  .prose figure.highlight pre, .prose .code-block > pre { padding: 10px 16px 18px; font-size: 13px; }
  .prose figure.highlight .gutter pre { padding-right: 0; font-size: 11px; line-height: calc(13px * 1.85); }
  .prose .code-block.is-plaintext pre, .prose .code-block.is-plaintext code { font-size: 14px; }
}

/* Heading hierarchy comes from the outline, independent of its starting h-level. */
.toc .toc-list { list-style: none; padding: 0; margin: 0; }
.toc .toc-list .toc-list { margin-left: 14px; }
.toc .toc-list .toc-list .toc-list .toc-list { margin-left: 0; }
.toc .toc-list > li { margin: 0; padding: 0; }
.toc .toc-link { display: grid; grid-template-columns: var(--toc-number-width, 2ch) minmax(0, 1fr); align-items: baseline; column-gap: 10px; min-width: 0; }
.toc .toc-number { white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.toc .toc-text { min-width: 0; overflow-wrap: anywhere; }

/* Only chapter numbers receive a badge; nested section numbers stay quiet. */
.toc nav > .toc-list > li > .toc-link {
  grid-template-columns: max(24px, calc(var(--toc-number-width, 2ch) + 8px)) minmax(0, 1fr);
  align-items: start;
  line-height: 24px;
  font-weight: 500;
}
.toc nav > .toc-list > li > .toc-link .toc-number {
  display: grid;
  place-items: center;
  min-height: 24px;
  border-radius: 7px;
  color: var(--toc-accent);
  background: var(--accent-soft);
  transition: color 0.18s, background-color 0.18s;
}
.toc nav > .toc-list > li > .toc-link.active .toc-number {
  color: var(--surface);
  background: var(--toc-accent);
}
@media (forced-colors: active) {
  .toc a.active { outline: 1px solid Highlight; outline-offset: -1px; }
  .toc nav > .toc-list > li > .toc-link .toc-number { border: 1px solid currentColor; }
}
