@charset "UTF-8";

@font-face {
  font-family: "GlassBlogText";
  src:
    local("Inter 28pt SemiBold"),
    local("Inter 28pt Semibold"),
    local("Inter SemiBold"),
    local("Inter Semi Bold"),
    local("Inter-SemiBold"),
    local("Inter");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF,
    U+0100-024F,
    U+1E00-1EFF;
}

@font-face {
  font-family: "GlassBlogText";
  src:
    local("Source Han Sans CN Heavy"),
    local("SourceHanSansCN-Heavy"),
    local("Source Han Sans SC Heavy"),
    local("思源黑体 CN Heavy"),
    local("思源黑体CN Heavy"),
    local("思源黑体 CN"),
    local("思源黑体CN"),
    local("Noto Sans CJK SC Heavy");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range:
    U+2000-206F,
    U+2E80-2EFF,
    U+3000-303F,
    U+3400-4DBF,
    U+4E00-9FFF,
    U+F900-FAFF,
    U+FF00-FFEF;
}

:root {
  color-scheme: dark;
  --cursor-dot: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E%3Ccircle cx=%226%22 cy=%226%22 r=%223.1%22 fill=%22white%22/%3E%3Ccircle cx=%226%22 cy=%226%22 r=%225.1%22 fill=%22none%22 stroke=%22white%22 stroke-opacity=%220.34%22/%3E%3C/svg%3E") 6 6;
  --bg: #202124;
  --bg-soft: #2c2d31;
  --text: #f0f1f2;
  --muted: #a9adb4;
  --muted-strong: #d4d6da;
  --line: rgba(255, 255, 255, 0.18);
  --line-dark: rgba(0, 0, 0, 0.26);
  --glass: rgba(255, 255, 255, 0.065);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-wash: rgba(255, 255, 255, 0.05);
  --chip-text: #f8f9fb;
  --chip-muted: #e1e4e9;
  --chip-bg: rgba(255, 255, 255, 0.13);
  --chip-bg-soft: rgba(255, 255, 255, 0.1);
  --chip-line: rgba(255, 255, 255, 0.24);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.22);
  --font-main: "GlassBlogText", "Inter", "Source Han Sans CN", "思源黑体 CN", "Noto Sans CJK SC", "PingFang SC", sans-serif;
  --weight-main: 700;
  --weight-strong: 700;
  --radius: 8px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

::selection {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  text-shadow: none;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-main);
  font-weight: var(--weight-main);
  font-optical-sizing: auto;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0 24%, rgba(255, 255, 255, 0.12) 28%, transparent 31%),
    linear-gradient(106deg, transparent 0 16%, rgba(123, 128, 136, 0.11) 17%, rgba(123, 128, 136, 0.23) 18% 33%, rgba(123, 128, 136, 0.1) 34%, transparent 35% 56%, rgba(255, 255, 255, 0.12) 57%, rgba(255, 255, 255, 0.3) 58% 71%, rgba(255, 255, 255, 0.11) 72%, transparent 73%),
    linear-gradient(24deg, transparent 0 40%, rgba(83, 88, 96, 0.08) 41%, rgba(83, 88, 96, 0.17) 42% 57%, rgba(83, 88, 96, 0.07) 58%, transparent 59%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  background-position:
    0 0,
    0% 48%,
    100% 52%,
    0 0;
  background-size:
    120% 120%,
    132% 132%,
    142% 142%,
    100% 100%;
  animation: cross-background-drift 10s ease-in-out infinite alternate;
  overflow-x: hidden;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor label,
body.has-custom-cursor summary,
body.has-custom-cursor [role="button"] {
  cursor: var(--cursor-dot), auto;
}

body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select,
body.has-custom-cursor [contenteditable="true"],
body.has-custom-cursor .rich-text-block,
body.has-custom-cursor .block-editor {
  cursor: text;
}

body.opening-active {
  overflow: hidden;
}

@keyframes cross-background-drift {
  0% {
    background-position:
      0 0,
      0% 48%,
      100% 52%,
      0 0;
  }

  50% {
    background-position:
      0 0,
      7% 56%,
      92% 44%,
      0 0;
  }

  100% {
    background-position:
      0 0,
      12% 46%,
      86% 58%,
      0 0;
  }
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.38;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.36) 1px, transparent 0);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

button,
input {
  font: inherit;
}

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

.cursor-trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none !important;
  mix-blend-mode: screen;
  user-select: none;
}

.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.28), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(232, 235, 239, 0.2) 46%, rgba(185, 190, 198, 0.14)),
    rgba(235, 237, 240, 0.18);
  backdrop-filter: blur(28px) saturate(128%) brightness(1.13);
  -webkit-backdrop-filter: blur(28px) saturate(128%) brightness(1.13);
  transform: scale(1.008);
  transition:
    opacity 380ms ease,
    transform 620ms ease;
}

.page-transition-overlay::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.36) 1px, transparent 0);
  background-size: 4px 4px;
  content: "";
  opacity: 0.13;
  mix-blend-mode: soft-light;
}

.page-transition-overlay.is-visible {
  opacity: 1;
  transform: scale(1);
}

.page-transition-overlay.is-entering {
  transition:
    opacity 560ms ease,
    transform 680ms ease;
}

.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 10120;
  display: grid;
  place-items: center;
  padding: 28px;
  color: rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%, rgba(255, 255, 255, 0.05)),
    rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(34px) saturate(135%) brightness(0.74);
  -webkit-backdrop-filter: blur(34px) saturate(135%) brightness(0.74);
  opacity: 1;
  transition:
    opacity 1100ms ease,
    backdrop-filter 1100ms ease,
    -webkit-backdrop-filter 1100ms ease;
}

.opening-screen::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.24) 1px, transparent 0);
  background-size: 4px 4px;
  content: "";
  opacity: 0.1;
  mix-blend-mode: soft-light;
}

.opening-copy {
  position: relative;
  width: min(960px, 94vw);
  text-align: center;
  transform: translateY(10px) scale(0.985);
  animation: opening-copy-arrive 1200ms ease forwards;
}

.opening-copy p,
.opening-copy h2 {
  font-family: "Palace Script MT", "Palace Script", cursive;
  font-weight: 400;
  letter-spacing: 0;
}

.opening-copy p {
  margin: 0 0 18px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.9;
}

.opening-copy h2 {
  max-width: 900px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(34px, 5.6vw, 74px);
  line-height: 1.02;
}

.opening-screen.is-dispersing .opening-copy {
  animation: opening-ink-disperse 1600ms ease forwards;
}

.opening-screen.is-leaving {
  opacity: 0;
  backdrop-filter: blur(0) saturate(100%) brightness(1);
  -webkit-backdrop-filter: blur(0) saturate(100%) brightness(1);
}

@keyframes opening-copy-arrive {
  0% {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(22px) scale(0.965);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes opening-ink-disperse {
  0% {
    opacity: 1;
    filter: blur(0);
    letter-spacing: 0;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(24px);
    letter-spacing: 0.08em;
    transform: translateY(-18px) scale(1.045);
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--text);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform: translateY(-140%);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient {
  position: fixed;
  inset: -18vh -12vw;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(116deg, transparent 0 20%, rgba(255, 255, 255, 0.08) 21%, rgba(255, 255, 255, 0.25) 22% 33%, rgba(255, 255, 255, 0.08) 34%, transparent 35% 53%, rgba(92, 99, 110, 0.05) 54%, rgba(92, 99, 110, 0.14) 55% 66%, rgba(92, 99, 110, 0.05) 67%, transparent 68%),
    linear-gradient(151deg, transparent 0 36%, rgba(255, 255, 255, 0.06) 37%, rgba(255, 255, 255, 0.18) 38% 48%, rgba(255, 255, 255, 0.06) 49%, transparent 50%);
  filter: blur(3px) saturate(112%);
  transform: translateZ(0);
}

.ambient::after {
  position: absolute;
  inset: 8vh 10vw;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(102deg, transparent 0 25%, rgba(255, 255, 255, 0.045) 26%, rgba(255, 255, 255, 0.14) 27% 30%, rgba(255, 255, 255, 0.04) 31%, transparent 33%),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.08), transparent 28%);
  opacity: 0.42;
  mix-blend-mode: screen;
}

body.is-previewing-image {
  overflow: hidden;
}

.ambient-bar {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(98, 105, 116, 0.11)),
    rgba(130, 136, 146, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 30px 80px rgba(70, 76, 86, 0.12),
    0 0 70px rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.78) 2.6%, #000 6.5%, #000 93.5%, rgba(0, 0, 0, 0.78) 97.4%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 3.2%, #000 7.4%, #000 92.6%, rgba(0, 0, 0, 0.78) 96.8%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.78) 2.6%, #000 6.5%, #000 93.5%, rgba(0, 0, 0, 0.78) 97.4%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 3.2%, #000 7.4%, #000 92.6%, rgba(0, 0, 0, 0.78) 96.8%, transparent 100%);
  -webkit-mask-composite: source-in;
  will-change: transform;
}

.ambient-bar::before,
.ambient-bar::after {
  position: absolute;
  inset: -28% -54%;
  pointer-events: none;
  content: "";
  opacity: 0;
  mix-blend-mode: screen;
  transform: translate3d(-72%, 18%, 0) rotate(16deg);
}

.ambient-bar::before {
  background:
    linear-gradient(
      90deg,
      transparent 0 42%,
      rgba(255, 255, 255, 0.04) 47%,
      rgba(255, 255, 255, 0.26) 50%,
      rgba(255, 255, 255, 0.05) 54%,
      transparent 60% 100%
    );
  filter: blur(8px);
  animation: glass-glow-sweep 18s ease-in-out infinite;
}

.ambient-bar::after {
  inset: -42% -68%;
  background:
    linear-gradient(
      90deg,
      transparent 0 46%,
      rgba(255, 255, 255, 0.08) 49%,
      rgba(255, 255, 255, 0.18) 50%,
      rgba(255, 255, 255, 0.04) 53%,
      transparent 58% 100%
    );
  filter: blur(18px);
  animation: glass-glow-sweep-soft 24s ease-in-out infinite;
}

.ambient-bar-a {
  width: 62vw;
  height: 46vh;
  right: -6vw;
  top: 4vh;
  transform: translate3d(0, 0, 0) rotate(17deg) skewX(-8deg);
}

.ambient-bar-b {
  width: 72vw;
  height: 34vh;
  left: -14vw;
  bottom: 4vh;
  transform: translate3d(0, 0, 0) rotate(-13deg) skewX(10deg);
}

.ambient-bar-a::before {
  animation-delay: -4s;
}

.ambient-bar-a::after {
  animation-delay: -11s;
}

.ambient-bar-b::before {
  animation-delay: -12s;
  animation-duration: 22s;
}

.ambient-bar-b::after {
  animation-delay: -2s;
  animation-duration: 28s;
}

@keyframes glass-glow-sweep {
  0%,
  52% {
    opacity: 0;
    transform: translate3d(-76%, 16%, 0) rotate(16deg);
  }

  62% {
    opacity: 0.52;
  }

  76% {
    opacity: 0.18;
  }

  84%,
  100% {
    opacity: 0;
    transform: translate3d(76%, -16%, 0) rotate(16deg);
  }
}

@keyframes glass-glow-sweep-soft {
  0%,
  58% {
    opacity: 0;
    transform: translate3d(-64%, -10%, 0) rotate(-10deg);
  }

  68% {
    opacity: 0.34;
  }

  80% {
    opacity: 0.12;
  }

  88%,
  100% {
    opacity: 0;
    transform: translate3d(68%, 12%, 0) rotate(-10deg);
  }
}

@keyframes ambient-haze {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(1.2vw, -1vh, 0);
  }
}

@keyframes glass-drift-a {
  0% {
    transform: translate3d(0, 0, 0) rotate(17deg) skewX(-8deg);
  }

  50% {
    transform: translate3d(-4vw, 3.2vh, 0) rotate(19.2deg) skewX(-6.8deg) scale(1.025);
  }

  100% {
    transform: translate3d(5vw, -3.8vh, 0) rotate(14.6deg) skewX(-9deg) scale(0.975);
  }
}

@keyframes glass-drift-b {
  0% {
    transform: translate3d(0, 0, 0) rotate(-13deg) skewX(10deg);
  }

  50% {
    transform: translate3d(4.4vw, -2.8vh, 0) rotate(-11.4deg) skewX(9.2deg) scale(1.02);
  }

  100% {
    transform: translate3d(-5.2vw, 3.2vh, 0) rotate(-15.2deg) skewX(10.9deg) scale(0.98);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-height);
  padding: 16px clamp(16px, 4vw, 42px) 10px;
  transition: padding 220ms ease;
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1160px, 100%);
  min-height: 48px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    var(--glass);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -22px 40px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(34px) saturate(170%);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  position: relative;
  overflow: hidden;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.is-scrolled .site-header {
  padding-top: 10px;
}

.is-scrolled .nav-shell {
  border-color: rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.09)),
    rgba(255, 255, 255, 0.088);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -22px 40px rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.nav-shell::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.4), transparent 28%),
    linear-gradient(292deg, rgba(80, 86, 95, 0.08), transparent 48%);
}

.brand,
.nav-links,
.segmented,
.search-field,
.status-panel,
.featured-post,
.post-card,
.note-panel,
.about-panel,
.reader-card,
.compose-panel,
.loading-state {
  border: 1px solid var(--line);
  border-bottom-color: var(--line-dark);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), var(--glass-wash) 44%, rgba(255, 255, 255, 0.08)),
    var(--glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -18px 36px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(34px) saturate(165%);
  -webkit-backdrop-filter: blur(34px) saturate(165%);
}

.brand,
.nav-links a,
.segment,
.read-link,
.manage-link,
.post-card,
.featured-post,
.featured-post-link,
.neighbor-card,
.secondary-button,
.publish-button,
.copy-code-button {
  transition:
    transform 170ms ease,
    filter 170ms ease,
    background-color 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.brand:active,
.nav-links a:active,
.segment:active,
.read-link:active,
.manage-link:active,
.post-card:active,
.featured-post:active,
.featured-post-link:active,
.neighbor-card:active,
.secondary-button:active,
.publish-button:active,
.copy-code-button:active {
  transform: scale(0.985);
  filter: brightness(1.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: var(--weight-strong);
}

.brand-mark {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.18)),
    linear-gradient(315deg, rgba(35, 37, 42, 0.18), transparent);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.66);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 3px;
  border-radius: var(--radius);
}

.nav-links a,
.nav-links button {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted-strong);
  background: transparent;
  font-family: var(--font-main);
  font-size: 13px;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 54px auto 0;
}

.profile-dock {
  position: fixed;
  top: 48vh;
  left: max(18px, calc((100vw - 1160px) / 2 - 370px));
  z-index: 3;
  width: 320px;
  padding: 28px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(32, 34, 38, 0.46);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(28px) saturate(155%);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
  transform: translateY(-50%);
}

.profile-dock::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 92px;
  height: 10px;
  pointer-events: none;
  border-radius: 999px 14px 999px 18px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
  transform: rotate(-4deg);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 44px;
  font-weight: var(--weight-strong);
}

.profile-copy {
  display: grid;
  gap: 8px;
}

.profile-copy strong {
  font-size: 26px;
  line-height: 1.15;
}

.profile-copy span,
.profile-dock p,
.profile-meta {
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.7;
}

.profile-dock p {
  margin: 22px 0;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.profile-meta span {
  color: var(--chip-muted);
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: var(--chip-bg-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
}

.intro-copy {
  min-height: 298px;
  padding: clamp(22px, 4vw, 46px) 0;
}

.kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: var(--weight-strong);
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: 56px;
  line-height: 1.08;
  font-weight: var(--weight-strong);
}

.script-hero-title {
  max-width: 980px;
  font-family: "Palace Script MT", "Palace Script", cursive;
  font-size: clamp(58px, 7.2vw, 82px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.96;
  text-wrap: balance;
}

.intro-text {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.9;
}

.status-panel {
  position: relative;
  overflow: hidden;
  align-self: end;
  padding: 8px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: panel-float-side 7s ease-in-out infinite alternate;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-main);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row span {
  color: var(--muted);
  font-size: 13px;
}

.status-row strong {
  color: var(--text);
  font-size: 14px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 14px;
  align-items: center;
  margin: 36px 0 18px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-height: 44px;
  padding: 4px;
  border-radius: var(--radius);
}

.segment {
  flex: 0 0 auto;
  min-width: 70px;
  height: 34px;
  padding: 0 10px;
  color: var(--muted-strong);
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-main);
  font-size: 13px;
}

.segment.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 18px rgba(35, 38, 44, 0.08);
}

.search-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
}

.search-icon {
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.search-icon::after {
  display: block;
  width: 6px;
  height: 2px;
  margin: 9px 0 0 9px;
  content: "";
  background: var(--muted);
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-field input {
  min-width: 0;
  width: 100%;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-main);
  font-size: 14px;
}

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

.section-heading {
  position: relative;
  margin: 36px 0 18px;
}

.section-heading::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: min(180px, 42vw);
  height: 10px;
  border-radius: 999px 16px 999px 18px;
  background: rgba(255, 255, 255, 0.22);
  content: "";
  filter: blur(0.2px);
  transform: rotate(-1.2deg);
}

.section-heading h2 {
  max-width: 680px;
  margin: 0;
  font-size: 34px;
  line-height: 1.16;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.featured-post,
.post-card,
.archive-panel,
.tag-cloud-panel,
.tag-result-panel,
.note-panel,
.about-panel,
.reader-card,
.compose-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -28px 48px rgba(255, 255, 255, 0.06);
}

.status-panel::before,
.featured-post::before,
.post-card::before,
.archive-panel::before,
.tag-cloud-panel::before,
.tag-result-panel::before,
.note-panel::before,
.about-panel::before,
.reader-card::before,
.compose-panel::before {
  position: absolute;
  inset: -16%;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.36), transparent 32%),
    linear-gradient(286deg, rgba(60, 66, 74, 0.08), transparent 46%);
  animation: glass-sheen 9s ease-in-out infinite alternate;
}

.featured-post::after,
.reader-card::after,
.editor-canvas::after {
  z-index: 0;
}

.status-panel > *,
.featured-post > *,
.post-card > *,
.archive-panel > *,
.tag-cloud-panel > *,
.tag-result-panel > *,
.note-panel > *,
.about-panel > *,
.reader-card > *,
.compose-panel > * {
  position: relative;
  z-index: 1;
}

@keyframes glass-sheen {
  0% {
    transform: translate3d(-2%, -1%, 0);
    opacity: 0.55;
  }

  100% {
    transform: translate3d(2.5%, 1.8%, 0);
    opacity: 0.9;
  }
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 16px clamp(24px, 5vw, 72px);
  align-items: end;
  min-height: 260px;
  animation: panel-float-main 8s ease-in-out infinite alternate;
}

.featured-post-link {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  grid-column: 1 / -1;
  gap: 16px clamp(24px, 5vw, 72px);
  align-items: end;
  min-height: inherit;
  padding: clamp(24px, 3.8vw, 40px);
}

.featured-post-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.58);
  outline-offset: -10px;
}

@keyframes panel-float-main {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes panel-float-side {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(0, 7px, 0);
  }
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 12px;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: var(--chip-muted);
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: var(--chip-text);
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  background: var(--chip-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.13);
  font-size: 12px;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.16);
}

.featured-post h2 {
  max-width: 620px;
  margin: 0;
  font-size: 40px;
  line-height: 1.16;
}

.featured-post p {
  max-width: 620px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.85;
}

.featured-post .post-meta,
.featured-post h2,
.featured-post p {
  grid-column: 1;
}

.featured-post .post-meta {
  align-self: start;
  margin-bottom: 0;
}

.featured-post .tag-list {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 0;
}

.featured-post .post-actions {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
}

.read-link {
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: var(--weight-strong);
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.manage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

.manage-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.13);
}

.card-manage-link {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}

.featured-manage-link {
  position: absolute;
  right: clamp(24px, 3.8vw, 40px);
  bottom: clamp(24px, 3.8vw, 40px);
  z-index: 2;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  align-items: stretch;
}

.post-card {
  min-height: 226px;
  overflow: hidden;
  animation: card-soft-rise 520ms ease both;
  animation-delay: calc((var(--card-index, 0)) * 46ms);
  will-change: opacity, translate;
}

@keyframes card-soft-rise {
  0% {
    opacity: 0;
    translate: 0 14px;
  }

  100% {
    opacity: 1;
    translate: 0 0;
  }
}

.post-card:hover {
  will-change: auto;
}

.post-card-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 22px 54px;
}

.post-card h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.25;
}

.post-card p {
  margin-bottom: 18px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.75;
}

.post-card .tag-list {
  margin-top: auto;
}

.archive-view,
.tags-view {
  margin-top: 20px;
}

.archive-panel,
.tag-cloud-panel,
.tag-result-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius);
}

.archive-group {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.archive-group:last-child {
  border-bottom: 0;
}

.archive-date {
  display: grid;
  align-content: start;
  gap: 4px;
  color: var(--muted);
}

.archive-date strong {
  color: var(--text);
  font-size: 22px;
}

.archive-date span {
  font-size: 12px;
}

.archive-items,
.tag-result-list,
.related-list {
  display: grid;
  gap: 10px;
}

.archive-link,
.tag-result-link,
.related-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.archive-link:hover,
.tag-result-link:hover,
.related-link:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.archive-link span,
.tag-result-link span,
.related-link span {
  color: var(--muted);
  font-size: 12px;
}

.archive-link strong,
.tag-result-link strong,
.related-link strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.tag-cloud-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  background: var(--chip-bg-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tag-cloud-link:hover,
.tag-cloud-link.is-active {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.16);
}

.tag-cloud-link span {
  color: var(--chip-text);
  font-size: 13px;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.14);
}

.tag-cloud-link strong {
  color: var(--chip-muted);
  font-size: 12px;
}

.tag-result-panel {
  margin-top: 14px;
}

.tag-result-header,
.related-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.tag-result-header strong,
.related-heading span {
  color: var(--text);
  font-size: 16px;
}

.loading-state {
  margin: 18px 0;
  padding: 18px;
  color: var(--muted);
  border-radius: var(--radius);
  text-align: center;
}

.article-reader {
  display: grid;
  grid-template-columns: minmax(0, 880px) minmax(180px, 230px);
  gap: 22px;
  justify-content: center;
  align-items: start;
  margin-top: 18px;
}

.reader-card {
  max-width: 880px;
  margin: 0;
  padding: clamp(24px, 5vw, 54px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.reader-toc {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
    var(--glass);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -18px 36px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
}

.reader-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.reader-toc-title {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.reading-progress-bar {
  height: 5px;
  overflow: hidden;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.reading-progress-bar span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.28);
  border-radius: inherit;
  transition: transform 160ms ease;
}

.reading-progress-copy {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.reading-progress-copy span {
  color: var(--muted-strong);
  font-weight: 800;
}

.reader-bottom-progress {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 70;
  height: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  pointer-events: none;
}

.reader-bottom-progress[hidden] {
  display: none;
}

.reader-bottom-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.86)),
    rgba(255, 255, 255, 0.38);
  border-radius: inherit;
  transition: transform 160ms ease;
}

.image-preview {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 54px);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.12), transparent 36%),
    rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(34px) saturate(150%);
  -webkit-backdrop-filter: blur(34px) saturate(150%);
}

.image-preview[hidden] {
  display: none;
}

.image-preview img {
  display: block;
  max-width: min(1120px, 100%);
  max-height: min(78vh, 820px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  object-fit: contain;
}

.image-preview p {
  max-width: min(760px, 100%);
  margin: 14px auto 0;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.image-preview-close {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.image-preview-close::before,
.image-preview-close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  content: "";
}

.image-preview-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.image-preview-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.toc-list {
  display: grid;
  gap: 4px;
}

.toc-empty {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.toc-link {
  display: block;
  padding: 7px 8px;
  color: var(--muted-strong);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  line-height: 1.45;
}

.toc-link:hover,
.toc-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-left-color: rgba(255, 255, 255, 0.48);
}

.toc-level-1 {
  padding-left: 8px;
}

.toc-level-2 {
  padding-left: 18px;
}

.toc-level-3 {
  padding-left: 30px;
  color: var(--muted);
}

.toc-level-4 {
  padding-left: 42px;
  color: var(--muted);
  font-size: 11px;
}

.reader-actions {
  margin-bottom: 28px;
}

.back-link,
.action-button,
.publish-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: var(--weight-strong);
  cursor: pointer;
}

.publish-button {
  color: #1b1d20;
  border-color: rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(215, 219, 224, 0.76)),
    rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 26px rgba(0, 0, 0, 0.18);
}

.publish-button:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(226, 230, 235, 0.84)),
    rgba(255, 255, 255, 0.92);
}

.secondary-button {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.045);
}

.reader-card h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 46px;
  line-height: 1.12;
}

.reader-summary {
  max-width: 760px;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.reader-floating-title {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 9;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
  width: min(520px, calc(100% - 36px));
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.065);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  pointer-events: none;
  transform: translate3d(-50%, 0, 0);
}

.reader-floating-title-text {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-floating-title-meter {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.reader-floating-title-meter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.68);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease;
}

.post-neighbors {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.neighbor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.neighbor-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 116px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.neighbor-card::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 72px;
  height: 9px;
  border-radius: 999px 12px 999px 18px;
  background: rgba(255, 255, 255, 0.18);
  content: "";
  transform: rotate(-2deg);
}

.neighbor-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
}

.neighbor-card span {
  color: var(--muted);
  font-size: 12px;
}

.neighbor-card strong {
  max-width: 90%;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.neighbor-card.is-empty {
  opacity: 0.58;
}

.related-posts {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.article-body {
  margin-top: 34px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.9;
}

.article-body > p:first-of-type {
  max-width: 760px;
  color: #f7f8fa;
  font-size: 19px;
  line-height: 1.86;
  text-wrap: pretty;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 34px 0 12px;
  line-height: 1.25;
  scroll-margin-top: 148px;
}

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

.article-body h2 {
  font-size: 28px;
}

.article-body h3 {
  font-size: 22px;
}

.article-body h4 {
  color: var(--muted-strong);
  font-size: 18px;
}

.article-body p,
.article-body ul,
.article-body blockquote,
.article-body pre {
  margin: 0 0 18px;
}

.article-body ul {
  padding-left: 1.2em;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body code {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}

.code-block {
  position: relative;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.28);
}

.copy-code-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  height: 30px;
  padding: 0 10px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: var(--weight-strong);
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.copy-code-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.article-body .code-block pre {
  margin: 0;
  overflow-x: auto;
  padding: 50px 18px 18px;
  background: transparent;
}

.article-body .code-block code {
  padding: 0;
  border: 0;
  background: transparent;
  white-space: pre;
}

.article-body blockquote {
  padding: 4px 0 4px 18px;
  color: var(--muted-strong);
  border-left: 2px solid rgba(255, 255, 255, 0.35);
}

.article-body a {
  border-bottom: 1px solid currentColor;
}

.article-body .text-highlight,
.reader-summary .text-highlight,
.preview-stage .text-highlight {
  --hl-color: #ffd966;
  display: inline;
  padding: 0 0.08em 0.04em;
  color: inherit;
  border-radius: 0.42em 0.56em 0.5em 0.36em;
  background:
    linear-gradient(102deg, transparent 0%, rgba(255, 217, 102, 0.5) 8%, rgba(255, 217, 102, 0.58) 92%, transparent 100%)
      0 72% / 100% 0.7em no-repeat;
  background:
    linear-gradient(
        102deg,
        transparent 0%,
        color-mix(in srgb, var(--hl-color) 50%, transparent) 8%,
        color-mix(in srgb, var(--hl-color) 58%, transparent) 92%,
        transparent 100%
      )
      0 72% / 100% 0.7em no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-shadow: none;
}

.article-image-block {
  margin: 26px 0 30px;
}

.article-image-block img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: zoom-in;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.article-image-block img:hover {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  filter: brightness(1.04);
  transform: translate3d(0, -2px, 0);
}

.article-image-block figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.article-body strong,
.reader-summary strong,
.preview-stage strong {
  color: #ffffff;
  font-weight: 900;
  text-shadow:
    0 0 0 currentColor,
    0 0 12px rgba(255, 255, 255, 0.16);
  -webkit-text-stroke: 0.018em currentColor;
}

.article-body em,
.reader-summary em,
.preview-stage em {
  color: #ffffff;
  font-style: italic;
}

.post-card.is-hidden,
.featured-post.is-hidden {
  display: none;
}

.about-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px minmax(260px, 0.82fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  margin-top: 28px;
  padding: clamp(30px, 6vw, 62px) clamp(10px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055) 36%, rgba(255, 255, 255, 0.025) 70%, transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.about-page-shell {
  width: min(1180px, calc(100% - 32px));
}

.about-page {
  min-height: 560px;
  margin-top: 0;
}

.about-section::before {
  position: absolute;
  left: clamp(10px, 3vw, 28px);
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  content: "";
}

.about-identity {
  padding-left: clamp(18px, 3vw, 34px);
}

.about-identity h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.about-identity h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.98;
}

.about-identity p {
  max-width: 560px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.9;
}

.about-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 18px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.about-portrait::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  content: "";
}

.about-portrait span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 54px;
  line-height: 1;
}

.about-details {
  display: grid;
  gap: 14px;
}

.about-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.about-line span {
  color: var(--muted);
  font-size: 12px;
}

.about-line strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.about-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.about-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.about-note {
  max-width: 720px;
  margin: 32px 0 0;
  padding-left: clamp(28px, 5vw, 62px);
}

.about-note h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

.about-note p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.9;
}

.empty-state {
  position: relative;
  margin: 18px 0 0;
  padding: 34px 18px 28px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    var(--glass);
  text-align: center;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
}

.empty-state::before {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.42), transparent 28%),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  content: "";
}

.compose-intro {
  grid-template-columns: 1fr;
}

.compose-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.output-grid {
  margin-top: 18px;
}

.compose-panel {
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.compose-form {
  display: grid;
  gap: 16px;
}

.field,
.field-row {
  display: grid;
  gap: 8px;
}

.field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: var(--weight-main);
}

.field input,
.field select {
  height: 42px;
  padding: 0 12px;
}

.field textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.7;
}

.compose-preview {
  position: sticky;
  top: 104px;
  min-height: 420px;
}

.compose-preview h2 {
  margin-bottom: 14px;
  font-size: 32px;
  line-height: 1.2;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.status-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.6;
}

.output-area {
  min-height: 260px;
}

.featured-post::after,
.reader-card::after,
.editor-canvas::after {
  position: absolute;
  right: clamp(20px, 4vw, 42px);
  top: clamp(20px, 4vw, 42px);
  width: clamp(78px, 9vw, 132px);
  height: 11px;
  pointer-events: none;
  border-radius: 999px 20px 999px 26px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18) 16% 76%, transparent),
    rgba(255, 255, 255, 0.08);
  content: "";
  opacity: 0.72;
  transform: rotate(-3deg);
  mix-blend-mode: screen;
}

.reader-card::after {
  top: auto;
  right: clamp(18px, 4vw, 44px);
  bottom: clamp(18px, 4vw, 44px);
  width: clamp(90px, 13vw, 170px);
  opacity: 0.45;
  transform: rotate(3deg);
}

.editor-canvas::after {
  top: 24px;
  right: 28px;
  width: 110px;
  opacity: 0.38;
}

.editor-shell {
  margin-top: 28px;
}

.editor-topbar {
  position: sticky;
  top: 88px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(250px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.editor-state {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.editor-state .kicker {
  margin: 0;
}

.editor-state strong {
  color: var(--muted-strong);
  font-size: 13px;
}

.editor-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.editor-actions {
  justify-content: flex-end;
}

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

.editor-canvas {
  min-height: 760px;
  padding: clamp(22px, 4vw, 42px);
}

.image-import-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.editor-title-input {
  width: 100%;
  min-height: 86px;
  padding: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-main);
  font-size: 46px;
  font-weight: var(--weight-strong);
  line-height: 1.12;
}

.editor-title-input::placeholder {
  color: var(--muted);
}

.permalink-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.permalink-row input {
  width: min(260px, 100%);
  height: 32px;
  padding: 0 10px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  font-family: var(--font-main);
  font-weight: var(--weight-main);
}

.permalink-row code {
  color: var(--muted-strong);
  font-family: var(--font-main);
}

.block-toolbar {
  position: fixed;
  top: 52vh;
  left: max(16px, calc((100vw - 1160px) / 2 - 148px));
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  align-self: start;
  width: 124px;
  overflow: visible;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(32, 34, 38, 0.48);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -18px 28px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  transform: translateY(-50%);
}

.editor-layout > .block-toolbar,
.manager-edit-shell > .block-toolbar {
  grid-column: auto;
  grid-row: auto;
}

.block-toolbar button {
  display: inline-grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 8px;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: var(--weight-strong);
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.block-toolbar button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.block-toolbar button[data-connect-assets],
.block-toolbar button[data-manage-connect-assets],
.block-toolbar button[data-import-image],
.block-toolbar button[data-manage-import-image] {
  grid-column: 1 / -1;
}

.block-toolbar [data-tooltip] {
  position: relative;
  overflow: visible;
}

.block-toolbar [data-tooltip]::before {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 60;
  min-width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(18, 19, 22, 0.88);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  content: attr(data-tooltip) "\A" attr(data-shortcut);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(6px, -50%);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  white-space: pre;
}

.block-toolbar [data-tooltip]:hover::before,
.block-toolbar [data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translate(0, -50%);
}

.highlight-tool {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  width: 100%;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.block-toolbar .highlight-button {
  position: relative;
  isolation: isolate;
  min-width: 0;
  border-color: transparent;
  background: transparent;
}

.block-toolbar .highlight-button::after {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  height: 7px;
  border-radius: 999px 7px 999px 6px;
  background: rgba(255, 217, 102, 0.62);
  content: "";
  transform: rotate(-2deg);
  z-index: -1;
}

.highlight-tool input[type="color"] {
  width: 34px;
  height: 30px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.highlight-tool input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.highlight-tool input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 5px;
}

.block-toolbar button.is-connected {
  color: #1b1d20;
  border-color: rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(214, 219, 225, 0.72)),
    rgba(255, 255, 255, 0.82);
}

.block-editor {
  width: 100%;
  min-height: 560px;
  padding: 20px 0 0;
  color: var(--text);
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: var(--weight-main);
  line-height: 1.9;
}

.block-editor.is-source-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.media-flow {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 6px 0 0;
}

.media-flow::after {
  display: grid;
  place-items: center;
  min-height: 92px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.08);
  content: "+";
  font-size: 26px;
}

.rich-text-block {
  width: 100%;
  min-height: 104px;
  padding: 18px 0;
  color: var(--text);
  border: 0;
  outline: 0;
  resize: none;
  overflow: hidden;
  background: transparent;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: var(--weight-main);
  line-height: 1.9;
}

.rich-text-block::placeholder {
  color: var(--muted);
}

.media-block {
  margin: 0;
  cursor: grab;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.14);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  overflow: hidden;
}

.media-block.is-dragging {
  cursor: grabbing;
  opacity: 0.62;
}

.media-block-frame {
  position: relative;
  background: rgba(0, 0, 0, 0.16);
}

.media-block img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.media-block-status {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  background: rgba(17, 18, 20, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.media-block.is-uploading .media-block-status {
  color: rgba(255, 255, 255, 0.94);
}

.media-block.is-failed {
  border-color: rgba(255, 120, 120, 0.42);
}

.media-block.is-failed .media-block-status {
  color: #ffe2e2;
  background: rgba(110, 30, 30, 0.62);
}

.media-block-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
}

.media-block-tools input {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: var(--weight-main);
}

.media-block-tools button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: var(--weight-strong);
  cursor: pointer;
}

.media-block-tools button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.document-sidebar {
  position: sticky;
  top: 170px;
  display: grid;
  gap: 18px;
  padding: 20px;
}

.sidebar-section {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-title,
.stats-grid {
  display: grid;
  gap: 10px;
}

.sidebar-title {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.sidebar-title span,
.stats-grid span {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-title strong,
.stats-grid strong {
  color: var(--text);
  font-size: 13px;
}

.publish-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.publish-checklist span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.publish-checklist span.is-done {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.draft-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}

.draft-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.draft-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.draft-item.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.draft-open,
.draft-delete {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-main);
}

.draft-open {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.draft-open:hover,
.draft-delete:hover {
  background: rgba(255, 255, 255, 0.1);
}

.draft-open strong,
.draft-open span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-open strong {
  color: var(--text);
  font-size: 12px;
}

.draft-open span {
  color: var(--muted);
  font-size: 11px;
}

.draft-delete {
  align-self: center;
  min-height: 30px;
  padding: 0 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
}

.publish-panel .secondary-button {
  width: 100%;
}

.publish-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.stats-grid {
  grid-template-columns: 1fr 1fr;
}

.stats-grid div {
  display: grid;
  gap: 6px;
}

.preview-stage,
.export-stage {
  margin-top: 18px;
}

.preview-stage {
  max-width: 940px;
  padding: clamp(24px, 5vw, 54px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.preview-stage h2 {
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.15;
}

.export-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.backup-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.backup-panel h2 {
  margin: 4px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.backup-panel p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.7;
}

.manager-shell {
  width: min(1680px, calc(100% - 32px));
  margin-top: 28px;
}

.manager-layout {
  display: grid;
  grid-template-columns: clamp(240px, 16vw, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 18px;
}

.manager-list-panel,
.manager-empty {
  padding: 16px;
}

.manager-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 10px;
  align-items: center;
}

.manager-search {
  min-width: 0;
}

.manager-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.manager-summary span,
.manager-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

.manager-post-list {
  display: grid;
  gap: 10px;
  max-height: 690px;
  overflow-y: auto;
  padding-right: 2px;
}

.manager-post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.manager-post-row.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.manager-post-row button {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  color: var(--text);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-main);
  text-align: left;
  cursor: pointer;
}

.manager-post-row button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.manager-post-row strong,
.manager-post-row button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-post-row strong {
  font-size: 13px;
}

.manager-post-row button span,
.manager-post-row > span {
  color: var(--muted);
  font-size: 11px;
}

.manager-edit-shell {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) clamp(230px, 15vw, 270px);
  gap: 16px;
  align-items: start;
}

.manager-editor-canvas {
  min-height: 760px;
  padding: clamp(24px, 3vw, 48px);
}

.manager-document-sidebar {
  position: sticky;
  top: 104px;
  padding: 16px;
}

.manager-empty h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.manager-actions {
  display: grid;
  gap: 10px;
}

.manager-actions .publish-button,
.manager-actions .secondary-button,
.manager-actions .danger-button {
  width: 100%;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: #ffd9d9;
  border: 1px solid rgba(255, 150, 150, 0.28);
  border-radius: var(--radius);
  background: rgba(130, 20, 20, 0.16);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: var(--weight-strong);
  cursor: pointer;
}

.danger-button:hover {
  background: rgba(150, 28, 28, 0.26);
}

.manager-empty {
  min-height: 320px;
}

.manager-empty p:last-child {
  margin-bottom: 0;
  color: var(--muted-strong);
  line-height: 1.8;
}

.auth-shell {
  width: min(860px, calc(100% - 32px));
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
  min-height: 520px;
  padding: clamp(28px, 6vw, 58px);
}

.auth-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
}

.auth-copy p:last-child {
  max-width: 420px;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.8;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form .button-row {
  margin-top: 6px;
}

.auth-locked {
  display: grid;
  gap: 14px;
  align-content: start;
}

.auth-locked h2 {
  margin: 0;
  font-size: 26px;
}

.auth-locked p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.8;
}

.auth-status {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.auth-status[data-tone="success"] {
  color: #e8f2e5;
}

.auth-status[data-tone="danger"] {
  color: #ffd0d0;
}

@media (max-width: 1760px) and (min-width: 861px) {
  .profile-dock {
    left: max(16px, calc((100vw - 1160px) / 2 - 250px));
    width: 220px;
    padding: 20px;
    border-radius: 22px;
  }

  .profile-avatar {
    width: 74px;
    height: 74px;
    margin-bottom: 16px;
    border-radius: 18px;
    font-size: 32px;
  }

  .profile-copy strong {
    font-size: 19px;
  }

  .profile-copy span,
  .profile-dock p,
  .profile-meta {
    font-size: 12px;
  }

  .profile-dock p {
    margin: 15px 0;
  }

  .profile-meta span {
    padding: 5px 8px;
  }
}

.not-found-shell {
  width: min(900px, calc(100% - 32px));
}

.not-found-panel {
  position: relative;
  min-height: 460px;
  display: grid;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  padding: clamp(32px, 7vw, 70px);
}

.not-found-panel::after {
  position: absolute;
  right: clamp(28px, 7vw, 74px);
  bottom: clamp(28px, 6vw, 58px);
  width: 190px;
  height: 15px;
  pointer-events: none;
  border-radius: 999px 18px 999px 22px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
  transform: rotate(-4deg);
}

.not-found-panel h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.02;
}

.not-found-panel p {
  max-width: 620px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.85;
}

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

  .reader-card {
    max-width: 900px;
    margin: 0 auto;
  }

  .reader-toc {
    position: relative;
    top: auto;
    max-width: 900px;
    max-height: none;
    margin: 0 auto;
    order: 2;
  }

  .manager-layout,
  .manager-edit-shell {
    grid-template-columns: 1fr;
  }

  .manager-document-sidebar {
    position: relative;
    top: auto;
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  width: min(1160px, calc(100% - 32px));
  margin: 54px auto 34px;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 13px;
}

.site-footer a,
.site-footer button {
  color: var(--muted-strong);
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--text);
}

@media (max-width: 860px) {
  .site-header {
    padding-inline: 16px;
  }

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

  .nav-links {
    grid-column: 1 / -1;
    justify-content: stretch;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links a,
  .nav-links button {
    flex: 0 0 auto;
    justify-content: center;
    min-width: max-content;
  }

  .reader-floating-title {
    top: 126px;
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .page-shell {
    margin-top: 34px;
  }

  .profile-dock {
    position: relative;
    top: auto;
    left: auto;
    width: min(100% - 32px, 520px);
    margin: 18px auto 0;
    transform: none;
  }

  .intro-grid,
  .content-grid,
  .about-section,
  .note-and-about,
  .toolbar,
  .auth-panel,
  .compose-grid,
  .editor-layout,
  .export-stage,
  .backup-panel,
  .manager-layout,
  .manager-edit-shell {
    grid-template-columns: 1fr;
  }

  .editor-topbar {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
  }

  .editor-tabs,
  .editor-actions {
    width: 100%;
  }

  .manager-toolbar {
    grid-template-columns: 1fr;
  }

  .editor-actions {
    justify-content: flex-start;
  }

  .block-toolbar,
  .document-sidebar,
  .manager-document-sidebar {
    position: relative;
    top: auto;
  }

  .block-toolbar {
    left: auto;
    display: flex;
    flex-wrap: wrap;
    width: auto;
    overflow: visible;
    margin: 0 0 14px;
    padding: 8px;
    border-radius: var(--radius);
    transform: none;
  }

  .block-toolbar button {
    width: auto;
    min-width: 36px;
    padding: 0 10px;
  }

  .block-toolbar [data-tooltip]::before {
    left: 50%;
    top: auto;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 5px);
  }

  .block-toolbar [data-tooltip]:hover::before,
  .block-toolbar [data-tooltip]:focus-visible::before {
    transform: translate(-50%, 0);
  }

  .highlight-tool {
    flex-direction: row;
    display: inline-flex;
    width: auto;
  }

  .highlight-tool input[type="color"] {
    width: 30px;
    height: 30px;
  }

  .compose-preview {
    position: relative;
    top: auto;
  }

  .intro-copy {
    min-height: 0;
    padding: 22px 0 0;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-portrait {
    justify-self: start;
    margin-left: clamp(18px, 3vw, 34px);
  }

  .about-details {
    padding-left: clamp(18px, 3vw, 34px);
  }

  h1 {
    font-size: 40px;
  }

  .intro-text {
    font-size: 16px;
  }

  .status-panel {
    align-self: auto;
  }

  .segmented {
    width: 100%;
  }

  .featured-post {
    grid-template-columns: 1fr;
    min-height: 0;
  }

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

  .featured-post .tag-list,
  .featured-post .post-actions {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
  }

  .featured-post h2 {
    font-size: 32px;
  }

  .reader-card h1 {
    font-size: 34px;
  }

  .reader-card {
    width: min(100%, 760px);
    padding: 28px;
  }

  .reader-summary,
  .article-body {
    font-size: 16px;
  }

  .reader-toc {
    width: min(100%, 760px);
    padding: 14px;
  }

  .reader-toc-head {
    align-items: center;
  }

  .toc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc-link {
    border-left: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.045);
  }

  .archive-group,
  .neighbor-grid {
    grid-template-columns: 1fr;
  }

  .archive-date {
    grid-template-columns: auto 1fr;
    align-items: end;
  }

  .article-reader {
    grid-template-columns: 1fr;
  }

  .editor-title-input {
    font-size: 36px;
  }
}

@media (max-width: 520px) {
  .page-shell,
  .site-footer {
    width: min(100% - 22px, 1160px);
  }

  .site-header {
    min-height: 64px;
    padding: 10px 11px 6px;
  }

  .nav-shell {
    gap: 8px;
    padding: 5px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .brand {
    padding-inline: 10px;
  }

  h1 {
    font-size: 32px;
  }

  .featured-post,
  .post-card,
  .note-panel,
  .about-panel,
  .reader-card,
  .compose-panel {
    padding: 20px;
  }

  .featured-post {
    padding: 0;
  }

  .featured-post-link {
    padding: 20px;
  }

  .about-section {
    padding: 28px 12px;
  }

  .about-section::before {
    left: 12px;
  }

  .about-portrait {
    width: 96px;
    border-radius: 22px;
  }

  .about-portrait::after {
    inset: 10px;
    border-radius: 16px;
  }

  .about-portrait span {
    font-size: 40px;
  }

  .about-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .post-card-link {
    padding: 0;
  }

  .post-card {
    min-height: 190px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .archive-link,
  .tag-result-link,
  .related-link {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .neighbor-card {
    min-height: 96px;
    padding: 16px;
  }

  .neighbor-card strong {
    font-size: 16px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .editor-canvas {
    min-height: 0;
  }

  .editor-title-input {
    min-height: 72px;
    font-size: 30px;
  }

  .block-editor {
    min-height: 420px;
    font-size: 16px;
  }

  .rich-text-block {
    font-size: 16px;
  }

  .media-block-tools {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .media-block-tools input {
    grid-column: 1 / -1;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .featured-post h2 {
    font-size: 28px;
  }

  .reader-card h1 {
    font-size: 30px;
  }

  .reader-card {
    padding: 22px 18px;
  }

  .reader-floating-title {
    top: 112px;
    width: calc(100% - 24px);
    padding: 8px 10px;
  }

  .image-preview {
    padding: 54px 14px 24px;
  }

  .reader-actions {
    margin-bottom: 20px;
  }

  .reader-summary {
    font-size: 15px;
    line-height: 1.75;
  }

  .article-body {
    margin-top: 26px;
    font-size: 15.5px;
    line-height: 1.86;
  }

  .article-body h1 {
    font-size: 27px;
  }

  .article-body h2 {
    font-size: 23px;
  }

  .article-body h3 {
    font-size: 19px;
  }

  .article-body h4 {
    font-size: 17px;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }

  .toc-level-2 {
    padding-left: 14px;
  }

  .toc-level-3 {
    padding-left: 22px;
  }

  .toc-level-4 {
    padding-left: 30px;
  }

  .backup-panel {
    padding: 18px;
  }

  .backup-panel .button-row,
  .not-found-panel .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-panel .button-row > *,
  .not-found-panel .button-row > * {
    width: 100%;
  }

  .not-found-panel {
    min-height: 390px;
    padding: 28px 20px;
  }
}

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

  body {
    animation-duration: 16s !important;
    animation-iteration-count: infinite !important;
  }

  .ambient {
    animation-duration: 42s !important;
    animation-iteration-count: infinite !important;
  }

  .ambient-bar-a {
    animation-duration: 28s !important;
    animation-iteration-count: infinite !important;
  }

  .ambient-bar-b {
    animation-duration: 32s !important;
    animation-iteration-count: infinite !important;
  }

  .ambient-bar::before,
  .ambient-bar::after {
    animation: none !important;
    opacity: 0 !important;
  }

  .status-panel::before,
  .featured-post::before,
  .post-card::before,
  .note-panel::before,
  .about-panel::before {
    animation-duration: 14s !important;
    animation-iteration-count: infinite !important;
  }

  .status-panel,
  .featured-post {
    animation-duration: 12s !important;
    animation-iteration-count: infinite !important;
  }

  .post-card {
    animation: none !important;
  }

  .reader-floating-title,
  .reader-bottom-progress span,
  .reader-floating-title-meter span,
  .article-image-block img {
    transition: none !important;
  }
}
