:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --ink: #202630;
  --muted: #596779;
  --link: #174ea6;
  --soft: #eaf2ff;
  --pressed: #d5e3f8;
  --line: #d9d7d1;
  --body: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
}
a {
  color: var(--link);
  text-underline-offset: 0.24em;
}
button {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
}
::selection {
  background: var(--pressed);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}
html[data-keyboard] *,
html[data-keyboard] *::before {
  transition-duration: 0s !important;
}
.shell {
  max-width: 1184px;
  margin: auto;
  padding: 68px 0 48px;
}
.site-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px 32px;
  margin-bottom: 80px;
}
.brand {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  width: max-content;
}
.tagline {
  grid-row: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.action {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--link);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    sans-serif;
  text-decoration: none;
  white-space: normal;
}
.action::before {
  content: '';
  position: absolute;
  inset: 7px 0;
  border-radius: 999px;
  background: var(--soft);
  opacity: 0;
  z-index: -1;
  transition:
    opacity 150ms ease,
    background-color 150ms ease;
}
.action:focus-visible::before {
  opacity: 1;
}
.action:active::before {
  opacity: 1;
  background: var(--pressed);
}
.action svg {
  flex: none;
  transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
.back svg {
  transform: rotate(180deg);
}
.stream {
  display: grid;
  gap: 88px;
  max-width: 1000px;
  margin: auto;
}
.entry {
  display: grid;
  grid-template-columns: 112px minmax(0, 704px);
  column-gap: 48px;
  align-items: start;
}
.entry-date {
  font-size: 13px;
  line-height: 1.7;
  padding-top: 0;
}
.date-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  max-width: 100%;
  white-space: normal;
}
.entry.has-title .date-link {
  height: 48px;
}
.entry.note .date-link {
  height: 38px;
  transform: translateY(-3px);
}
h1,
h2 {
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
  margin: 0 0 28px;
  letter-spacing: -0.015em;
}
h1 {
  font-size: 34px;
}
h2 {
  font-size: 32px;
}
h2 a {
  color: var(--ink);
  text-decoration: none;
}
p {
  margin: 0 0 28px;
}
.prose {
  font-size: var(--body);
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.prose > :last-child {
  margin-bottom: 0;
}
.prose h2 {
  font-size: 1.25em;
  margin-top: 2em;
  margin-bottom: 0.85em;
}
.prose h3 {
  font-size: 1.12em;
  margin-top: 1.8em;
  margin-bottom: 0.85em;
}
.prose h4,
.prose h5,
.prose h6 {
  font-size: 1em;
  margin-top: 1.8em;
}
.prose blockquote {
  margin: 36px 0;
  padding: 0;
  color: var(--ink);
  font-size: 1.08em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 28px;
}
.prose li {
  padding-left: 0.25em;
  margin: 0.35em 0;
}
.prose li p {
  margin-bottom: 8px;
}
.prose pre {
  overflow: auto;
  padding: 18px 0;
  font-size: 0.75em;
  line-height: 1.65;
  margin: 28px 0;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.table-scroll {
  overflow: auto;
  margin: 28px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85em;
}
th,
td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.entry-content > .action {
  margin: 24px 0 0 -12px;
}
.preview {
  display: flex;
  min-width: 0;
  gap: 24px;
  align-items: center;
  margin: 40px 0;
  text-decoration: none;
}
.preview > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.preview small {
  display: block;
  color: #505d6d;
  font:
    12px/1.7 -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    sans-serif;
}
.preview strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  margin-top: 6px;
}
.preview-description {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.preview img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.preview svg {
  flex: none;
}
.reading {
  max-width: 704px;
  margin: auto;
}
.reading .back {
  margin: 0 0 36px -12px;
}
.reading-state {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 20px;
}
.reading-time {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.image-block {
  display: block;
  margin: 36px 0;
}
.image-open {
  position: relative;
  display: block;
  text-decoration: none;
}
.image-open img {
  display: block;
  width: auto;
  max-width: 100%;
  border-radius: 8px;
}
.image-hint {
  display: block;
  text-align: right;
  padding-top: 8px;
  min-height: 44px;
  font:
    13px/1.8 -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    sans-serif;
  color: var(--muted);
  transition: color 150ms ease;
}
.image-error {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.site-foot {
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 88px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.pagination {
  max-width: 1000px;
  margin: 64px auto 0;
}
.empty {
  max-width: 1000px;
  margin: 0 auto;
  min-height: 200px;
  font-size: 18px;
  line-height: 1.8;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: var(--bg);
  z-index: 10;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}
dialog {
  max-width: min(96vw, 1500px);
  max-height: 94vh;
  padding: 52px 16px 16px;
  background: var(--bg);
  color: var(--ink);
  border: 0;
  border-radius: 8px;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}
dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 80px);
  width: auto;
  object-fit: contain;
  margin: auto;
}
.close-image {
  position: absolute;
  right: 12px;
  top: 6px;
}
.dialog-error {
  margin: 0;
  padding: 24px;
}
.error-page p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}
.editorial {
  --bg: #faf9f6;
  --ink: #000;
  --muted: #595852;
  --link: #000;
  --soft: #efeee9;
  --pressed: #e5e3da;
  font-family: 'Songti SC', 'STSong', 'SimSun', Georgia, serif;
}
.editorial .site-head {
  display: flex;
  flex-direction: column;
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 76px;
}
.editorial .brand {
  font-size: 48px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  font-weight: 600;
}
.editorial .tagline {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
}
.editorial .stream {
  gap: 96px;
}
.editorial .entry h2 {
  font-size: 36px;
  font-weight: 600;
}
.editorial .has-title .date-link {
  height: 54px;
}
.editorial .prose {
  line-height: 1.95;
}
.editorial .entry-date,
.editorial .reading-state,
.editorial .reading-time {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
}
.editorial .preview {
  border-block: 1px solid var(--line);
  padding: 20px 0;
}
.editorial .preview small {
  color: var(--muted);
}
.editorial .action::before {
  border-radius: 0;
}
.editorial .site-foot {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.editorial .image-open img,
.editorial dialog {
  border-radius: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .action:hover::before {
    opacity: 1;
  }
  .action:hover svg {
    transform: translateX(2px);
  }
  .action.back:hover svg {
    transform: rotate(180deg) translateX(2px);
  }
  h2 a:hover,
  .date-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
  }
  .preview:hover strong {
    text-decoration: underline;
    text-decoration-thickness: 1px;
  }
  .image-open:hover .image-hint {
    color: var(--link);
  }
}
@media (max-width: 1264px) {
  .shell {
    padding: 56px 40px 40px;
  }
}
@media (max-width: 1000px) {
  .entry {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 32px;
  }
  .entry-date {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  :root {
    --body: 18px;
  }
  .shell {
    padding: 36px 20px 32px;
  }
  .site-head {
    margin-bottom: 48px;
    gap: 8px 16px;
  }
  .brand {
    font-size: 28px;
  }
  .entry {
    display: block;
  }
  .entry-date {
    margin-bottom: 12px;
  }
  .entry .date-link,
  .editorial .entry .date-link {
    height: auto;
    min-height: 44px;
    transform: none;
  }
  .stream,
  .editorial .stream {
    gap: 64px;
  }
  .entry h2,
  .editorial .entry h2 {
    font-size: 28px;
    margin-bottom: 24px;
  }
  .reading h1 {
    font-size: 28px;
  }
  .editorial .site-head {
    margin-bottom: 48px;
  }
  .editorial .brand {
    font-size: 38px;
  }
  .site-foot {
    margin-top: 64px;
  }
  .preview {
    gap: 16px;
  }
  .preview-description {
    font-size: 13px;
  }
  .reading .back {
    margin-bottom: 28px;
  }
  dialog {
    width: calc(100% - 24px);
    margin: auto;
  }
  .reading-state {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    transition-duration: 0s !important;
    animation: none !important;
  }
  .action svg {
    transform: none !important;
  }
  .back svg {
    transform: rotate(180deg) !important;
  }
}
[hidden] {
  display: none !important;
}

.brand-heading {
  margin: 0;
  line-height: 1.5;
}
