@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 800;
  src: url('../fonts/jetbrains-mono-latin-wght-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f7f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #fff;
  --text: #20202a;
  --muted: #6f7081;
  --line: rgba(32, 32, 42, 0.1);
  --code-bg: #171821;
  --accent-soft: rgba(109, 93, 252, 0.12);
  --shadow: 0 20px 60px rgba(40, 35, 80, 0.1);
  --radius: 22px;
  --page-width: 1180px;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #111218;
  --surface: rgba(27, 28, 37, 0.84);
  --surface-solid: #1b1c25;
  --text: #edecf5;
  --muted: #aaa9b8;
  --line: rgba(255, 255, 255, 0.1);
  --accent-soft: rgba(138, 125, 255, 0.17);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  --scene-opacity: .14;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 8% 12%, var(--accent-soft), transparent 24rem);
  font-family: 'Manrope Variable', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  isolation: isolate;
  line-height: 1.7;
  transition: color .25s ease, background-color .25s ease;
}
body.is-home {
  --scene-opacity: .86;
  --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
}
:root[data-theme='dark'] body { --scene-opacity: .15; }
:root[data-theme='dark'] body.is-home {
  --scene-opacity: .86;
  --accent-soft: color-mix(in srgb, var(--accent) 17%, transparent);
}
:root body.is-post {
  --scene-opacity: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 38%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--line) 38%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 12% 34%, var(--accent-soft), transparent 27rem),
    radial-gradient(circle at 88% 72%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 30rem),
    var(--bg);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
}
body::before, body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-position: center;
  background-size: cover;
  content: '';
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}
body::before {
  background-image:
    linear-gradient(rgba(247, 247, 251, .18), rgba(247, 247, 251, .78)),
    url('/image/shileyuan_lab.png');
  opacity: calc(var(--scene-opacity) * var(--scene, 0));
}
body::after {
  background-image:
    linear-gradient(rgba(17, 18, 24, .22), rgba(17, 18, 24, .74)),
    url('/image/shileyuan_castle.png');
}
:root[data-theme='dark'] body::before { opacity: 0; }
:root[data-theme='dark'] body::after { opacity: calc(var(--scene-opacity) * var(--scene, 0)); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
::selection { color: #fff; background: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.reading-progress { position: fixed; z-index: 200; top: 0; left: 0; width: 100%; height: 3px; }
.reading-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), #b45cff); }
.page-shell { width: min(calc(100% - 40px), var(--page-width)); margin-inline: auto; }
.narrow-shell { max-width: 860px; }
.site-main { min-height: calc(100vh - 180px); }

.site-header {
  position: sticky; z-index: 100; top: 0;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
}
body.is-post .site-header { position: fixed; right: 0; left: 0; opacity: 0; transform: translateY(-105%); pointer-events: none; transition: opacity .22s ease, transform .28s ease; }
body.is-post.post-header-visible .site-header { opacity: 1; transform: translateY(0); pointer-events: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 40px), var(--page-width)); height: 76px; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 35px; height: 35px; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-solid); box-shadow: 0 8px 20px rgba(30, 28, 50, .1); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 5px; }
.nav-link { position: relative; padding: 8px 12px; color: var(--muted); font-size: 14px; font-weight: 500; border-radius: 10px; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--accent-soft); }
.theme-toggle { display: grid; width: 39px; height: 39px; margin-left: 7px; place-items: center; color: var(--text); border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; }
.theme-icon-light { display: none; }
[data-theme='dark'] .theme-icon-light { display: inline; }
[data-theme='dark'] .theme-icon-dark { display: none; }
.nav-toggle { display: none; width: 42px; height: 38px; padding: 8px; border: 0; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--text); }

.home-hero { display: grid; min-height: 590px; padding: 80px 0 90px; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.hero-copy h1 { margin: 0; font-size: clamp(45px, 6vw, 78px); line-height: 1.12; }
.hero-copy h1 em { font-style: normal; }
.hero-description { max-width: 560px; margin: 26px 0 32px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 13px; }
.button { display: inline-flex; min-height: 46px; padding: 0 20px; align-items: center; justify-content: center; border-radius: 13px; font-size: 14px; font-weight: 600; transition: transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--accent); box-shadow: 0 12px 25px var(--accent-soft); }
.button.ghost { border: 1px solid var(--line); background: var(--surface); }
.hero-visual { position: relative; min-height: 430px; }
.avatar-wrap { position: absolute; z-index: 2; inset: 50% auto auto 50%; width: 220px; height: 265px; padding: 8px; transform: translate(-50%, -50%); border-radius: 100px 100px 32px 32px; background: var(--surface-solid); box-shadow: var(--shadow); }
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 94px 94px 26px 26px; }
.orbit { position: absolute; inset: 50% auto auto 50%; border-width: 1px; border-color: color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 360px; height: 360px; }
.orbit-two { width: 285px; height: 285px; }
.live-css-token { position: absolute; z-index: 4; display: grid; min-width: 148px; padding: 9px 12px 8px 28px; grid-template-columns: 1fr auto; align-items: center; color: var(--text); border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface-solid) 70%, transparent); box-shadow: var(--shadow); font-family: 'JetBrains Mono Variable', ui-monospace, monospace; font-size: 11px; line-height: 1.35; touch-action: none; user-select: none; cursor: grab; backdrop-filter: blur(12px); transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease; }
.live-css-token:hover { z-index: 6; border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.live-css-token.dragging { z-index: 8; cursor: grabbing; box-shadow: 0 20px 50px rgba(20, 18, 35, .24); transition: none; }
.live-css-token.delete-ready { border-color: #ef6464; box-shadow: 0 0 0 3px rgba(239, 100, 100, .12), var(--shadow); }
.live-css-token.removed { opacity: 0; transform: scale(.78); pointer-events: none; }
.live-css-token.invalid { border-color: #ef6464; }
.live-css-grip { position: absolute; left: 9px; color: var(--muted); font-size: 13px; letter-spacing: -2px; }
.live-css-token code { display: flex; align-items: center; color: var(--muted); background: transparent; white-space: nowrap; }
.live-css-token code b { color: #82aaff; font-weight: 500; }
.live-css-value { min-width: 0; margin: 0 2px; padding: 1px 2px; color: #8aa86b; border: 0; border-bottom: 1px solid transparent; outline: 0; background: transparent; font: inherit; text-align: center; user-select: text; }
.live-css-value:focus { color: #72a957; border-bottom-color: currentColor; }
.live-css-stepper { display: inline-grid; width: 15px; height: 23px; margin: -4px 1px -4px 2px; grid-template-rows: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.live-css-stepper button { display: grid; width: 100%; min-height: 0; padding: 0; place-items: center; color: var(--muted); border: 0; background: transparent; font-size: 6px; line-height: 1; cursor: pointer; }
.live-css-stepper button + button { border-top: 1px solid var(--line); }
.live-css-stepper button:hover { color: var(--accent); background: var(--accent-soft); }
.live-css-palette { display: flex; margin-left: 6px; gap: 4px; align-items: center; }
.live-css-palette button { width: 14px; height: 14px; padding: 0; border: 2px solid var(--surface-solid); border-radius: 50%; outline: 1px solid transparent; background: var(--swatch); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .15s ease, outline-color .15s ease; }
.live-css-palette button:hover { transform: scale(1.2); }
.live-css-palette button.active { outline-color: var(--text); transform: scale(1.12); }
.live-css-options { display: flex; margin-left: 6px; gap: 3px; align-items: center; }
.live-css-options button { padding: 3px 5px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; background: transparent; font: 7px 'JetBrains Mono Variable', monospace; cursor: pointer; }
.live-css-options button:hover, .live-css-options button.active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); }
.live-css-token small { grid-column: 1 / -1; margin-top: 3px; color: var(--muted); font-size: 8px; opacity: .62; }
.token-color { top: 6%; left: -17%; transform: rotate(-3deg); }
.token-spacing { top: -3%; right: -17%; transform: rotate(2deg); }
.token-gap { top: 31%; left: -20%; transform: rotate(2deg); }
.token-radius { top: 27%; right: -23%; transform: rotate(3deg); }
.token-blur { bottom: 27%; left: -22%; transform: rotate(-2deg); }
.token-filter { right: -24%; bottom: 28%; transform: rotate(2deg); }
.token-orbit { bottom: 4%; left: -12%; transform: rotate(2deg); }
.token-rotate { right: -4%; bottom: 2%; transform: rotate(-2deg); }
.token-scene { bottom: -7%; left: 34%; transform: rotate(1deg); }
.live-css-delete-hint { position: fixed; z-index: 500; bottom: 18px; left: 50%; padding: 8px 12px; color: #fff; border-radius: 8px; background: rgba(175, 52, 58, .94); box-shadow: 0 10px 30px rgba(100, 20, 24, .25); font: 10px 'JetBrains Mono Variable', monospace; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: .15s; }
body.live-css-deleting .live-css-delete-hint { opacity: 1; transform: translate(-50%, 0); }
body.live-css-deleting .live-css-delete-hint::before { position: fixed; z-index: -1; inset: 0; border: 3px solid rgba(239, 100, 100, .72); box-shadow: inset 0 0 28px rgba(239, 100, 100, .16); content: ''; pointer-events: none; }
.live-css-reset { position: absolute; z-index: 7; right: 0; bottom: -34px; padding: 6px 9px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; background: var(--surface); font: 9px 'JetBrains Mono Variable', monospace; cursor: pointer; }
.live-css-reset:hover { color: var(--accent); border-color: var(--accent); }

.home-presence { display: flex; min-height: 68px; margin-top: -22px; margin-bottom: 48px; padding: 10px 16px; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 8px 26px rgba(31, 28, 57, .04); }
.presence-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 8px 'JetBrains Mono Variable', monospace; letter-spacing: .12em; white-space: nowrap; }
.presence-label i { width: 6px; height: 6px; border-radius: 50%; background: #4cad72; box-shadow: 0 0 0 4px rgba(76, 173, 114, .12); animation: pulse-live 1.8s ease-in-out infinite; }
.site-stats { display: flex; min-width: 0; align-items: center; gap: 18px; }
.site-stat { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.site-stat small { color: var(--muted); font-size: 9px; }
.site-stat strong { font-size: 15px; font-weight: 650; letter-spacing: -.025em; }
.presence-divider { width: 1px; height: 28px; margin-left: auto; background: var(--line); }
.presence-contact { display: flex; align-items: center; gap: 7px; }
.presence-contact a { padding: 7px 9px; color: var(--muted); border-radius: 8px; font-size: 9px; white-space: nowrap; }
.presence-contact a:hover { color: var(--accent); background: var(--accent-soft); }
.presence-contact a span { color: inherit; }
.post-pageviews { margin-left: 2px; }
@keyframes pulse-live {
  50% { opacity: .45; transform: scale(.78); }
}

.latest-section { padding: 30px 0 110px; }
.section-heading { display: flex; margin-bottom: 32px; align-items: end; justify-content: space-between; }
.section-heading h2 { margin: 0; font-size: 32px; letter-spacing: -.035em; }
.section-heading > a { color: var(--muted); font-size: 14px; }
.section-heading > a:hover { color: var(--accent); }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { display: grid; min-height: 252px; overflow: hidden; grid-template-columns: 42% 58%; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 10px 35px rgba(31, 28, 57, .05); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card-cover { overflow: hidden; background: var(--accent-soft); }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-cover img { transform: scale(1.04); }
.post-card-body { display: flex; min-width: 0; padding: 28px; flex-direction: column; }
.post-meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.post-meta a:hover { color: var(--accent); }
.post-card-title { margin: 14px 0 10px; font-size: 20px; line-height: 1.35; letter-spacing: -.025em; }
.post-card-title a:hover { color: var(--accent); }
.post-card-summary { display: -webkit-box; overflow: hidden; margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.read-more { margin-top: auto; color: var(--accent); font-size: 13px; font-weight: 600; }
.read-more span { display: inline-block; transition: transform .2s; }
.read-more:hover span { transform: translateX(4px); }

.pagination { margin-top: 48px; text-align: center; }
.pagination .page-number, .pagination .extend { display: inline-grid; min-width: 39px; height: 39px; margin: 0 3px; padding: 0 10px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.pagination .current { color: #fff; border-color: var(--accent); background: var(--accent); }

.page-heading { padding: 90px 0 50px; }
.page-heading h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.15; letter-spacing: -.05em; }
.page-heading > p:last-child:not(.eyebrow) { color: var(--muted); }
.collection-page, .taxonomy-page { max-width: 1080px; padding-bottom: 105px; }
.collection-hero, .taxonomy-hero { display: grid; padding: 90px 0 62px; grid-template-columns: minmax(0, 1fr) auto; gap: 50px; align-items: end; }
.collection-hero h1, .taxonomy-hero h1 { margin: 0; font-size: clamp(43px, 6vw, 70px); line-height: 1.08; letter-spacing: -.055em; }
.collection-hero > div:first-child > p:last-child, .taxonomy-hero > div:first-child > p:last-child { margin: 17px 0 0; color: var(--muted); }
.collection-metric { display: flex; min-width: 205px; padding: 18px 0 3px 22px; align-items: center; gap: 13px; border-left: 1px solid var(--line); }
.collection-metric strong { font-size: 38px; line-height: 1; letter-spacing: -.05em; }
.collection-metric span { color: var(--muted); font: 8px/1.55 'JetBrains Mono Variable', monospace; letter-spacing: .11em; }
.archive-ledger { border-top: 1px solid var(--line); }
.archive-year { display: grid; padding: 32px 0 45px; grid-template-columns: 145px minmax(0, 1fr); gap: 34px; border-bottom: 1px solid var(--line); }
.archive-year-mark { position: sticky; top: 104px; display: flex; height: max-content; flex-direction: column; }
.archive-year-mark span { color: var(--muted); font: 8px 'JetBrains Mono Variable', monospace; letter-spacing: .18em; }
.archive-year-mark strong { margin-top: 3px; font-size: 39px; line-height: 1; letter-spacing: -.055em; }
.archive-year-mark i { width: 42px; height: 3px; margin-top: 16px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), transparent); }
.archive-year-entries { min-width: 0; }
.archive-entry { display: grid; min-height: 88px; padding: 14px 4px; grid-template-columns: 64px minmax(0, 1fr) 34px; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.archive-entry:first-child { border-top: 1px solid var(--line); }
.archive-entry time { color: var(--muted); font: 10px 'JetBrains Mono Variable', monospace; letter-spacing: .05em; }
.archive-entry h2 { margin: 0; font-size: 17px; line-height: 1.42; letter-spacing: -.018em; }
.archive-entry h2 a:hover { color: var(--accent); }
.archive-entry-category { display: inline-block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.archive-entry-category:hover { color: var(--accent); }
.archive-entry-arrow { display: grid; width: 30px; height: 30px; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; font-size: 11px; transition: .2s ease; }
.archive-entry:hover .archive-entry-arrow { color: #fff; border-color: var(--accent); background: var(--accent); transform: rotate(8deg); }
.collection-page > .pagination { margin-bottom: 0; }
.taxonomy-stats { display: flex; padding: 5px 0; gap: 30px; }
.taxonomy-stats div { display: flex; min-width: 72px; flex-direction: column; }
.taxonomy-stats strong { font-size: 35px; line-height: 1; letter-spacing: -.045em; }
.taxonomy-stats span { margin-top: 7px; color: var(--muted); font-size: 10px; }
.category-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.category-file { position: relative; display: flex; min-height: 238px; overflow: hidden; padding: 21px 23px 20px; flex-direction: column; border: 1px solid var(--line); border-radius: 4px 24px 4px 24px; background: linear-gradient(135deg, hsla(var(--category-hue), 70%, 56%, .09), transparent 38%), var(--surface); box-shadow: 0 9px 34px rgba(31, 28, 57, .045); isolation: isolate; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.category-file::before { position: absolute; z-index: -1; right: 13px; bottom: -22px; color: hsla(var(--category-hue), 58%, 54%, .07); content: attr(data-index); font: 800 94px/1 'JetBrains Mono Variable', monospace; letter-spacing: -.12em; pointer-events: none; transition: color .24s ease, transform .35s ease; }
.category-file::after { position: absolute; top: 0; right: 45px; width: 1px; height: 44px; background: linear-gradient(hsl(var(--category-hue), 62%, 58%), transparent); content: ''; opacity: .58; }
.category-file:hover { border-color: hsla(var(--category-hue), 65%, 55%, .56); box-shadow: 0 18px 48px hsla(var(--category-hue), 42%, 32%, .14); transform: translateY(-4px); }
.category-file:hover::before { color: hsla(var(--category-hue), 62%, 58%, .12); transform: translateX(-5px); }
.category-file-top { display: flex; min-height: 34px; align-items: flex-start; justify-content: space-between; color: var(--muted); font: 8px 'JetBrains Mono Variable', monospace; letter-spacing: .1em; }
.category-file-top > span { display: inline-flex; align-items: center; gap: 8px; }
.category-file-top > span i { width: 6px; height: 6px; border: 1px solid hsl(var(--category-hue), 62%, 58%); border-radius: 50%; box-shadow: 0 0 0 4px hsla(var(--category-hue), 64%, 57%, .1); }
.category-file-top strong { display: flex; align-items: baseline; gap: 5px; color: hsl(var(--category-hue), 58%, 55%); font-weight: 500; }
.category-file-top strong b { font-size: 17px; line-height: 1; }
.category-file-top strong small { color: var(--muted); font-size: 7px; letter-spacing: .12em; }
.category-file-main { display: grid; margin-top: 26px; grid-template-columns: 44px minmax(0, 1fr); gap: 15px; align-items: center; }
.category-file-mark { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid hsla(var(--category-hue), 55%, 52%, .36); border-radius: 50%; }
.category-file-mark::before, .category-file-mark::after { position: absolute; background: hsla(var(--category-hue), 58%, 55%, .55); content: ''; }
.category-file-mark::before { width: 54px; height: 1px; }
.category-file-mark::after { width: 1px; height: 54px; }
.category-file-mark i { width: 14px; height: 14px; border: 1px solid hsl(var(--category-hue), 58%, 56%); transform: rotate(45deg); }
.category-file-mark b { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: hsl(var(--category-hue), 65%, 60%); box-shadow: 0 0 10px hsl(var(--category-hue), 65%, 60%); }
.category-file h2 { margin: 0 0 5px; font-size: 25px; line-height: 1.25; letter-spacing: -.035em; }
.category-file-main p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 10px; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.category-file-bottom { display: grid; margin-top: auto; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; color: var(--muted); font: 8px 'JetBrains Mono Variable', monospace; }
.category-progress { position: relative; display: block; height: 4px; overflow: hidden; background: repeating-linear-gradient(90deg, var(--line) 0 7px, transparent 7px 10px); }
.category-progress i { display: block; width: var(--category-ratio); height: 100%; background: hsl(var(--category-hue), 62%, 56%); box-shadow: 0 0 12px hsla(var(--category-hue), 70%, 57%, .5); }
.category-enter { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; transition: color .2s ease, transform .2s ease; }
.category-enter small { font-size: 7px; letter-spacing: .14em; }
.category-file:hover .category-enter { color: hsl(var(--category-hue), 62%, 58%); transform: translateX(3px); }
.tag-matrix { display: grid; grid-auto-flow: dense; grid-auto-rows: 108px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.tag-node { position: relative; display: flex; min-height: 0; overflow: hidden; padding: 14px; flex-direction: column; border: 1px solid var(--line); border-radius: 3px 17px 3px 17px; background: linear-gradient(145deg, hsla(var(--tag-hue), 72%, 58%, .1), transparent 48%), var(--surface); isolation: isolate; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.tag-node::before { position: absolute; z-index: 0; top: -39px; right: -35px; width: 98px; height: 98px; border: 1px solid hsla(var(--tag-hue), 62%, 58%, .2); border-radius: 50%; box-shadow: inset 0 0 0 13px transparent, inset 0 0 0 14px hsla(var(--tag-hue), 62%, 58%, .08); content: ''; transition: transform .35s ease, border-color .22s ease; }
.tag-node::after { position: absolute; z-index: 0; right: 7px; bottom: -19px; color: hsla(var(--tag-hue), 58%, 54%, .08); content: attr(data-count); font: 800 76px/1 'JetBrains Mono Variable', monospace; pointer-events: none; }
.tag-node > * { position: relative; z-index: 1; }
.tag-node.tag-hero { padding: 23px; grid-column: span 2; grid-row: span 2; border-radius: 4px 24px 4px 24px; }
.tag-node.tag-hero::before { top: -66px; right: -48px; width: 184px; height: 184px; box-shadow: inset 0 0 0 24px transparent, inset 0 0 0 25px hsla(var(--tag-hue), 62%, 58%, .09); }
.tag-node.tag-major { padding: 17px 19px; grid-column: span 2; }
.tag-node.tag-medium { padding: 15px; }
.tag-node:hover { border-color: hsla(var(--tag-hue), 62%, 54%, .58); box-shadow: 0 13px 34px hsla(var(--tag-hue), 40%, 28%, .11); transform: translateY(-3px); }
.tag-node:hover::before { border-color: hsla(var(--tag-hue), 65%, 60%, .42); transform: rotate(18deg) scale(1.04); }
.tag-node-head { display: flex; min-height: 15px; align-items: center; justify-content: space-between; }
.tag-index { color: var(--muted); font: 7px 'JetBrains Mono Variable', monospace; letter-spacing: .12em; }
.tag-enter { display: grid; width: 20px; height: 20px; place-items: center; color: hsl(var(--tag-hue), 58%, 57%); border: 1px solid hsla(var(--tag-hue), 58%, 55%, .24); border-radius: 50%; font-size: 9px; transition: color .2s ease, background .2s ease, transform .2s ease; }
.tag-node:hover .tag-enter { color: #fff; background: hsl(var(--tag-hue), 58%, 55%); transform: rotate(8deg); }
.tag-node strong { overflow: hidden; margin-top: 8px; font-size: var(--tag-font); line-height: 1.12; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.tag-hero strong { margin-top: 24px; letter-spacing: -.05em; }
.tag-count { display: flex; margin-top: 5px; align-items: baseline; gap: 5px; color: var(--muted); font-family: 'JetBrains Mono Variable', monospace; }
.tag-count b { color: hsl(var(--tag-hue), 55%, 55%); font-size: 10px; font-weight: 550; }
.tag-count small { font-size: 7px; letter-spacing: .1em; }
.tag-hero .tag-count b { font-size: 14px; }
.tag-frequency { display: block; height: 3px; margin-top: auto; overflow: hidden; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 9px); }
.tag-frequency b { display: block; width: var(--tag-weight); height: 100%; background: hsl(var(--tag-hue), 60%, 56%); box-shadow: 0 0 10px hsla(var(--tag-hue), 70%, 58%, .55); }
.article-tags a { padding: 8px 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; }
.article-tags a:hover { color: var(--accent); border-color: var(--accent); }

.article-hero { position: relative; display: grid; min-height: 440px; overflow: hidden; place-items: end center; color: #fff; background: linear-gradient(135deg, #363150, #14131c); background-image: var(--cover-image); background-position: center; background-size: cover; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 15, .88), rgba(8, 8, 15, .15) 80%); }
.article-hero-inner { position: relative; z-index: 1; width: min(calc(100% - 40px), 900px); padding: 90px 0 58px; }
.article-hero h1 { max-width: 820px; margin: 0 0 14px; font-size: clamp(34px, 5vw, 60px); line-height: 1.15; letter-spacing: -.045em; text-wrap: balance; }
.article-hero-inner > p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; }
.light-meta, .light-meta a { color: rgba(255,255,255,.74); }
.article-hero-meta { flex-wrap: wrap; gap: 5px 8px; }
.article-layout { display: grid; width: min(calc(100% - 40px), 1400px); margin: 0 auto; padding: 70px 0 110px; grid-template-columns: minmax(60px, 1fr) minmax(0, 820px) minmax(220px, 250px); gap: 48px; align-items: start; }
.article-container { position: relative; left: -20px; width: 100%; min-width: 0; grid-column: 2; }
.article-content { color: var(--text); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4 { margin: 2em 0 .75em; line-height: 1.35; letter-spacing: -.025em; scroll-margin-top: 95px; }
.article-content h2 { padding-bottom: .4em; font-size: 26px; border-bottom: 1px solid var(--line); }
.article-content h3 { font-size: 21px; }
.article-content p { margin: 1.15em 0; }
.article-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content img { height: auto; margin: 28px auto; border-radius: 14px; box-shadow: var(--shadow); }
.article-content blockquote { margin: 24px 0; padding: 2px 22px; color: var(--muted); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.article-content .callout { --callout-hue: 205; margin: 25px 0; overflow: hidden; color: var(--text); border: 1px solid hsla(var(--callout-hue), 62%, 52%, .24); border-left: 3px solid hsl(var(--callout-hue), 62%, 52%); border-radius: 4px 13px 13px 4px; background: linear-gradient(110deg, hsla(var(--callout-hue), 68%, 55%, .1), transparent 62%), var(--surface); box-shadow: 0 8px 26px rgba(31, 28, 57, .04); }
.article-content .callout-title { display: flex; min-height: 39px; padding: 9px 15px 7px; align-items: center; gap: 9px; color: hsl(var(--callout-hue), 58%, 48%); border-bottom: 1px solid hsla(var(--callout-hue), 60%, 52%, .14); font: 700 9px 'JetBrains Mono Variable', monospace; letter-spacing: .12em; }
.article-content .callout-title > span { display: grid; width: 18px; height: 18px; place-items: center; color: #fff; border-radius: 50%; background: hsl(var(--callout-hue), 58%, 52%); font-size: 10px; letter-spacing: 0; }
.article-content .callout-title strong { font: inherit; }
.article-content .callout-content { padding: 11px 17px 13px; color: var(--muted); }
.article-content .callout-content > :first-child { margin-top: 0; }
.article-content .callout-content > :last-child { margin-bottom: 0; }
.article-content .callout-info { --callout-hue: 205; }
.article-content .callout-note { --callout-hue: 252; }
.article-content .callout-tip { --callout-hue: 150; }
.article-content .callout-important { --callout-hue: 275; }
.article-content .callout-warning { --callout-hue: 38; }
.article-content .callout-caution { --callout-hue: 2; }
.article-content .note { margin: 24px 0; padding: 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--accent-soft); }
.article-content .note > :first-child { margin-top: 0; }
.article-content .note > :last-child { margin-bottom: 0; }
.article-content .note-info { border-left-color: #2d9cdb; background: rgba(45, 156, 219, .1); }
.article-content .note-success { border-left-color: #27ae60; background: rgba(39, 174, 96, .1); }
.article-content .note-warning { border-left-color: #e2a400; background: rgba(226, 164, 0, .1); }
.article-content .note-danger { border-left-color: #e45555; background: rgba(228, 85, 85, .1); }
.article-content code { padding: .15em .35em; color: #d04f85; border-radius: 5px; background: var(--accent-soft); font: 450 .9em 'JetBrains Mono Variable', ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-ligatures: contextual; }
.article-content pre { position: relative; overflow: auto; margin: 26px 0; padding: 22px; color: #d8dee9; border-radius: 14px; background: var(--code-bg); font-family: 'JetBrains Mono Variable', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; font-weight: 450; line-height: 1.75; letter-spacing: .005em; tab-size: 2; }
.article-content pre code { padding: 0; color: inherit; background: transparent; font: inherit; }
.article-content pre.line-numbers { padding-left: 4.5em; counter-reset: line; }
.article-content pre.line-numbers::before { position: absolute; z-index: 1; top: 0; bottom: 0; left: 3.55em; width: 1px; background: rgba(255, 255, 255, .13); content: ''; pointer-events: none; }
.article-content pre.line-numbers > code { position: relative; white-space: inherit; }
.article-content .line-numbers-rows { position: absolute; top: 0; left: -3.8em; width: 3em; font: inherit; letter-spacing: -1px; pointer-events: none; user-select: none; }
.article-content .line-numbers-rows > span { display: block; counter-increment: line; }
.article-content .line-numbers-rows > span::before { display: block; padding-right: .8em; color: #606878; content: counter(line); text-align: right; }

/* Prism syntax colors. The code surface stays dark in both site modes. */
.article-content .token.comment,
.article-content .token.prolog,
.article-content .token.doctype,
.article-content .token.cdata { color: #697386; font-style: italic; }
.article-content .token.punctuation { color: #c9d1dc; }
.article-content .token.namespace { opacity: .75; }
.article-content .token.property,
.article-content .token.tag,
.article-content .token.constant,
.article-content .token.symbol,
.article-content .token.deleted { color: #ff6b9d; }
.article-content .token.boolean,
.article-content .token.number { color: #f7a35c; }
.article-content .token.selector,
.article-content .token.attr-name,
.article-content .token.string,
.article-content .token.char,
.article-content .token.builtin,
.article-content .token.inserted { color: #8bd49c; }
.article-content .token.operator,
.article-content .token.entity,
.article-content .token.url { color: #67cdcc; }
.article-content .token.atrule,
.article-content .token.attr-value,
.article-content .token.keyword { color: #c792ea; }
.article-content .token.function,
.article-content .token.class-name { color: #82aaff; }
.article-content .token.regex,
.article-content .token.important,
.article-content .token.variable { color: #ffd580; }
.article-content .token.important,
.article-content .token.bold { font-weight: 700; }
.article-content .token.italic { font-style: italic; }
.article-content .token.entity { cursor: help; }
.article-content .highlight { overflow: auto; margin: 26px 0; border-radius: 14px; background: var(--code-bg); }
.article-content .highlight table { width: 100%; margin: 0; border: 0; }
.article-content .highlight pre { margin: 0; border-radius: 0; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; margin: 24px 0; border-collapse: collapse; }
.article-content th, .article-content td { padding: 10px 14px; border: 1px solid var(--line); }
.copy-code { position: absolute; top: 10px; right: 10px; padding: 5px 9px; color: #aaa; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: rgba(255,255,255,.07); font-size: 11px; cursor: pointer; opacity: 0; transition: opacity .2s; }
pre:hover > .copy-code { opacity: 1; }
.article-tags { display: flex; margin-top: 50px; flex-wrap: wrap; gap: 9px; }
.post-nav { display: grid; margin-top: 65px; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.post-nav-item { display: flex; min-height: 108px; padding: 20px; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.post-nav-item.next { text-align: right; }
.post-nav-item span { color: var(--muted); font-size: 12px; }
.post-nav-item strong { display: -webkit-box; overflow: hidden; margin-top: 5px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.post-nav-item:hover { color: var(--accent); border-color: var(--accent); }
.post-comments { min-height: 160px; margin-top: 46px; padding-top: 38px; border-top: 1px solid var(--line); }
.post-toc { position: sticky; top: 100px; min-width: 0; grid-column: 3; align-self: start; }
.post-toc-inner { padding-left: 18px; border-left: 1px solid var(--line); }
.post-toc-inner > header { display: flex; margin-bottom: 15px; align-items: center; justify-content: space-between; }
.post-toc-inner > header span { color: var(--muted); font: 10px 'JetBrains Mono Variable', monospace; letter-spacing: .12em; }
.post-toc-inner > header strong { color: var(--accent); font: 11px 'JetBrains Mono Variable', monospace; }
.post-toc-nav { max-height: calc(100vh - 185px); overflow-y: auto; padding: 2px 9px 2px 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.post-toc-nav a { position: relative; display: block; padding: 8px 0 8px 14px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; transition: color .18s ease, transform .18s ease; }
.post-toc-nav a::before { position: absolute; top: 16px; left: 1px; width: 4px; height: 4px; border-radius: 50%; background: var(--line); content: ''; transition: .18s ease; }
.post-toc-nav a.toc-level-3 { padding-left: 25px; font-size: 12px; }
.post-toc-nav a.toc-level-3::before { left: 13px; }
.post-toc-nav a.toc-level-4 { padding-left: 36px; font-size: 11px; opacity: .82; }
.post-toc-nav a.toc-level-4::before { left: 24px; }
.post-toc-nav a:hover { color: var(--text); }
.post-toc-nav a.active { color: var(--accent); transform: translateX(3px); }
.post-toc-nav a.active::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.post-toc-progress { height: 2px; margin-top: 15px; overflow: hidden; border-radius: 2px; background: var(--line); }
.post-toc-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), #b45cff); transition: width .12s linear; }
.standalone-page { padding-bottom: 100px; }
.error-page { display: grid; min-height: calc(100vh - 182px); padding: 70px 0 90px; place-items: center; text-align: center; }
.error-page-inner { width: min(100%, 620px); }
.error-code { display: flex; margin: 0; align-items: center; justify-content: center; color: var(--text); font-size: clamp(92px, 17vw, 176px); font-weight: 720; line-height: .82; letter-spacing: -.09em; }
.error-code i { margin: 0 .035em; color: transparent; font-style: normal; -webkit-text-stroke: 2px var(--accent); text-stroke: 2px var(--accent); }
.error-page h1 { margin: 38px 0 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -.04em; }
.error-page-inner > p:not(.error-code) { margin: 0; color: var(--muted); font-size: 15px; }
.error-actions { display: flex; margin-top: 30px; justify-content: center; gap: 12px; }
.friends-page { max-width: 1080px; }
.friends-page > .page-heading { padding-bottom: 22px; }
.friends-page .article-content { font-size: 15px; }
.friends-intro { display: grid; max-width: 720px; margin-bottom: 54px; grid-template-columns: 1fr; }
.friends-intro .friends-kicker { margin: 0 0 10px; color: var(--accent); font: 700 10px 'JetBrains Mono Variable', monospace; letter-spacing: .17em; }
.friends-intro h2 { margin: 0; padding: 0; border: 0; font-size: clamp(29px, 4vw, 44px); line-height: 1.25; letter-spacing: -.04em; }
.friends-intro > p:last-child { max-width: 580px; margin: 18px 0 0; color: var(--muted); }
.friends-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.friends-page .friend-card { position: relative; display: flex; height: 230px; overflow: hidden; padding: 21px; flex-direction: column; color: var(--text); border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(circle at 5% 0%, hsla(var(--friend-hue), 78%, 62%, .14), transparent 52%), var(--surface); box-shadow: 0 10px 34px rgba(31, 28, 57, .055); text-decoration: none; isolation: isolate; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.friends-page .friend-card::before { position: absolute; z-index: -1; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, hsl(var(--friend-hue), 68%, 58%), transparent 72%); content: ''; opacity: .82; }
.friends-page .friend-card:hover { color: var(--text); border-color: hsla(var(--friend-hue), 65%, 55%, .48); box-shadow: 0 18px 45px hsla(var(--friend-hue), 45%, 30%, .14); transform: translateY(-5px); }
.friends-page .friend-card:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }
.friend-card-head { display: flex; align-items: center; }
.friends-page .friend-avatar { width: 62px !important; height: 62px !important; margin: 0; object-fit: cover; border: 2px solid var(--surface-solid); border-radius: 19px; box-shadow: 0 7px 18px hsla(var(--friend-hue), 45%, 25%, .17); transition: transform .24s ease; }
.friend-card:hover .friend-avatar { transform: rotate(-3deg) scale(1.05); }
.friend-number { margin-left: auto; color: var(--muted); font: 10px 'JetBrains Mono Variable', monospace; }
.friend-arrow { display: grid; width: 28px; height: 28px; margin-left: 8px; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; font-size: 13px; transition: color .2s ease, background .2s ease, transform .2s ease; }
.friend-card:hover .friend-arrow { color: #fff; background: hsl(var(--friend-hue), 58%, 52%); transform: rotate(8deg); }
.friend-card-body { display: flex; min-height: 0; margin-top: auto; flex-direction: column; }
.friends-page .friend-card h3 { margin: 0; color: var(--text); font-size: 19px; line-height: 1.3; letter-spacing: -.025em; }
.friends-page .friend-card p { display: -webkit-box; overflow: hidden; min-height: 3.2em; margin: 5px 0 8px; color: var(--muted); font-size: 12px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.friend-domain { overflow: hidden; color: hsl(var(--friend-hue), 52%, 53%); font: 9px 'JetBrains Mono Variable', monospace; text-overflow: ellipsis; white-space: nowrap; }
.friends-note { display: flex; max-width: 720px; margin: 58px auto 0; padding: 20px 22px; align-items: flex-start; gap: 13px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.friends-note > span { color: var(--accent); }
.friends-note p { margin: 0; font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; width: min(calc(100% - 40px), var(--page-width)); min-height: 105px; margin: auto; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.back-to-top { position: fixed; z-index: 80; right: 25px; bottom: 25px; width: 42px; height: 42px; color: #fff; border: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 10px 25px var(--accent-soft); cursor: pointer; opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

@media (max-width: 900px) {
  .home-hero { min-height: auto; padding: 70px 0 95px; grid-template-columns: 1fr; gap: 50px; }
  .hero-copy { text-align: center; }
  .hero-description { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 430px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 230px; }
  .archive-year { grid-template-columns: 118px minmax(0, 1fr); gap: 24px; }
  .tag-matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .friends-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1260px) {
  .article-layout { max-width: 820px; grid-template-columns: minmax(0, 1fr); }
  .article-container { left: 0; grid-column: 1; }
  .post-toc { display: none !important; }
}

@media (max-width: 680px) {
  .header-inner { height: 66px; }
  .brand-text { max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-toggle { display: block; cursor: pointer; }
  .site-nav { position: absolute; top: 59px; right: 20px; display: none; width: min(250px, calc(100vw - 40px)); padding: 12px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-solid); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .nav-link { padding: 10px 12px; }
  .theme-toggle { margin: 5px 0 0 auto; }
  .home-hero { padding-top: 55px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-description { font-size: 16px; }
  .hero-visual { min-height: 410px; }
  .avatar-wrap { width: 180px; height: 220px; }
  .orbit-one { width: 300px; height: 300px; }
  .orbit-two { width: 235px; height: 235px; }
  .live-css-token { min-width: 132px; padding: 7px 9px 6px 24px; font-size: 9px; }
  .live-css-palette button { width: 12px; height: 12px; }
  .live-css-options button { padding: 2px 3px; font-size: 6px; }
  .token-color { top: -5%; left: 0; }
  .token-spacing { top: 12%; right: 0; }
  .token-gap { top: 28%; left: 0; }
  .token-radius { top: 31%; right: 0; }
  .token-blur { bottom: 27%; left: 0; }
  .token-filter { right: 0; bottom: 27%; }
  .token-orbit { bottom: 7%; left: 0; }
  .token-rotate { right: 0; bottom: 5%; }
  .token-scene { bottom: -9%; left: 28%; transform: none; }
  .post-card { display: block; }
  .post-card-cover { display: block; height: 190px; }
  .post-card-body { min-height: 230px; }
  .home-presence { margin-top: -15px; margin-bottom: 42px; padding: 11px 12px; flex-wrap: wrap; gap: 10px 14px; }
  .site-stats { gap: 12px; }
  .presence-divider { display: none; }
  .presence-contact { width: 100%; padding-top: 7px; justify-content: flex-end; border-top: 1px solid var(--line); }
  .section-heading { align-items: center; }
  .page-heading { padding: 65px 0 40px; }
  .collection-hero, .taxonomy-hero { padding: 65px 0 42px; grid-template-columns: 1fr; gap: 26px; }
  .collection-metric { width: max-content; min-width: 0; padding: 0 0 0 15px; }
  .taxonomy-stats { gap: 22px; }
  .archive-year { padding: 27px 0 35px; grid-template-columns: 1fr; gap: 20px; }
  .archive-year-mark { position: static; flex-direction: row; align-items: baseline; gap: 8px; }
  .archive-year-mark strong { font-size: 30px; }
  .archive-year-mark i { width: 35px; margin: 0 0 3px 5px; }
  .archive-entry { min-height: 80px; padding: 12px 2px; grid-template-columns: 48px minmax(0, 1fr) 30px; gap: 10px; }
  .archive-entry h2 { font-size: 15px; }
  .category-board { grid-template-columns: 1fr; }
  .category-file { min-height: 205px; }
  .tag-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 96px; gap: 9px; }
  .tag-node.tag-hero { grid-column: span 2; grid-row: span 2; }
  .tag-node.tag-major { grid-column: span 2; }
  .friends-grid { grid-template-columns: 1fr; }
  .friends-page .friend-card { height: 210px; }
  .friends-intro { margin-bottom: 36px; }
  .article-hero { min-height: 390px; }
  .article-hero-inner { padding-bottom: 42px; }
  .article-layout { padding-top: 48px; }
  .error-page { min-height: calc(100vh - 171px); padding: 55px 0 70px; }
  .error-page h1 { margin-top: 30px; }
  .error-actions { flex-direction: column; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.next { text-align: left; }
  .footer-inner { padding: 25px 0; flex-direction: column; align-items: flex-start; justify-content: center; }
}

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