:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light dark;
  --ground: #f8f4ec;
  --paper: #fffbf2;
  --ink: #2a2420;
  --accent: #c8553d;
  --accent-ink: #a43624;
  --muted: #586958;
  --line: #cfc2af;
  --note: #f5e6b9;
  --postal: #f3ebdd;
  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", serif;
  --hand: "LXGW WenKai Screen R", "Kaiti SC", KaiTi, var(--serif);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --grain: radial-gradient(rgba(139, 108, 72, .055) .5px, transparent .9px) 0 0 / 5px 7px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --lightningcss-light: ;
    --lightningcss-dark: initial;
    --ground: #211d19;
    --paper: #2c2620;
    --ink: #f3e7d5;
    --accent: #e08771;
    --accent-ink: #f29983;
    --muted: #adbda9;
    --line: #5e5144;
    --note: #3f3625;
    --postal: #352c23;
  }

  .art img {
    filter: brightness(.78);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  color: var(--ink);
  background: var(--grain), var(--ground);
  overflow-wrap: anywhere;
  margin: 0;
  font: 16px / 1.6 system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, PingFang SC, Hiragino Sans GB, Noto Sans CJK SC, Microsoft YaHei, sans-serif;
}

.frame {
  width: calc(100% - 80px);
  max-width: 1160px;
  margin: auto;
}

a {
  color: inherit;
  text-underline-offset: .23em;
}

@media (hover: hover) {
  a:hover {
    -webkit-text-decoration-color: var(--accent);
    text-decoration-color: var(--accent);
  }
}

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

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

.masthead, .archive-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.masthead {
  border-bottom: 1px solid var(--ink);
  min-height: 84px;
}

.masthead a {
  text-decoration: none;
}

.masthead nav {
  font: 13px/1.4 var(--mono);
  gap: max(10px, min(2.2vw, 28px));
  display: flex;
}

@media (hover: hover) {
  .masthead nav a:hover {
    color: var(--accent-ink);
  }
}

.brand {
  white-space: nowrap;
  font: 700 24px/1.1 var(--serif);
  align-items: center;
  gap: 10px;
  font-size: max(24px, min(3vw, 35px));
  display: inline-flex;
}

.brand img {
  width: 27px;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.25;
}

h1 {
  font-size: 40px;
  text-wrap: balance;
  margin: .33em 0 .36em;
  font-size: max(40px, min(5.2vw, 73px));
}

.hero {
  padding: 26px 0 44px;
  grid-template-columns: 1.42fr 1fr;
  align-items: center;
  gap: max(25px, min(4.4vw, 66px));
  padding: max(26px, min(4vw, 55px)) 0 max(44px, min(6vw, 78px));
  display: grid;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  font-size: 39px;
  font-size: max(39px, min(4.25vw, 56px));
}

.title-line {
  display: block;
}

.art {
  background: var(--postal);
  display: block;
  position: relative;
  overflow: hidden;
}

.art img {
  object-fit: cover;
  object-position: 50% 43%;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-art {
  aspect-ratio: 1.22;
  box-shadow: 0 12px 25px rgba(36, 23, 7, .13);
}

.cover-placeholder {
  background: var(--grain), var(--postal);
  width: 100%;
  height: 100%;
  color: var(--accent-ink);
  font: 500 40px / 1 Georgia, serif;
  align-items: center;
  justify-items: center;
  font-size: max(40px, min(10vw, 145px));
  display: grid;
}

.cover-placeholder span {
  border: 1px solid var(--line);
  align-items: center;
  justify-items: center;
  width: 81%;
  height: 81%;
  display: grid;
}

.details {
  color: var(--muted);
  font: 12px/1.7 var(--mono);
  letter-spacing: .07em;
  margin: 0;
}

.hook {
  color: var(--muted);
  font: 21px/1.55 var(--hand);
  text-wrap: pretty;
  margin: 0 0 24px;
  font-size: max(21px, min(2vw, 27px));
}

.button {
  color: #fff8ed;
  background: #a63e2c;
  align-items: center;
  gap: 26px;
  padding: 10px 20px;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
}

@media (hover: hover) {
  .button:hover {
    background: #832d20;
  }
}

.archive {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.archive h2 {
  font-size: 28px;
  margin: 0;
  font-size: max(28px, min(3vw, 39px));
}

.archive-head {
  flex-wrap: wrap;
}

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

.filters button {
  color: var(--ink);
  border: 1px solid var(--line);
  font: 13px/1.5 var(--mono);
  cursor: pointer;
  background: none;
  padding: 4px 12px;
}

.filters button[aria-pressed="true"] {
  color: var(--accent-ink);
  border-color: var(--accent);
}

.month {
  margin-top: 24px;
}

.month h3 {
  color: var(--muted);
  font: 14px/1.5 var(--mono);
  margin: 0 0 14px;
}

.month ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.month a {
  text-decoration: none;
  display: block;
}

.month a strong {
  font: 700 24px/1.35 var(--serif);
}

.thumbnail {
  aspect-ratio: 4 / 3;
}

.thumbnail .cover-placeholder {
  font-size: 24px;
  font-size: max(24px, min(5vw, 64px));
}

.archive-details {
  flex-wrap: wrap;
  column-gap: .65em;
  margin: 10px 0 4px;
  display: flex;
}

.archive-details span, .archive-details time {
  white-space: nowrap;
}

.letter {
  margin: 24px auto 0;
  width: 100%;
  max-width: 920px;
  margin: max(24px, min(4vw, 50px)) auto 0;
}

.letter-art {
  aspect-ratio: 16 / 9;
}

.letter-head {
  text-align: center;
  max-width: 760px;
  margin: 32px auto;
}

.letter h1 {
  font-size: 35px;
  font-size: max(35px, min(5vw, 61px));
}

.letter-head .hook {
  margin-bottom: 0;
}

.letter-paper {
  background: var(--grain), var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  padding: max(24px, min(6vw, 78px));
  position: relative;
  box-shadow: 0 9px 29px rgba(36, 23, 7, .086);
}

.prose, .signature {
  font: 18px/2 var(--hand);
  font-size: max(18px, min(1.7vw, 19px));
}

.prose p {
  margin: 0 0 1em;
}

.prose .salutation {
  font-size: 28px;
}

.prose h2 {
  font-size: 23px;
  margin: 1.55em 0 .7em;
  font-size: max(23px, min(3vw, 30px));
}

.prose h2:after {
  content: "";
  background: var(--accent);
  width: 32px;
  height: 2px;
  margin-top: .35em;
  display: block;
}

.prose img {
  max-width: 100%;
  height: auto;
}

.prose pre, .prose table {
  max-width: 100%;
  display: block;
  overflow: auto;
}

.prose blockquote {
  border-left: 2px solid var(--line);
  margin-left: 0;
  margin-right: 0;
  padding-left: 1em;
}

.note {
  padding: 18px;
  border: 1px solid var(--line);
  margin: 38px 0;
  padding: max(18px, min(4vw, 35px));
  position: relative;
}

.note h2 {
  margin-top: 0;
}

.note p:last-child {
  margin-bottom: 0;
}

.action {
  background: var(--grain), var(--note);
  transform: rotate(-.65deg);
  box-shadow: 2px 5px 10px rgba(36, 23, 7, .094);
}

.action:before {
  content: "";
  background: rgba(184, 156, 99, .5);
  width: 100px;
  height: 22px;
  position: absolute;
  top: -12px;
  left: calc(50% - 50px);
  transform: rotate(3deg);
}

.postcard {
  background: var(--grain), var(--postal);
}

.postcard h2 {
  padding-right: 86px;
}

.stamp {
  border: 2px dashed var(--accent);
  width: 78px;
  height: 49px;
  color: var(--accent-ink);
  align-items: center;
  justify-items: center;
  text-decoration: none;
  display: grid;
  position: absolute;
  top: 15px;
  right: 15px;
  transform: rotate(5deg);
}

@media (hover: hover) {
  .stamp:hover {
    background: var(--paper);
  }
}

.signature {
  text-align: right;
  margin: 0 0 35px;
  font-size: 32px;
}

.sources {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 14px;
}

.sources li {
  margin-bottom: .7em;
}

.sources li::marker {
  font-family: var(--mono);
}

.evidence {
  color: var(--muted);
  font: 12px/1.5 var(--mono);
  border: 1px solid;
  padding: 0 .45em;
  display: inline-block;
}

.evidence-有争议 {
  color: var(--accent-ink);
}

.evidence-判断 {
  color: var(--ink);
  border-style: dashed;
}

.evidence-强 {
  background: var(--postal);
}

.evidence-中 {
  border-color: var(--line);
}

.neighbors {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 920px;
  margin: 35px auto 0;
  display: flex;
}

.neighbors a {
  font: 700 18px/1.4 var(--serif);
  align-items: center;
  gap: 14px;
  text-decoration: none;
  display: flex;
}

.neighbors .thumbnail {
  flex-shrink: 0;
  width: 90px;
}

.neighbors small {
  color: var(--muted);
  font: 12px/1.7 var(--mono);
  display: block;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 62px;
  padding: 18px 0 30px;
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 4px;
}

@media (max-width: 755px) {
  .frame {
    width: calc(100% - 36px);
  }

  .masthead {
    min-height: 62px;
  }

  .brand {
    gap: 5px;
  }

  .brand img {
    width: 22px;
  }

  .masthead nav {
    font-size: 14px;
  }

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

  .hero-art {
    aspect-ratio: 4 / 3;
  }

  .hero h1 {
    max-width: 13em;
  }

  .month ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .month a strong {
    font-size: 20px;
  }

  .letter-head {
    margin: 23px auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art, .month a, .neighbors a {
    transition: transform .2s;
  }

  @media (hover: hover) {
    .hero-art:hover, .month a:hover, .neighbors a:hover {
      transform: translateY(-3px);
    }
  }
}

:root {
  --ground: #f2e9db;
  --paper: #fffaf0;
  --postal: #f1e4d3;
  --muted: #515d50;
  --edge: rgba(132, 91, 50, .09);
  --shadow: rgba(62, 39, 23, .165);
}

body {
  background: var(--grain), radial-gradient(ellipse at 50% 14rem, var(--paper), transparent 60rem), var(--ground);
}

.masthead {
  z-index: 4;
  background: var(--ground);
  min-height: 70px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.masthead a[aria-current] {
  color: var(--accent-ink);
}

.reading-progress {
  background: var(--accent);
  transform-origin: 0;
  height: 2px;
  position: absolute;
  top: 0;
  bottom: auto;
  left: 0;
  right: 0;
  transform: scaleX(0);
}

.hero {
  grid-template-columns: 1.65fr 1fr;
  gap: 0;
  padding-top: 38px;
  padding-bottom: 64px;
}

.hero-art {
  aspect-ratio: 7 / 6;
  border: 1px solid var(--line);
}

.hero-copy {
  z-index: 1;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--grain), var(--paper);
  box-shadow: 4px 10px 28px var(--shadow);
  margin-left: -45px;
  padding: max(30px, min(3.5vw, 46px));
  position: relative;
}

.hero-copy .details {
  color: var(--muted);
}

.hero h1 {
  font-size: 38px;
  letter-spacing: -.06em;
  margin-top: .25em;
  margin-bottom: .34em;
  font-size: max(38px, min(4.35vw, 57px));
}

.hero .hook {
  max-width: 19em;
}

.postmark {
  width: 84px;
  background: var(--paper);
  width: max(84px, min(9vw, 113px));
  color: var(--accent-ink);
  border-radius: 50%;
  position: absolute;
  top: -52px;
  right: 16px;
  transform: rotate(11deg);
}

.postmark circle, .postmark path {
  fill: none;
  stroke: currentColor;
  stroke-width: .9px;
}

.postmark text {
  fill: currentColor;
  text-anchor: middle;
  font: 12px var(--mono);
}

.button {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .267);
}

.art {
  background: var(--preview, none) center / cover no-repeat, var(--postal);
}

.archive {
  scroll-margin-top: 88px;
}

.month ul {
  gap: max(17px, min(3vw, 36px));
}

.month li {
  min-width: 0;
}

.month a {
  isolation: isolate;
  padding: 0 6px 6px;
  position: relative;
}

.month a:after {
  content: "";
  z-index: -1;
  border: 1px solid var(--line);
  background: var(--postal);
  box-shadow: 0 8px 15px var(--shadow);
  position: absolute;
  top: 26%;
  bottom: 0;
  left: 0;
  right: 0;
}

.month .thumbnail {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
}

.envelope {
  border: 1px solid var(--line);
  background: var(--grain), linear-gradient(150deg, var(--paper), var(--postal));
  min-height: 110px;
  margin-top: -12px;
  padding: 15px 50px 18px 16px;
  position: relative;
}

.archive-details {
  margin: 0 0 6px;
}

.domain-stamp {
  border: 1px dashed var(--accent-ink);
  color: var(--accent-ink);
  font: 12px var(--hand);
  padding: 4px 5px;
  position: absolute;
  top: 13px;
  right: 11px;
  transform: rotate(5deg);
}

.letter {
  max-width: 880px;
}

.letter-art {
  border: 1px solid var(--line);
  box-shadow: 0 9px 24px var(--shadow);
}

.letter-art img {
  object-position: 50% 35%;
}

.letter-head {
  margin-top: 27px;
  margin-bottom: 27px;
  margin-top: max(27px, min(4vw, 47px));
  margin-bottom: max(27px, min(4vw, 47px));
}

.letter-paper {
  background: var(--grain), radial-gradient(ellipse at center, transparent 38%, var(--edge)), var(--paper);
  box-shadow: 0 8px 28px var(--shadow);
}

.prose {
  text-wrap: pretty;
  text-spacing-trim: trim-start;
}

.letter-paper > .prose > p {
  text-indent: 2em;
}

.letter-paper > .prose > .salutation, .father-intro .salutation {
  text-indent: 0;
  color: var(--accent-ink);
}

.signature {
  justify-items: end;
  gap: 1px;
  margin-bottom: 27px;
  display: grid;
}

.signature time {
  font: 15px/1.5 var(--hand);
  color: var(--muted);
}

.postscript {
  border-left: 1px solid var(--line);
  color: var(--muted);
  font: 17px/1.75 var(--hand);
  align-items: baseline;
  gap: 13px;
  margin: 0 0 30px;
  padding-left: 15px;
  display: flex;
}

.postscript span {
  color: var(--accent-ink);
  border: 1px solid var(--line);
  flex: none;
  padding-left: 5px;
  padding-right: 5px;
}

.postscript p {
  margin: 0;
}

.reading-meta {
  color: var(--muted);
  font: 13px/1.6 var(--mono);
}

.sources {
  margin-top: 26px;
}

.sources h2 {
  color: var(--ink);
  margin: 0;
  font-size: 22px;
}

.sources ol {
  padding-left: 1.65em;
}

.sources li {
  margin-bottom: 1em;
  padding-left: .4em;
}

.sources li::marker {
  color: var(--accent-ink);
}

.father {
  max-width: 1050px;
  margin: 40px auto 0;
}

.father-head h1 {
  margin: 0 0 27px;
}

.father-opening {
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  display: grid;
}

.father-art {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px var(--shadow);
  margin: 0;
}

.father-art img {
  object-position: center;
}

.father-intro {
  z-index: 1;
  padding: 23px;
  margin-left: -23px;
  padding: max(23px, min(3vw, 40px));
}

.father-intro p:last-child {
  text-indent: 2em;
  margin-bottom: 0;
}

.father-history, .father-disclosure {
  max-width: 690px;
  margin: 54px auto 0;
}

.father-history h2 {
  font-size: 32px;
}

.timeline {
  border-left: 1px solid var(--line);
  margin: 0;
  padding: 0 0 0 20px;
  list-style: none;
}

.timeline li {
  grid-template-columns: 112px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0 13px;
  display: grid;
  position: relative;
}

.timeline li:before {
  content: "";
  background: var(--accent-ink);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  position: absolute;
  top: 21px;
  left: -24px;
}

.timeline span {
  color: var(--accent-ink);
  font: 14px var(--mono);
}

.timeline p {
  font: 18px/1.65 var(--hand);
  margin: 0;
}

.father-disclosure {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 18px;
  font-size: 14px;
}

@media (max-width: 755px) {
  .masthead {
    min-height: 60px;
  }

  .hero, .father-opening {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 23px;
    padding-bottom: 38px;
  }

  .hero-art {
    aspect-ratio: 5 / 4;
  }

  .hero-copy {
    margin: -25px 10px 0;
    padding: 25px 18px 20px;
  }

  .hero h1 {
    font-size: 36px;
    font-size: max(36px, min(9.8vw, 50px));
  }

  .postmark {
    width: 73px;
    top: -51px;
    right: 12px;
  }

  .envelope {
    padding: 33px 10px 12px;
  }

  .domain-stamp {
    padding: 2px 4px;
    top: 6px;
    right: 7px;
  }

  .archive-details {
    letter-spacing: 0;
    font-size: 12px;
  }

  .month a strong {
    font-size: 18px;
  }

  .father {
    margin-top: 24px;
  }

  .father-head h1 {
    margin-bottom: 16px;
  }

  .father-intro {
    margin: -14px 10px 0;
  }

  .timeline li {
    grid-template-columns: 90px 1fr;
  }

  .timeline span {
    font-size: 12px;
  }

  .timeline p {
    font-size: 17px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #1d1815;
    --paper: #332d27;
    --postal: #3b3028;
    --muted: #c0c0ad;
    --edge: rgba(20, 13, 9, .32);
    --shadow: rgba(16, 10, 8, .44);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .month .thumbnail {
    transition: transform .22s ease-out;
  }

  @media (hover: hover) {
    .month a:hover {
      transform: none;
    }

    .month a:hover .thumbnail {
      transform: translateY(-7px);
    }
  }
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  line-break: strict;
}

img {
  max-width: 100%;
  height: auto;
}

a, button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(200, 85, 61, .18);
  min-width: 44px;
  min-height: 44px;
}

.masthead {
  padding-top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .masthead {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    background: rgba(242, 233, 219, .94);
  }

  @media (prefers-color-scheme: dark) {
    .masthead {
      background: rgba(29, 24, 21, .94);
    }
  }
}

.reading-progress {
  top: 0;
  top: env(safe-area-inset-top, 0px);
}

.site-footer {
  padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
}

.masthead nav, .brand, .button, .filters, .neighbors, .neighbors a, .archive-details, .postscript, .archive-head {
  gap: 0;
}

.masthead nav a, .site-footer a {
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.masthead nav a {
  padding: 0 4px;
}

.brand img, .archive-details span {
  margin-right: 6px;
}

.button span {
  margin-left: 20px;
}

.filters button {
  margin: 3px;
}

.neighbors a, .postscript span {
  margin-right: 10px;
}

.neighbors .thumbnail {
  margin-right: 14px;
}

.neighbors a {
  max-width: 100%;
  margin-bottom: 10px;
}

.prose a:not(.stamp), .sources a, .father-disclosure a, .postscript a {
  vertical-align: middle;
  word-break: break-word;
  max-width: 100%;
  padding: 9px 0;
  line-height: 1.65;
  display: inline-block;
}

.sources, .father-disclosure {
  font-size: 16px;
}

.art:before {
  content: "";
  padding-top: 75%;
  display: block;
}

.art > img, .art > .cover-placeholder {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-art:before {
  padding-top: 85.714%;
}

.month .thumbnail:before {
  padding-top: 62.5%;
}

.letter-art:before {
  padding-top: 56.25%;
}

@media (max-width: 755px) {
  .hero-art:before {
    padding-top: 80%;
  }

  .letter-paper {
    padding: 22px 16px;
  }
}

@media (max-width: 359px) {
  .masthead nav {
    justify-content: space-between;
    width: 100%;
  }

  .month ul {
    grid-template-columns: 1fr;
  }

  .stamp {
    margin-top: 10px;
    position: static;
  }

  .postcard h2 {
    padding-right: 0;
  }

  .hero-copy {
    margin-left: 0;
    margin-right: 0;
  }
}
