:root {
  color-scheme: dark;
  --background: #111318;
  --surface: #191c23;
  --surface-secondary: #20242d;
  --surface-hover: #252a34;
  --text: #e8e9ed;
  --text-secondary: #a8adb8;
  --muted: #777e8a;
  --border: rgba(226, 229, 236, .08);
  --border-strong: rgba(226, 229, 236, .13);
  --accent: #a8a3bc;
  --accent-secondary: #b99fa9;
  --accent-soft: color-mix(in srgb, var(--accent) 15%, transparent);
  --success: #82a995;
  --shadow: 0 12px 34px rgba(0, 0, 0, .15);
  --shadow-hover: 0 16px 42px rgba(0, 0, 0, .2);
  --radius: 18px;
  --radius-small: 12px;
  --site-width: min(1180px, calc(100vw - 48px));
  --sans: Inter, "SF Pro Text", "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --banner-overlay: .72;
  --banner-overlay-soft: .27;
  --banner-blur: 0px;
  --banner-blur-spread: 0px;
  --banner-blur-offset: 0px;
  --ease: cubic-bezier(.22, .78, .3, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --background: #f1f2f4; --surface: #fafafa; --surface-secondary: #f0f1f3; --surface-hover: #e9ebef;
  --text: #353841; --text-secondary: #666d79; --muted: #8b929d;
  --border: rgba(28, 34, 45, .08); --border-strong: rgba(28, 34, 45, .13);
  --accent: #7183a5; --accent-soft: rgba(113, 131, 165, .12); --success: #668b78;
  --shadow: 0 12px 32px rgba(41, 46, 58, .07); --shadow-hover: 0 16px 38px rgba(41, 46, 58, .11);
}

@media (prefers-color-scheme: light) {
  html[data-theme="auto"] {
    color-scheme: light;
    --background: #f1f2f4; --surface: #fafafa; --surface-secondary: #f0f1f3; --surface-hover: #e9ebef;
    --text: #353841; --text-secondary: #666d79; --muted: #8b929d;
    --border: rgba(28, 34, 45, .08); --border-strong: rgba(28, 34, 45, .13);
    --accent: #7183a5; --accent-soft: rgba(113, 131, 165, .12); --success: #668b78;
    --shadow: 0 12px 32px rgba(41, 46, 58, .07); --shadow-hover: 0 16px 38px rgba(41, 46, 58, .11);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--background); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; transition: background-color .25s ease, color .25s ease; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--background); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; left: 12px; top: 8px; z-index: 100; padding: 8px 13px; border-radius: 8px; background: var(--accent); color: #111318; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.site-wrap { width: var(--site-width); margin-inline: auto; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 50; height: 66px; background: color-mix(in srgb, var(--background) 82%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(18px); }
.header-inner { width: min(1240px, calc(100vw - 36px)); height: 100%; margin-inline: auto; display: flex; align-items: center; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; font-size: .95rem; letter-spacing: .03em; }
.brand-dot { width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(145deg, var(--accent), var(--accent-secondary)); box-shadow: inset 0 0 0 6px var(--accent-soft); }
.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav a { padding: 8px 13px; border-radius: 9px; color: var(--text-secondary); font-size: .82rem; transition: background-color .2s, color .2s; }
.site-nav a:hover { background: var(--surface); color: var(--text); }
.site-nav a.is-active { background: var(--accent-soft); color: var(--accent); }
.header-actions { display: flex; gap: 7px; margin-left: 15px; }
.round-button { width: 35px; height: 35px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text-secondary); transition: background-color .2s, color .2s; }
.round-button:hover { background: var(--surface-hover); color: var(--text); }
.theme-picker { position: relative; }
.theme-menu { position: absolute; top: calc(100% + 9px); right: 0; width: 130px; display: grid; gap: 3px; padding: 6px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transform: translateY(-5px); transition: .18s var(--ease); }
.theme-picker.is-open .theme-menu { opacity: 1; visibility: visible; transform: none; }
.theme-menu button { padding: 7px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text-secondary); text-align: left; font-size: .76rem; }
.theme-menu button:hover, .theme-menu button.is-active { background: var(--accent-soft); color: var(--accent); }
.menu-toggle { display: none; width: 38px; height: 38px; padding: 8px; border: 0; background: transparent; }
.menu-toggle > span { display: block; height: 1px; margin: 5px 0; background: var(--text); transition: .2s; }

/* Banner and home layout */
.site-banner { position: relative; height: 330px; margin-top: 28px; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.site-banner > img { width: 100%; height: calc(100% + var(--banner-blur-spread)); margin-top: var(--banner-blur-offset); object-fit: cover; filter: blur(var(--banner-blur)); }
.banner-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(12 14 18 / var(--banner-overlay)), rgb(12 14 18 / var(--banner-overlay-soft)) 62%, transparent); }
.banner-copy { position: absolute; left: clamp(28px, 5vw, 64px); bottom: clamp(28px, 5vw, 54px); max-width: 570px; }
.banner-copy p { margin: 0 0 9px; color: rgba(232,233,237,.62); font: 600 .64rem/1 var(--mono); letter-spacing: .14em; }
.banner-copy h1 { margin: 0 0 8px; color: #eceef2; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 650; line-height: 1.15; letter-spacing: -.02em; }
.banner-copy span { color: rgba(232,233,237,.75); font-size: .88rem; }
.home-grid { display: grid; grid-template-columns: 282px minmax(0, 1fr); gap: 25px; align-items: start; padding: 25px 0 86px; }
.sidebar { display: grid; gap: 18px; align-content: start; }
.profile-card { position: relative; z-index: 2; margin-top: -72px; padding: 0 24px 24px; text-align: center; }
.profile-avatar { width: 108px; height: 108px; margin: -48px auto 16px; object-fit: cover; border: 5px solid var(--surface); border-radius: 50%; background: var(--surface-secondary); box-shadow: 0 8px 22px rgba(0,0,0,.15); }
.profile-card h2 { margin: 0; font-size: 1.15rem; font-weight: 650; }
.profile-card > p { margin: 8px 0 17px; color: var(--text-secondary); font-size: .78rem; line-height: 1.7; }
.status { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 9px; background: var(--surface-secondary); color: var(--text-secondary); }
.status span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent); }
.status b { overflow: hidden; font-size: .69rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.profile-links { display: flex; justify-content: center; gap: 17px; margin-top: 16px; }
.profile-links a { color: var(--muted); font-size: .68rem; }
.profile-links a:hover { color: var(--accent); }
.character-card { overflow: hidden; }
.character-card > img { width: 100%; height: 350px; object-fit: contain; object-position: center bottom; background: var(--surface-secondary); }
.character-card > div { display: grid; gap: 2px; padding: 13px 16px; border-top: 1px solid var(--border); }
.character-card strong { font-size: .75rem; font-weight: 600; }
.character-card span { color: var(--muted); font-size: .63rem; }
.taxonomy-card { padding: 20px; }
.taxonomy-card h2 { margin: 0 0 12px; font-size: .86rem; }
.category-list { display: grid; gap: 4px; }
.category-list button { display: flex; justify-content: space-between; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); text-align: left; font-size: .74rem; transition: .2s; }
.category-list button:hover, .category-list button.is-active { background: var(--accent-soft); color: var(--accent); }
.category-list b { color: var(--muted); font-weight: 500; }
.content-column { min-width: 0; display: grid; gap: 16px; }
.post-list { display: grid; gap: 16px; }
.content-empty { margin: 0; padding: 58px 24px; color: var(--muted); text-align: center; font-size: .75rem; }
.loading-copy { color: var(--muted); font-size: .66rem; }
.section-title { min-height: 54px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.section-title p, .page-heading > p { margin: 0 0 3px; color: var(--muted); font: 600 .62rem/1.2 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.section-title h2 { margin: 0; font-size: 1.35rem; }
.section-title a { color: var(--muted); font-size: .72rem; }
.section-title a:hover { color: var(--accent); }
.filter-status { min-height: 0; margin: -9px 0 0; color: var(--muted); font-size: .68rem; }
.filter-status:not(:empty) { min-height: 24px; }

/* Post list */
.post-card { min-width: 0; min-height: 236px; display: grid; grid-template-columns: 240px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.post-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-hover); }
.post-cover { position: relative; min-height: 100%; overflow: hidden; background: var(--surface-secondary); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.025); }
.post-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,12,16,.43), transparent 55%); }
.post-cover > span { position: absolute; z-index: 1; left: 14px; bottom: 13px; padding: 4px 9px; border-radius: 7px; background: rgba(18,20,26,.8); color: #dfe3ea; font-size: .62rem; backdrop-filter: blur(8px); }
.post-content { min-width: 0; display: flex; flex-direction: column; padding: 24px 26px 21px; }
.post-meta { display: flex; gap: 14px; color: var(--muted); font: .61rem var(--mono); }
.post-content h3 { margin: 14px 0 9px; font-size: 1.18rem; line-height: 1.48; font-weight: 650; }
.post-content h3 a:hover { color: var(--accent); }
.post-content > p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--text-secondary); font-size: .78rem; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 15px; }
.post-tags button, .post-tags span { padding: 4px 8px; border: 0; border-radius: 6px; background: var(--surface-secondary); color: var(--muted); font-size: .6rem; }
.post-tags button:hover, .post-tags button.is-active { background: var(--accent-soft); color: var(--accent); }

/* Generic inner page */
.inner-page { padding-top: 54px; padding-bottom: 90px; }
.page-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-bottom: 28px; }
.page-heading > p { grid-column: 1 / -1; }
.page-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
.page-heading > span { color: var(--muted); font-size: .7rem; }

/* Archive */
.archive-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.year-nav { position: sticky; top: 90px; display: grid; padding: 16px; }
.year-nav > strong { padding: 6px 9px 11px; color: var(--muted); font-size: .68rem; }
.year-nav a { display: flex; justify-content: space-between; padding: 9px; border-radius: 8px; color: var(--text-secondary); font-size: .78rem; }
.year-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.year-nav span { color: var(--muted); }
.archive-list { display: grid; gap: 18px; }
.archive-year { padding: 25px 28px; }
.archive-year > header { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.archive-year h2 { margin: 0; font-size: 1.5rem; }
.archive-year header span { color: var(--muted); font-size: .65rem; }
.archive-month { padding: 20px 0 5px; }
.archive-month + .archive-month { border-top: 1px solid var(--border); }
.archive-month h3 { margin: 0 0 8px; color: var(--text-secondary); font-size: .76rem; }
.archive-month a { display: grid; grid-template-columns: 58px minmax(0, 1fr) 90px; gap: 16px; align-items: center; padding: 11px 8px; border-radius: 8px; font-size: .8rem; }
.archive-month a:hover { background: var(--surface-secondary); color: var(--accent); }
.archive-month time, .archive-month small { color: var(--muted); font: .59rem var(--mono); }
.archive-month small { text-align: right; }

.eyebrow { margin: 0 0 7px; color: var(--accent); font: 600 .56rem var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.auth-card form { display: grid; gap: 12px; }
.auth-card label { display: grid; gap: 6px; color: var(--text-secondary); font-size: .68rem; }
.auth-card input { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 9px; outline: none; background: var(--surface-secondary); }
.auth-card input:focus { border-color: var(--accent); }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: 9px; font-size: .74rem; }
.primary-button { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); color: var(--accent); }
.primary-button:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.secondary-button { background: transparent; color: var(--text-secondary); }
.form-status { min-height: 1.4em; margin: 10px 0 0; color: #9fc7b7; font-size: .7rem; }
.form-status.is-error { color: #d5a0a5; }

/* Authentication */
.auth-shell { width: min(calc(100% - 32px), 460px); min-height: calc(100vh - 150px); display: grid; place-items: center; margin: 0 auto; padding: 56px 0 70px; }
.auth-card, .account-card { width: 100%; padding: 32px; }
.auth-card h1, .account-card h1 { margin: 0; font-size: 2rem; }
.auth-lead, .account-card > p:not(.eyebrow, .form-status) { margin: 12px 0 23px; color: var(--text-secondary); font-size: .76rem; line-height: 1.8; }
.registration-quota { margin: -9px 0 20px; padding: 9px 11px; border-radius: 8px; background: var(--surface-secondary); color: var(--muted); font: .62rem var(--mono); }
.auth-switch { margin: 20px 0 0; color: var(--muted); text-align: center; font-size: .68rem; }
.auth-switch a { color: var(--accent); }
.account-card { display: grid; gap: 14px; }
.account-card .primary-button, .account-card .secondary-button { width: 100%; }
.account-actions { display: grid; gap: 10px; }
.bot-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

/* About */
.about-intro { display: grid; grid-template-columns: 42% 58%; overflow: hidden; }
.about-intro > img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; background: var(--surface-secondary); }
.about-intro > div { align-self: center; padding: clamp(30px, 5vw, 58px); }
.about-person { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.about-person > img { width: 66px; height: 66px; object-fit: cover; border-radius: 50%; background: var(--surface-secondary); }
.about-person h2 { margin: 0; font-size: 1.45rem; }
.about-person h2 span { margin-left: .18em; color: var(--accent); }
.about-person p { margin: 3px 0 0; color: var(--muted); font-size: .72rem; }
.about-intro > div > p { margin: 14px 0 0; color: var(--text-secondary); font-size: .82rem; line-height: 1.9; }
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.info-card { min-height: 245px; padding: 25px; }
.info-card h2 { margin: 0 0 20px; font-size: .95rem; }
.plain-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.plain-tags span { padding: 7px 10px; border-radius: 7px; background: var(--surface-secondary); color: var(--text-secondary); font-size: .69rem; }
.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .72rem; }
.simple-list li:last-child { border-bottom: 0; }
.simple-list b { color: var(--muted); font-weight: 500; }
.contact-links { display: grid; }
.contact-links a { display: grid; grid-template-columns: 80px 1fr; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .72rem; }
.contact-links a:last-child { border-bottom: 0; }
.contact-links span { color: var(--muted); }
.contact-links b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; }
.contact-links a:hover b { color: var(--accent); }

/* Article */
.article-page { padding-top: 34px; padding-bottom: 90px; }
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 820px); justify-content: center; gap: 24px; align-items: start; }
.article-sidebar { position: sticky; top: 90px; }
.mini-profile { display: flex; align-items: center; gap: 12px; padding: 15px; }
.mini-profile img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; background: var(--surface-secondary); }
.mini-profile div { min-width: 0; display: grid; }
.mini-profile strong { font-size: .78rem; }
.mini-profile span { overflow: hidden; color: var(--muted); font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.toc { display: grid; margin-top: 16px; padding: 15px; }
.toc h2 { margin: 2px 7px 10px; color: var(--muted); font-size: .66rem; }
.toc a { padding: 7px; border-radius: 7px; color: var(--text-secondary); font-size: .68rem; }
.toc a:hover { background: var(--surface-secondary); color: var(--accent); }
.toc [data-article-toc] { display: grid; }
.toc .toc-subheading { padding-left: 18px; color: var(--muted); }
.reading-progress { height: 2px; margin: 13px 7px 3px; overflow: hidden; border-radius: 2px; background: var(--surface-secondary); }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--accent); }
.back-home { display: inline-block; margin: 16px 8px; color: var(--muted); font-size: .67rem; }
.back-home:hover { color: var(--accent); }
.article-column { min-width: 0; }
.article-body { overflow: hidden; }
.article-header { padding: clamp(28px, 5vw, 55px) clamp(24px, 6vw, 66px) 36px; }
.article-category { margin-bottom: 14px; color: var(--accent); font-size: .68rem; font-weight: 600; }
.article-header h1 { max-width: 680px; margin: 0; font-size: clamp(2rem, 4.6vw, 3.35rem); line-height: 1.3; letter-spacing: -.025em; }
.article-header > p { max-width: 650px; margin: 18px 0 0; color: var(--text-secondary); font-size: .87rem; line-height: 1.85; }
.article-meta { display: flex; gap: 16px; margin-top: 22px; color: var(--muted); font: .6rem var(--mono); }
.article-cover { margin: 0; }
.article-cover img { width: 100%; aspect-ratio: 16 / 8.4; object-fit: cover; background: var(--surface-secondary); }
.article-cover figcaption { padding: 9px 20px 0; color: var(--muted); text-align: center; font-size: .6rem; }
.prose { max-width: 690px; margin: 0 auto; padding: 42px 28px 60px; color: var(--text-secondary); font-size: .94rem; line-height: 2; overflow-wrap: anywhere; }
.prose .lead { color: var(--text); font-size: 1.03rem; }
.prose p { margin: 1.45em 0; }
.prose h2 { margin: 2.6em 0 .9em; color: var(--text); font-size: 1.45rem; line-height: 1.5; }
.prose h3 { margin: 2.2em 0 .8em; color: var(--text); font-size: 1.05rem; }
.prose strong { color: var(--text); }
.prose blockquote { margin: 2em 0; padding: 14px 20px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface-secondary); color: var(--text); }
.prose blockquote p { margin: 0; }
.prose code { padding: .15em .38em; border-radius: 5px; background: var(--surface-secondary); color: var(--accent); font: .86em var(--mono); }
.prose pre { margin: 2em 0; padding: 20px 22px; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: #101217; color: #d7dae1; line-height: 1.8; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: .77rem; }
.prose pre span { color: #778194; }
.prose table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: .78rem; }
.prose caption { margin-bottom: 8px; color: var(--muted); text-align: left; font-size: .65rem; }
.prose th, .prose td { padding: 10px 9px; border-bottom: 1px solid var(--border-strong); text-align: left; }
.prose th { color: var(--text); }
.prose hr { width: 50px; height: 1px; margin: 3.4em auto; border: 0; background: var(--border-strong); }
.article-end { display: flex; justify-content: space-between; align-items: center; padding: 20px 34px; border-top: 1px solid var(--border); }
.article-end .post-tags { padding: 0; }
.article-end > a { color: var(--muted); font-size: .68rem; }
.article-end > a:hover { color: var(--accent); }
.next-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0 0; }
.next-posts a { display: grid; gap: 4px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--surface); }
.next-posts a:last-child { text-align: right; }
.next-posts a:hover strong { color: var(--accent); }
.next-posts small { color: var(--muted); font-size: .59rem; }
.next-posts strong { font-size: .75rem; font-weight: 550; }
.comments-panel { margin-top: 20px; padding: clamp(22px, 4vw, 34px); }
.comments-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.comments-panel h2 { margin: 0; font-size: 1.25rem; }
.comments-panel > header > span { color: var(--muted); font-size: .65rem; }
.comments-list { display: grid; }
.comments-empty { margin: 0; padding: 32px 0; color: var(--muted); text-align: center; font-size: .72rem; }
.comment-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-item > header { display: flex; align-items: center; gap: 10px; }
.comment-item strong { font-size: .76rem; }
.comment-item time { color: var(--muted); font: .58rem var(--mono); }
.comment-item button { margin-left: auto; padding: 3px 7px; border: 0; background: transparent; color: var(--muted); font-size: .62rem; }
.comment-item button:hover { color: #d5a0a5; }
.comment-item p { margin: 9px 0 0; color: var(--text-secondary); font-size: .79rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-gate { padding-top: 20px; text-align: center; }
.comment-gate a { color: var(--accent); font-size: .72rem; }
.comment-form { display: grid; gap: 9px; padding-top: 22px; }
.comment-form label { color: var(--text-secondary); font-size: .68rem; }
.comment-form textarea { width: 100%; resize: vertical; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px; outline: none; background: var(--surface-secondary); color: var(--text); font: .78rem/1.7 var(--sans); }
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.comment-form [data-comment-status] { color: var(--success); font-size: .67rem; }
.comment-form [data-comment-status].is-error { color: #d5a0a5; }

/* Footer and micro interaction */
.site-footer { border-top: 1px solid var(--border); }
.site-footer > div { width: var(--site-width); display: flex; justify-content: space-between; padding: 28px 0; margin-inline: auto; }
.site-footer p { margin: 0; color: var(--muted); font-size: .65rem; }
.site-footer a:hover { color: var(--accent); }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; max-width: calc(100vw - 30px); padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-hover); color: var(--text); box-shadow: var(--shadow-hover); font-size: .7rem; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: .2s var(--ease); }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
[data-reveal] { opacity: 1; transform: none; }

@media (max-width: 920px) {
  :root { --site-width: min(100% - 32px, 760px); }
  .home-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
  .profile-card { padding-inline: 17px; }.character-card > img { height: 290px; }
  .post-card { grid-template-columns: 1fr; }.post-cover { height: 220px; }.post-content { min-height: 220px; }
  .article-grid { grid-template-columns: 190px minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 720px) {
  :root { --site-width: calc(100% - 24px); --radius: 15px; }
  .site-header { height: 60px; }.header-inner { width: calc(100% - 22px); }.site-brand { font-size: .88rem; }
  .menu-toggle { display: block; order: 3; margin-left: 5px; }.header-actions { order: 2; margin-left: 0; }
  .site-nav { position: fixed; top: 60px; left: 10px; right: 10px; display: grid; gap: 3px; padding: 8px; border: 1px solid var(--border-strong); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transform: translateY(-7px); transition: .2s var(--ease); }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }.site-nav a { padding: 10px 12px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-banner { height: 245px; margin-top: 12px; border-radius: 16px; }.banner-copy { left: 22px; right: 22px; bottom: 25px; }.banner-copy h1 { font-size: 2.1rem; }
  .home-grid { grid-template-columns: 1fr; padding-top: 18px; }.sidebar { grid-template-columns: 1fr; }.profile-card { margin-top: 0; padding: 22px; text-align: left; }.profile-avatar { width: 76px; height: 76px; margin: 0 0 15px; }.status { justify-content: flex-start; }.profile-links { justify-content: flex-start; }
  .character-card { display: none; }.taxonomy-card { padding: 16px; }.category-list { display: flex; flex-wrap: wrap; }.category-list button { gap: 8px; }
  .content-column { gap: 13px; }.section-title { margin-top: 14px; }.post-card { grid-template-columns: 128px minmax(0, 1fr); min-height: 175px; }.post-cover { height: auto; }.post-content { min-height: 175px; padding: 17px; }.post-content h3 { margin: 9px 0 6px; font-size: .98rem; }.post-content > p { font-size: .7rem; -webkit-line-clamp: 2; }.post-tags { padding-top: 10px; }.post-tags button:nth-child(n+3) { display: none; }
  .inner-page { padding-top: 36px; }.page-heading { display: block; }.page-heading h1 { font-size: 2.15rem; }.page-heading > span { display: block; margin-top: 7px; }
  .archive-shell { grid-template-columns: 1fr; }.year-nav { position: static; display: flex; align-items: center; gap: 8px; overflow-x: auto; }.year-nav > strong { padding: 6px; }.year-nav a { gap: 9px; white-space: nowrap; }.archive-year { padding: 20px 16px; }.archive-month a { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }.archive-month small { grid-column: 2; text-align: left; }
  .about-intro { grid-template-columns: 1fr; }.about-intro > img { min-height: 0; aspect-ratio: 16 / 9; }.about-intro > div { padding: 26px 22px 30px; }.about-columns { grid-template-columns: 1fr; }
  .article-page { padding-top: 18px; }.article-grid { grid-template-columns: 1fr; }.article-sidebar { position: static; }.toc { display: none; }.back-home { margin-block: 10px 0; }.article-header { padding: 27px 22px 24px; }.article-header h1 { font-size: 2rem; }.article-cover img { aspect-ratio: 16 / 10; }.prose { padding: 32px 21px 45px; font-size: .9rem; }.prose h2 { font-size: 1.3rem; }.prose pre { margin-inline: -8px; padding: 17px; }.prose table { display: block; overflow-x: auto; white-space: nowrap; }.article-end { align-items: flex-start; padding: 18px; }.next-posts { grid-template-columns: 1fr; }.next-posts a { text-align: left !important; }
  .site-footer > div { display: grid; gap: 3px; }
}

@media (max-width: 470px) {
  .post-card { grid-template-columns: 106px minmax(0, 1fr); min-height: 165px; }.post-content { min-height: 165px; padding: 14px; }.post-content h3 { font-size: .92rem; }.post-content > p { display: none; }.post-meta span { display: none; }
  .about-person { align-items: flex-start; }.simple-list li { display: grid; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
