:root {
  --font-serif: "Newsreader", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --bg: #faf7f2;
  --bg-soft: #f2ece2;
  --bg-header: rgba(250, 247, 242, 0.86);
  --bg-elevated: rgba(253, 250, 246, 0.96);
  --bg-backdrop: rgba(28, 25, 23, 0.38);

  --ink: #1c1917;
  --ink-secondary: #57534e;
  --ink-muted: #8c857b;

  --rule: rgba(28, 25, 23, 0.1);
  --rule-strong: rgba(28, 25, 23, 0.22);

  --accent: #1e5649;
  --accent-hover: #154036;
  --accent-soft: rgba(30, 86, 73, 0.08);
  --accent-border: rgba(30, 86, 73, 0.24);
  --warm-accent: #b4533c;
  --danger: #b91c1c;
  --danger-soft: rgba(185, 28, 28, 0.08);

  --sk-base: #ece5d9;
  --sk-shine: #f6f1e8;

  --code-bg: #201d1a;
  --code-head: #282420;
  --code-border: rgba(255, 255, 255, 0.08);
  --code-ink: #ebe5dc;

  --shadow-sheet: 0 24px 60px -20px rgba(28, 25, 23, 0.22), 0 4px 16px rgba(28, 25, 23, 0.06);
  --shadow-art: 0 18px 40px -24px rgba(28, 25, 23, 0.22);
}

html[data-theme="dark"] {
  --bg: #141311;
  --bg-soft: #1d1b18;
  --bg-header: rgba(20, 19, 17, 0.86);
  --bg-elevated: rgba(28, 26, 23, 0.96);
  --bg-backdrop: rgba(0, 0, 0, 0.62);

  --ink: #efece6;
  --ink-secondary: #a8a29e;
  --ink-muted: #78716c;

  --rule: rgba(239, 236, 230, 0.11);
  --rule-strong: rgba(239, 236, 230, 0.24);

  --accent: #68b8a2;
  --accent-hover: #83ccb8;
  --accent-soft: rgba(104, 184, 162, 0.12);
  --accent-border: rgba(104, 184, 162, 0.3);
  --warm-accent: #d9826c;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);

  --sk-base: #1e1c19;
  --sk-shine: #2a2723;

  --code-bg: #1b1916;
  --code-head: #221f1b;
  --code-border: rgba(239, 236, 230, 0.09);
  --code-ink: #e8e2d9;

  --shadow-sheet: 0 28px 68px -18px rgba(0, 0, 0, 0.62);
  --shadow-art: 0 20px 44px -22px rgba(0, 0, 0, 0.55);
}

html.lz-auth-intercepting #ghost-portal-root {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

body.lz-modal-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

.lz-container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 32px;
}

.lz-page-shell {
  flex: 1;
}

/* =========================================================
   Top Hairline Progress Bars
   ========================================================= */
.lz-route-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  transition: width 0.35s ease, opacity 0.2s ease;
}

.lz-route-bar.is-loading {
  opacity: 1;
  width: 78%;
}

.lz-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 650;
  pointer-events: none;
}

/* =========================================================
   Editorial Masthead Header
   ========================================================= */
.lz-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 76px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, backdrop-filter 0.2s ease;
}

.lz-header.is-scrolled {
  background: var(--bg-header);
  border-bottom-color: var(--rule);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lz-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lz-header-left {
  display: flex;
  align-items: baseline;
  gap: 36px;
}

.lz-wordmark {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}

.lz-wordmark.is-footer {
  font-size: 1.3rem;
}

.lz-wordmark.is-modal {
  font-size: 1.38rem;
}

.lz-wordmark-dot {
  color: var(--accent);
}

.lz-nav-desktop .nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.lz-nav-desktop .nav a {
  position: relative;
  padding: 6px 0;
  font-size: 0.94rem;
  font-weight: 450;
  color: var(--ink-secondary);
  transition: color 0.18s ease;
}

.lz-nav-desktop .nav a:hover,
.lz-nav-desktop .nav .nav-current a {
  color: var(--ink);
}

.lz-nav-desktop .nav .nav-current a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
}

.lz-actions-desktop {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lz-actions-mobile {
  display: none;
  align-items: center;
  gap: 6px;
}

.lz-ghost-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.lz-ghost-icon:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.lz-ghost-icon svg {
  width: 18px;
  height: 18px;
}

.lz-burger-close {
  display: none;
}

#lz-menu-toggle[aria-expanded="true"] .lz-burger-open {
  display: none;
}

#lz-menu-toggle[aria-expanded="true"] .lz-burger-close {
  display: block;
}

.lz-text-action,
.lz-member-link {
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.16s ease;
}

.lz-text-action:hover,
.lz-member-link:hover {
  color: var(--ink);
}

.lz-pill-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.88rem;
  font-weight: 550;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.lz-pill-action:hover {
  background: var(--accent);
  color: #faf7f2;
  transform: translateY(-1px);
}

html[data-theme="dark"] .lz-pill-action:hover {
  color: #141311;
}

.lz-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.lz-pill-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.lz-pill-block {
  width: 100%;
  padding-block: 11px;
}

.lz-mobile-drawer {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-sheet);
  padding: 20px 0 26px;
  z-index: 190;
}

.lz-mobile-drawer[hidden] {
  display: none;
}

.lz-nav-mobile .nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lz-nav-mobile .nav a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink-secondary);
}

.lz-nav-mobile .nav .nav-current a {
  color: var(--accent);
}

.lz-mobile-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

/* =========================================================
   Homepage Magazine Cover Spread
   ========================================================= */
.lz-main {
  padding-top: 28px;
  padding-bottom: 84px;
}

.lz-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 36px 0 64px;
}

.lz-kicker {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.lz-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--rule-strong);
}

.lz-spread-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 3.8vw, 3.1rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

.lz-spread-lead {
  margin: 18px 0 0;
  max-width: 44ch;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--ink-secondary);
}

.lz-spread-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.lz-editorial-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 3px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.lz-editorial-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.lz-editorial-link.is-muted {
  color: var(--ink-secondary);
  border-bottom-color: transparent;
}

.lz-editorial-link.is-muted:hover {
  color: var(--ink);
  border-bottom-color: var(--rule-strong);
}

.lz-art-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--ink);
  background:
    radial-gradient(240px 210px at 78% 24%, rgba(217, 152, 95, 0.28), transparent 72%),
    radial-gradient(300px 240px at 20% 82%, rgba(30, 86, 73, 0.2), transparent 72%),
    linear-gradient(145deg, #efe7da 0%, #e5dccd 100%);
  box-shadow: var(--shadow-art);
}

html[data-theme="dark"] .lz-art-frame {
  background:
    radial-gradient(240px 210px at 78% 24%, rgba(217, 130, 108, 0.22), transparent 72%),
    radial-gradient(300px 240px at 20% 82%, rgba(104, 184, 162, 0.18), transparent 72%),
    linear-gradient(145deg, #211e1a 0%, #181613 100%);
}

.lz-art-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lz-art-colophon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

/* =========================================================
   Journal Essay Index (Hairline Rows)
   ========================================================= */
.lz-journal {
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.lz-journal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.lz-journal-heading {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 500;
}

.lz-journal-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--ink);
}

.lz-journal-heading span {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.lz-journal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.lz-filter-link {
  font-size: 0.86rem;
  color: var(--ink-muted);
  transition: color 0.16s ease;
}

.lz-filter-link:hover {
  color: var(--accent);
}

.lz-entry-list {
  display: flex;
  flex-direction: column;
}

.lz-entry {
  border-bottom: 1px solid var(--rule);
}

.lz-entry:last-child {
  border-bottom: 0;
}

.lz-entry-link {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 30px 10px;
  margin-inline: -10px;
  border-radius: 14px;
  transition: background-color 0.18s ease;
}

.lz-entry-link:hover {
  background: var(--bg-soft);
}

.lz-entry-aside {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.lz-entry-date {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--ink-secondary);
  font-variant-numeric: tabular-nums;
}

.lz-entry-read {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.lz-entry-body {
  min-width: 0;
}

.lz-entry-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.lz-entry-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.52rem;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.16s ease;
}

.lz-entry-link:hover .lz-entry-title {
  color: var(--accent);
}

.lz-entry-excerpt {
  margin: 8px 0 0;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lz-entry-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  transition: color 0.16s ease, transform 0.16s ease;
}

.lz-entry-link:hover .lz-entry-more {
  color: var(--accent);
  transform: translateX(3px);
}

.lz-entry-thumb {
  width: 210px;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
}

.lz-entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   Gentle Editorial Letter Strip
   ========================================================= */
.lz-letter-strip {
  margin-top: 48px;
  padding: 36px 40px;
  border-radius: 18px;
  background: var(--bg-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lz-letter-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 600;
  color: var(--ink);
}

.lz-letter-desc {
  margin: 6px 0 0;
  max-width: 52ch;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

/* =========================================================
   Pagination & Archive Masthead
   ========================================================= */
.lz-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.lz-page-info {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.lz-archive-head {
  padding: 20px 0 36px;
}

.lz-back-link {
  font-size: 0.88rem;
  color: var(--ink-muted);
  transition: color 0.16s ease;
}

.lz-back-link:hover {
  color: var(--accent);
}

.lz-archive-head .lz-kicker {
  margin-top: 18px;
}

/* =========================================================
   Long-form Essay & About Reading Layout
   ========================================================= */
.lz-reading-shell {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.lz-reading-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 16px;
}

.lz-essay-topmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.lz-essay-tag {
  color: var(--accent);
  font-weight: 500;
}

.lz-meta-sep {
  opacity: 0.5;
}

.lz-essay-title {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.lz-essay-excerpt {
  margin: 14px 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.lz-essay-byline {
  margin-top: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lz-essay-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.lz-essay-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.lz-share-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.lz-share-link:hover,
.lz-share-link.is-copied {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

.lz-share-link svg {
  width: 14px;
  height: 14px;
}

.lz-essay-cover {
  margin: 28px 0 0;
  border-radius: 14px;
  overflow: hidden;
}

.lz-essay-cover figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
}

/* =========================================================
   Prose Typography & Minimal Code Blocks
   ========================================================= */
.lz-prose {
  padding-top: 28px;
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--ink);
  word-break: break-word;
}

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

.lz-prose p {
  margin: 1.25em 0;
}

.lz-prose h2 {
  margin: 2.1em 0 0.7em;
  padding-bottom: 0.35em;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.35;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 96px;
}

.lz-prose h3 {
  margin: 1.75em 0 0.5em;
  font-family: var(--font-serif);
  font-size: 1.26rem;
  font-weight: 600;
  line-height: 1.4;
  scroll-margin-top: 96px;
}

.lz-prose h4 {
  margin: 1.45em 0 0.45em;
  font-size: 1.08rem;
  font-weight: 600;
  scroll-margin-top: 96px;
}

.lz-heading-anchor {
  margin-left: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.86em;
  color: var(--ink-muted);
  opacity: 0;
  transition: opacity 0.16s ease, color 0.16s ease;
}

.lz-prose :is(h2, h3, h4):hover .lz-heading-anchor {
  opacity: 1;
  color: var(--accent);
}

.lz-prose a:not(.lz-directory-row):not(.lz-heading-anchor) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 4px;
}

.lz-prose a:not(.lz-directory-row):not(.lz-heading-anchor):hover {
  text-decoration-color: var(--accent);
}

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

.lz-prose li + li {
  margin-top: 0.45em;
}

.lz-prose :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.15em 0.42em;
  border-radius: 5px;
  background: var(--bg-soft);
  color: var(--accent);
}

.lz-code-block {
  margin: 1.6em 0;
  border-radius: 12px;
  border: 1px solid var(--code-border);
  background: var(--code-bg);
  overflow: hidden;
}

.lz-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--code-head);
  border-bottom: 1px solid var(--code-border);
}

.lz-code-lang {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #a8a29e;
  text-transform: lowercase;
}

.lz-code-copy {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #d6d3d1;
  font-size: 0.74rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lz-code-copy:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.lz-code-copy.is-copied {
  border-color: rgba(104, 184, 162, 0.6);
  color: #68b8a2;
}

.lz-code-block pre,
.lz-prose > pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.87rem;
  line-height: 1.68;
  color: var(--code-ink);
  background: var(--code-bg);
}

.lz-prose > pre {
  margin: 1.6em 0;
  border-radius: 12px;
}

.lz-prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--ink-secondary);
}

.lz-prose hr {
  width: 64px;
  height: 1px;
  border: 0;
  background: var(--rule-strong);
  margin: 2.5em auto;
}

.lz-prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.94rem;
}

.lz-prose th,
.lz-prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.lz-prose th {
  font-weight: 600;
  border-bottom-color: var(--rule-strong);
}

.lz-prose figure {
  margin: 1.8em 0;
}

.lz-prose img {
  border-radius: 12px;
}

.kg-width-wide,
.kg-width-full {
  width: 100%;
  max-width: 100%;
}

.kg-width-wide img,
.kg-width-full img {
  width: 100%;
}

/* =========================================================
   Floating Margin TOC & Inline TOC
   ========================================================= */
.lz-toc-float {
  position: fixed;
  top: 120px;
  right: max(24px, calc((100vw - 720px) / 2 - 236px));
  width: 196px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding-left: 14px;
  border-left: 1px solid var(--rule);
}

.lz-toc-float[hidden] {
  display: none;
}

.lz-toc-float-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.lz-toc-float-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lz-toc-link {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

.lz-toc-link.is-h3 {
  padding-left: 12px;
  font-size: 0.8rem;
}

.lz-toc-link:hover,
.lz-toc-link.is-active {
  color: var(--accent);
}

.lz-toc-inline {
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.lz-toc-inline summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.lz-toc-inline-list {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 1239px) {
  .lz-toc-float {
    display: none;
  }
}

@media (min-width: 1240px) {
  .lz-toc-inline {
    display: none;
  }
}

/* =========================================================
   Essay Footer & Prev/Next
   ========================================================= */
.lz-essay-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.lz-essay-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.lz-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.lz-pn-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
}

.lz-pn-link.is-next {
  text-align: right;
}

.lz-pn-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.lz-pn-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 550;
  color: var(--ink);
  transition: color 0.16s ease;
}

.lz-pn-link:hover .lz-pn-title {
  color: var(--accent);
}

/* =========================================================
   Warm Shimmer Skeletons & Comments Section
   ========================================================= */
@keyframes lz-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.lz-img-skeleton {
  background: linear-gradient(90deg, var(--sk-base) 25%, var(--sk-shine) 50%, var(--sk-base) 75%);
  background-size: 200% 100%;
  animation: lz-shimmer 1.5s infinite linear;
}

.lz-img-skeleton.is-loaded {
  background: transparent;
  animation: none;
}

.lz-comments-wrap {
  margin-top: 48px;
  padding: 28px 30px;
  border-radius: 16px;
  background: var(--bg-soft);
}

.lz-comments-wrap[hidden],
.lz-comments-wrap:has(.lz-comments-inner:empty) {
  display: none;
}

.lz-comments-wrap[data-comments-theme="light"] {
  background: #f5f0e8;
}

.lz-comments-wrap[data-comments-theme="dark"] {
  background: #1c1a17;
}

.lz-skeleton-comments {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lz-comments-wrap.is-ready .lz-skeleton-comments {
  display: none;
}

.lz-sk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lz-sk-comment {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0 4px;
}

.lz-sk-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--sk-base) 25%, var(--sk-shine) 50%, var(--sk-base) 75%);
  background-size: 200% 100%;
  animation: lz-shimmer 1.5s infinite linear;
}

.lz-sk-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lz-sk-line {
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sk-base) 25%, var(--sk-shine) 50%, var(--sk-base) 75%);
  background-size: 200% 100%;
  animation: lz-shimmer 1.5s infinite linear;
}

.lz-sk-w16 { width: 16%; }
.lz-sk-w32 { width: 30%; height: 14px; }
.lz-sk-w45 { width: 46%; }
.lz-sk-w70 { width: 70%; }
.lz-sk-w90 { width: 92%; }

/* =========================================================
   About Page Editorial Contact Directory (Hairline List)
   ========================================================= */
.page-about .lz-prose h2 + ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 8px;
  border-top: 1px solid var(--rule);
}

.page-about .lz-prose h2 + ul li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
}

.lz-directory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 8px;
  margin-inline: -8px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lz-directory-row:hover {
  background: var(--bg-soft);
}

.lz-directory-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 550;
}

.lz-directory-left svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
}

.lz-directory-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.lz-directory-arrow {
  transition: transform 0.16s ease, color 0.16s ease;
}

.lz-directory-row:hover .lz-directory-right,
.lz-directory-row:hover .lz-directory-arrow {
  color: var(--accent);
}

.lz-directory-row:hover .lz-directory-arrow {
  transform: translate(2px, -2px);
}

/* =========================================================
   Error Page & Minimal Editorial Colophon Footer
   ========================================================= */
.lz-error-wrap {
  max-width: 560px;
  padding: 64px 0;
}

.lz-error-wrap .lz-pill-action {
  margin-top: 24px;
}

.lz-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 36px;
}

.lz-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lz-footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}

.lz-footer-copy {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.lz-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lz-footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--ink-muted);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.lz-footer-icon:hover {
  color: var(--accent);
  background: var(--bg-soft);
}

.lz-footer-icon svg {
  width: 16px;
  height: 16px;
}

.lz-footer-sep {
  margin: 0 4px;
  color: var(--ink-muted);
  opacity: 0.5;
}

.lz-footer-ghost {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.lz-footer-ghost:hover {
  color: var(--ink);
}

/* =========================================================
   Warm Editorial Auth Modal & Search Overlay
   ========================================================= */
@keyframes lz-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lz-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lz-modal[hidden] {
  display: none;
}

#lz-search-modal {
  align-items: flex-start;
  padding-top: min(12vh, 96px);
}

.lz-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-backdrop);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.lz-modal-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sheet);
  animation: lz-modal-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lz-auth-sheet {
  max-width: 420px;
  border-radius: 22px;
  padding: 28px 32px 32px;
}

.lz-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.lz-modal-body .lz-kicker {
  margin-bottom: 10px;
}

.lz-auth-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}

.lz-auth-tab {
  position: relative;
  padding: 8px 0 11px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.16s ease;
}

.lz-auth-tab:hover {
  color: var(--ink);
}

.lz-auth-tab.is-active {
  color: var(--ink);
  font-weight: 600;
}

.lz-auth-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--accent);
}

.lz-modal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.lz-modal-sub {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--accent);
}

.lz-modal-desc {
  margin: 8px 0 0;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.lz-auth-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lz-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lz-field[hidden] {
  display: none;
}

.lz-field-label {
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.lz-field-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.lz-field-input:focus {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lz-otc-input {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  letter-spacing: 0.38em;
}

.lz-alert-error {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.86rem;
  line-height: 1.5;
}

.lz-alert-error[hidden] {
  display: none;
}

.lz-auth-submit {
  position: relative;
}

.lz-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: lz-spin 0.65s linear infinite;
}

.lz-auth-submit.is-loading .lz-spinner {
  display: inline-block;
}

@keyframes lz-spin {
  to {
    transform: rotate(360deg);
  }
}

.lz-auth-switch {
  margin-top: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.lz-link-btn {
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lz-sent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.lz-sent-badge svg {
  width: 22px;
  height: 22px;
}

.lz-sent-email {
  color: var(--ink);
  font-weight: 600;
}

.lz-sent-actions,
.lz-modal-actions-stack {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lz-text-danger {
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 0.88rem;
  cursor: pointer;
}

/* Search Sheet */
.lz-search-sheet {
  max-width: 580px;
  border-radius: 20px;
  overflow: hidden;
}

.lz-search-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}

.lz-search-head-icon {
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.lz-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  outline: none;
}

.lz-search-input::placeholder {
  color: var(--ink-muted);
}

.lz-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.lz-search-clear,
.lz-search-esc {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.74rem;
  cursor: pointer;
}

.lz-search-clear {
  border: 0;
}

.lz-search-clear:hover,
.lz-search-esc:hover {
  color: var(--ink);
}

.lz-search-body {
  max-height: min(56vh, 400px);
  overflow-y: auto;
  padding: 12px;
}

.lz-search-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px;
}

.lz-search-skeleton[hidden] {
  display: none;
}

.lz-sk-search-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.lz-search-group {
  margin: 6px 10px 6px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lz-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.lz-search-item.is-active,
.lz-search-item:hover {
  background: var(--bg-soft);
}

.lz-search-item-main {
  min-width: 0;
  flex: 1;
}

.lz-search-item-title {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  font-weight: 550;
  color: var(--ink);
}

.lz-search-item-sub {
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lz-search-item-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.lz-search-item mark {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 2px;
}

.lz-search-empty {
  padding: 36px 16px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.lz-search-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 860px) {
  .lz-spread {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 16px 0 44px;
  }

  .lz-spread-art {
    max-width: 440px;
  }

  .lz-entry-link {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 10px;
  }

  .lz-entry-aside {
    flex-direction: row;
    gap: 12px;
    padding-top: 0;
  }

  .lz-entry-thumb {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 767px) {
  .lz-container {
    padding-inline: 22px;
  }

  .lz-header {
    height: 66px;
  }

  .lz-mobile-drawer {
    top: 66px;
  }

  .lz-nav-desktop,
  .lz-actions-desktop {
    display: none;
  }

  .lz-actions-mobile {
    display: flex;
  }

  .lz-main {
    padding-top: 16px;
    padding-bottom: 56px;
  }

  .lz-spread-title {
    font-size: 1.92rem;
    text-wrap: initial;
  }

  .lz-letter-strip {
    padding: 28px 24px;
  }

  .lz-comments-wrap {
    padding: 22px 20px;
  }

  .lz-prev-next {
    grid-template-columns: 1fr;
  }

  .lz-pn-link.is-next {
    text-align: left;
  }

  .lz-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .lz-modal {
    padding: 14px;
  }

  .lz-auth-sheet {
    padding: 24px 22px 26px;
  }

  .lz-directory-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
