:root {
  --paper: #f7f5f1;
  --paper-deep: #ebe7e0;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #6d6964;
  --soft: #938e87;
  --line: #d9d5ce;
  --line-soft: #e5e1db;
  --blue: #195aa6;
  --blue-soft: #eaf1f9;
  --red: #a33a32;
  --red-soft: #f8ece9;
  --green: #2d7559;
  --reading: min(50vw, 760px);
  --wide: min(1180px, calc(100% - 48px));
  --radius: 8px;
  --shadow: 0 16px 40px rgba(20, 20, 20, 0.07);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 350ms;
  --dur-exit: 180ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0, 1);
  --ease-in: cubic-bezier(0.3, 0, 1, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

::selection {
  color: #fff;
  background: var(--blue);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.drawer-open,
body.modal-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[contenteditable="true"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

img {
  max-width: 100%;
}

svg {
  display: block;
}

.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;
}

.top-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper-deep);
  transition:
    transform var(--dur-base) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-standard);
  will-change: transform;
}

.top-shell.scrolled {
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
}

.top-shell.retracted {
  transform: translateY(-100%);
  box-shadow: none;
}

.header-inner,
.subnav-inner {
  width: var(--wide);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 38px;
  min-height: 66px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 49% 51% 47% 53% / 46% 55% 45% 54%;
  background: var(--ink);
  transform: rotate(-8deg);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.brand-mark::before {
  top: 5px;
  left: 5px;
  width: 9px;
  height: 10px;
}

.brand-mark::after {
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
}

.main-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-width: 0;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 22px 0;
  border: 0;
  color: #4d4a46;
  background: transparent;
  font-size: 14px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.nav-menu-button:hover,
.nav-item.open > .nav-menu-button {
  color: var(--ink);
}

.nav-link.active {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.nav-menu-button svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-item.open .nav-menu-button svg {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: calc(100% - 3px);
  left: -13px;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top left;
  transition:
    opacity var(--dur-exit) var(--ease-in),
    transform var(--dur-exit) var(--ease-in),
    visibility var(--dur-exit) var(--ease-standard);
  visibility: hidden;
}

.nav-item.open .submenu,
.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-emphasized),
    visibility var(--dur-base) var(--ease-standard);
  visibility: visible;
}

.submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px;
  border-radius: 6px;
  color: #59554f;
  font-size: 13px;
}

.submenu a:hover {
  color: var(--ink);
  background: #e4e0d9;
}

.submenu small {
  color: var(--muted);
  font-size: 11px;
}

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

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  color: #3f3c38;
  background: transparent;
}

.icon-button:hover {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.48);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition:
    color var(--dur-fast) var(--ease-standard),
    background var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
}

.button:hover {
  color: var(--ink);
  background: transparent;
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.button.secondary:hover {
  color: #fff;
  background: var(--ink);
}

.button svg {
  width: 17px;
  height: 17px;
}

.mobile-menu-button {
  display: none;
}

.subnav {
  border-top: 1px solid #ddd8d0;
  border-bottom: 1px solid #ded9d1;
}

.subnav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 49px;
}

.breadcrumbs {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: #6f6a64;
  font-size: 12px;
  white-space: nowrap;
}

.breadcrumbs svg {
  width: 13px;
  height: 13px;
}

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

.breadcrumbs .current {
  max-width: 240px;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
}

.subnav-list {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 24px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-list::-webkit-scrollbar {
  display: none;
}

.subnav-link,
.subnav-button {
  position: relative;
  flex: 0 0 auto;
  padding: 14px 0;
  border: 0;
  color: #625e59;
  background: transparent;
  font-size: 13px;
  white-space: nowrap;
}

.subnav-link:hover,
.subnav-link.active,
.subnav-button:hover,
.subnav-button.active {
  color: var(--ink);
}

.subnav-link.active::after,
.subnav-button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--ink);
  content: "";
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.32);
  opacity: 0;
  transition: opacity var(--dur-exit) var(--ease-in);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100%;
  padding: 20px;
  overflow-y: auto;
  background: var(--paper);
  box-shadow: -16px 0 40px rgba(17, 17, 17, 0.12);
  transform: translateX(100%);
  transition: transform var(--dur-exit) var(--ease-in);
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer.open .drawer-backdrop {
  opacity: 1;
  transition-duration: var(--dur-base);
  transition-timing-function: var(--ease-out);
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
  transition-duration: var(--dur-base);
  transition-timing-function: var(--ease-emphasized);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.drawer-nav {
  padding-top: 10px;
}

.drawer-link,
.drawer-group-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 4px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: #3f3c38;
  background: transparent;
  text-align: left;
}

.drawer-group-button svg {
  width: 17px;
  height: 17px;
  transition: transform var(--dur-base) var(--ease-out);
}

.drawer-group.open .drawer-group-button svg {
  transform: rotate(180deg);
}

.drawer-submenu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-exit) var(--ease-in);
}

.drawer-group.open .drawer-submenu {
  grid-template-rows: 1fr;
  transition-duration: var(--dur-base);
  transition-timing-function: var(--ease-emphasized);
}

.drawer-submenu > div {
  overflow: hidden;
}

.drawer-submenu a {
  display: block;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 14px;
}

.drawer-submenu a:hover {
  color: var(--ink);
}

.page {
  width: var(--reading);
  margin: 0 auto;
  padding: 64px 0 96px;
}

@keyframes page-reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page > * {
  animation: page-reveal var(--dur-base) var(--ease-out) both;
}

.page.wide-page {
  width: var(--wide);
}

.page-header {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(42px, 4.8vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.page-title.center {
  text-align: center;
}

.title-accent {
  color: var(--blue);
}

.page-description {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.page-description.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.hero {
  padding: 78px 0 66px;
  text-align: center;
}

.hero .page-description {
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 52px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 700;
}

.section-head a {
  color: var(--muted);
  font-size: 13px;
}

.section-head a:hover {
  color: var(--blue);
}

.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(230px, 40%) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  min-width: 0;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur-fast) var(--ease-standard);
}

.post-card.featured {
  grid-column: auto;
  grid-template-columns: minmax(250px, 43%) minmax(0, 1fr);
}

.post-cover {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dedad3;
}

.post-cover[hidden] {
  display: none;
}

.post-card[data-has-cover="false"] {
  grid-template-columns: minmax(0, 1fr);
}

.post-card:has(> .post-cover[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.post-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--dur-base) var(--ease-out);
  animation: image-fade-in var(--dur-slow) var(--ease-out) both;
}

.post-cover:hover img {
  transform: scale(1.02);
}

@keyframes image-fade-in {
  from {
    opacity: 0.68;
  }
  to {
    opacity: 1;
  }
}

.post-card:not(.featured) .post-cover {
  margin-bottom: 0;
}

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

.post-meta .type,
.archive-type {
  color: var(--blue);
  font-weight: 700;
}

.post-meta .type.game,
.archive-type.game {
  color: var(--red);
}

.post-meta .type.essay,
.archive-type.essay {
  color: var(--muted);
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #aaa49d;
}

.post-title {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(32px, 3.1vw, 40px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0;
}

.post-card.featured .post-title {
  font-size: clamp(36px, 4vw, 52px);
}

.post-title a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.post-summary {
  margin: 10px 0 0;
  color: #5c5853;
  font-size: 14px;
  line-height: 1.8;
}

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

.tag-list a,
.tag-pill {
  padding: 4px 0;
  border-bottom: 1px solid #bfb9b1;
  color: #625e59;
  font-size: 12px;
  background: transparent;
  transition:
    color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
}

.tag-list a:hover,
.tag-pill:hover,
.tag-pill.active {
  color: var(--blue);
  border-color: var(--blue);
}

.article-grid {
  display: grid;
  gap: 0;
}

.article-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}

.article-date {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.article-date strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
}

.article-row h3 {
  margin: 5px 0 0;
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
}

.article-row h3 a:hover {
  color: var(--blue);
}

.article-row p {
  margin: 8px 0 0;
  color: #625e59;
  font-size: 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 0;
}

.filter-chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #5e5a55;
  background: transparent;
  font-size: 13px;
}

.filter-chip:hover,
.filter-chip.active {
  color: var(--ink);
  border-color: var(--ink);
  background: #fff;
}

.search-panel {
  margin-top: 30px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 17px;
  border: 1px solid #bfb9b1;
  border-radius: var(--radius);
  background: #fff;
}

.search-field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}

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

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}

.search-count {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.state-box {
  margin-top: 34px;
  padding: 38px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.state-box svg {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
}

.state-box h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 25px;
  font-weight: 700;
}

.skeleton-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.skeleton {
  overflow: hidden;
  min-height: 118px;
  border-radius: var(--radius);
  background: #e5e1da;
}

.skeleton::after {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: skeleton 1.2s infinite;
  content: "";
}

@keyframes skeleton {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(260%);
  }
}

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

.article-category {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.article-category.tutorial {
  color: var(--blue);
}

.article-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(34px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: pretty;
}

.article-summary {
  margin: 19px 0 0;
  color: #55514c;
  font-size: 16px;
  line-height: 1.85;
}

.article-meta {
  gap: 14px;
  margin-top: 22px;
  font-size: 13px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta svg {
  width: 15px;
  height: 15px;
}

.article-cover {
  display: block;
  overflow: hidden;
  margin: 31px 0 0;
  border-radius: var(--radius);
  background: transparent;
}

.article-cover[hidden] {
  display: none;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.article-body {
  padding-top: 42px;
  color: #252321;
  font-size: 17px;
  line-height: 1.92;
}

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

.article-body p {
  margin: 0 0 25px;
}

.article-body h2,
.article-body h3 {
  scroll-margin-top: 132px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0;
}

.article-body h2 {
  position: relative;
  margin: 52px 0 20px;
  padding-left: 15px;
  font-size: 32px;
  line-height: 1.25;
}

.article-body h2::before {
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0;
  width: 3px;
  border-radius: 99px;
  background: var(--ink);
  content: "";
}

.article-body h3 {
  margin: 36px 0 14px;
  font-size: 23px;
  line-height: 1.35;
}

.article-body figure {
  margin: 28px 0;
}

.table-scroll {
  width: 100%;
  margin: 26px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  margin: 0;
  min-width: 100%;
}

.article-body p img {
  display: block;
  max-width: 100%;
  height: auto;
}

.article-body figure figure,
.article-body h2 figure,
.article-body h3 figure {
  margin: 0;
}

.article-body figcaption {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
}

.article-body figcaption + figcaption {
  margin-top: 14px;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid #a9a39b;
  color: #514d48;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.75;
  transition: border-color var(--dur-exit) var(--ease-standard);
}

.article-body ul,
.article-body ol {
  margin: 0 0 26px;
  padding-left: 25px;
}

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

.article-body pre {
  overflow-x: auto;
  margin: 28px 0;
  padding: 19px 20px;
  border: 1px solid #3e3b38;
  border-radius: var(--radius);
  color: #f5f2ed;
  background: #1f1e1c;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 14px;
  line-height: 1.75;
}

.article-body code {
  font-family: Consolas, "SFMono-Regular", monospace;
}

.callout {
  display: flex;
  gap: 12px;
  margin: 28px 0 34px;
  padding: 17px 18px;
  border: 1px solid #cad9ea;
  border-radius: var(--radius);
  color: #31577e;
  background: var(--blue-soft);
  font-size: 14px;
  line-height: 1.75;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.callout strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.callout.warning {
  border-color: #e4c9c2;
  color: #77362f;
  background: var(--red-soft);
}

.key-points {
  margin: 36px 0;
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.key-points h3 {
  margin-top: 0;
}

.key-points ul,
.key-points ol {
  margin-bottom: 0;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 35px;
}

.article-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #55514c;
  background: transparent;
  font-size: 13px;
  transition:
    color var(--dur-fast) var(--ease-standard),
    background var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
}

.article-action:hover,
.article-action.active {
  color: var(--ink);
  border-color: var(--ink);
  background: #fff;
}

.article-action svg {
  width: 16px;
  height: 16px;
}

.article-end {
  margin-top: 56px;
}

.article-end .tag-list:empty {
  display: none;
}

.article-browse-all {
  display: flex;
  justify-content: center;
  margin-top: 0;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-browse-all .button {
  min-width: 160px;
}

.article-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.article-pagination a {
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
}

.article-pagination a:hover {
  border-color: #a9a39b;
  background: #fff;
}

.pagination-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.pagination-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.45;
}

.floating-guide {
  position: fixed;
  top: 50%;
  right: max(24px, calc((100vw - 1180px) / 2 - 116px));
  z-index: 25;
  display: grid;
  gap: 13px;
  min-width: 122px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-deep);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(22px, -50%);
  transition:
    opacity var(--dur-slow) var(--ease-standard),
    transform var(--dur-slow) var(--ease-emphasized);
}

@media (hover: hover) {
  .post-card:hover {
    border-color: #b9b3aa;
  }

  .article-pagination a,
  .load-more {
    transition:
      color var(--dur-fast) var(--ease-standard),
      background var(--dur-fast) var(--ease-standard),
      border-color var(--dur-fast) var(--ease-standard);
  }
}

.floating-guide.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.floating-guide a {
  position: relative;
  padding-left: 14px;
  color: #57534f;
  font-size: 12px;
  white-space: nowrap;
}

.floating-guide a::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 1px;
  background: transparent;
  content: "";
  transform: translateY(-50%);
  transition:
    width var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
}

.floating-guide a:hover,
.floating-guide a.active {
  color: var(--ink);
}

.floating-guide a.active::before {
  width: 10px;
  background: var(--ink);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 100ms linear;
}

.archive-group + .archive-group {
  margin-top: 48px;
}

.archive-year {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 700;
}

.archive-year small {
  color: var(--muted);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 400;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 17px;
  margin-top: 30px;
}

.tag-cloud .tag-pill {
  font-size: 15px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 44px;
  margin-top: 34px;
}

.about-copy {
  font-size: 16px;
  line-height: 1.9;
}

.about-copy h2 {
  margin: 38px 0 12px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 28px;
  font-weight: 400;
}

.about-side {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
}

.about-side h2 {
  margin: 0 0 13px;
  font-size: 16px;
}

.about-links {
  display: grid;
  gap: 2px;
}

.about-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  color: #57534f;
  font-size: 13px;
}

.about-links a:hover {
  color: var(--blue);
}

.about-links svg {
  width: 15px;
  height: 15px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: var(--wide);
  min-height: 108px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer-inner a {
  border-bottom: 1px solid #bbb5ad;
}

.footer-inner a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 17, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-exit) var(--ease-in);
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
  transition-duration: var(--dur-base);
  transition-timing-function: var(--ease-out);
}

.modal-card {
  width: min(100%, 460px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 26px 80px rgba(17, 17, 17, 0.18);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--dur-exit) var(--ease-in);
}

.modal.open .modal-card {
  transform: translateY(0) scale(1);
  transition-duration: var(--dur-base);
  transition-timing-function: var(--ease-emphasized);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
}

.modal-copy {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.modal-form {
  display: flex;
  gap: 9px;
}

.modal-form input {
  min-width: 0;
  height: 42px;
  flex: 1 1 auto;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: #fff;
}

.modal-form input:focus {
  border-color: var(--ink);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity var(--dur-base) var(--ease-in),
    transform var(--dur-base) var(--ease-in);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  transition-duration: var(--dur-slow);
  transition-timing-function: var(--ease-out);
}

@media (max-width: 1060px) {
  :root {
    --reading: min(720px, calc(100% - 48px));
  }

  .header-inner {
    gap: 24px;
  }

  .main-nav {
    gap: 18px;
  }

  .floating-guide {
    display: none;
  }

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

@media (max-width: 820px) {
  .main-nav,
  .header-actions .icon-button {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
  }

  .subnav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 9px 0 0;
  }

  .subnav-list {
    width: 100%;
  }

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

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

  .post-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 27px 0;
  }

  .post-card:not(.featured) .post-cover {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --reading: calc(100% - 32px);
    --wide: calc(100% - 32px);
  }

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

  .header-inner {
    min-height: 60px;
  }

  .brand {
    font-size: 20px;
  }

  .button.header-subscribe {
    min-height: 36px;
    padding: 0 13px;
    font-size: 13px;
  }

  .admin-entry {
    min-width: 36px;
    padding: 0 10px;
  }

  .admin-entry span {
    display: none;
  }

  .page {
    padding: 44px 0 72px;
  }

  .hero {
    padding: 52px 0 44px;
  }

  .page-title,
  .article-title {
    font-size: 41px;
  }

  .post-card.featured {
    gap: 18px;
  }

  .post-card.featured .post-title {
    font-size: 31px;
  }

  .post-title {
    font-size: 29px;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .article-date strong {
    display: inline;
    font-size: 16px;
  }

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

  .article-body figure {
    margin: 24px 0;
  }

  .article-body figure figure,
  .article-body h2 figure,
  .article-body h3 figure {
    margin: 0;
  }

  .article-body figcaption {
    font-size: 16px;
    line-height: 1.85;
    text-align: left;
  }

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

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

  .modal-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
  }
}

@media (max-width: 520px) {
  .header-subscribe {
    display: none;
  }
}

/* Editorial game archive */
:root {
  --paper: #f6f3ec;
  --paper-deep: #efebe3;
  --surface: #fbf9f5;
  --ink: #1c1a18;
  --muted: #716d66;
  --soft: #928d85;
  --line: #d8d2c8;
  --line-soft: #e5e0d7;
  --blue: #355f85;
  --blue-soft: #e9eef3;
  --red: #8f4f48;
  --red-soft: #f3ebe9;
  --radius: 6px;
  --shadow: none;
  --reading: min(760px, calc(100% - 48px));
  --wide: min(1180px, calc(100% - 48px));
}

body {
  background: var(--paper);
  letter-spacing: 0;
}

.site-copy-pending [data-copy-key] {
  visibility: hidden;
}

.top-shell {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  min-height: 64px;
  gap: 32px;
}

.brand {
  gap: 9px;
  font-size: 21px;
  font-weight: 650;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  transform: none;
}

.brand-mark::before,
.brand-mark::after {
  border-radius: 50%;
  background: var(--ink);
}

.brand-mark::before {
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
}

.brand-mark::after {
  display: none;
}

.main-nav {
  justify-content: center;
  gap: 24px;
}

.nav-link,
.nav-menu-button {
  padding: 21px 0;
  color: var(--muted);
  font-size: 13px;
}

.nav-link.active,
.nav-item.open > .nav-menu-button {
  color: var(--ink);
}

.header-actions {
  gap: 4px;
}

.icon-button {
  color: var(--muted);
}

.icon-button:hover {
  color: var(--ink);
  background: transparent;
}

.button {
  min-height: 36px;
  padding: 0 15px;
  border-color: var(--ink);
  border-radius: 4px;
  background: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.button.secondary:hover {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.header-subscribe,
.admin-entry {
  min-height: 34px;
  border-color: transparent;
  color: var(--muted);
  background: transparent;
  font-weight: 500;
}

.header-subscribe:hover,
.admin-entry:hover {
  border-color: transparent;
  color: var(--ink);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.submenu {
  border-radius: 4px;
  background: var(--paper);
  box-shadow: none;
}

.submenu a {
  border-radius: 3px;
}

.page {
  padding: 50px 0 84px;
}

.page.wide-page,
.home-page {
  width: var(--wide);
}

.page-header {
  padding-bottom: 30px;
}

.eyebrow {
  display: none;
}

.page-title {
  max-width: 780px;
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.18;
}

.title-accent {
  color: inherit;
}

.page-description {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

@keyframes page-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.page > * {
  animation-duration: 200ms;
}

.hero-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.82fr);
  gap: clamp(42px, 6vw, 84px);
  align-items: center;
  padding: 52px 0 68px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.hero-kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-editorial .page-title {
  max-width: 650px;
  font-size: clamp(40px, 4.8vw, 62px);
}

.hero-editorial .page-description {
  margin-top: 20px;
}

.hero-editorial .hero-actions {
  justify-content: flex-start;
  margin-top: 28px;
}

.hero-visual {
  display: block;
  min-width: 0;
  color: inherit;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
  background: var(--paper-deep);
}

.hero-visual-caption {
  display: grid;
  gap: 5px;
  padding-top: 11px;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.hero-visual.ready .hero-visual-caption {
  opacity: 1;
}

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

.hero-visual-caption strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.hero-visual:hover strong {
  color: var(--blue);
}

.section-head {
  align-items: baseline;
  margin: 48px 0 16px;
  padding-bottom: 11px;
}

.section-head h2 {
  font-size: 25px;
  font-weight: 650;
}

.section-head a {
  color: var(--muted);
  font-size: 12px;
}

.playing-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.playing-item {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.playing-cover {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper-deep);
}

.playing-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform var(--dur-base) var(--ease-out);
}

.playing-item:hover .playing-cover img {
  transform: scale(1.012);
}

.playing-index {
  margin-top: 2px;
  color: var(--soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.playing-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.playing-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-grid-editorial {
  max-width: 960px;
  margin: 0 auto;
}

.post-card {
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  gap: 30px;
  padding: 30px 0;
}

.post-card.featured {
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
}

.post-cover {
  border-radius: 4px;
}

.post-cover img {
  border-radius: 0;
}

.post-cover:hover img {
  transform: scale(1.012);
}

.post-title {
  margin-top: 9px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 650;
  line-height: 1.25;
}

.post-card.featured .post-title {
  font-size: clamp(34px, 4vw, 46px);
}

.post-summary {
  margin-top: 9px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.post-meta,
.article-meta,
.archive-facts {
  color: var(--muted);
  font-size: 11px;
}

.tag-list a,
.tag-pill {
  border-bottom-color: var(--line);
  color: var(--muted);
}

.home-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  margin-top: 64px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-about h2 {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 650;
}

.home-about p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.home-about > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 13px;
}

.home-about svg {
  width: 15px;
  height: 15px;
}

.article-title {
  font-size: clamp(34px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}

.article-summary {
  color: var(--muted);
  font-size: 16px;
}

.article-cover {
  border-radius: 4px;
}

.article-cover img {
  border-radius: 0;
}

.article-body {
  width: min(720px, 100%);
  margin: 0 auto;
  padding-top: 38px;
  font-size: 17px;
  line-height: 1.92;
}

.article-body h2 {
  padding-left: 12px;
  font-size: 29px;
}

.article-body h2::before {
  width: 2px;
  background: var(--blue);
}

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

.article-body blockquote {
  border-left-color: var(--line);
}

.callout,
.key-points {
  border-radius: 4px;
  box-shadow: none;
}

.key-points {
  padding-left: 20px;
  border-left: 2px solid var(--line);
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
  background: transparent;
}

.about-grid {
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 56px;
}

.about-copy h2 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 650;
}

.about-side {
  padding: 0 0 0 24px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.about-side h2 {
  font-weight: 650;
}

.filter-chip {
  border-radius: 4px;
  background: transparent;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
}

.search-field {
  border-color: var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
}

.search-field:focus-within {
  border-color: var(--ink);
  box-shadow: none;
}

.state-box {
  margin-top: 28px;
  padding: 20px 0 20px 20px;
  border: 0;
  border-left: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.state-box svg {
  margin: 0 0 8px;
}

.state-box h2 {
  font-size: 21px;
  font-weight: 650;
}

.article-browse-all {
  border-color: var(--line);
}

.site-footer {
  background: transparent;
}

.footer-inner {
  justify-content: space-between;
  min-height: 96px;
  color: var(--muted);
  text-align: left;
}

.floating-guide {
  right: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-deep);
  box-shadow: 0 12px 28px rgba(28, 26, 24, 0.07);
}

.floating-guide.visible {
  transform: translate(0, -50%);
}

@media (max-width: 960px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px 0 52px;
  }

  .hero-visual {
    max-width: 620px;
  }

  .playing-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .post-card,
  .post-card.featured {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

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

@media (max-width: 760px) {
  .page {
    padding: 38px 0 64px;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.92;
  }

  .article-body figure {
    margin: 24px 0;
  }

  .article-body figcaption {
    font-size: 17px;
    line-height: 1.92;
    text-align: left;
  }

  .page-title,
  .hero-editorial .page-title,
  .article-title {
    font-size: 36px;
  }

  .hero-kicker {
    margin-bottom: 12px;
  }

  .playing-item strong {
    font-size: 14px;
  }

  .post-title,
  .post-card.featured .post-title {
    font-size: 29px;
  }

  .footer-inner {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .playing-list {
    gap: 16px;
  }

  .playing-item small {
    white-space: normal;
  }
}

@media (max-width: 820px) {
  .header-actions .mobile-menu-button {
    display: grid;
  }
}

/* Plum-style layout: warm two-column archive, tag UI removed */
.plum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 52px;
  align-items: start;
}

.home-feed {
  min-width: 0;
  max-width: 780px;
}

.home-intro {
  padding: 10px 0 34px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.home-intro .page-title {
  max-width: 680px;
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1.22;
}

.home-intro .page-description {
  max-width: 650px;
  margin-top: 16px;
}

.home-intro .hero-actions {
  justify-content: flex-start;
  margin-top: 22px;
}

.feed-section .section-head {
  margin-top: 36px;
}

.post-feed {
  display: grid;
}

.feed-item {
  min-width: 0;
  padding: 25px 0;
  border-bottom: 1px solid var(--line-soft);
}

.feed-title {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.38;
}

.feed-title a:hover {
  color: var(--blue);
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.feed-cover {
  display: block;
  overflow: hidden;
  width: 100%;
  margin-top: 16px;
  border-radius: 4px;
  background: transparent;
}

.feed-cover[hidden] {
  display: none;
}

.feed-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--dur-base) var(--ease-out);
}

.feed-cover:hover img {
  transform: scale(1.01);
}

.feed-summary {
  margin: 13px 0 0;
  color: #5c5853;
  font-size: 15px;
  line-height: 1.85;
}

.feed-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-size: 13px;
}

.home-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  padding-top: 10px;
}

.side-widget + .side-widget {
  margin-top: 34px;
}

.side-widget h2 {
  margin: 0 0 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 650;
}

.side-links {
  display: grid;
}

.side-links a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.side-links a:hover {
  color: var(--blue);
}

.tag-list,
.tag-cloud,
.tag-pill {
  display: none !important;
}

@media (max-width: 960px) {
  .plum-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-feed {
    max-width: none;
  }

  .home-sidebar {
    position: static;
    order: 2;
  }
}

@media (max-width: 760px) {
  .home-intro {
    padding: 4px 0 28px;
  }

  .home-intro .page-title {
    font-size: 34px;
  }

  .feed-title {
    font-size: 22px;
  }

  .feed-summary {
    font-size: 15px;
  }

  .side-widget + .side-widget {
    margin-top: 28px;
  }
}

body.image-lightbox-open {
  overflow: hidden;
}

.article-body img.previewable-image,
.preview-body img {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: rgba(17, 17, 17, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard);
}

.image-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  display: block;
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.image-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
}

.image-lightbox-close svg {
  width: 20px;
  height: 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;
  }
}

/* 标题按词均衡换行，避免末字单独成行 */
.page-title,
.feed-title,
.post-title,
.article-row h3,
.section-head h2 {
  text-wrap: balance;
}

/* 摘要只优化最后一行的孤字 */
.feed-summary,
.post-summary,
.article-summary,
.article-body p {
  text-wrap: pretty;
}
