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

.site-nav a.is-active::after {
    transform: scaleX(1);
}

.article-category {
    color: var(--violet-deep);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

/* Article archive */
.archive-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
    gap: clamp(50px, 9vw, 150px);
    align-items: center;
    width: var(--container);
    min-height: 650px;
    margin: 0 auto;
    padding: 150px 0 55px;
}

.archive-title .eyebrow {
    margin-bottom: 30px;
}

.archive-title h1 {
    margin: 0;
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: clamp(64px, 8vw, 128px);
    font-weight: 600;
    line-height: .92;
    letter-spacing: -.075em;
}

.archive-title h1 span {
    position: relative;
    display: inline-grid;
    width: .82em;
    height: .82em;
    margin: 0 .12em;
    place-items: center;
    color: var(--paper);
    background: var(--violet-deep);
    border-radius: 50%;
    font-family: "Songti SC", "STSong", serif;
    font-size: .43em;
    font-weight: 700;
    vertical-align: .3em;
    transform: rotate(-7deg);
}

.archive-title p {
    max-width: 620px;
    margin: 36px 0 0;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.9;
}

.archive-signal {
    position: relative;
    width: min(100%, 470px);
    aspect-ratio: 1;
    justify-self: end;
    overflow: hidden;
    color: #dfe5f7;
    background: var(--night);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50% 50% 8% 50%;
    box-shadow: 26px 26px 0 rgba(62, 223, 194, .13), 0 36px 80px rgba(26, 35, 66, .18);
}

.archive-signal-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle, #000 20%, transparent 72%);
}

.archive-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52%;
    aspect-ratio: 1;
    border: 1px solid rgba(118, 93, 255, .52);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.archive-ring::after {
    position: absolute;
    top: 16%;
    right: 9%;
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 18px var(--cyan);
}

.ring-one {
    animation: archiveOrbit 18s linear infinite;
}

.ring-two {
    width: 28%;
    border-style: dashed;
    border-color: rgba(62, 223, 194, .38);
    animation: archiveOrbit 12s linear infinite reverse;
}

.ring-two::after {
    width: 5px;
    height: 5px;
    background: var(--orange);
    box-shadow: 0 0 14px var(--orange);
}

.archive-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 38px 12px rgba(118, 93, 255, .43);
    transform: translate(-50%, -50%);
    animation: archivePulse 2.8s ease-in-out infinite;
}

.signal-label,
.archive-coordinate {
    position: absolute;
    color: #7984a5;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .13em;
}

.signal-label::before {
    display: inline-block;
    width: 14px;
    height: 1px;
    margin-right: 7px;
    content: "";
    background: currentColor;
    vertical-align: middle;
}

.signal-label-a { top: 23%; left: 12%; }
.signal-label-b { top: 19%; right: 10%; color: var(--cyan); }
.signal-label-c { right: 9%; bottom: 22%; }
.archive-coordinate { bottom: 10%; left: 17%; }

.archive-stats {
    position: absolute;
    right: 0;
    bottom: 54px;
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 35px;
    margin: 0;
    padding: 16px 20px;
    background: rgba(243, 246, 251, .9);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.archive-stats div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.archive-stats dt {
    color: #8a93a7;
    font-size: 10px;
}

.archive-stats dd {
    margin: 0;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 18px;
    font-weight: 700;
}

.archive-library {
    width: var(--container);
    margin: 0 auto;
    padding: 80px 0 130px;
}

.library-header {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 430px);
    gap: 50px;
    align-items: end;
    margin-bottom: 48px;
}

.library-header h2 {
    margin: 0;
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: clamp(45px, 5vw, 72px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.06em;
}

.article-search {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 12px;
    align-items: center;
    height: 52px;
    padding: 0 15px;
    background: rgba(255, 255, 255, .52);
    border: 1px solid var(--line);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.article-search:focus-within {
    background: rgba(255, 255, 255, .8);
    border-color: rgba(118, 93, 255, .55);
    box-shadow: 0 0 0 4px rgba(118, 93, 255, .08);
}

.article-search svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #7d879d;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.article-search input {
    min-width: 0;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 13px;
}

.article-search input::placeholder {
    color: #8d96a9;
}

.article-search kbd {
    padding: 4px 6px;
    color: #8c95a7;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
}

.library-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ink);
}

.article-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-filters button,
.article-filters a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    color: var(--ink-soft);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 650;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.article-filters button span,
.article-filters a span {
    color: #949cad;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
}

.article-filters button:hover,
.article-filters a:hover {
    color: var(--violet-deep);
    border-color: rgba(118, 93, 255, .5);
    transform: translateY(-1px);
}

.article-filters button.is-active,
.article-filters a.is-active {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.article-filters button.is-active span,
.article-filters a.is-active span {
    color: #aeb7cd;
}

.filter-result {
    flex: 0 0 auto;
    margin: 0;
    color: #8992a6;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    letter-spacing: .1em;
}

.article-catalog {
    border-bottom: 1px solid var(--ink);
}

.catalog-row {
    border-top: 1px solid var(--line);
    transition: opacity .25s ease, transform .3s var(--ease);
}

.catalog-row:first-child {
    border-top: 0;
}

.catalog-row.is-filtered {
    display: none;
}

.catalog-row a {
    position: relative;
    display: grid;
    grid-template-columns: 82px 120px minmax(0, 1fr) 60px 34px;
    gap: clamp(14px, 2.5vw, 40px);
    align-items: center;
    min-height: 142px;
    padding: 18px 9px 18px 0;
    overflow: hidden;
}

.catalog-row a::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, rgba(118, 93, 255, .075), rgba(62, 223, 194, .035));
    transform: translateX(-101%);
    transition: transform .55s var(--ease);
}

.catalog-row:hover a::before {
    transform: none;
}

.catalog-date {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.catalog-date time {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.04em;
}

.catalog-date small,
.catalog-time {
    color: #939bad;
    font-size: 8px;
    letter-spacing: .1em;
}

.catalog-category {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 650;
}

.catalog-category i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 0 4px rgba(118, 93, 255, .1);
}

[data-category="product"] .catalog-category i { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 157, 89, .1); }
[data-category="system"] .catalog-category i { background: var(--cyan); box-shadow: 0 0 0 4px rgba(62, 223, 194, .1); }
[data-category="note"] .catalog-category i { background: #8190ad; box-shadow: 0 0 0 4px rgba(129, 144, 173, .1); }

.catalog-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
}

.catalog-copy strong {
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: clamp(21px, 2.1vw, 29px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.03em;
    transition: color .25s ease, transform .35s var(--ease);
}

.catalog-copy small {
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-row:hover .catalog-copy strong {
    color: var(--violet-deep);
    transform: translateX(5px);
}

.catalog-time {
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.catalog-arrow {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 12px;
    transition: color .3s ease, background .3s ease, transform .35s var(--ease);
}

.catalog-row:hover .catalog-arrow {
    color: var(--white);
    background: var(--violet-deep);
    transform: rotate(45deg);
}

.catalog-empty {
    padding: 80px 20px;
    text-align: center;
}

.catalog-empty span {
    display: block;
    margin-bottom: 18px;
    color: var(--violet-deep);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 36px;
}

.catalog-empty strong {
    display: block;
    font-family: "Songti SC", "STSong", serif;
    font-size: 25px;
}

.catalog-empty p {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.archive-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 36px;
}

.pagination-caption {
    color: #8c95a8;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    letter-spacing: .14em;
}

.archive-pagination div {
    display: flex;
    gap: 6px;
}

.archive-pagination .pagination {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.archive-pagination .pagination li {
    display: block;
}

.archive-pagination a,
.archive-pagination div > span,
.archive-pagination .pagination li > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.archive-pagination a:hover,
.archive-pagination a.is-current,
.archive-pagination .pagination .active a,
.archive-pagination .pagination .active span {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.archive-pagination .is-disabled {
    opacity: .35;
}

.archive-pagination .pagination .disabled {
    opacity: .35;
}

/* Article detail */
.article-detail-page {
    --paper: #fbfcfe;
    --paper-soft: #f1f4f8;
    --ink-soft: #596378;
    --line: rgba(41, 50, 71, .12);
    background: #fbfcfe;
}

.article-detail-page::before {
    background:
        radial-gradient(circle at 14% 0, rgba(101, 82, 232, .065), transparent 25rem),
        radial-gradient(circle at 88% 17%, rgba(62, 223, 194, .045), transparent 22rem),
        linear-gradient(rgba(41, 50, 71, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 50, 71, .028) 1px, transparent 1px);
    background-size: auto, auto, 72px 72px, 72px 72px;
    mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .6) 22rem, transparent 42rem);
}

.article-detail-page .page-noise {
    display: none;
}

.detail-hero {
    width: min(90vw, 1270px);
    margin: 0 auto;
    padding: 146px 0 50px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 60px;
    color: #858ea3;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .13em;
}

.article-breadcrumb a {
    color: var(--violet-deep);
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 17px;
    color: #7f899f;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .13em;
}

.detail-heading h1 {
    margin: 26px 0 30px;
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: clamp(40px, 4.4vw, 50px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.045em;
}

.detail-deck {
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.9;
}

.detail-byline {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 55px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.author-block {
    display: flex;
    align-items: center;
    gap: 13px;
}

.author-avatar {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    color: var(--white);
    background: var(--ink);
    border-radius: 50% 50% 8% 50%;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.author-block div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-block strong {
    font-size: 12px;
}

.author-block div span {
    color: #858ea2;
    font-size: 10px;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-actions button,
.detail-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 15px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.detail-actions a {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.detail-actions button:hover {
    color: var(--violet-deep);
    border-color: var(--violet);
}

.detail-actions a:hover {
    background: var(--violet-deep);
    border-color: var(--violet-deep);
}

.detail-actions svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.article-layout {
    display: grid;
    grid-template-columns: 184px minmax(0, 780px) 130px;
    gap: clamp(38px, 4.5vw, 64px);
    align-items: start;
    width: min(90vw, 1270px);
    margin: 0 auto;
    padding: 80px 0 140px;
    border-top: 1px solid var(--line);
}

.article-toc,
.article-aside {
    position: sticky;
    top: 105px;
}

.article-toc {
    max-height: calc(100vh - 135px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(101, 82, 232, .35) transparent;
    scrollbar-width: thin;
}

.toc-label,
.article-aside span {
    display: block;
    color: #667085;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
}

.article-toc nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 17px;
    border-top: 1px solid var(--line);
}

.article-toc nav a {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    padding: 12px 0;
    color: #596378;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 520;
    line-height: 1.55;
    transition: color .2s ease, padding .3s var(--ease);
}

.article-toc nav a span {
    color: #7e889c;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8.5px;
}

.article-toc nav a:hover,
.article-toc nav a.is-active {
    padding-left: 5px;
    color: var(--violet-deep);
}

.article-toc nav a.is-active span {
    color: var(--violet-deep);
}

.toc-back {
    display: inline-block;
    margin-top: 25px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 650;
}

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

.article-section {
    scroll-margin-top: 115px;
}

.article-section + .article-section {
    margin-top: 100px;
}

.article-body p {
    margin: 0 0 23px;
    color: #293247;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: .006em;
    line-height: 1.82;
    text-wrap: pretty;
}

.article-body .article-lead {
    margin-bottom: 32px;
    color: var(--ink);
    font-size: 23px;
    font-weight: 600;
    line-height: 1.82;
}

.article-lead::first-letter {
    float: left;
    margin: .12em .12em 0 0;
    color: var(--violet-deep);
    font-family: "Songti SC", serif;
    font-size: 4.2em;
    font-weight: 700;
    line-height: .78;
}

.section-number {
    display: block;
    margin-bottom: 19px;
    color: var(--violet-deep);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .17em;
}

.article-body h2 {
    margin: 0 0 35px;
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: clamp(38px, 4vw, 55px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.045em;
}

.article-body h3 {
    margin: 55px 0 22px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 26px;
    line-height: 1.45;
}

.markdown-body > :first-child {
    margin-top: 0;
}

.markdown-body > p:first-child {
    color: #202a3e;
    font-size: 20px;
    font-weight: 520;
    line-height: 1.78;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    scroll-margin-top: 115px;
}

.markdown-body h1 {
    margin: 75px 0 32px;
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(38px, 4vw, 50px);
    line-height: 1.24;
    letter-spacing: -.045em;
}

.markdown-body h2 {
    margin-top: 76px;
    margin-bottom: 27px;
    font-size: clamp(34px, 3.2vw, 44px);
    line-height: 1.3;
}

.markdown-body h4 {
    margin: 42px 0 16px;
    font-size: 17px;
}

.markdown-body a {
    color: var(--violet-deep);
    text-decoration: underline;
    text-decoration-color: rgba(118, 93, 255, .35);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.markdown-body strong {
    color: var(--ink);
    font-weight: 750;
}

.markdown-body del {
    color: #7d879b;
}

.markdown-body ul,
.markdown-body ol {
    margin: 22px 0 30px;
    padding-left: 1.6em;
    color: #293247;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 17.5px;
    letter-spacing: .006em;
    line-height: 1.85;
}

.markdown-body li + li {
    margin-top: 8px;
}

.markdown-body li::marker {
    color: var(--violet-deep);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.markdown-body .contains-task-list {
    padding-left: 0;
    list-style: none;
}

.markdown-body .task-list-item {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.markdown-body .task-list-item input {
    width: 15px;
    height: 15px;
    margin: .58em 0 0;
    accent-color: var(--violet-deep);
}

.markdown-body blockquote {
    position: relative;
    margin: 44px 0;
    padding: 28px 32px 28px 38px;
    color: var(--ink);
    background: rgba(118, 93, 255, .055);
    border-left: 3px solid var(--violet);
}

.markdown-body blockquote p {
    margin: 0;
    color: inherit;
    font-size: 18px;
    line-height: 1.78;
}

.markdown-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 44px auto;
    border: 1px solid var(--line);
    border-radius: 3px 3px 24px 3px;
    box-shadow: 0 24px 70px rgba(18, 27, 51, .12);
}

.markdown-body hr {
    width: 90px;
    margin: 70px auto;
    border: 0;
    border-top: 1px solid var(--violet);
}

.markdown-body code:not(pre code) {
    padding: .18em .42em;
    color: #5c40df;
    background: rgba(118, 93, 255, .08);
    border: 1px solid rgba(118, 93, 255, .14);
    border-radius: 4px;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: .84em;
}

.markdown-code-block {
    margin: 42px 0;
    overflow: hidden;
    color: #dfe5f6;
    background: #0b1020;
    border-radius: 3px 3px 24px 3px;
}

.markdown-code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 16px;
    color: #808ba7;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    letter-spacing: .06em;
}

.markdown-code-toolbar button {
    padding: 6px 9px;
    color: #c4cbe0;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
}

.markdown-code-toolbar button:hover {
    color: var(--cyan);
    border-color: rgba(62, 223, 194, .4);
}

.markdown-code-block pre {
    margin: 0;
    padding: 26px 28px;
    overflow-x: auto;
}

.markdown-code-block code {
    color: #d5dcef;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    line-height: 1.8;
    tab-size: 4;
}

.markdown-body table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 13px;
}

.markdown-body table th,
.markdown-body table td {
    padding: 15px 17px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.markdown-body table th {
    color: var(--ink);
    background: rgba(118, 93, 255, .06);
    font-weight: 750;
}

.markdown-table-wrap {
    margin: 42px 0;
    overflow-x: auto;
}

.toc-empty {
    margin: 16px 0 0;
    color: #9aa2b2;
    font-size: 10px;
    line-height: 1.6;
}

.article-principle {
    position: relative;
    margin: 48px 0 0;
    padding: 30px 34px 32px 40px;
    overflow: hidden;
    color: #e9edfb;
    background: var(--night);
    border-radius: 2px 2px 26px 2px;
}

.article-principle::after {
    position: absolute;
    top: -70px;
    right: -30px;
    width: 190px;
    height: 190px;
    content: "";
    border: 1px solid rgba(118, 93, 255, .38);
    border-radius: 50%;
    box-shadow: 0 0 0 32px rgba(118, 93, 255, .06), 0 0 0 64px rgba(118, 93, 255, .03);
}

.article-principle span {
    display: block;
    margin-bottom: 15px;
    color: var(--cyan);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .15em;
}

.article-principle strong {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 570px;
    font-family: "Songti SC", "STSong", serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.55;
}

.article-contrast {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 43px 0;
    border: 1px solid var(--line);
}

.article-contrast > div {
    padding: 29px;
}

.article-contrast > div + div {
    background: rgba(118, 93, 255, .055);
    border-left: 1px solid var(--line);
}

.article-contrast span {
    display: block;
    margin-bottom: 17px;
    color: #8c95a9;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .14em;
}

.article-contrast > div + div span {
    color: var(--violet-deep);
}

.article-contrast strong {
    font-family: "Songti SC", "STSong", serif;
    font-size: 21px;
}

.article-contrast ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 20px 0 0;
    padding: 0;
    color: var(--ink-soft);
    font-size: 12px;
    list-style: none;
}

.article-contrast li::before {
    margin-right: 8px;
    color: var(--violet-deep);
    content: "—";
}

.layer-stack {
    margin: 44px 0 48px;
    border-top: 1px solid var(--ink);
}

.layer-stack article {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 22px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.layer-index {
    color: var(--violet-deep);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
}

.layer-stack h3 {
    margin-bottom: 9px;
}

.layer-stack article p {
    margin: 0;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.8;
}

.layer-stack small {
    color: #919aab;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 7px;
    letter-spacing: .13em;
}

.code-sample {
    margin: 45px 0 0;
    overflow: hidden;
    color: #dfe5f6;
    background: #0b1020;
    border-radius: 2px 2px 25px 2px;
}

.code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 17px;
    color: #7f89a5;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
}

.code-toolbar button {
    padding: 6px 9px;
    color: #bac2d8;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
}

.code-toolbar button:hover {
    color: var(--cyan);
    border-color: rgba(62, 223, 194, .4);
}

.code-sample pre {
    margin: 0;
    padding: 30px;
    overflow-x: auto;
}

.code-sample code {
    color: #cfd6ea;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    line-height: 1.8;
}

.code-caption {
    display: block;
    padding: 0 30px 25px;
    color: #69738e;
    font-size: 10px;
    line-height: 1.6;
}

.eval-loop {
    display: grid;
    grid-template-columns: repeat(7, auto);
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 43px 0;
    padding: 27px 18px;
    background: rgba(118, 93, 255, .055);
    border: 1px solid rgba(118, 93, 255, .18);
}

.eval-loop span {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 11px;
    font-weight: 650;
    text-align: center;
}

.eval-loop i {
    color: var(--violet-deep);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-style: normal;
}

.eval-loop b {
    color: #9aa2b2;
    font-size: 12px;
    font-weight: 400;
}

.article-table-wrap {
    margin: 43px 0;
    overflow-x: auto;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.article-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: left;
}

.article-table th,
.article-table td {
    padding: 17px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.6;
}

.article-table th {
    color: #7f899c;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .11em;
}

.article-table td:first-child {
    color: var(--ink);
    font-weight: 700;
}

.article-table td:not(:first-child) {
    color: var(--ink-soft);
}

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

.article-quote {
    margin: 52px 0 0;
    padding: 15px 0 15px 28px;
    border-left: 3px solid var(--cyan);
}

.article-quote p {
    margin: 0 0 15px;
    color: var(--ink);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.65;
}

.article-quote cite {
    color: #8c95a7;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-style: normal;
    letter-spacing: .13em;
}

.article-endmark {
    display: grid;
    grid-template-columns: repeat(2, 8px);
    grid-template-rows: repeat(2, 8px);
    gap: 3px;
    width: max-content;
    margin: 55px auto 0;
    transform: rotate(45deg);
}

.article-endmark span {
    background: var(--ink);
    border-radius: 2px;
}

.article-endmark span:nth-child(2) { background: var(--violet); }
.article-endmark span:nth-child(3) { background: var(--cyan); }

.article-signoff {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 65px;
    padding-top: 27px;
    border-top: 1px solid var(--ink);
}

.article-signoff-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.article-signoff-actions button,
.article-signoff-actions a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.article-signoff-actions button:hover,
.article-signoff-actions a:hover {
    color: var(--violet-deep);
    border-color: var(--violet);
}

.article-signoff i {
    font-style: normal;
}

.article-aside {
    color: #596378;
}

.article-aside div {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.article-aside strong {
    display: block;
    margin-top: 6px;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
}

.article-aside p {
    margin: 22px 0 0;
    color: #667085;
    font-size: 11px;
    line-height: 1.75;
}

.related-writing {
    padding: 120px max(5vw, calc((100vw - 1320px) / 2));
    color: #e7ebf8;
    background: var(--night);
}

.related-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.related-heading .section-kicker {
    color: var(--cyan);
}

.related-heading h2 {
    margin: 0;
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 600;
    letter-spacing: -.055em;
}

.related-heading > a {
    display: inline-flex;
    gap: 10px;
    padding-bottom: 8px;
    color: #c7cde0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    font-size: 11px;
    font-weight: 700;
}

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

.related-grid article {
    border: 1px solid rgba(255, 255, 255, .12);
}

.related-grid article a {
    position: relative;
    display: block;
    min-height: 310px;
    padding: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, .025);
    transition: background .3s ease, border-color .3s ease;
}

.related-grid article a::after {
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    content: "";
    border: 1px solid rgba(118, 93, 255, .28);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(118, 93, 255, .04), 0 0 0 56px rgba(118, 93, 255, .025);
    transition: transform .5s var(--ease);
}

.related-grid article a:hover {
    background: rgba(255, 255, 255, .045);
}

.related-grid article a:hover::after {
    transform: scale(1.12) translate(-9px, -9px);
}

.related-meta {
    color: var(--cyan);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .13em;
}

.related-grid h3 {
    max-width: 520px;
    margin: 45px 0 15px;
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(25px, 2.5vw, 36px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.035em;
}

.related-grid p {
    max-width: 460px;
    margin: 0;
    color: #8f99b4;
    font-size: 12px;
    line-height: 1.7;
}

.related-grid i {
    position: absolute;
    right: 27px;
    bottom: 27px;
    z-index: 2;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    font-style: normal;
    transition: color .3s ease, background .3s ease, transform .3s var(--ease);
}

.related-grid a:hover i {
    color: var(--night);
    background: var(--cyan);
    transform: rotate(45deg);
}

.copy-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    padding: 12px 16px;
    color: var(--white);
    background: var(--night);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 16px 42px rgba(12, 18, 35, .22);
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .3s ease, transform .4s var(--ease);
}

.copy-toast.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes archiveOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes archivePulse {
    0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

@media (max-width: 1120px) {
    .archive-hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
        gap: 45px;
    }

    .archive-stats {
        display: none;
    }

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

    .article-aside {
        display: none;
    }

}

@media (max-width: 900px) {
    .archive-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 110px;
    }

    .archive-title {
        position: relative;
        z-index: 2;
    }

    .archive-title h1 {
        font-size: clamp(70px, 14vw, 110px);
    }

    .archive-signal {
        width: min(75vw, 480px);
        justify-self: center;
    }

    .library-header {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .catalog-row a {
        grid-template-columns: 72px 105px minmax(0, 1fr) 32px;
    }

    .catalog-time {
        display: none;
    }

    .detail-hero {
        width: min(86vw, 760px);
    }

    .article-layout {
        grid-template-columns: 1fr;
        width: min(86vw, 760px);
        padding-top: 90px;
    }

    .article-toc {
        position: static;
        max-height: min(48vh, 400px);
        padding: 22px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: rgba(255, 255, 255, .5);
        border: 1px solid var(--line);
    }

    .article-toc nav {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .article-toc nav a {
        flex: none;
        padding: 12px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .toc-back {
        display: none;
    }
}

@media (max-width: 640px) {
    .archive-hero {
        padding: 118px 0 45px;
    }

    .archive-title .eyebrow {
        margin-bottom: 23px;
    }

    .archive-title h1 {
        font-size: 65px;
        line-height: 1;
    }

    .archive-title p {
        margin-top: 28px;
        font-size: 14px;
        line-height: 1.8;
    }

    .archive-signal {
        width: 90%;
        box-shadow: 16px 16px 0 rgba(62, 223, 194, .13);
    }

    .archive-library {
        padding: 65px 0 90px;
    }

    .library-header {
        margin-bottom: 34px;
    }

    .library-header h2 {
        font-size: 45px;
    }

    .library-tools {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .article-filters {
        flex-wrap: nowrap;
        width: calc(100vw - 16px);
        margin-right: -16px;
        padding-right: 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .article-filters::-webkit-scrollbar {
        display: none;
    }

    .article-filters button,
    .article-filters a {
        flex: 0 0 auto;
    }

    .catalog-row a {
        grid-template-columns: 55px 1fr 30px;
        gap: 13px;
        min-height: 132px;
        padding-right: 0;
    }

    .catalog-category {
        display: none;
    }

    .catalog-copy strong {
        font-size: 21px;
    }

    .catalog-copy small {
        font-size: 11px;
    }

    .archive-pagination {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .detail-hero {
        width: var(--container);
        padding: 114px 0 42px;
    }

    .article-breadcrumb {
        margin-bottom: 44px;
    }

    .detail-meta {
        flex-wrap: wrap;
    }

    .detail-heading h1 {
        margin-top: 22px;
        font-size: 44px;
        line-height: 1.18;
    }

    .detail-deck {
        font-size: 16px;
        line-height: 1.8;
    }

    .detail-byline {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 42px;
    }

    .detail-actions {
        width: 100%;
    }

    .detail-actions button,
    .detail-actions a {
        flex: 1;
    }

    .article-layout {
        width: var(--container);
        gap: 65px;
        padding: 58px 0 95px;
    }

    .article-toc {
        max-height: 340px;
        padding: 18px;
    }

    .article-toc nav a {
        padding: 10px 0;
    }

    .article-section + .article-section {
        margin-top: 78px;
    }

    .article-body p {
        font-size: 17px;
        line-height: 1.82;
    }

    .markdown-body ul,
    .markdown-body ol {
        font-size: 17px;
        line-height: 1.82;
    }

    .article-body .article-lead {
        font-size: 19px;
        line-height: 1.85;
    }

    .article-body h2 {
        margin-bottom: 28px;
        font-size: 36px;
    }

    .article-principle {
        padding: 27px 24px;
    }

    .article-principle strong {
        font-size: 21px;
    }

    .article-contrast {
        grid-template-columns: 1fr;
    }

    .article-contrast > div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .layer-stack article {
        grid-template-columns: 36px 1fr;
        gap: 14px;
    }

    .layer-stack small {
        display: none;
    }

    .code-sample pre {
        padding: 23px 18px;
    }

    .code-sample code {
        font-size: 11px;
    }

    .code-caption {
        padding: 0 18px 22px;
    }

    .eval-loop {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .eval-loop b {
        display: none;
    }

    .article-quote p {
        font-size: 21px;
    }

    .article-signoff {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-signoff-actions {
        justify-content: flex-start;
    }

    .related-writing {
        padding: 85px 16px;
    }

    .related-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
    }

    .related-heading h2 {
        font-size: 44px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-grid article a {
        min-height: 290px;
        padding: 28px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .archive-ring,
    .archive-pulse {
        animation: none !important;
    }
}
