@font-face {
  font-family: 'Outfit';
  src: url('/fonts/outfit-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #F43676;
  --primary-dark: #D92A64;
  --primary-soft: #FFE9F2;
  --ink: #111827;
  --body: #2B3440;
  --muted: #66717F;
  --gray: #C2C2C2;
  --bg: #F5F4F8;
  --surface: #FFFFFF;
  --line: #ECEBF1;
  --radius: 2rem;
  --radius-md: 0.8rem;
  --pill: 999px;
  --container: 1280px;
  --font: 'Outfit', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --shadow-soft: 0 18px 40px -34px rgba(17, 24, 39, 0.35);
  --shadow-card: 0 30px 60px -38px rgba(17, 24, 39, 0.35);
  --transition: all 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

::selection {
  background: rgba(244, 54, 118, 0.18);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(45deg);
  background: #FFDCEA;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
}

.brand-dot {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 6px;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  border-radius: var(--pill);
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-toggle {
  display: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-sm {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px -16px rgba(244, 54, 118, 0.8);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 30px -18px rgba(244, 54, 118, 0.85);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-soft:hover {
  background: #FFDCEA;
}

/* Ticker */

.ticker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid rgba(17, 24, 39, 0.035);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 15px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ticker-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.ticker-track {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.ticker-track::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px 20px;
  border-left: 1px solid var(--line);
}

.ticker-item:first-child {
  padding-left: 6px;
  border-left: 0;
}

.ticker-thumb {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.ticker-fallback {
  display: grid;
  place-items: center;
}

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

.ticker-title {
  max-width: 280px;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ticker-date {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.ticker-item:hover .ticker-title {
  color: var(--primary);
}

.ticker-nav {
  display: flex;
  gap: 6px;
  flex: none;
}

.ticker-nav button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  transition: var(--transition);
}

.ticker-nav button:hover {
  background: var(--primary);
}

/* Layout */

.home-wrap {
  padding-bottom: 24px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  align-items: start;
  gap: 28px;
  margin-top: 26px;
}

.post-feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(17, 24, 39, 0.035);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  padding: 18px;
  transition: var(--transition);
}

.hero-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.hero-cover,
.row-cover {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 0.45rem);
  overflow: hidden;
  background: var(--bg);
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.hero-card:hover .cover-image,
.post-row:hover .cover-image,
.related-card:hover .cover-image {
  transform: scale(1.035);
}

.cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-body {
  padding: 10px 20px 10px 0;
}

.row-body {
  padding: 8px 18px 8px 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.tag:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.tag-count {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.55;
}

.hero-title {
  margin: 16px 0 12px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.hero-title a:hover,
.row-title a:hover {
  color: var(--primary);
}

.excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.meta-item svg {
  color: var(--ink);
  opacity: 0.72;
}

.meta-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray);
}

.post-row {
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 16px;
  transition: var(--transition);
}

.post-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.row-title {
  margin: 14px 0 10px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.row-body .excerpt {
  margin-bottom: 18px;
  font-size: 14px;
}

.feed-more {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.feed-more .btn {
  padding: 14px 24px;
}

/* Tag tones */

.tone-0 { background: #E9F7EC; color: #2D7A44; }
.tone-1 { background: #FFE9F3; color: #C22A64; }
.tone-2 { background: #EFEAFF; color: #5942B5; }
.tone-3 { background: #FFF1E0; color: #A15B12; }
.tone-4 { background: #E8F1FF; color: #245E9E; }
.tone-5 { background: #E6F7F5; color: #146F67; }

.tone-bg-0 { background: linear-gradient(135deg, #E8F6EB, #D2EED9); color: #2D7A44; }
.tone-bg-1 { background: linear-gradient(135deg, #FFE9F3, #FFD6E7); color: #C22A64; }
.tone-bg-2 { background: linear-gradient(135deg, #EFEAFF, #E2DAFF); color: #5942B5; }
.tone-bg-3 { background: linear-gradient(135deg, #FFF1E0, #FFE3C6); color: #A15B12; }
.tone-bg-4 { background: linear-gradient(135deg, #E8F1FF, #D7E7FF); color: #245E9E; }
.tone-bg-5 { background: linear-gradient(135deg, #E6F7F5, #D3F0EC); color: #146F67; }

/* Sidebar */

.sidebar {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.author-card {
  padding: 30px 26px;
  text-align: center;
}

.author-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line);
}

.author-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
}

.author-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.side-card {
  padding: 26px;
}

.side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}

.head-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--primary);
}

.recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-list li + li {
  border-top: 1px solid var(--line);
}

.recent-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.recent-list li:first-child .recent-item {
  padding-top: 4px;
}

.recent-list li:last-child .recent-item {
  padding-bottom: 0;
}

.recent-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.recent-fallback {
  display: grid;
  place-items: center;
}

.recent-copy {
  display: block;
  min-width: 0;
}

.recent-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recent-date {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.recent-item:hover .recent-title {
  color: var(--primary);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.side-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  transition: gap 0.25s ease;
}

.side-link:hover {
  gap: 9px;
}

/* Footer */

.site-footer {
  margin-top: 64px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 44px 0 32px;
}

.footer-brand p {
  max-width: 340px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-meta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-meta a:hover {
  color: var(--primary);
}

.footer-meta-links {
  display: flex;
  gap: 16px;
}

/* Page headings */

.page-container {
  padding-top: 48px;
  padding-bottom: 16px;
}

.page-container.narrow {
  max-width: 940px;
}

.page-head {
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Archive */

.archive-card {
  padding: 10px 30px 18px;
}

.archive-group {
  padding: 18px 0 8px;
}

.archive-group + .archive-group {
  border-top: 1px solid var(--line);
}

.archive-month {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-month span {
  color: var(--gray);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.archive-group .archive-item:first-child {
  border-top: 0;
}

.archive-date {
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.archive-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.archive-title:hover {
  color: var(--primary);
}

.archive-copy .tag-row {
  margin-top: 6px;
}

.archive-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--muted);
  transition: var(--transition);
}

.archive-item:hover .archive-arrow {
  background: var(--primary);
  color: #fff;
  transform: translateX(2px);
}

/* Tags */

.tag-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  padding: 30px;
}

.tag-lg {
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
}

.tag-lg .tag-count {
  margin-left: 2px;
}

/* About */

.about-card {
  overflow: hidden;
  padding: 36px;
}

.about-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.about-avatar {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 7px #fff, 0 0 0 8px var(--line);
}

.about-intro h2 {
  margin: 4px 0 10px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.about-intro p {
  max-width: 680px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 12.5px;
}

.about-stats strong {
  margin-right: 3px;
  color: var(--ink);
  font-size: 16px;
}

.about-body {
  max-width: 760px;
}

/* Article */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.1s linear;
}

.article {
  padding-top: 40px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span:last-child {
  max-width: 60%;
  overflow: hidden;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.article-head {
  max-width: 860px;
  margin: 30px auto 0;
  text-align: center;
}

.article-tags {
  justify-content: center;
}

.article-head h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.article-lead {
  max-width: 680px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.article-meta {
  justify-content: center;
}

.article-cover {
  max-width: 1100px;
  margin: 38px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-card);
}

.article-cover .cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  max-width: 760px;
  margin: 48px auto 0;
}

.article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin: 32px auto 0;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 24px 28px;
}

.author-box-avatar {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box-copy {
  flex: 1;
  min-width: 0;
}

.author-box-copy h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.author-box-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 40px auto 0;
}

.post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 26px;
  border: 1px solid rgba(17, 24, 39, 0.04);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.post-nav-card.next {
  align-items: flex-end;
  text-align: right;
}

.post-nav-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.post-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-nav-card:hover .post-nav-label {
  color: var(--primary);
}

.post-nav-card strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.related {
  max-width: 1100px;
  margin: 56px auto 0;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

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

.related-card {
  padding: 12px;
  transition: var(--transition);
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.related-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg);
}

.related-body {
  padding: 14px 8px 8px;
}

.related-body h3 {
  margin: 10px 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.related-body h3 a:hover {
  color: var(--primary);
}

.related-body time {
  color: var(--muted);
  font-size: 11.5px;
}

/* Prose */

.prose {
  color: var(--body);
  font-size: 16.5px;
  line-height: 1.9;
  word-break: break-word;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose > *:last-child {
  margin-bottom: 0;
}

.prose p {
  margin: 0 0 1.45em;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin: 2em 0 0.75em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.prose h1 { font-size: 32px; }
.prose h2 { font-size: 27px; }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 18px; }

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose strong,
.prose b {
  color: var(--ink);
  font-weight: 700;
}

.prose em {
  font-style: italic;
}

.prose ul,
.prose ol {
  margin: 0 0 1.45em;
  padding-left: 1.5em;
}

.prose li {
  margin: 0.35em 0;
}

.prose li::marker {
  color: var(--primary);
}

.prose blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  background: #FFF4F8;
  color: #5C4451;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose code {
  padding: 0.18em 0.42em;
  border-radius: 6px;
  background: #FFF0F5;
  color: #C02663;
  font-family: var(--mono);
  font-size: 0.87em;
}

.prose :not(pre) > code {
  white-space: nowrap;
}

.prose pre {
  margin: 1.8em 0;
  padding: 22px 24px;
  overflow: auto;
  border-radius: 16px;
  background: var(--ink);
  color: #E5E7EB;
  font-size: 13.5px;
  line-height: 1.75;
}

.prose pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.prose img {
  margin: 1.8em auto;
  border-radius: 16px;
}

.prose figure {
  margin: 1.8em 0;
}

.prose figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.prose hr {
  margin: 2.6em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose table {
  display: block;
  width: 100%;
  margin: 1.8em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th {
  background: #F7F5FA;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
}

.prose th,
.prose td {
  padding: 11px 14px;
  border: 1px solid var(--line);
}

.prose tr:nth-child(even) td {
  background: #FBFAFD;
}

.prose kbd {
  padding: 0.15em 0.4em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  font-family: var(--mono);
  font-size: 0.82em;
}

/* Empty and error states */

.empty-state {
  padding: 56px 32px;
  text-align: center;
}

.empty-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.error-page {
  padding: 80px 0;
}

.error-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 40px;
  text-align: center;
}

.error-code {
  color: var(--primary);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.error-card h1 {
  margin: 14px 0 10px;
  font-size: 26px;
}

.error-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */

@media (max-width: 1080px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .site-header.nav-open .main-nav {
    position: absolute;
    top: 84px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 24px 32px -28px rgba(17, 24, 39, 0.35);
  }

  .site-header.nav-open .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .site-header.nav-open .nav-link:last-child {
    border-bottom: 0;
  }

  .nav-link::after {
    display: none;
  }

  .hero-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .hero-cover {
    aspect-ratio: 16 / 10;
  }

  .hero-body {
    padding: 4px 8px 10px;
  }

  .post-row {
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 18px;
  }

  .row-body {
    padding-right: 8px;
  }

  .article-head {
    margin-top: 24px;
    text-align: left;
  }

  .article-tags,
  .article-meta {
    justify-content: flex-start;
  }

  .article-cover {
    aspect-ratio: 16 / 10;
    border-radius: 22px;
  }

  .about-hero {
    align-items: flex-start;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav-card.next {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    gap: 12px;
    height: 72px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .subscribe-btn {
    padding: 10px 11px;
  }

  .subscribe-btn span {
    display: none;
  }

  .site-header.nav-open .main-nav {
    top: 72px;
  }

  .ticker {
    gap: 8px;
    margin-top: 18px;
    padding: 8px;
  }

  .ticker-label {
    padding: 8px 12px;
    font-size: 12px;
  }

  .ticker-nav {
    display: none;
  }

  .ticker-item {
    padding: 6px 12px;
  }

  .ticker-title {
    max-width: 200px;
    font-size: 12.5px;
  }

  .layout-grid {
    gap: 20px;
    margin-top: 18px;
  }

  .post-feed {
    gap: 18px;
  }

  .hero-title {
    font-size: 26px;
  }

  .row-title {
    font-size: 19px;
  }

  .post-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }

  .row-cover {
    aspect-ratio: 16 / 10;
  }

  .row-body {
    padding: 0 6px 8px;
  }

  .excerpt {
    font-size: 13.5px;
  }

  .sidebar {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .page-container {
    padding-top: 32px;
  }

  .page-head h1 {
    font-size: 34px;
  }

  .archive-card {
    padding: 6px 18px 12px;
  }

  .archive-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .archive-arrow {
    display: none;
  }

  .tag-wall {
    padding: 20px;
  }

  .about-card {
    padding: 22px;
  }

  .about-hero {
    flex-direction: column;
    gap: 18px;
  }

  .article {
    padding-top: 28px;
  }

  .article-head h1 {
    font-size: 34px;
  }

  .article-lead {
    font-size: 15px;
  }

  .article-body {
    margin-top: 32px;
  }

  .article-cover {
    margin-top: 26px;
    border-radius: 18px;
  }

  .author-box {
    flex-wrap: wrap;
    padding: 20px;
  }

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

  .footer-inner {
    gap: 24px;
    padding: 34px 0 24px;
  }

  .site-footer {
    margin-top: 44px;
  }

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

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