/* =========================================================
   Fantasy Blog — public styles
   ========================================================= */

:root {
  --paper: #fbf2f5;
  --paper-rgb: 251, 242, 245;
  --surface: #edf5fa;
  --surface-strong: #dcebf4;
  --ink: #202a3a;
  --ink-rgb: 32, 42, 58;
  --muted: #6d7280;
  --line: rgba(32, 42, 58, 0.14);
  --line-strong: rgba(32, 42, 58, 0.28);
  --accent: #b94f70;
  --accent-bright: #d26788;
  --accent-soft: #efc4d3;
  --accent-ink: #fff9fb;
  --blue: #8ec6df;
  --blue-deep: #3f738b;
  --blue-soft: #e3f1f8;
  --blue-ink: #1c3b4e;
  --green: #5d9db5;
  --olive: #708da1;
  --wash-blue: rgba(151, 203, 226, 0.25);
  --wash-pink: rgba(238, 187, 204, 0.24);
  --code-bg: #162330;
  --code-ink: #eaf3f8;
  --display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --serif-en: "Didot", "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 4.2vw, 56px);
  --max: 1340px;
}

[data-theme="dark"] {
  --paper: #101720;
  --paper-rgb: 16, 23, 32;
  --surface: #172230;
  --surface-strong: #1f2e3f;
  --ink: #f4eef2;
  --ink-rgb: 244, 238, 242;
  --muted: #a2a8b4;
  --line: rgba(244, 238, 242, 0.15);
  --line-strong: rgba(244, 238, 242, 0.3);
  --accent: #ee8fab;
  --accent-bright: #f4a5bd;
  --accent-soft: #5b3040;
  --accent-ink: #1b1116;
  --blue: #9fd3ea;
  --blue-deep: #b7e0f0;
  --blue-soft: #1b3140;
  --blue-ink: #eaf7fd;
  --green: #8ec4d8;
  --olive: #97b5c6;
  --wash-blue: rgba(80, 127, 153, 0.18);
  --wash-pink: rgba(125, 61, 84, 0.16);
  --code-bg: #0b121a;
  --code-ink: #eaf3f8;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 85% 62% at 100% 0%, var(--wash-blue), transparent 62%),
    radial-gradient(ellipse 70% 55% at 0% 18%, var(--wash-pink), transparent 62%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

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

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

svg {
  display: block;
  max-width: 100%;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

.container {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

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

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.65'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

[data-theme="dark"] .grain {
  opacity: 0.075;
  mix-blend-mode: screen;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 600;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ---------- Typography & shared bits ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  line-height: 1.7;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(93, 157, 181, 0.4);
  animation: statusPulse 2.8s ease-out infinite;
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(93, 157, 181, 0.34); }
  55%, 100% { box-shadow: 0 0 0 7px rgba(93, 157, 181, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.03em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

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

.btn-primary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-secondary {
  border-color: rgba(79, 137, 168, 0.38);
  color: var(--blue-deep);
}

.btn-secondary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #f5fbfe;
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 11px;
}

.btn-quiet {
  border-color: var(--line);
  color: var(--ink);
}

.btn-quiet:hover {
  border-color: var(--ink);
  background: rgba(var(--ink-rgb), 0.04);
}

.btn-danger {
  background: #a63e5b;
  color: #fff8fb;
}

.btn-danger:hover {
  background: #8d2f49;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: right center;
  transition: transform 0.4s var(--ease);
}

.text-link span {
  color: var(--accent);
}

.text-link:hover::after {
  transform: scaleX(0.55);
  transform-origin: left center;
}

.inline-link {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.inline-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.tag-list,
.post-tags,
.post-end-tags,
.admin-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 9px;
  border: 1px solid rgba(79, 137, 168, 0.24);
  border-radius: 999px;
  background: rgba(142, 198, 223, 0.1);
  color: var(--blue-deep);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  line-height: 1.4;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

a.tag-pill:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- Theme toggle icons ---------- */

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.4s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--blue-deep);
  background: rgba(142, 198, 223, 0.16);
  color: var(--blue-deep);
  transform: rotate(14deg);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
}

.icon-sun,
.icon-moon {
  display: none;
}

[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun {
  display: block;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(var(--paper-rgb), 0.92);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.45s var(--ease);
}

.brand:hover .brand-mark {
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-8deg);
}

[data-site-avatar] {
  overflow: hidden;
}

[data-site-avatar].has-avatar {
  padding: 0;
}

[data-site-avatar] img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.signature-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
}

.signature-avatar.has-avatar {
  border-color: var(--line);
}

.author-mark.has-avatar {
  border: 1px solid var(--line);
}

.post-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.6;
}

.post-pdf-link::before {
  content: "PDF";
  padding: 2px 5px;
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.post-pdf-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.3;
}

.brand-text small {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.11em;
}

.brand-small .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.brand-small .brand-text {
  font-size: 10px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.desktop-nav a sup {
  position: relative;
  top: -0.2em;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0;
  transition: color 0.3s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease);
}

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

.desktop-nav a:hover sup,
.desktop-nav a.is-active sup {
  color: var(--accent);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  background: var(--accent);
  transform: scaleX(1);
  transform-origin: left center;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.local-time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.header-cta span {
  font-size: 12px;
  transition: transform 0.3s var(--ease);
}

.header-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.header-cta:hover span {
  transform: translate(2px, -2px);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle span {
  position: absolute;
  right: 10px;
  left: 10px;
  height: 1px;
  background: var(--ink);
  transition: top 0.35s var(--ease), transform 0.35s var(--ease);
}

.menu-toggle span:first-child { top: 14px; }
.menu-toggle span:last-child { top: 20px; }

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 17px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 17px;
  transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  overflow-y: auto;
  padding: 112px var(--gutter) max(30px, env(safe-area-inset-bottom));
  background: var(--paper);
  visibility: hidden;
  transform: translateY(-102%);
  transition: transform 0.7s var(--ease), visibility 0s 0.7s;
}

.mobile-menu.is-open {
  visibility: visible;
  transform: translateY(0);
  transition: transform 0.7s var(--ease), visibility 0s;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.mobile-menu-label {
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.mobile-menu nav {
  border-top: 1px solid var(--line);
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(38px, 9vw, 60px);
  line-height: 1.25;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.5s var(--ease), color 0.25s ease;
}

.mobile-menu.is-open nav a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open nav a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.28s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: 0.34s; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: 0.4s; }

.mobile-menu nav a span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0;
}

.mobile-menu nav a:hover {
  color: var(--accent);
}

.mobile-menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.mobile-menu-foot a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

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

.hero {
  padding-top: clamp(132px, 16vh, 180px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
}

.hero-title {
  margin-top: clamp(22px, 3vw, 32px);
  font-family: var(--display);
  font-size: clamp(52px, 7.2vw, 104px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.065em;
}

.hero-title .line {
  display: block;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.hero-title em {
  position: relative;
  z-index: 0;
  font-style: normal;
  white-space: nowrap;
}

.hero-title em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: 0.1em;
  left: -0.03em;
  height: 0.23em;
  background: var(--accent);
  opacity: 0.26;
  transform: rotate(-1.2deg);
  transform-origin: left center;
}

.hero-title.hero-title-en {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(48px, 7.8vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-title.hero-title-en em {
  color: var(--accent);
  font-style: italic;
  font-family: inherit;
}

.hero-title.hero-title-en em::after {
  display: none;
}

.hero-lead {
  max-width: 530px;
  margin-top: clamp(24px, 3.4vw, 36px);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 30px);
  margin-top: clamp(28px, 3.7vw, 40px);
}

.hero-footnote {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(32px, 4.3vw, 48px);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.045em;
  line-height: 1.7;
}

.footnote-divider {
  width: 16px;
  height: 1px;
  margin-inline: 4px;
  background: var(--line-strong);
}

.hero-anim {
  animation: heroReveal 0.95s var(--ease) both;
}

.hero-anim-1 { animation-delay: 0.06s; }
.hero-anim-2 { animation-delay: 0.12s; }
.hero-anim-3 { animation-delay: 0.2s; }
.hero-anim-4 { animation-delay: 0.28s; }
.hero-anim-5 { animation-delay: 0.38s; }
.hero-anim-6 { animation-delay: 0.48s; }
.hero-anim-7 { animation-delay: 0.56s; }

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
  min-width: 0;
}

.poster-frame {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 242, 247, 0.46), transparent 34%),
    linear-gradient(152deg, #c8e6f2 0%, #98ccdf 42%, #78b5cf 100%);
  color: #1c2e40;
  box-shadow: 0 30px 90px rgba(44, 91, 119, 0.22);
}

[data-theme="dark"] .poster-frame {
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.poster-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(27, 46, 64, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 46, 64, 0.1) 1px, transparent 1px);
  background-size: 33.333% 25%;
  opacity: 0.7;
}

.poster-sun {
  position: absolute;
  z-index: 1;
  top: 10%;
  right: -8%;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f8e3eb;
  box-shadow: 0 0 60px rgba(255, 246, 250, 0.34);
}

.poster-sun::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(27, 46, 64, 0.14);
  border-radius: 50%;
}

.poster-sun-ring {
  position: absolute;
  z-index: 2;
  top: 4.5%;
  right: -13.5%;
  width: 77%;
  aspect-ratio: 1;
  border: 1px solid rgba(27, 46, 64, 0.24);
  border-radius: 50%;
}

.poster-orbit {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.poster-top {
  position: absolute;
  z-index: 5;
  top: clamp(16px, 4.5cqw, 26px);
  right: clamp(16px, 5cqw, 26px);
  left: clamp(16px, 5cqw, 26px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: clamp(7px, 1.65cqw, 9px);
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.poster-top span:last-child {
  text-align: right;
  opacity: 0.72;
}

.poster-glyph {
  position: absolute;
  z-index: 2;
  bottom: -11%;
  left: -4%;
  color: #1e3348;
  font-family: var(--display);
  font-size: min(330px, 72cqw);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.06em;
  opacity: 0.93;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.poster-spine {
  position: absolute;
  z-index: 5;
  top: 30%;
  right: clamp(9px, 2.4cqw, 15px);
  color: rgba(27, 46, 64, 0.58);
  font-family: var(--mono);
  font-size: clamp(6px, 1.4cqw, 7px);
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
}

.poster-ticket {
  position: absolute;
  z-index: 6;
  right: 7%;
  bottom: 7%;
  width: 56%;
  padding: clamp(11px, 3.2cqw, 18px);
  border-radius: 1px;
  background: #fbe9ef;
  color: #1e2d3c;
  box-shadow: 0 12px 35px rgba(46, 84, 106, 0.2);
  transform: rotate(-1.6deg);
}

.ticket-label {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(6px, 1.55cqw, 8px);
  letter-spacing: 0.07em;
}

.poster-ticket strong {
  display: block;
  margin-top: clamp(6px, 1.6cqw, 10px);
  font-family: var(--display);
  font-size: clamp(12px, 3.2cqw, 17px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.ticket-barcode {
  display: block;
  width: 52%;
  height: clamp(8px, 2cqw, 12px);
  margin-top: clamp(9px, 2.4cqw, 14px);
  background: repeating-linear-gradient(90deg, #1e3348 0 1px, transparent 1px 3px, #1e3348 3px 4px, transparent 4px 7px);
  opacity: 0.65;
}

.poster-caption {
  position: absolute;
  z-index: 5;
  bottom: clamp(17px, 4.4cqw, 26px);
  left: clamp(16px, 5cqw, 26px);
  color: #fff4f8;
  font-family: var(--mono);
  font-size: clamp(6px, 1.5cqw, 8px);
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(24, 48, 65, 0.3);
}

.poster-stamp {
  position: absolute;
  z-index: 7;
  bottom: 17%;
  left: -30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(76px, 7.2vw, 92px);
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 35px rgba(44, 91, 119, 0.14);
  transform: rotate(-10deg);
  transition: transform 0.6s var(--ease);
}

.hero-visual:hover .poster-stamp {
  transform: rotate(2deg);
}

.poster-stamp span {
  font-family: var(--mono);
  font-size: clamp(6px, 0.62vw, 8px);
  letter-spacing: 0.11em;
}

.poster-stamp strong {
  margin-top: 2px;
  font-family: var(--serif-en);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
}

.poster-stamp i {
  position: absolute;
  top: 9px;
  right: 12px;
  color: var(--accent);
  font-size: 8px;
  font-style: normal;
}

.poster-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.055em;
}

.poster-meta a {
  color: var(--ink);
}

.poster-meta a:hover {
  color: var(--accent);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(54px, 7.5vw, 88px);
  padding: 27px 0 29px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  min-width: 0;
  padding-left: clamp(17px, 2.7vw, 34px);
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat-number {
  color: var(--ink);
  font-family: var(--serif-en);
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.stat-date {
  font-family: var(--mono);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.03em;
}

.stat-location {
  font-family: var(--display);
  font-size: clamp(31px, 3.5vw, 45px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.stat p {
  margin-top: 11px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.65;
  letter-spacing: 0.035em;
}

/* ---------- Marquee ---------- */

.marquee {
  margin-top: clamp(36px, 4.8vw, 52px);
  padding: 16px 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  transition: background-color 0.4s ease, color 0.4s ease;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeMove 38s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 30px;
  padding-right: 30px;
}

.marquee-group span {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.marquee-group i {
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
}

@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(92px, 11vw, 156px);
}

.section-intro {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 224px;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  margin-bottom: clamp(50px, 7vw, 88px);
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.section-meta {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding-top: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.065em;
  white-space: nowrap;
}

.section-index {
  color: var(--accent);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(36px, 4.4vw, 62px);
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-title em {
  color: var(--accent);
  font-style: normal;
}

.section-note {
  padding-top: 11px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(54px, 9vw, 140px);
  align-items: start;
}

.about-statement {
  position: relative;
  padding-top: 12px;
}

.about-quote-mark {
  display: block;
  height: 0.52em;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--serif-en);
  font-size: 80px;
  line-height: 0.75;
  opacity: 0.65;
}

.about-statement p {
  font-family: var(--display);
  font-size: clamp(28px, 3.1vw, 43px);
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: -0.04em;
}

.about-statement em {
  color: var(--accent);
  font-style: normal;
  position: relative;
}

.about-statement em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.08em;
  left: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}

.about-copy {
  padding-top: 5px;
}

.about-copy p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 2.05;
  text-wrap: pretty;
}

.about-copy p + p {
  margin-top: 18px;
}

.signature {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 34px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.5;
}

.signature-line {
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}

.signature small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.principles {
  margin-top: clamp(64px, 8.5vw, 104px);
}

.principle-row {
  display: grid;
  grid-template-columns: 44px minmax(170px, 0.82fr) minmax(280px, 1.35fr) auto;
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  padding: 26px 12px;
  border-top: 1px solid var(--line);
  border-radius: 2px;
  transition: background-color 0.35s ease, transform 0.35s var(--ease);
}

.principle-row:last-child {
  border-bottom: 1px solid var(--line);
}

.principle-row:hover {
  background: rgba(var(--ink-rgb), 0.035);
  transform: translateX(5px);
}

.principle-number {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.principle-row h3 {
  font-family: var(--display);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
  transition: color 0.3s ease;
}

.principle-row:hover h3 {
  color: var(--accent);
}

.principle-row p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.principle-tags {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-align: right;
  white-space: nowrap;
}

/* ---------- Latest posts ---------- */

.writing-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.latest-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.8vw, 38px);
}

.post-preview {
  min-width: 0;
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}

.post-preview-link {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  height: 100%;
}

.post-preview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.post-number {
  color: var(--accent);
  font-family: var(--serif-en);
  font-size: 36px;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.post-dates {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.post-preview h3 {
  margin-top: clamp(30px, 4vw, 50px);
  font-family: var(--display);
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

.post-preview:hover h3 {
  color: var(--accent);
}

.post-excerpt {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 30px;
}

.post-arrow,
.article-arrow {
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.35s var(--ease);
}

.post-preview:hover .post-arrow,
.article-row:hover .article-arrow {
  transform: translate(3px, -3px);
}

.latest-more {
  display: none;
  margin-top: 34px;
}

/* ---------- Topics ---------- */

.topic-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(30px, 6vw, 90px);
  border-top: 1px solid var(--line);
}

.topic-pill {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 16px;
  gap: 14px;
  align-items: center;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s ease, padding 0.35s var(--ease), background-color 0.3s ease;
}

.topic-pill:hover {
  color: var(--accent);
  padding-inline: 8px;
}

.topic-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.topic-name {
  font-family: var(--display);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.topic-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  white-space: nowrap;
}

.topic-arrow {
  color: var(--accent);
  font-size: 15px;
  transition: transform 0.3s var(--ease);
}

.topic-pill:hover .topic-arrow {
  transform: translate(2px, -2px);
}

.topic-loading {
  display: inline-block;
  padding: 22px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

/* ---------- Subscribe ---------- */

.subscribe-section {
  padding-top: 0;
  padding-bottom: clamp(22px, 3vw, 34px);
}

.subscribe-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(27px, 4.6vw, 62px);
  border-radius: 4px;
  background:
    radial-gradient(circle at 92% 8%, rgba(238, 143, 171, 0.3), transparent 30%),
    linear-gradient(142deg, #1b2c3d 0%, #142433 58%, #101c28 100%);
  color: #f4eef2;
}

[data-theme="dark"] .subscribe-shell {
  border: 1px solid rgba(244, 238, 242, 0.09);
  background:
    radial-gradient(circle at 92% 8%, rgba(238, 143, 171, 0.2), transparent 30%),
    #0c141d;
}

.subscribe-top,
.subscribe-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(244, 238, 242, 0.58);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.subscribe-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 238, 242, 0.8);
}

.subscribe-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9fd3ea;
  box-shadow: 0 0 0 4px rgba(159, 211, 234, 0.12);
}

.subscribe-main {
  position: relative;
  z-index: 2;
  margin-top: clamp(70px, 10vw, 128px);
}

.subscribe-kicker {
  color: rgba(244, 238, 242, 0.58);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.subscribe-main h2 {
  max-width: 1000px;
  margin-top: 17px;
  font-family: var(--display);
  font-size: clamp(46px, 7.1vw, 98px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.06em;
  color: #fbf5f8;
}

.subscribe-main h2 em {
  color: #f0a0b8;
  font-style: normal;
}

.subscribe-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: clamp(42px, 6vw, 68px);
}

.subscribe-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(244, 238, 242, 0.32);
  border-radius: 999px;
  color: #fbf5f8;
  font-size: 12px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.subscribe-button svg {
  width: 16px;
  height: 16px;
}

.subscribe-button:hover {
  background: #f0a0b8;
  border-color: #f0a0b8;
  color: #1b1116;
}

.subscribe-note {
  color: rgba(244, 238, 242, 0.5);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
}

.subscribe-bottom {
  position: relative;
  z-index: 2;
  margin-top: clamp(82px, 11vw, 144px);
  padding-top: 24px;
  border-top: 1px solid rgba(244, 238, 242, 0.16);
}

.subscribe-bottom a {
  color: rgba(244, 238, 242, 0.72);
  transition: color 0.3s ease;
}

.subscribe-bottom a:hover {
  color: #f0a0b8;
}

.subscribe-mark {
  position: absolute;
  z-index: 0;
  top: 7%;
  right: 3.5%;
  color: #f0a0b8;
  font-family: var(--serif-en);
  font-size: clamp(160px, 21vw, 300px);
  line-height: 1;
  opacity: 0.06;
  animation: markSpin 90s linear infinite;
  pointer-events: none;
}

@keyframes markSpin {
  to { transform: rotate(360deg); }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 25px 0 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

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

.footer-quote {
  color: var(--ink);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---------- Empty / skeleton / toast ---------- */

.skeleton-line {
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(var(--ink-rgb), 0.06), rgba(var(--ink-rgb), 0.12), rgba(var(--ink-rgb), 0.06));
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
  to { background-position: -200% 0; }
}

.skeleton-meta {
  width: 38%;
  height: 10px;
}

.skeleton-title {
  width: 76%;
  height: 25px;
  margin-top: 24px;
}

.skeleton-text {
  width: 100%;
  height: 11px;
  margin-top: 17px;
}

.skeleton-text.short {
  width: 64%;
  margin-top: 9px;
}

.skeleton-card {
  min-height: 300px;
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 240px;
  padding: 32px;
  border: 1px dashed var(--line-strong);
}

.empty-mark {
  color: var(--accent);
  font-family: var(--serif-en);
  font-size: 34px;
  line-height: 1;
}

.empty-state h3 {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
}

.empty-state p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state .btn {
  margin-top: 20px;
}

.load-error .empty-mark {
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 900;
  bottom: 26px;
  left: 50%;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Archive / blog listing
   ========================================================= */

.archive-hero {
  padding: clamp(132px, 16vh, 176px) 0 clamp(60px, 8vw, 92px);
}

.archive-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(40px, 7vw, 100px);
  margin-top: clamp(26px, 3.4vw, 38px);
}

.archive-hero h1 {
  font-family: var(--display);
  font-size: clamp(58px, 8vw, 108px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.065em;
}

.archive-hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.archive-intro {
  max-width: 360px;
  padding-bottom: 10px;
}

.archive-intro > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
  text-wrap: pretty;
}

.archive-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.archive-stats strong {
  color: var(--ink);
  font-weight: 400;
}

.archive-section {
  padding-top: 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}

.blog-sidebar {
  position: sticky;
  top: 108px;
}

.filter-block {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.filter-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.filter-label {
  display: block;
  margin-bottom: 11px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-heading .filter-label {
  margin-bottom: 0;
}

.filter-clear {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

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

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(var(--ink-rgb), 0.015);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.search-field:focus-within {
  border-color: var(--line-strong);
  background: var(--paper);
}

.search-field svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  outline: none;
}

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

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.tag-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.tag-filter sup {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.tag-filter:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.tag-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.tag-filter.is-active sup {
  color: var(--paper);
  opacity: 0.6;
}

.filter-loading {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.sidebar-note {
  position: relative;
  margin-top: 32px;
  padding: 25px 23px 23px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.sidebar-note-mark {
  display: block;
  color: var(--accent);
  font-family: var(--serif-en);
  font-size: 46px;
  line-height: 0.7;
  opacity: 0.65;
}

.sidebar-note p {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.02em;
}

.sidebar-note-sign {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.rss-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 17px;
  border: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.rss-card small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.rss-card span {
  font-size: 12px;
}

.rss-card svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.rss-card:hover {
  background: var(--surface);
  border-color: var(--line-strong);
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.blog-sort {
  color: var(--muted);
}

.article-list {
  min-height: 300px;
}

.article-row {
  border-bottom: 1px solid var(--line);
}

.article-link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding: 31px 0 33px;
  transition: padding-left 0.35s var(--ease);
}

.article-row:hover .article-link {
  padding-left: 8px;
}

.article-number {
  padding-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.article-row:hover .article-number {
  color: var(--accent);
}

.article-author {
  color: var(--ink);
}

.origin-chip {
  padding: 1px 5px;
  font-size: 7px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.meta-dot {
  color: var(--line-strong);
}

.article-copy h2 {
  margin-top: 11px;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.035em;
  transition: color 0.3s ease;
}

.article-row:hover .article-copy h2 {
  color: var(--accent);
}

.article-copy > p {
  max-width: 680px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 17px;
}

.article-skeleton {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.load-more-wrap {
  padding-top: 32px;
  text-align: center;
}

/* =========================================================
   Single post
   ========================================================= */

.post-hero {
  padding: clamp(128px, 15vh, 160px) 0 clamp(46px, 6vw, 70px);
}

.post-hero-inner {
  max-width: 1100px;
}

.post-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(38px, 5vw, 60px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  transition: color 0.25s ease;
}

.back-link span {
  color: var(--accent);
  font-size: 13px;
}

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

.post-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  transition: color 0.25s ease;
}

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

.share-button:hover {
  color: var(--accent);
}

.edit-post-link {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.draft-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.draft-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.draft-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.post-tags {
  margin-bottom: 18px;
}

.post-title {
  max-width: 1000px;
  font-family: var(--display);
  font-size: clamp(43px, 6.2vw, 80px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.post-summary {
  max-width: 740px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  text-wrap: pretty;
}

.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
}

.post-author-line {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.post-author-line strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.post-origin-badge,
.origin-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.post-origin-badge.is-original,
.origin-chip.is-original {
  color: var(--blue-deep);
  border-color: rgba(79, 137, 168, 0.32);
}

.post-origin-badge.is-reprint,
.origin-chip.is-reprint {
  color: var(--accent);
  border-color: rgba(185, 79, 112, 0.38);
}

.post-source-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(185, 79, 112, 0.28);
  padding-bottom: 1px;
  transition: border-color 0.25s ease;
}

.post-source-link:hover {
  border-color: var(--accent);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 27px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.post-layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 760px);
  justify-content: center;
  gap: clamp(40px, 6vw, 78px);
  align-items: start;
  padding-bottom: clamp(80px, 10vw, 142px);
}

.toc-aside {
  position: sticky;
  top: 110px;
  padding-top: 8px;
}

.toc-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.toc-link {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  transition: color 0.25s ease, transform 0.25s ease;
}

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

.toc-link.is-active {
  transform: translateX(2px);
}

.toc-level-3 {
  padding-left: 12px;
  font-size: 10px;
}

.post-content-wrap {
  min-width: 0;
  grid-column: 2;
}

.post-layout.is-single {
  grid-template-columns: minmax(0, 760px);
}

.post-layout.is-single .post-content-wrap {
  grid-column: 1;
}

.post-loading {
  padding-top: 12px;
}

.post-loading .skeleton-title {
  width: 58%;
  height: 30px;
}

.post-error {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

.post-error-mark {
  color: var(--accent);
  font-family: var(--serif-en);
  font-size: 42px;
}

.post-error h2 {
  margin-top: 20px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.post-error p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.post-error-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.post-footer {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.post-footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.copy-link-button {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.copy-link-button:hover {
  color: var(--accent);
}

.post-edited {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.author-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.author-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 24px;
}

.author-label {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.07em;
}

.author-copy strong {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
}

.author-copy p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.author-link {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}

/* =========================================================
   Markdown body
   ========================================================= */

.markdown-body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.markdown-body > *:first-child {
  margin-top: 0 !important;
}

.markdown-body > *:last-child {
  margin-bottom: 0 !important;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.035em;
  scroll-margin-top: 110px;
}

.markdown-body h1 {
  margin: 2em 0 0.7em;
  font-size: 2em;
}

.markdown-body h2 {
  margin: 2.3em 0 0.75em;
  padding-top: 0.4em;
  font-size: 1.75em;
  border-top: 1px solid var(--line);
}

.markdown-body h3 {
  margin: 1.9em 0 0.65em;
  font-size: 1.34em;
}

.markdown-body h4 {
  margin: 1.7em 0 0.55em;
  font-size: 1.12em;
}

.markdown-body p {
  margin: 1.1em 0;
}

.markdown-body strong {
  color: var(--ink);
  font-weight: 600;
}

.markdown-body em {
  font-style: italic;
}

.markdown-body a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  padding-bottom: 1px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.markdown-body a:hover {
  color: var(--accent-bright);
  border-bottom-color: currentColor;
}

.markdown-body a.post-pdf-link {
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}

.markdown-body a.post-pdf-link::before {
  border-bottom: 0;
}

.markdown-body a.post-pdf-link:hover {
  border-bottom-color: var(--accent);
}

.markdown-body ul,
.markdown-body ol {
  margin: 1.1em 0;
  padding-left: 1.4em;
}

.markdown-body ul {
  list-style: disc;
}

.markdown-body ol {
  list-style: decimal;
}

.markdown-body li {
  margin: 0.42em 0;
  padding-left: 0.2em;
}

.markdown-body li::marker {
  color: var(--accent);
}

.markdown-body li > p {
  margin: 0.35em 0;
}

.markdown-body blockquote {
  margin: 1.7em 0;
  padding: 0.2em 0 0.2em 1.3em;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

.markdown-body blockquote p {
  margin: 0.6em 0;
}

.markdown-body blockquote cite {
  color: var(--muted);
  font-size: 0.85em;
}

.markdown-body hr {
  width: 100%;
  margin: 2.6em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.markdown-body img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 1.8em auto;
  border-radius: 3px;
  box-shadow: 0 14px 42px rgba(35, 66, 88, 0.12);
}

[data-theme="dark"] .markdown-body img {
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34);
}

.markdown-body code {
  padding: 0.15em 0.38em;
  border-radius: 3px;
  background: rgba(var(--ink-rgb), 0.07);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.86em;
}

[data-theme="dark"] .markdown-body code {
  background: rgba(var(--ink-rgb), 0.1);
}

.markdown-body pre {
  margin: 0;
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  padding: 20px 22px 22px;
  tab-size: 2;
}

.markdown-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  white-space: pre;
}

.code-frame {
  margin: 1.9em 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  background: var(--code-bg);
  box-shadow: 0 16px 40px rgba(16, 36, 52, 0.16);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px 9px 18px;
  border-bottom: 1px solid rgba(234, 243, 248, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.code-lang {
  color: rgba(234, 243, 248, 0.52);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.code-copy {
  padding: 3px 8px;
  border: 1px solid rgba(234, 243, 248, 0.16);
  border-radius: 999px;
  color: rgba(234, 243, 248, 0.68);
  font-family: var(--mono);
  font-size: 8px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.code-copy:hover {
  color: var(--code-ink);
  border-color: rgba(234, 243, 248, 0.4);
}

.markdown-body .table-scroll {
  margin: 1.8em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.markdown-body table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.75;
}

.markdown-body th,
.markdown-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.markdown-body th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.markdown-body tr:last-child td {
  border-bottom: 0;
}

.markdown-body .math-inline {
  display: inline-block;
  vertical-align: baseline;
}

.markdown-body .math-block {
  margin: 1.8em 0;
  padding: 8px 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.markdown-body .katex-display {
  margin: 0;
}

.pdf-embed {
  margin: 2em 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.pdf-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.pdf-embed-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.pdf-embed-badge {
  flex-shrink: 0;
  padding: 3px 6px;
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.pdf-embed-name {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-embed-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 13px;
}

.pdf-embed-actions a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.pdf-embed-actions a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.pdf-embed-frame {
  background: var(--surface-strong);
}

.pdf-embed-frame iframe {
  display: block;
  width: 100%;
  height: clamp(520px, 76vh, 900px);
  border: 0;
  background: #fff;
}

.pdf-embed-note {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.7;
}

.markdown-body .math-error {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
}

/* highlight.js tokens */
.hljs-comment,
.hljs-quote {
  color: #7f92a5;
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
  color: #f3a3bc;
}

.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
  color: #a9d4e8;
}

.hljs-string,
.hljs-doctag {
  color: #a9d8c5;
}

.hljs-title,
.hljs-section,
.hljs-selector-id {
  color: #f0b5c8;
}

.hljs-type,
.hljs-class .hljs-title,
.hljs-built_in,
.hljs-builtin-name {
  color: #9fd3ea;
}

.hljs-params {
  color: #d8dfea;
}

.hljs-meta,
.hljs-link {
  color: #d4b4ea;
}

.hljs-attribute,
.hljs-name {
  color: #f0b5c8;
}

.hljs-symbol,
.hljs-bullet,
.hljs-addition {
  color: #a9d8c5;
}

.hljs-deletion {
  color: #f08b9f;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: 700;
}

/* =========================================================
   Auth / login
   ========================================================= */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
  padding: 25px 0;
}

.auth-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.auth-back {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  transition: color 0.25s ease;
}

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

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 20px 0 54px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  width: min(calc(100% - 48px), 1140px);
  min-height: 610px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(44, 91, 119, 0.14);
}

.auth-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100%;
  padding: 34px;
  background:
    radial-gradient(circle at 76% 14%, rgba(255, 242, 247, 0.46), transparent 32%),
    linear-gradient(150deg, #c8e6f2, #78b5cf);
  color: #1c2e40;
}

.auth-art-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(27, 46, 64, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 46, 64, 0.11) 1px, transparent 1px);
  background-size: 33.333% 25%;
}

.auth-art-sun {
  position: absolute;
  z-index: 1;
  top: -6%;
  right: -18%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f8e3eb;
  opacity: 0.96;
}

.auth-art-top {
  position: relative;
  z-index: 3;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.auth-art-glyph {
  position: absolute;
  z-index: 1;
  bottom: -13%;
  left: -2%;
  color: #1e3348;
  font-family: var(--display);
  font-size: clamp(250px, 30vw, 430px);
  font-weight: 700;
  line-height: 0.9;
  opacity: 0.93;
  mix-blend-mode: multiply;
}

.auth-art-copy {
  position: absolute;
  z-index: 4;
  right: 34px;
  bottom: 35px;
  left: 34px;
  padding: 17px 18px 16px;
  border: 1px solid rgba(27, 46, 64, 0.14);
  background: rgba(251, 233, 239, 0.94);
  box-shadow: 0 12px 34px rgba(44, 91, 119, 0.16);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.auth-art-copy span {
  display: block;
  margin-bottom: 9px;
  color: rgba(27, 46, 64, 0.62);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.auth-art-copy strong {
  color: #1e2d3c;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.auth-art-coord {
  position: absolute;
  z-index: 3;
  top: 34px;
  right: 34px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  text-align: right;
  opacity: 0.7;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5.5vw, 68px);
}

.auth-kicker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.auth-panel h1 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(34px, 3.8vw, 46px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.auth-desc {
  max-width: 350px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.auth-form {
  margin-top: 32px;
}

.auth-form > label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.password-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.password-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 79, 112, 0.1);
}

.password-field input {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.password-field button {
  padding: 0 13px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.password-field button:hover {
  color: var(--accent);
}

.form-error {
  margin-top: 10px;
  color: #a63e5b;
  font-size: 11px;
  line-height: 1.6;
}

[data-theme="dark"] .form-error {
  color: #ffa9c0;
}

.turnstile-field {
  margin-top: 18px;
}

.turnstile-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.turnstile-widget {
  min-height: 65px;
}

.turnstile-note {
  margin-top: 8px;
  color: var(--accent);
  font-size: 10px;
  line-height: 1.7;
}

.auth-submit {
  width: 100%;
  margin-top: 16px;
}

.auth-footnote {
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
}

.auth-lock {
  margin-right: 4px;
  color: var(--accent);
}

.auth-home-link {
  margin-top: 25px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  transition: color 0.25s ease;
}

.auth-home-link:hover {
  color: var(--accent);
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
  padding: 20px 0 25px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.shake {
  animation: fieldShake 0.38s ease;
}

@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
}

/* =========================================================
   404
   ========================================================= */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  padding: clamp(60px, 12vh, 130px) 0 60px;
}

.error-code {
  display: block;
  color: transparent;
  font-family: var(--serif-en);
  font-size: clamp(120px, 22vw, 300px);
  line-height: 0.8;
  letter-spacing: -0.08em;
  -webkit-text-stroke: 1px var(--line-strong);
}

.error-main h1 {
  margin-top: 28px;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.055em;
}

.error-main h1 em {
  color: var(--accent);
  font-style: normal;
}

.error-main > p:not(.eyebrow) {
  max-width: 420px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.error-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.error-actions .eyebrow {
  margin-bottom: 20px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1240px) {
  .local-time {
    display: none;
  }

  .hero-visual {
    width: min(100%, 410px);
  }

  .poster-stamp {
    left: -24px;
    width: 78px;
  }

  .section-intro {
    grid-template-columns: 130px minmax(0, 1fr) 210px;
  }
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 20px;
  }

  .blog-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 44px;
  }

  .post-layout {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 38px;
  }

  .principle-row {
    grid-template-columns: 32px minmax(150px, 0.8fr) minmax(230px, 1.2fr);
  }

  .principle-tags {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .header-inner {
    height: 74px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 34px;
  }

  .hero-visual {
    width: min(100%, 360px);
  }

  .hero-title {
    font-size: clamp(48px, 7vw, 69px);
  }

  .hero-lead {
    font-size: 14px;
  }

  .poster-stamp {
    left: -18px;
    bottom: 14%;
    width: 68px;
  }

  .poster-stamp strong {
    font-size: 16px;
  }

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

  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(n + 3) {
    padding-top: 23px;
    border-top: 1px solid var(--line);
  }

  .section-intro {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 26px;
  }

  .section-note {
    grid-column: 2;
    margin-top: -13px;
    padding-top: 0;
  }

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

  .about-statement {
    max-width: 660px;
  }

  .about-copy {
    max-width: 660px;
  }

  .latest-posts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .post-preview {
    padding: 24px 0;
    border-top: 1px solid var(--line);
  }

  .post-preview:first-child {
    border-top: 1px solid var(--line-strong);
  }

  .post-preview-link {
    min-height: 0;
  }

  .post-preview h3 {
    margin-top: 18px;
    font-size: 25px;
  }

  .post-preview-foot {
    padding-top: 18px;
  }

  .latest-more {
    display: block;
  }

  .topic-cloud {
    grid-template-columns: 1fr;
  }

  .archive-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
  }

  .archive-intro {
    max-width: 520px;
    padding-bottom: 0;
  }

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }

  .filter-block {
    border-top: 0;
  }

  .filter-block:first-child {
    padding-top: 0;
  }

  .sidebar-note,
  .rss-card {
    display: none;
  }

  .post-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .post-content-wrap,
  .post-layout.is-single .post-content-wrap {
    grid-column: 1 / -1;
  }

  .toc-aside {
    display: none;
  }

  .post-hero-inner {
    max-width: 100%;
  }
}

@media (max-width: 840px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero-title {
    font-size: clamp(52px, 11vw, 88px);
  }

  .hero-visual {
    justify-self: start;
    width: min(100%, 440px);
  }

  .stats {
    margin-top: 50px;
  }

  .archive-hero h1 {
    font-size: clamp(50px, 10.5vw, 80px);
  }

  .post-title {
    font-size: clamp(38px, 8.6vw, 58px);
  }

  .post-layout {
    padding-bottom: 90px;
  }

  .auth-shell {
    min-height: 560px;
  }

  .auth-art {
    padding: 28px;
  }

  .auth-art-copy {
    right: 28px;
    bottom: 28px;
    left: 28px;
  }

  .auth-art-coord {
    top: 28px;
    right: 28px;
  }

  .auth-panel {
    padding: 40px;
  }

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

  .filter-block {
    padding: 0;
  }

  .filter-block + .filter-block {
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
}

@media (max-width: 760px) {
  .section-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 40px;
    padding-top: 19px;
  }

  .section-meta {
    padding-top: 0;
  }

  .section-note {
    grid-column: 1;
    margin-top: 0;
    max-width: 380px;
  }

  .section-title {
    font-size: clamp(34px, 8.6vw, 46px);
  }

  .principle-row {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 7px 18px;
    padding: 20px 7px;
  }

  .principle-row p {
    grid-column: 2;
    font-size: 12px;
  }

  .about-copy p {
    font-size: 13.5px;
  }

  .topic-pill {
    min-height: 64px;
  }

  .topic-name {
    font-size: 22px;
  }

  .subscribe-shell {
    padding: 23px 20px 24px;
  }

  .subscribe-top {
    font-size: 8px;
  }

  .subscribe-main {
    margin-top: 65px;
  }

  .subscribe-main h2 {
    font-size: clamp(40px, 10.5vw, 58px);
  }

  .subscribe-actions {
    display: block;
    margin-top: 34px;
  }

  .subscribe-note {
    display: block;
    margin-top: 15px;
  }

  .subscribe-bottom {
    flex-wrap: wrap;
    gap: 9px 20px;
    margin-top: 64px;
    font-size: 8px;
  }

  .subscribe-bottom a {
    margin-left: auto;
  }

  .archive-hero {
    padding-top: 110px;
  }

  .archive-hero h1 {
    font-size: clamp(46px, 13vw, 64px);
  }

  .archive-intro > p {
    font-size: 13px;
  }

  .article-link {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
    padding: 24px 0 26px;
  }

  .article-copy h2 {
    font-size: 25px;
  }

  .article-copy > p {
    font-size: 12px;
  }

  .blog-toolbar {
    font-size: 8px;
  }

  .post-hero {
    padding-top: 108px;
  }

  .post-hero-top {
    margin-bottom: 34px;
  }

  .post-summary {
    font-size: 14px;
  }

  .post-meta {
    font-size: 8px;
  }

  .markdown-body {
    font-size: 15.5px;
    line-height: 1.95;
  }

  .markdown-body h2 {
    font-size: 1.55em;
  }

  .markdown-body h3 {
    font-size: 1.25em;
  }

  .markdown-body pre {
    font-size: 11.5px;
    padding: 17px 16px 19px;
  }

  .author-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .author-mark {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .author-link {
    grid-column: 2;
  }

  .post-footer-row {
    flex-direction: column;
    gap: 14px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    width: calc(100% - 32px);
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .auth-art {
    min-height: 210px;
    padding: 22px;
    border-radius: 3px 3px 0 0;
  }

  .auth-art-glyph {
    font-size: 170px;
    bottom: -28%;
  }

  .auth-art-copy {
    right: 22px;
    bottom: 20px;
    left: 22px;
    padding-top: 12px;
  }

  .auth-art-copy strong {
    font-size: 24px;
  }

  .auth-art-coord {
    top: 22px;
    right: 22px;
  }

  .auth-panel {
    padding: 30px 24px 32px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 3px 3px;
  }

  .auth-header {
    width: calc(100% - 32px);
    padding: 18px 0;
  }

  .auth-footer {
    width: calc(100% - 32px);
    padding-bottom: 20px;
  }

  .error-main {
    width: calc(100% - 40px);
    padding-top: 70px;
  }

  .error-actions {
    flex-wrap: wrap;
    gap: 18px;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 9px 22px;
  }

  .footer-inner > span:first-child {
    width: 100%;
  }

  .footer-quote {
    font-size: 12px;
  }

  .post-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
  }

  html {
    scroll-padding-top: 90px;
  }

  .header-inner {
    height: 68px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 16px;
  }

  .brand-text {
    font-size: 10px;
  }

  .brand-text small {
    display: none;
  }

  .header-tools {
    gap: 8px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 33px;
    height: 33px;
  }

  .menu-toggle span {
    right: 9px;
    left: 9px;
  }

  .menu-toggle span:first-child { top: 12px; }
  .menu-toggle span:last-child { top: 18px; }
  .menu-toggle[aria-expanded="true"] span:first-child,
  .menu-toggle[aria-expanded="true"] span:last-child { top: 15px; }

  .mobile-menu {
    padding-top: 92px;
  }

  .mobile-menu nav a {
    font-size: 40px;
  }

  .hero {
    padding-top: 104px;
  }

  .eyebrow {
    font-size: 9px;
    line-height: 1.8;
  }

  .hero-title {
    font-size: clamp(48px, 13.2vw, 74px);
    letter-spacing: -0.07em;
  }

  .hero-lead {
    font-size: 13.5px;
    line-height: 1.95;
  }

  .hero-actions {
    gap: 19px;
  }

  .btn {
    min-height: 47px;
    padding: 0 20px;
    font-size: 12px;
  }

  .hero-footnote {
    font-size: 8px;
    margin-top: 28px;
  }

  .hero-footnote .footnote-divider {
    display: none;
  }

  .hero-visual {
    width: min(100%, 390px);
  }

  .poster-stamp {
    right: -6px;
    bottom: -16px;
    left: auto;
    width: 64px;
  }

  .poster-meta {
    margin-top: 21px;
    font-size: 7px;
  }

  .poster-meta a {
    display: none;
  }

  .stats {
    margin-top: 43px;
    padding: 21px 0;
    row-gap: 21px;
  }

  .stat {
    padding-left: 17px;
  }

  .stat:nth-child(odd) {
    padding-left: 0;
  }

  .stat-number {
    font-size: 39px;
  }

  .stat-date {
    font-size: 17px;
  }

  .stat-location {
    font-size: 31px;
  }

  .stat p {
    font-size: 8px;
  }

  .marquee {
    margin-top: 31px;
    padding: 13px 0;
  }

  .marquee-group span {
    font-size: 14px;
  }

  .section {
    padding-block: 82px;
  }

  .section-title {
    font-size: clamp(32px, 9.4vw, 43px);
    line-height: 1.3;
  }

  .section-note {
    font-size: 11px;
  }

  .about-quote-mark {
    font-size: 66px;
    margin-bottom: 12px;
  }

  .about-statement p {
    font-size: clamp(25px, 7.2vw, 31px);
    line-height: 1.6;
  }

  .about-statement p br {
    display: none;
  }

  .about-copy p {
    font-size: 13px;
    line-height: 2;
  }

  .principle-row h3 {
    font-size: 21px;
  }

  .post-preview h3 {
    font-size: 23px;
  }

  .post-excerpt {
    font-size: 12px;
  }

  .post-dates {
    font-size: 7px;
    text-align: right;
  }

  .topic-pill {
    grid-template-columns: 23px minmax(0, 1fr) auto 13px;
    gap: 10px;
    min-height: 59px;
  }

  .topic-name {
    font-size: 20px;
  }

  .subscribe-main h2 {
    font-size: clamp(36px, 10.8vw, 48px);
  }

  .subscribe-main h2 br {
    display: none;
  }

  .subscribe-bottom {
    justify-content: flex-start;
  }

  .subscribe-bottom a {
    margin-left: 0;
  }

  .archive-hero {
    padding-top: 104px;
    padding-bottom: 44px;
  }

  .archive-hero h1 {
    font-size: clamp(44px, 13.4vw, 58px);
  }

  .archive-stats {
    font-size: 8px;
  }

  .archive-section {
    padding-top: 0;
  }

  .blog-sidebar {
    gap: 15px;
    padding-bottom: 20px;
  }

  .blog-toolbar {
    flex-wrap: wrap;
    gap: 5px 14px;
  }

  .article-link {
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 8px;
  }

  .article-meta {
    gap: 5px;
    font-size: 7.2px;
  }

  .article-copy h2 {
    font-size: 22px;
    line-height: 1.45;
  }

  .article-copy > p {
    font-size: 11.5px;
  }

  .article-foot {
    margin-top: 13px;
  }

  .article-number {
    font-size: 8px;
  }

  .tag-pill {
    font-size: 7.5px;
  }

  .post-hero {
    padding-top: 98px;
    padding-bottom: 36px;
  }

  .post-hero-top {
    margin-bottom: 28px;
  }

  .post-hero-actions {
    gap: 12px;
  }

  .share-button span {
    display: none;
  }

  .post-title {
    font-size: clamp(34px, 9.6vw, 46px);
    line-height: 1.25;
  }

  .post-summary {
    margin-top: 16px;
    font-size: 13px;
  }

  .post-meta {
    gap: 5px;
    margin-top: 20px;
    padding-top: 15px;
    font-size: 7.5px;
  }

  .post-meta .meta-dot {
    display: none;
  }

  .post-meta > span {
    display: block;
    width: 100%;
  }

  .post-layout {
    gap: 20px;
    padding-bottom: 72px;
  }

  .markdown-body {
    font-size: 15px;
    line-height: 1.95;
  }

  .markdown-body h2 {
    font-size: 1.45em;
  }

  .markdown-body h1 {
    font-size: 1.7em;
  }

  .markdown-body img {
    margin: 1.4em auto;
  }

  .markdown-body .table-scroll {
    margin-inline: -20px;
    border-right: 0;
    border-left: 0;
  }

  .pdf-embed {
    margin-inline: -6px;
  }

  .pdf-embed-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 11px 12px;
  }

  .pdf-embed-name {
    font-size: 8px;
  }

  .pdf-embed-actions {
    gap: 12px;
  }

  .pdf-embed-frame iframe {
    height: 62vh;
    min-height: 400px;
  }

  .pdf-embed-note {
    padding: 9px 12px;
  }

  .markdown-body table {
    min-width: 420px;
  }

  .code-frame {
    margin-inline: -6px;
  }

  .post-footer {
    margin-top: 50px;
  }

  .author-card {
    padding: 17px;
    gap: 13px;
  }

  .author-copy p {
    font-size: 10px;
  }

  .post-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .auth-header {
    width: calc(100% - 32px);
  }

  .auth-header .brand-text {
    display: flex;
  }

  .auth-back {
    font-size: 8px;
  }

  .auth-header-actions {
    gap: 12px;
  }

  .auth-shell {
    width: calc(100% - 24px);
  }

  .auth-art {
    min-height: 190px;
  }

  .auth-art-glyph {
    font-size: 152px;
    bottom: -34%;
  }

  .auth-art-copy {
    display: none;
  }

  .auth-panel {
    padding: 26px 20px 28px;
  }

  .auth-panel h1 {
    font-size: 34px;
  }

  .auth-desc {
    font-size: 12px;
  }

  .auth-form {
    margin-top: 25px;
  }

  .auth-footnote {
    font-size: 7.5px;
  }

  .auth-footer {
    width: calc(100% - 32px);
    font-size: 7.5px;
  }

  .error-main h1 {
    font-size: clamp(38px, 10.5vw, 52px);
  }

  .error-main > p:not(.eyebrow) {
    font-size: 13px;
  }

  .error-actions .btn {
    min-height: 44px;
  }

  .footer-links {
    gap: 13px;
  }

  .toast {
    bottom: 18px;
    max-width: calc(100vw - 30px);
    text-align: center;
    white-space: normal;
  }

  .empty-state {
    padding: 24px;
  }
}

@media (hover: none) {
  .post-preview:hover h3,
  .article-row:hover .article-copy h2 {
    color: inherit;
  }

  .article-row:hover .article-link {
    padding-left: 0;
  }

  .poster-stamp {
    transform: rotate(-6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation: none;
  }

  .js-reveal {
    opacity: 1;
    transform: none;
  }

  .hero-anim {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Changelog
   ========================================================= */

.changelog-hero {
  padding: clamp(132px, 16vh, 176px) 0 clamp(60px, 8vw, 92px);
}

.changelog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(40px, 7vw, 100px);
  margin-top: clamp(26px, 3.4vw, 38px);
}

.changelog-hero h1 {
  font-family: var(--display);
  font-size: clamp(54px, 6.5vw, 88px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.changelog-hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.changelog-intro {
  max-width: 350px;
  padding-bottom: 9px;
}

.changelog-intro > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.changelog-sort {
  display: block;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.changelog-section {
  padding-top: 0;
}

.changelog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 860px);
  justify-content: center;
  gap: clamp(40px, 6vw, 82px);
  align-items: start;
}

.changelog-aside {
  position: sticky;
  top: 108px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.changelog-aside-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.changelog-aside p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.changelog-aside .inline-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9px;
}

.changelog-list {
  border-top: 1px solid var(--line-strong);
}

.changelog-entry {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  padding: 30px 0 36px;
  border-bottom: 1px solid var(--line);
}

.changelog-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
}

.changelog-date-year {
  color: var(--muted);
  font-size: 8px;
  opacity: 0.65;
}

.changelog-date strong {
  color: var(--ink);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.changelog-entry-body {
  position: relative;
  padding-left: 18px;
}

.changelog-dot {
  position: absolute;
  top: 6px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(185, 79, 112, 0.1);
}

.changelog-entry-body h2 {
  font-family: var(--display);
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.changelog-text {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
  white-space: pre-line;
}

.changelog-skeleton {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.changelog-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 240px;
  padding: 36px 0;
}

.changelog-empty h2 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.changelog-empty p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.changelog-empty .btn {
  margin-top: 20px;
}

@media (max-width: 960px) {
  .changelog-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .changelog-intro {
    max-width: 520px;
    padding-bottom: 0;
  }

  .changelog-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .changelog-aside {
    position: static;
    max-width: 540px;
    padding-top: 18px;
  }
}

@media (max-width: 600px) {
  .changelog-hero {
    padding-top: 104px;
    padding-bottom: 42px;
  }

  .changelog-hero h1 {
    font-size: clamp(39px, 12vw, 56px);
  }

  .changelog-intro > p {
    font-size: 13px;
  }

  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 23px 0 28px;
  }

  .changelog-date {
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
  }

  .changelog-entry-body {
    padding-left: 15px;
  }

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

  .changelog-text {
    font-size: 12px;
  }
}

[data-theme="dark"] .post-origin-badge.is-original,
[data-theme="dark"] .origin-chip.is-original {
  color: var(--blue-deep);
}
