﻿/*
Theme Name: Halfbyte
Theme URI: https://typecho.org
Author: halfbyte
Author URI: https://example.com
Version: 1.0.0
Description: 自定义 Typecho 主题，适配首页/文章/归档/标签/项目/友链/关于页面
*/

:root {
  --bg: #f7f6f4;
  --bg-card: #ffffff;
  --bg-sidebar: #f5f4f2;
  --bg-hero: linear-gradient(170deg, #f5f4f1 0%, #f0efed 50%, #f7f6f4 100%);
  --ink: #2c2b28;
  --ink-mid: #585650;
  --ink-light: #7e7c76;
  --ink-faded: #a8a6a0;
  --accent: #5a7fa0;
  --accent-soft: #8aacca;
  --accent-glow: #d4e2ee;
  --accent-deep: #3e6488;
  --accent-bg: #eef2f6;
  --tag-green: #5a9e6f;
  --tag-purple: #7a6ab0;
  --tag-orange: #b8844a;
  --tag-pink: #a06080;
  --rule: #e2e0dc;
  --rule-light: #eae8e4;
  --shadow: 0 1px 6px rgba(40, 38, 34, 0.05);
  --shadow-lg: 0 6px 24px rgba(40, 38, 34, 0.07);
  --radius: 6px;
  --serif: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --page: clamp(1rem, 3vw, 3rem);
  --topbar-height: 53px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--mono);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
::selection { background: var(--accent-glow); color: var(--accent-deep); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faded); }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; }
html { scroll-padding-top: calc(var(--topbar-height) + 16px); }
body.hb-motion-off *,
body.hb-motion-off *::before,
body.hb-motion-off *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--topbar-height);
  border-bottom: 1px solid var(--rule);
  padding: 0 var(--page);
  background: rgba(247, 246, 244, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-sizing: border-box;
  overflow: hidden;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-logo {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar-logo .bracket { color: var(--accent); }
.topbar-nav {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  height: 100%;
  margin-left: auto;
}
.topbar-nav li {
  display: flex;
  align-items: stretch;
  height: 100%;
}
.topbar-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0.4rem 1rem;
  border-radius: 3px;
  color: var(--ink-light);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  line-height: 1;
  white-space: nowrap;
}
.topbar-nav a:hover,
.topbar-nav a.active {
  color: var(--accent);
  background: var(--accent-bg);
}
.topbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}
.topbar-spacer {
  display: none;
}

.hero, .page-hero {
  border-bottom: 1px solid var(--rule);
  background: var(--bg-hero);
}
.hero {
  padding: calc(6.2rem + var(--topbar-height)) var(--page) 5.6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(90, 127, 160, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(160, 150, 140, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero { padding: calc(2.5rem + var(--topbar-height)) var(--page) 2rem; }
.hero-inner, .page-hero-inner { max-width: 1200px; margin: 0 auto; }
.hero-inner {
  text-align: center;
  max-width: 820px;
  position: relative;
  z-index: 1;
}
.hero-inner::before {
  content: '— ✦ —';
  display: block;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--accent-glow);
  letter-spacing: 0.5em;
  margin-bottom: 1.2rem;
  opacity: 0.7;
}
.hero h1 {
  margin: 0 0 2.8rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-glow);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.hero-stats, .proj-hero-stats {
  display: inline-flex;
  gap: 2rem;
  font-size: 0.66rem;
  color: var(--ink-faded);
  padding: 0.6rem 1.8rem;
  border-radius: 20px;
  border: 1px solid var(--rule-light);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 8px rgba(40, 38, 34, 0.04);
}
.hero-stats .stat, .proj-hero-stats .stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}
.hero-stats .stat + .stat::before, .proj-hero-stats .stat + .stat::before {
  content: '·';
  position: absolute;
  left: -1.1rem;
  color: var(--rule);
  font-size: 1rem;
}
.hero-stats .stat-num, .proj-hero-stats .stat-num {
  color: var(--accent);
  font-size: 1rem;
  font-family: var(--serif);
  font-weight: 700;
}
.breadcrumb { color: var(--ink-faded); font-size: 0.6rem; margin-bottom: 0.6rem; }
.breadcrumb .sep { margin: 0 0.4rem; opacity: 0.5; }
.page-hero h1 { font-family: var(--serif); margin: 0 0 0.3rem; }
.page-desc { color: var(--ink-mid); font-size: 0.75rem; }

.main-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem var(--page);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  align-items: start;
  gap: 2.5rem;
}
.main-layout > main {
  grid-column: 1;
  min-width: 0;
}
.main-layout > .sidebar {
  grid-column: 2;
  min-width: 0;
  align-self: start;
}
.main-full { max-width: 1200px; margin: 0 auto; padding: 2rem var(--page); }

.section-head {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  position: relative;
}
.section-head h2::before {
  content: '§';
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent-glow);
  margin-right: 0.4rem;
  font-weight: 400;
}
.section-head .count {
  font-size: 0.63rem;
  color: var(--ink-faded);
  background: var(--accent-bg);
  border-radius: 10px;
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.05em;
}
.section-head .line { flex: 1; height: 1px; background: var(--rule); }

.pinned, .post-card, .sidebar-card, .sidebar-profile, .proj-card, .tag-card, .link-card, .about-profile {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.pinned {
  border-radius: 8px;
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  cursor: pointer;
}
.pinned:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.pinned::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 40%, var(--tag-purple) 70%, var(--tag-pink) 100%);
}
.pinned::after {
  content: '→';
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--rule);
  transition: all 0.3s ease;
}
.pinned:hover::after {
  color: var(--accent);
  transform: translateX(4px);
}
.pinned h3 { margin: 0.4rem 0 0.5rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; }
.pinned p { margin: 0 0 0.8rem; color: var(--ink-mid); font-size: 0.78rem; max-width: 65ch; }
.pinned-badge {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pinned-badge::before { content: '📌'; font-size: 0.75rem; }
.pinned-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--ink-faded); font-size: 0.63rem; }

.post-list { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.post-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: start;
  padding: 1.3rem 0.8rem;
  margin-bottom: 0;
  border-radius: 4px;
  border: none;
  border-bottom: 1px solid var(--rule-light);
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
}
.post-card:last-child { border-bottom: none; }
.post-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.3s ease;
}
.post-card:hover {
  padding-left: 1.2rem;
  background: linear-gradient(90deg, rgba(90, 127, 160, 0.03) 0%, transparent 40%);
}
.post-card:hover::before { background: var(--accent); }
.post-card:hover .post-title { color: #1f1f1f; }
.post-card:hover .post-date { transform: translateX(-2px); }
.post-card:hover .post-date .day { color: var(--accent); }
.post-date {
  width: 52px;
  text-align: center;
  padding-top: 0.1rem;
  transition: transform 0.3s ease;
}
.post-body { min-width: 0; }
.post-date .day { font-family: var(--serif); font-size: 1.8rem; line-height: 1; font-weight: 900; transition: color 0.3s; }
.post-date .month { font-size: 0.56rem; color: var(--ink-faded); text-transform: uppercase; letter-spacing: 0.12em; }
.post-title { margin: 0 0 0.4rem; font-family: var(--serif); font-size: 1.12rem; font-weight: 700; color: #1f1f1f; line-height: 1.35; transition: color 0.25s ease; }
.post-title a { color: #1f1f1f; }
.post-title a, .post-excerpt { overflow-wrap: anywhere; word-break: break-word; }
.post-excerpt {
  margin: 0 0 0.55rem;
  font-size: 0.73rem;
  color: var(--ink-mid);
  max-width: 60ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.post-meta-side {
  text-align: right;
  white-space: nowrap;
  color: var(--ink-faded);
  font-size: 0.6rem;
  padding-top: 0.2rem;
}
.post-meta-side .read-time { display: block; margin-top: 0.3rem; color: var(--accent-soft); }

.tag {
  display: inline-block;
  font-size: 0.54rem;
  padding: 0.18rem 0.55rem;
  border-radius: 10px;
  border: 1px solid;
  margin-right: 0.2rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: all 0.2s ease;
}
.tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(40, 38, 34, 0.06);
}
.tag-blue { color: var(--accent); border-color: var(--accent-glow); background: var(--accent-bg); }
.tag-green { color: var(--tag-green); border-color: #c8e6d0; background: #f0f8f2; }
.tag-purple { color: var(--tag-purple); border-color: #d8d0e8; background: #f4f0fa; }
.tag-orange { color: var(--tag-orange); border-color: #e8dcc8; background: #faf4ec; }
.tag-pink { color: var(--tag-pink); border-color: #e8d0da; background: #faf0f4; }

.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-profile { border-radius: 10px; overflow: hidden; transition: box-shadow 0.3s; }
.sidebar-profile:hover { box-shadow: var(--shadow-lg); }
.sp-banner {
  height: 56px;
  background: linear-gradient(135deg, #7ea8c8 0%, #5a7fa0 50%, #4a6e8c 100%);
  position: relative;
  overflow: hidden;
}
.sp-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 100px at 25% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
}
.sp-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle 0.8px at center, rgba(255, 255, 255, 0.18) 0%, transparent 100%);
  background-size: 10px 10px;
}
.sp-code {
  position: absolute;
  top: 6px;
  left: 10px;
  font-family: var(--mono);
  font-size: 0.45rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.18);
  white-space: pre-line;
  pointer-events: none;
}
.sp-avatar-row { display: flex; justify-content: center; margin-top: -28px; position: relative; z-index: 2; }
.sp-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  background: linear-gradient(135deg, var(--accent-soft), var(--accent), var(--accent-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  position: relative;
  box-shadow: 0 3px 14px rgba(44, 43, 40, 0.1);
}
.sp-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.sp-avatar.has-image {
  overflow: hidden;
  background: #fff;
}
.sp-avatar-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6ab87a;
  border: 2px solid var(--bg-card);
  position: absolute;
  right: 1px;
  bottom: 1px;
  box-shadow: 0 0 5px rgba(106, 184, 122, 0.45);
}
.sp-body { padding: 0.55rem 1.1rem 1rem; text-align: center; }
.sp-name { font-family: var(--serif); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.05rem; }
.sp-handle { font-size: 0.56rem; color: var(--ink-faded); margin-bottom: 0.5rem; }
.sp-motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.68rem;
  color: var(--ink-mid);
  padding: 0.45rem 0;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  position: relative;
}
.sp-motto::before {
  content: '"';
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-glow);
  position: absolute;
  top: 0.1rem;
  left: -0.15rem;
  line-height: 1;
}
.sp-info {
  margin: 0.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.56rem;
  color: var(--ink-light);
}
.sp-info span { display: flex; align-items: center; justify-content: center; gap: 0.3rem; }
.sp-info .ico { font-size: 0.65rem; opacity: 0.65; }
.sp-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}
.sp-pill {
  font-size: 0.48rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule-light);
  border-radius: 8px;
  padding: 0.14rem 0.45rem;
  color: var(--ink-light);
  background: var(--bg);
  transition: all 0.2s;
}
.sp-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
  transform: translateY(-1px);
}
.sp-links { margin-top: 0.55rem; border-top: 1px solid var(--rule-light); padding-top: 0.55rem; display: flex; gap: 0.4rem; justify-content: center; }
.sp-links a {
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 0.54rem;
  color: var(--ink-light);
  padding: 0.22rem 0.55rem;
  transition: all 0.2s;
}
.sp-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}
.sidebar-card { border-radius: 8px; padding: 1.2rem 1.3rem; transition: box-shadow 0.3s ease; }
.sidebar-card:hover { box-shadow: var(--shadow-lg); }
.sidebar-title {
  font-size: 0.63rem;
  color: var(--ink-faded);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-title .icon { font-size: 0.85rem; }
.tag-cloud, .archive-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-cloud .tc { border: 1px solid var(--rule); border-radius: 10px; padding: 0.2rem 0.6rem; font-size: 0.58rem; color: var(--ink-mid); transition: all 0.2s; }
.tag-cloud .tc:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.tag-cloud .num { color: var(--ink-faded); margin-left: 0.2rem; }
.archive-list { list-style: none; display: block; margin: 0; padding: 0; }
.archive-list li { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid var(--rule-light); font-size: 0.7rem; }
.archive-list .al-count { color: var(--ink-faded); font-size: 0.6rem; }

.status-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.68rem;
  color: var(--ink-mid);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green { background: var(--tag-green); box-shadow: 0 0 4px rgba(90, 158, 111, 0.35); }
.dot-blue { background: var(--accent); box-shadow: 0 0 4px rgba(90, 127, 160, 0.3); }
.dot-orange { background: var(--tag-orange); box-shadow: 0 0 4px rgba(192, 136, 80, 0.4); }

.gh-repo {
  display: block;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule-light);
}
.gh-repo:last-child { border-bottom: none; }
.gh-repo-name {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.15rem;
}
.gh-repo-desc {
  font-size: 0.62rem;
  color: var(--ink-mid);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}
.gh-repo-stats {
  display: flex;
  gap: 0.8rem;
  font-size: 0.58rem;
  color: var(--ink-faded);
}

.reading-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule-light);
}
.reading-item:last-child { border-bottom: none; }
.reading-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.ri-blue { background: var(--accent-bg); }
.ri-green { background: #f0f8f2; }
.ri-purple { background: #f4f0fa; }
.reading-text .rt-title {
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.reading-text .rt-author {
  font-size: 0.6rem;
  color: var(--ink-faded);
}

.article-page { padding-top: var(--topbar-height); padding-bottom: 3rem; }
.article-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--page);
  padding-right: var(--page);
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(240px, 280px);
  justify-content: center;
  gap: 2rem;
  align-items: start;
}
.article-main { min-width: 0; }
.article-header, .article-body, .article-footer, .comments-section { max-width: 780px; }
.article-aside {
  position: sticky;
  top: calc(var(--topbar-height) + 4.25rem);
  align-self: start;
  display: block;
  padding-top: 4rem;
}
.article-toc-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 1.05rem 1rem 1rem;
  overflow: hidden;
  position: relative;
  --toc-progress: 0%;
}
.article-toc-card::before {
  content: '';
  display: block;
  height: 3px;
  margin: -1.05rem -1rem 0.95rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}
.article-toc-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background:
    linear-gradient(90deg, var(--accent), var(--accent-soft), var(--tag-purple)) left / var(--toc-progress) 100% no-repeat,
    rgba(90, 127, 160, 0.12);
}
.article-toc-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.article-toc {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: calc(100vh - var(--topbar-height) - 9rem);
  overflow: auto;
  padding-right: 0.15rem;
}
.article-toc .toc-link {
  display: block;
  color: var(--ink-mid);
  font-size: 0.68rem;
  line-height: 1.5;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.article-toc .toc-link:hover,
.article-toc .toc-link.is-active {
  background: var(--accent-bg);
  color: var(--accent-deep);
  border-color: rgba(90, 127, 160, 0.18);
}
.article-toc .toc-level-1 { font-weight: 700; }
.article-toc .toc-level-2 { padding-left: 1.1rem; }
.article-toc .toc-level-3 { padding-left: 1.9rem; font-size: 0.64rem; }
.article-header { padding-top: 2.5rem; }
.article-toolbar { margin-bottom: 1rem; }
.article-toolbar-bottom {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1rem;
}
.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: var(--bg-card);
  color: var(--ink-mid);
  font-size: 0.66rem;
  transition: all 0.2s ease;
}
.article-back-link::before { content: '←'; font-size: 0.78rem; }
.article-back-link:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
  transform: translateX(-2px);
}
.article-cat { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase; margin-bottom: 0.6rem; }
.article-header h1 { margin: 0 0 0.8rem; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; }
.article-meta-bar { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.65rem; color: var(--ink-faded); border-bottom: 1px solid var(--rule); padding-bottom: 1.2rem; margin-bottom: 2rem; }
.article-ai-summary {
  margin: 0 0 1.8rem;
  padding: 1rem 1.2rem 1rem 1.25rem;
  border: 1px solid rgba(90, 127, 160, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(246, 249, 252, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: 0 12px 30px rgba(42, 55, 72, 0.04);
  position: relative;
  overflow: hidden;
}
.article-ai-summary::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
}
.article-ai-summary-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.article-ai-summary-text {
  color: var(--ink-mid);
  font-size: 0.8rem;
  line-height: 2;
  text-wrap: pretty;
}
.article-ai-summary-text p:first-child,
.article-ai-summary-text br:first-child {
  margin-top: 0;
}
.article-body { font-size: 0.85rem; line-height: 1.85; color: var(--ink-mid); text-wrap: pretty; }
.article-body h2 { margin: 2rem 0 0.8rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule-light); font-family: var(--serif); color: var(--ink); }
.article-body h3 { margin: 1.7rem 0 0.7rem; font-family: var(--serif); color: var(--ink); }
.article-body p,
.article-body ul,
.article-body ol { margin: 0 0 1.1rem; }
.article-body code { font-family: var(--mono); background: var(--accent-bg); padding: 0.12rem 0.35rem; border-radius: 4px; font-size: 0.92em; }
.article-body pre {
  position: relative;
  background: linear-gradient(180deg, #1d2330 0%, #161b26 100%);
  color: #e8ecf2;
  border: 1px solid rgba(120, 146, 192, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 20px 45px rgba(18, 24, 39, 0.18);
  padding: 2.9rem 0 0;
  overflow: auto;
}
.article-body pre code,
.article-body pre code.hljs {
  display: block;
  background: transparent;
  padding: 0 0 1rem;
  color: inherit;
  font-size: 0.8rem;
  line-height: 1.75;
}
.hb-code-toolbar {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hb-code-copy {
  border: 1px solid rgba(138, 172, 202, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #edf3fb;
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  font-size: 0.68rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}
.hb-code-copy:hover {
  background: rgba(138, 172, 202, 0.18);
  border-color: rgba(138, 172, 202, 0.5);
}
.hb-code-copy.is-copied {
  background: rgba(90, 127, 160, 0.26);
  border-color: rgba(138, 172, 202, 0.58);
}
.hb-code-lines {
  display: block;
}
.hb-code-line {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  align-items: start;
}
.hb-code-line:hover {
  background: rgba(255, 255, 255, 0.03);
}
.hb-code-line-number {
  user-select: none;
  text-align: right;
  padding: 0 0.9rem 0 0;
  color: rgba(173, 189, 211, 0.46);
  border-right: 1px solid rgba(138, 172, 202, 0.12);
}
.hb-code-line-content {
  display: block;
  min-width: 0;
  padding: 0 1.2rem 0 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.hb-code-line-content:empty::before {
  content: " ";
  visibility: hidden;
}
.article-body pre .hljs-keyword,
.article-body pre .hljs-selector-tag,
.article-body pre .hljs-literal,
.article-body pre .hljs-title,
.article-body pre .hljs-section,
.article-body pre .hljs-doctag,
.article-body pre .hljs-type,
.article-body pre .hljs-name,
.article-body pre .hljs-strong {
  color: #c792ea;
}
.article-body pre .hljs-string,
.article-body pre .hljs-attr,
.article-body pre .hljs-addition,
.article-body pre .hljs-template-tag,
.article-body pre .hljs-template-variable {
  color: #c3e88d;
}
.article-body pre .hljs-comment,
.article-body pre .hljs-quote,
.article-body pre .hljs-meta {
  color: #7f8ea3;
}
.article-body pre .hljs-number,
.article-body pre .hljs-symbol,
.article-body pre .hljs-bullet {
  color: #f78c6c;
}
.article-body pre .hljs-variable,
.article-body pre .hljs-params,
.article-body pre .hljs-property,
.article-body pre .hljs-built_in {
  color: #82aaff;
}
.article-body blockquote { border-left: 3px solid var(--accent); padding: 0.8rem 1.2rem; background: var(--accent-bg); margin: 1.5rem 0; }
.article-body h1,
.article-body h2,
.article-body h3 { scroll-margin-top: calc(var(--topbar-height) + 20px); }
.article-tags-row { margin-bottom: 1.3rem; }
.article-nav-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.article-nav-link { border: 1px solid var(--rule); background: var(--bg-card); border-radius: var(--radius); padding: 1rem 1.2rem; transition: all 0.2s ease; }
.article-nav-link:hover { border-color: var(--accent); background: var(--accent-bg); transform: translateY(-1px); }
.article-nav-link .anl-label { color: var(--ink-faded); font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; }
.article-nav-link .anl-title { margin-top: 0.25rem; font-family: var(--serif); color: var(--ink); }

.comment { display: flex; gap: 0.8rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-light); }
.comment-avatar img, .comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
}
.comment-body { flex: 1; }
.comment-header { color: var(--ink-faded); font-size: 0.63rem; margin-bottom: 0.3rem; }
.comment-text { color: var(--ink-mid); font-size: 0.78rem; }
.comment-form-wrap { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.comment-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 0.7rem; }
.comment-form-wrap input, .comment-form-wrap textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
  padding: 0.6rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.comment-form-wrap button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  padding: 0.55rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.archive-group { margin-bottom: 2.5rem; }
.archive-group-head { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.3rem; display: flex; gap: 0.6rem; align-items: baseline; }
.archive-group-line { height: 1px; background: var(--rule); margin-bottom: 0.8rem; }
.archive-entry { display: flex; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule-light); align-items: baseline; }
.ae-date { min-width: 70px; color: var(--ink-faded); font-size: 0.65rem; }
.ae-title { font-family: var(--serif); font-size: 0.95rem; color: var(--ink); }

.tags-grid, .links-grid { display: grid; gap: 1rem; }
.tags-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.links-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.tag-card, .link-card { border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.tag-card-header { display: flex; justify-content: space-between; margin-bottom: 0.6rem; }
.tag-card-name { font-family: var(--serif); font-size: 1rem; }
.tag-card-posts a { display: block; color: var(--ink-light); font-size: 0.65rem; margin-top: 0.25rem; }
.link-card { display: flex; gap: 1rem; align-items: flex-start; }
.link-card-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; }
.link-card-name { font-family: var(--serif); }
.link-card-url { color: var(--ink-faded); font-size: 0.58rem; display: block; margin-bottom: 0.4rem; }
.link-card-desc { color: var(--ink-mid); font-size: 0.68rem; }

.proj-list { display: flex; flex-direction: column; gap: 1.5rem; }
.proj-card { border-radius: var(--radius); padding: 1.5rem 1.8rem; position: relative; }
.proj-card::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; }
.proj-card.featured::before { background: var(--accent); }
.proj-card.normal::before { background: var(--rule); }
.proj-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.proj-name { font-size: 1rem; font-weight: 600; }
.proj-desc { color: var(--ink-mid); font-size: 0.75rem; }
.proj-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--ink-faded); font-size: 0.6rem; margin-top: 0.5rem; }

.about-layout { max-width: 1180px; margin: 0 auto; padding: calc(2.8rem + var(--topbar-height)) var(--page) 3rem; }
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 380px);
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}
.about-hero-main,
.about-avatar-card,
.about-stack-card,
.about-panel {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 18px;
}
.about-hero-main {
  padding: 2.4rem 2.5rem;
  background:
    radial-gradient(circle at top right, rgba(138, 172, 202, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,244,241,0.96));
}
.about-hero-kicker {
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.about-hero-main h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.about-hero-handle {
  margin-top: 0.55rem;
  color: var(--ink-faded);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about-hero-motto {
  margin: 1.2rem 0 0;
  max-width: 46ch;
  color: var(--ink-mid);
  font-size: 0.9rem;
  line-height: 1.9;
}
.about-hero-info {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.about-hero-info span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--ink-mid);
  font-size: 0.68rem;
}
.about-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.about-stat {
  padding: 1rem 1rem 0.95rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(90, 127, 160, 0.08);
}
.about-stat .num {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--ink);
}
.about-stat .label {
  color: var(--ink-faded);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.about-hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-avatar-card {
  padding: 1.3rem;
}
.about-avatar {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent), var(--accent-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}
.about-avatar.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-avatar-meta { margin-top: 1rem; }
.about-avatar-meta .name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
}
.about-avatar-meta .desc {
  margin-top: 0.35rem;
  color: var(--ink-mid);
  font-size: 0.72rem;
  line-height: 1.8;
}
.about-stack-card { padding: 1.2rem 1.3rem 1.3rem; }
.about-card-title {
  color: var(--ink-faded);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.about-stack-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.about-stack-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg);
  font-size: 0.62rem;
  color: var(--ink-mid);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.4rem;
}
.about-main,
.about-side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.about-panel {
  padding: 1.55rem 1.7rem;
}
.about-panel-compact {
  padding: 1.35rem 1.35rem 1.45rem;
}
.about-panel-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.about-panel-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.about-panel-head .line {
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.about-copy p,
.about-prose p {
  margin: 0 0 1rem;
  color: var(--ink-mid);
  line-height: 1.95;
}
.about-prose h1,
.about-prose h2,
.about-prose h3 {
  margin: 1.2rem 0 0.7rem;
  font-family: var(--serif);
}
.about-prose ul,
.about-prose ol {
  margin: 0 0 1rem 1.3rem;
  color: var(--ink-mid);
}
.about-prose blockquote {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
}
.about-timeline {
  position: relative;
  padding-left: 1.35rem;
}
.about-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}
.about-timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}
.about-timeline-item:last-child { margin-bottom: 0; }
.about-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.35rem;
  top: 0.38rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(138, 172, 202, 0.18);
}
.about-timeline-date {
  color: var(--ink-faded);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about-timeline-text {
  margin-top: 0.3rem;
  color: var(--ink-mid);
  font-size: 0.8rem;
  line-height: 1.8;
}
.about-contact-list,
.about-note-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about-contact-item,
.about-note-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--rule-light);
  background: linear-gradient(180deg, #fff, #fbfaf8);
  color: var(--ink-mid);
  font-size: 0.72rem;
  line-height: 1.7;
}
.about-contact-item .icon {
  font-size: 0.95rem;
  line-height: 1;
  margin-top: 0.1rem;
}
.about-contact-item .text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.about-contact-item:hover {
  border-color: rgba(90, 127, 160, 0.24);
  background: var(--accent-bg);
}

.hb-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}
.hb-page-list {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.hb-page-link,
.hb-page-jump button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--ink-mid);
  font-size: 0.68rem;
  transition: all 0.2s ease;
}
.hb-page-link:hover,
.hb-page-jump button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}
.hb-page-link.is-current {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.hb-page-link.is-disabled {
  opacity: 0.45;
  cursor: default;
}
.hb-page-ellipsis {
  color: var(--ink-faded);
  padding: 0 0.2rem;
}
.hb-page-jump {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 0.64rem;
  color: var(--ink-faded);
}
.hb-page-jump input {
  width: 4.5rem;
  height: 2.2rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  padding: 0 0.85rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
}
.hb-page-jump button {
  font-family: var(--mono);
  cursor: pointer;
}
.hb-page-total {
  white-space: nowrap;
}

.blog-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem var(--page) 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink-faded);
  font-size: 0.58rem;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-logo { font-family: var(--serif); color: var(--ink-mid); font-size: 0.9rem; }
.footer-right { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-copy {
  text-align: center;
  font-size: 0.64rem;
  color: var(--ink-light);
  padding: 0;
  line-height: 1.85;
  letter-spacing: 0.03em;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem var(--page) 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.footer-records {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding-top: 0.65rem;
  border-top: 1px solid var(--rule-light);
  color: var(--ink-light);
  font-size: 0.64rem;
  line-height: 1.85;
}
.footer-records a,
.footer-records span {
  color: inherit;
}
.footer-records a:hover {
  color: var(--accent);
}

.anim { opacity: 0; animation: fadeUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.a1 { animation-delay: 0.05s; } .a2 { animation-delay: 0.1s; } .a3 { animation-delay: 0.15s; } .a4 { animation-delay: 0.2s; }
.a5 { animation-delay: 0.25s; } .a6 { animation-delay: 0.3s; } .a7 { animation-delay: 0.35s; } .a8 { animation-delay: 0.4s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .main-layout { grid-template-columns: 1fr; }
  .main-layout > main,
  .main-layout > .sidebar { grid-column: auto; }
  .about-hero,
  .about-grid { grid-template-columns: 1fr; }
  .about-hero-main,
  .about-panel,
  .about-panel-compact,
  .about-avatar-card,
  .about-stack-card { padding-left: 1.2rem; padding-right: 1.2rem; }
  .about-hero-stats { grid-template-columns: 1fr; }
  .article-shell { grid-template-columns: 1fr; gap: 1.5rem; }
  .article-aside { position: static; order: -1; }
  .topbar-nav { display: none; }
  .comment-form-grid { grid-template-columns: 1fr; }
  .hero-stats, .proj-hero-stats { flex-wrap: wrap; justify-content: center; }
  .hb-pagination { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .post-card { grid-template-columns: 1fr; gap: 0.5rem; }
  .post-date { width: auto; text-align: left; display: flex; gap: 0.4rem; align-items: baseline; }
  .post-meta-side { text-align: left; }
  .pinned { padding: 1.2rem 1rem; }
  .about-layout { padding-top: calc(2rem + var(--topbar-height)); }
  .about-hero-main { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .about-panel-head { align-items: flex-start; }
  .about-panel-head .line { margin-top: 0.8rem; }
  .article-nav-row { grid-template-columns: 1fr; }
}
