/* ============================================================
   «Бумажная гавань» — блог о книгах и чтении
   ============================================================ */

:root {
  --bg: #faf7f2;
  --bg-card: #ffffff;
  --ink: #2b2620;
  --ink-soft: #5c554b;
  --accent: #9a5b3c;
  --accent-dark: #7d4730;
  --line: #e6ddd0;
  --tag-bg: #f1e9de;
  --shadow: 0 1px 3px rgba(43, 38, 32, .07), 0 8px 24px rgba(43, 38, 32, .06);
  --radius: 14px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #1c1915;
  --bg-card: #26221c;
  --ink: #ece5da;
  --ink-soft: #b3a897;
  --accent: #d08a63;
  --accent-dark: #e0a37f;
  --line: #3a342b;
  --tag-bg: #322c24;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

img { max-width: 100%; height: auto; display: block; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  transition: background .25s ease, color .25s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Шапка ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo:hover { text-decoration: none; color: var(--accent); }

.logo svg { width: 30px; height: 30px; flex: none; }

.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }

.main-nav a {
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .95rem;
}

.main-nav a:hover { background: var(--tag-bg); color: var(--ink); text-decoration: none; }

.main-nav a.active { color: var(--accent); font-weight: 600; }

.theme-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(154, 91, 60, .10), transparent),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(154, 91, 60, .07), transparent);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 720px;
}

.hero p { max-width: 620px; color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 28px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
}

.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  margin-left: 10px;
}

.btn.ghost:hover { background: var(--accent); color: #fff; }

/* ---------- Поиск ---------- */

.search-bar {
  max-width: 560px;
  margin: 0 auto 40px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--ink);
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.search-bar input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.search-bar::before {
  content: "🔎";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: .6;
}

/* ---------- Сетка постов ---------- */

.section-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 48px 0 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-title .count {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.post-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(43,38,32,.08), 0 16px 40px rgba(43,38,32,.10); }

.post-cover {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 3.2rem;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
  user-select: none;
}

.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }

.post-meta {
  font-size: .8rem;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.post-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 10px;
}

.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent); text-decoration: none; }

.post-card p.excerpt { color: var(--ink-soft); font-size: .93rem; margin: 0 0 16px; flex: 1; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  font-size: .75rem;
  background: var(--tag-bg);
  color: var(--ink-soft);
  padding: 3px 10px;
  border-radius: 20px;
}

.read-more { font-size: .88rem; font-weight: 600; margin-top: 14px; }

.no-results {
  display: none;
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 0 60px;
  font-size: 1.05rem;
}

/* ---------- Страница поста ---------- */

.article { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }

.article .breadcrumb { font-size: .85rem; color: var(--ink-soft); margin-bottom: 24px; }

.article h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 14px;
}

.article .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  margin: 0 0 28px;
}

.article h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 40px 0 14px;
}

.article h3 { font-family: var(--serif); font-size: 1.2rem; margin: 30px 0 10px; }

.article p { margin: 0 0 18px; }

.article blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
}

.article ul, .article ol { padding-left: 24px; margin: 0 0 18px; }
.article li { margin-bottom: 8px; }

.article .article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: .88rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.book-box {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 28px 0;
  box-shadow: var(--shadow);
}

.book-cover {
  flex: none;
  width: 110px;
  height: 160px;
  border-radius: 6px 12px 12px 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 8px;
  color: #fff;
  font-family: var(--serif);
  font-size: .72rem;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  box-shadow: inset 6px 0 8px -4px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.18);
}

.book-box .book-info h4 { font-family: var(--serif); margin: 0 0 4px; font-size: 1.1rem; }
.book-box .book-info .author { color: var(--ink-soft); font-size: .9rem; margin: 0 0 10px; }

.stars { color: #e8a33d; font-size: 1rem; letter-spacing: 2px; }

/* ---------- О блоге ---------- */

.about-hero { padding: 56px 0 32px; }

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.about-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: var(--shadow);
}

@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 32px 0 56px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat b { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--accent); }
.stat span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Подвал ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-card);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

.site-footer h4 { font-family: var(--serif); margin: 0 0 12px; }
.site-footer p, .site-footer a { color: var(--ink-soft); font-size: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 16px 20px;
  font-size: .82rem;
  color: var(--ink-soft);
}

/* ---------- Форма подписки ---------- */

.subscribe {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 0 auto 64px;
  max-width: 640px;
  box-shadow: var(--shadow);
}

.subscribe h3 { font-family: var(--serif); margin: 0 0 8px; font-size: 1.4rem; }
.subscribe p { color: var(--ink-soft); margin: 0 0 20px; }

.subscribe form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }

.subscribe input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: .95rem;
}

.subscribe .btn { padding: 12px 22px; }

.subscribe .ok { display: none; color: #4c9a5c; font-weight: 600; margin-top: 12px; }

@media (max-width: 520px) { .subscribe form { flex-direction: column; } }

/* ============================================================
   Мобильная адаптация (Android / iOS)
   ============================================================ */

/* Крупные тач-цели и запас от «чёлки» на iOS */
@supports (padding: max(0px)) {
  .site-header { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* Убираем hover-залипание на тач-устройствах */
@media (hover: none) {
  .post-card:hover { transform: none; }
  .post-card { -webkit-tap-highlight-color: transparent; }
}

/* Планшеты и узкие ноутбуки */
@media (max-width: 900px) {
  .hero { padding: 48px 0 36px; }
  .section-title { font-size: 1.45rem; }
}

/* Телефоны */
@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .header-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px 16px;
  }
  .logo { font-size: 1.25rem; }
  .logo svg { width: 26px; height: 26px; }
  .main-nav { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 8px 10px; font-size: .9rem; white-space: nowrap; }
  .theme-toggle { margin-left: auto; }

  .wrap { padding: 0 16px; }

  .hero { padding: 36px 0 28px; }
  .hero p { font-size: 1rem; margin-bottom: 22px; }
  .btn { padding: 12px 20px; font-size: .92rem; }
  .btn.ghost { margin-left: 6px; }

  .search-bar { margin-bottom: 28px; }
  .search-bar input { padding: 12px 14px 12px 42px; font-size: 16px; /* 16px = без авто-зума в iOS */ }

  .posts-grid { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .post-cover { height: 130px; font-size: 2.6rem; }

  .article { padding: 28px 16px 48px; }
  .article h1 { font-size: 1.65rem; }
  .article .lead { font-size: 1.05rem; }
  .article h2 { font-size: 1.3rem; margin-top: 32px; }
  .article blockquote { padding: 14px 18px; font-size: 1rem; }

  .book-box { flex-direction: column; gap: 14px; padding: 16px; }
  .book-cover { width: 84px; height: 124px; }

  .subscribe { padding: 24px 18px; margin-bottom: 48px; }

  .footer-inner { padding: 32px 16px 24px; gap: 24px; }

  .section-title { margin: 36px 0 16px; }
}

/* Совсем узкие экраны */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.7rem; }
  .btn { display: block; text-align: center; }
  .btn.ghost { margin: 10px 0 0; }
}

/* ============================================================
   Расширение v2: 3D-книги, анимации, жанры, архив
   ============================================================ */

/* ---------- Hero canvas-сцена ---------- */
.hero { position: relative; overflow: hidden; }
#dust-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: .8;
}
.hero .wrap { position: relative; z-index: 1; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 3D-наклон карточек ---------- */
.posts-grid { perspective: 1200px; }
.post-card { transform-style: preserve-3d; will-change: transform; }
.post-card.tilting { transition: transform .12s ease-out; }

/* ---------- 3D-книга ---------- */
.book3d {
  flex: none;
  width: 120px; height: 172px;
  perspective: 700px;
}
.book3d-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-24deg);
  transition: transform .5s ease;
}
.book-box:hover .book3d-inner { transform: rotateY(-10deg); }
.b3d-front {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, var(--c1, #8a5a3c), var(--c2, #5c3220));
  border-radius: 3px 10px 10px 3px;
  display: flex; align-items: flex-end;
  padding: 12px 10px;
  color: #fff; font-family: var(--serif); font-size: .72rem; line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  box-shadow: inset 4px 0 10px -4px rgba(0,0,0,.4);
  transform: translateZ(11px);
}
.b3d-front::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 3px 10px 10px 3px;
  background: linear-gradient(105deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 45%);
}
.b3d-spine {
  position: absolute; top: 0; left: 0;
  width: 22px; height: 100%;
  background: linear-gradient(90deg, var(--c2, #5c3220), var(--c1, #8a5a3c));
  transform: rotateY(-90deg) translateZ(11px) translateX(-11px);
  border-radius: 3px 0 0 3px;
}
.b3d-pages {
  position: absolute; top: 3px; right: 0;
  width: 22px; height: calc(100% - 6px);
  background: repeating-linear-gradient(90deg, #f2ece0 0 2px, #d9d0bd 2px 3px);
  transform: rotateY(90deg) translateZ(calc(100% - 60px)) translateX(11px);
  border-radius: 0 2px 2px 0;
}
.b3d-front .b3d-title { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .book3d { width: 92px; height: 132px; }
  .b3d-front { font-size: .62rem; padding: 9px 8px; }
}

/* ---------- Страница жанров ---------- */
.genre-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px; margin-bottom: 56px;
}
.genre-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.genre-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(43,38,32,.08), 0 16px 40px rgba(43,38,32,.10); }
.genre-card h3 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 6px; }
.genre-card .g-icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.genre-card p { color: var(--ink-soft); font-size: .92rem; margin: 0 0 14px; }
.genre-card ul { list-style: none; padding: 0; margin: 0; }
.genre-card li { margin-bottom: 6px; font-size: .9rem; }
.genre-card li::before { content: "→ "; color: var(--accent); }
.genre-card li a { color: var(--ink); }
.genre-card li a:hover { color: var(--accent); }

/* ---------- Архив ---------- */
.arch-year { font-family: var(--serif); font-size: 1.5rem; margin: 36px 0 14px; }
.arch-month { margin: 0 0 22px 8px; padding-left: 18px; border-left: 3px solid var(--line); }
.arch-month h4 { margin: 0 0 8px; font-size: 1rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; font-family: var(--sans); }
.arch-month ul { list-style: none; padding: 0; margin: 0; }
.arch-month li { margin-bottom: 7px; font-size: .95rem; }
.arch-month li .d { color: var(--ink-soft); font-size: .82rem; margin-right: 10px; }
.arch-month li a { color: var(--ink); }
.arch-month li a:hover { color: var(--accent); }

/* ---------- Виджеты в статье (сейчас читаю) ---------- */
.now-reading {
  display: flex; gap: 18px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; margin: 24px 0;
  box-shadow: var(--shadow);
}
.now-reading .nr-info b { font-family: var(--serif); }
.now-reading .nr-info span { display: block; color: var(--ink-soft); font-size: .85rem; margin-top: 2px; }

/* ============================================================
   Бургер-меню (мобильные)
   ============================================================ */
.burger {
  display: none;
  margin-left: auto;
  width: 42px; height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  padding: 74px 20px 18px;
  transform: translateY(-103%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  display: flex; flex-direction: column; gap: 2px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 500;
}
.mobile-menu a:hover { background: var(--tag-bg); text-decoration: none; }
.mobile-menu a.active { color: var(--accent); font-weight: 700; }
.mobile-menu .mobile-theme {
  align-self: flex-start;
  margin: 10px 0 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 1rem;
}
body.menu-locked { overflow: hidden; }

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

/* ============================================================
   Кнопка «наверх», навигация по статьям, «читайте также», печать
   ============================================================ */

.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; }

.post-nav {
  display: flex; gap: 16px; justify-content: space-between;
  margin: 44px 0 0; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.post-nav a {
  max-width: 48%;
  color: var(--ink-soft); font-size: .9rem;
}
.post-nav a:hover { color: var(--accent); text-decoration: none; }
.post-nav a strong { display: block; color: var(--ink); font-size: .95rem; margin-top: 3px; }
.post-nav a:hover strong { color: var(--accent); }
.post-nav .pn-next { text-align: right; margin-left: auto; }
.post-nav .pn-dir { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

.related { margin: 34px 0 0; }
.related h3 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 14px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related li a {
  display: block;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px;
  color: var(--ink); font-size: .92rem;
  transition: border-color .15s ease, transform .15s ease;
}
.related li a:hover { border-color: var(--accent); transform: translateX(4px); text-decoration: none; }
.related li a span { color: var(--ink-soft); font-size: .78rem; display: block; margin-top: 2px; }

@media print {
  .site-header, .site-footer, .to-top, .mobile-menu, .burger,
  .theme-toggle, .subscribe, .post-nav, .related, #dust-canvas { display: none !important; }
  body { background: #fff; color: #000; }
}
