:root {
  --paper: #f6f3ec;
  --ink: #272923;
  --muted: #797970;
  --red: #a33e32;
  --rule: #dcd9cf;
  --code: #efede5;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover {
  color: var(--red);
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}
::selection {
  background: #e7c4b7;
  color: var(--ink);
}
.site-frame {
  width: min(1120px, calc(100% - 100px));
  margin: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding: 34px 0 29px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 2px;
}
.wordmark-sub {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-left: 7px;
}
.seal {
  background: var(--red);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  width: 39px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 3px 4px 2px 4px;
  transform: rotate(-4deg);
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
nav a {
  position: relative;
}
nav a[aria-current="page"] {
  color: var(--red);
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 7px;
}
.intro {
  display: grid;
  grid-template-columns: 1fr 300px;
  padding: 87px 0 72px;
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  display: block;
  color: var(--red);
  font-size: 11px;
  letter-spacing: 2.1px;
  margin: 0 0 28px;
  font-weight: 500;
}
.intro h1 {
  font-family: var(--serif);
  font-size: 57px;
  line-height: 1.42;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin: 0 0 23px;
}
.intro h1 span {
  color: var(--red);
}
.intro-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 2.1;
  margin: 0;
}
.intro-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.large-character {
  font-family: var(--serif);
  font-size: 220px;
  line-height: 1;
  color: #dfded3;
  user-select: none;
  transform: rotate(-7deg);
  margin-top: -20px;
}
.vertical-note {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 4px;
  writing-mode: vertical-rl;
  position: absolute;
  right: 15px;
  top: 25px;
  color: var(--muted);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 41px 0 9px;
}
.section-heading h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
}
.section-heading h2 span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1px;
  color: #919185;
  margin-left: 10px;
}
.section-heading > a {
  font-size: 12px;
  color: var(--muted);
}
.post-row {
  display: grid;
  grid-template-columns: 114px 1fr 24px;
  gap: 27px;
  align-items: start;
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}
.post-row time {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--muted);
  padding-top: 4px;
  letter-spacing: 0.2px;
}
.post-row h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.1px;
}
.post-summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.95;
  max-width: 760px;
  margin: 9px 0 0;
}
.post-category {
  display: flex;
  gap: 12px;
  margin-top: 9px;
  font-size: 11px;
  color: var(--red);
}
.post-arrow {
  font-size: 20px;
  color: #aba99f;
  line-height: 1.9;
  transition:
    transform 0.2s,
    color 0.2s;
}
.post-row:hover .post-arrow {
  color: var(--red);
  transform: translate(2px, -2px);
}
.more-link {
  text-align: center;
  margin: 38px 0 67px;
}
.more-link a {
  font-size: 13px;
  display: inline-flex;
  gap: 40px;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
}
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 35px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 76px;
  gap: 25px;
}
.site-footer p {
  margin: 0;
  letter-spacing: 0.5px;
}
.site-footer > div {
  display: flex;
  gap: 22px;
}
.page-heading {
  margin: 68px 0 48px;
}
.page-heading .eyebrow {
  margin-bottom: 18px;
}
.page-heading h1 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 2px;
  margin: 0;
}
.page-heading p:last-child {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}
.heading-count {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--red);
  vertical-align: top;
  letter-spacing: 0;
  margin: 12px 0 0 16px;
  display: inline-block;
}
.archive-year {
  margin: 40px 0 54px;
}
.year-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  display: flex;
  gap: 16px;
  align-items: baseline;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px;
  margin: 0;
}
.year-heading span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.archive-year .post-row {
  padding: 20px 0;
}
.archive-year .post-row h2 {
  font-size: 17px;
}
.taxonomy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 55px;
  margin-bottom: 100px;
}
.taxonomy-list > a {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  font-size: 18px;
}
.taxonomy-count {
  font-size: 12px;
  color: var(--muted);
}
.taxonomy-count span {
  margin-left: 18px;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 100px;
}
.tag-cloud a {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 9px 15px;
  font-size: 14px;
}
.tag-cloud a:hover {
  border-color: var(--red);
}
.tag-cloud span {
  font-size: 10px;
  color: var(--muted);
  margin-left: 12px;
}
.article {
  max-width: 840px;
  margin: 64px auto 0;
}
.article-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 30px;
  margin-bottom: 40px;
}
.article-header .eyebrow {
  margin-bottom: 15px;
}
.article-header h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.8px;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  font-size: 11px;
  color: var(--muted);
}
.meta-dot {
  color: #aba99e;
}
.prose {
  font-size: 16px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.prose > p {
  margin: 1.4em 0;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.65;
  margin: 1.8em 0 0.7em;
  color: #22241f;
  scroll-margin-top: 25px;
}
.prose h1 {
  font-size: 31px;
}
.prose h2 {
  font-size: 27px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}
.prose h3 {
  font-size: 22px;
}
.prose h4 {
  font-size: 19px;
}
.prose a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: #d5b0a6;
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: var(--red);
}
.prose img,
.prose video,
.prose iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
  border-radius: 2px;
}
.prose pre {
  background: #292c29;
  color: #e1e0d6;
  border-radius: 3px;
  overflow: auto;
  padding: 21px 24px;
  font-size: 13px;
  line-height: 1.85;
  tab-size: 4;
}
.prose code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86em;
  background: #eae7de;
  padding: 2px 5px;
  border-radius: 3px;
}
.prose pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
  white-space: pre;
}
.prose blockquote {
  border-left: 3px solid var(--red);
  margin: 24px 0;
  padding: 3px 22px;
  background: #efebe2;
  color: #66685f;
}
.prose blockquote p {
  margin: 10px 0;
}
.prose ul,
.prose ol {
  padding-left: 1.6em;
}
.prose li {
  margin: 0.45em 0;
}
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 14px;
}
.prose th,
.prose td {
  padding: 10px 15px;
  border: 1px solid var(--rule);
  text-align: left;
  min-width: 90px;
}
.prose th {
  background: #ebe8df;
  font-weight: 500;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 36px 0;
}
.prose .token.comment,
.prose .token.prolog {
  color: #99a28c;
}
.prose .token.keyword {
  color: #e7af91;
}
.prose .token.string {
  color: #b9ca97;
}
.prose .token.function {
  color: #e0cd9d;
}
.prose .token.operator {
  color: #d8cfc0;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  margin-top: 40px;
  font-size: 12px;
  color: var(--muted);
}
.article-end {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  font-family: var(--serif);
  font-size: 12px;
  color: #929185;
  margin: 70px 0 45px;
}
.end-rule {
  width: 45px;
  height: 1px;
  background: var(--rule);
}
.back-link {
  display: inline-block;
  color: var(--red);
  font-size: 13px;
  margin-bottom: 15px;
}
.journals {
  max-width: 800px;
}
.journal {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 30px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.journal > time {
  color: var(--muted);
  font-size: 12px;
  padding-top: 7px;
}
.journal .prose > :first-child {
  margin-top: 0;
}
.friend-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 50px;
  margin-bottom: 90px;
}
.friend-list > a {
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
  display: flex;
  gap: 16px;
  align-items: center;
}
.friend-initial {
  font-family: var(--serif);
  font-size: 24px;
  min-width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: #e9e5da;
  color: var(--red);
}
.friend-list h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
.friend-list p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.friend-list a > span:last-child {
  margin-left: auto;
  font-size: 19px;
  color: var(--muted);
}
.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: end;
  max-width: 750px;
}
.search-form label {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 12px;
}
.search-form input {
  min-width: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  padding: 12px 0;
  outline: 0;
  border-radius: 0;
}
.search-form input:focus {
  border-color: var(--red);
}
.search-form button {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  border: 0;
  cursor: pointer;
  padding: 15px 24px;
}
.search-form button:hover {
  background: var(--red);
}
.search-status {
  font-size: 12px;
  color: var(--muted);
  margin: 26px 0 40px;
}
.not-found {
  padding: 90px 0 80px;
}
.not-found h1 {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.5;
  font-weight: 400;
}
.not-found p {
  color: var(--muted);
  font-size: 14px;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
@media (min-width: 1000px) {
  .intro-copy {
    animation: appear 0.55s ease both;
  }
  .intro-side {
    animation: appear 0.7s ease both;
  }
  .recent-posts {
    animation: appear 0.8s ease both;
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 850px) {
  .site-frame {
    width: calc(100% - 56px);
  }
  .site-header {
    padding: 25px 0;
  }
  nav {
    gap: 21px;
  }
  .intro {
    grid-template-columns: 1fr 190px;
    padding: 64px 0 55px;
  }
  .intro h1 {
    font-size: 47px;
  }
  .large-character {
    font-size: 165px;
  }
  .vertical-note {
    right: 0;
  }
  .post-row {
    gap: 18px;
    grid-template-columns: 95px 1fr 20px;
  }
  .post-row h2 {
    font-size: 18px;
  }
  .site-footer {
    flex-direction: column;
    gap: 13px;
  }
  .article {
    margin-top: 50px;
  }
  .article-header h1 {
    font-size: 33px;
  }
  .taxonomy-list,
  .friend-list {
    column-gap: 32px;
  }
}
@media (max-width: 580px) {
  body {
    font-size: 14px;
  }
  .site-frame {
    width: calc(100% - 40px);
  }
  .site-header {
    align-items: flex-start;
    padding: 23px 0 20px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .wordmark {
    font-size: 24px;
    gap: 10px;
  }
  .wordmark-sub {
    font-size: 15px;
  }
  .seal {
    width: 32px;
    height: 34px;
    font-size: 25px;
  }
  nav {
    width: 100%;
    gap: 0;
    justify-content: space-between;
    margin-top: 13px;
    font-size: 12px;
  }
  .nav-search {
    gap: 5px;
  }
  .nav-search svg {
    width: 14px;
  }
  .intro {
    grid-template-columns: 1fr 95px;
    padding: 47px 0 40px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.6px;
    margin-bottom: 23px;
  }
  .intro h1 {
    font-size: 35px;
    line-height: 1.55;
    letter-spacing: 0;
  }
  .intro-description {
    font-size: 12px;
    line-height: 2;
  }
  .large-character {
    font-size: 105px;
    transform: rotate(-7deg);
    margin-top: -30px;
  }
  .vertical-note {
    font-size: 9px;
    letter-spacing: 3px;
    right: -2px;
    top: 23px;
  }
  .section-heading {
    margin-top: 28px;
  }
  .section-heading h2 {
    font-size: 13px;
  }
  .section-heading h2 span {
    display: none;
  }
  .section-heading > a {
    font-size: 11px;
  }
  .post-row {
    position: relative;
    grid-template-columns: 1fr 18px;
    gap: 10px;
    padding: 22px 0;
  }
  .post-row > time {
    grid-column: 1/-1;
    font-size: 10px;
    padding: 0;
  }
  .post-row > div,
  .post-row > h2 {
    grid-column: 1;
    grid-row: 2;
  }
  .post-row h2 {
    font-size: 17px;
    line-height: 1.65;
  }
  .post-row .post-arrow {
    grid-column: 2;
    grid-row: 2;
    font-size: 17px;
  }
  .post-summary {
    font-size: 12px;
    line-height: 1.85;
    margin-top: 8px;
  }
  .post-category {
    font-size: 10px;
    margin-top: 8px;
  }
  .more-link {
    margin: 30px 0 42px;
  }
  .page-heading {
    margin: 45px 0 30px;
  }
  .page-heading h1 {
    font-size: 33px;
  }
  .page-heading .eyebrow {
    font-size: 10px;
  }
  .page-heading p:last-child {
    font-size: 12px;
  }
  .heading-count {
    font-size: 11px;
    margin-top: 8px;
  }
  .year-heading {
    font-size: 28px;
  }
  .archive-year {
    margin: 34px 0 38px;
  }
  .archive-year .post-row {
    padding: 18px 0;
  }
  .archive-year .post-row h2 {
    font-size: 16px;
  }
  .taxonomy-list,
  .friend-list {
    grid-template-columns: 1fr;
  }
  .taxonomy-list > a {
    padding: 19px 0;
    font-size: 17px;
  }
  .taxonomy-list,
  .friend-list,
  .tag-cloud {
    margin-bottom: 55px;
  }
  .article {
    margin-top: 38px;
  }
  .article-header {
    padding-bottom: 23px;
    margin-bottom: 29px;
  }
  .article-header h1 {
    font-size: 28px;
    line-height: 1.6;
  }
  .article-meta {
    gap: 9px;
    font-size: 10px;
  }
  .prose {
    font-size: 15px;
    line-height: 1.95;
  }
  .prose h1 {
    font-size: 27px;
  }
  .prose h2 {
    font-size: 24px;
  }
  .prose h3 {
    font-size: 21px;
  }
  .prose pre {
    margin-left: -8px;
    margin-right: -8px;
    padding: 16px;
    font-size: 12px;
  }
  .prose blockquote {
    padding: 2px 16px;
  }
  .journal {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 0;
  }
  .journal > time {
    font-size: 10px;
  }
  .site-footer {
    margin-top: 55px;
    padding: 23px 0 28px;
    font-size: 10px;
    gap: 12px;
  }
  .site-footer > div {
    gap: 23px;
  }
  .search-form {
    gap: 10px;
  }
  .search-form input {
    font-size: 15px;
  }
  .search-form button {
    padding: 13px 16px;
    font-size: 12px;
  }
  .not-found h1 {
    font-size: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
