@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --ink: #30312b;
  --muted: #6d6e64;
  --accent: #626b50;
  --line: #dedfd5;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --chinese: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection { background: #dde0ce; color: #24291e; }
a { color: inherit; text-decoration: none; text-underline-offset: .24em; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; border-radius: 1px; }
a:hover { color: var(--accent); }
button { font: inherit; }
.frame { width: min(100% - 112px, 880px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-180%); padding: 12px 18px; background: var(--ink); color: var(--paper); z-index: 20; font-family: var(--sans); }
.skip-link:focus { transform: translateY(0); }
.site-header { padding-top: clamp(44px, 7.2vh, 76px); }
.site-brand { margin: 0; font-weight: 400; }
.site-name { display: inline-block; font-family: var(--chinese); font-size: 25px; line-height: 1.6; letter-spacing: .12em; font-weight: 400; }
.site-name:hover { color: var(--ink); }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 23px; font-family: var(--sans); font-size: 14px; line-height: 1.7; }
.main-nav a { color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .16s ease, border-color .16s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.home-cover { min-height: 100svh; display: flex; flex-direction: column; }
.featured { flex: 1; display: flex; align-items: center; padding-block: 62px 78px; }
.title-list { padding: 0; margin: 0; list-style: none; width: 100%; }
.featured-list { display: grid; gap: clamp(23px, 3.3vh, 38px); }
.title-list a { display: inline-block; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.75vw, 37px); line-height: 1.32; letter-spacing: -.024em; text-wrap: balance; transition: color .16s ease; }
.title-list a::after { content: ""; display: block; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .24s ease; opacity: .4; }
.title-list a:hover::after { transform: scaleX(1); }
.home-details { border-top: 1px solid var(--line); padding-block: 83px 72px; }
.about-grid { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 43px 30px; align-items: baseline; }
.small-label { margin: 0; font-family: var(--sans); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; font-weight: 500; line-height: 1.8; color: var(--muted); }
.bio { font-family: var(--serif); font-size: clamp(23px, 2.1vw, 27px); line-height: 1.6; letter-spacing: -.013em; max-width: 590px; margin: 0; text-wrap: pretty; }
.contact-link { font-family: var(--serif); font-size: 21px; text-decoration: underline; text-decoration-color: #bfc2b2; }
.home-end { margin-top: 95px; display: flex; justify-content: space-between; align-items: center; }
.signature { font-family: var(--serif); font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.top-link { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.archive-main { padding-block: 80px 100px; min-height: 67vh; }
.section-title { font-family: var(--sans); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 500; line-height: 1.7; margin: 0 0 38px; }
.archive-list { display: grid; gap: 29px; }
.archive-list a { font-size: clamp(26px, 2.45vw, 32px); }
.quiet-footer { border-top: 1px solid var(--line); padding-block: 25px 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.quiet-footer > a { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.reader { max-width: 680px; margin-inline: auto; padding-block: 76px 90px; }
.reader-heading { margin-bottom: 53px; }
.work-title { font-family: var(--serif); font-size: clamp(33px, 3.3vw, 43px); font-weight: 400; line-height: 1.35; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.work-title:lang(zh-CN) { font-family: var(--chinese); font-size: clamp(29px, 3vw, 37px); letter-spacing: .045em; line-height: 1.6; }
.language-switch { display: inline-flex; margin-top: 26px; padding: 3px; gap: 3px; border: 1px solid #d6d9cc; border-radius: 3px; font-family: var(--sans); font-size: 14px; line-height: 1.5; }
.language-switch a { min-height: 36px; min-width: 73px; display: flex; align-items: center; justify-content: center; padding: 7px 12px; color: var(--muted); border-radius: 1px; }
.language-switch a[aria-current="true"] { background: #e6e9dc; color: #3d4932; }
.language-switch a:hover { color: var(--ink); background: #eceee5; }
.prose { font-family: var(--serif); font-size: 20px; line-height: 1.85; overflow-wrap: anywhere; }
.prose:lang(zh-CN) { font-family: var(--chinese); font-size: 19px; line-height: 2.1; letter-spacing: .025em; }
.prose p { white-space: pre-line; margin: 0 0 1.35em; }
.prose h2 { font-family: inherit; font-size: 1.1em; font-weight: 400; margin: 2.6em 0 1.5em; line-height: 1.5; }
.prose > :first-child { margin-top: 0; }
.prose .poem-stanza { white-space: pre-wrap; line-height: 1.85; margin-bottom: 1.65em; }
.author-note { border-top: 1px solid var(--line); margin-top: 65px; padding-top: 30px; }
.author-note .small-label { margin-bottom: 25px; }
.author-note .prose { font-size: 18px; }
.reading-end { border-top: 1px solid var(--line); margin-top: 66px; padding-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.not-found { max-width: 680px; min-height: 68vh; padding-block: 100px; }
.not-found h1 { font-family: var(--serif); font-size: 45px; font-weight: 400; line-height: 1.2; margin: 20px 0; }
.not-found p { font-family: var(--serif); font-size: 21px; line-height: 1.6; }
.text-link { text-decoration: underline; text-decoration-color: #bfc2b2; }

@media (min-width: 1100px) {
  .reader-layout .site-header, .reader-layout > .quiet-footer { width: min(100% - 112px, 880px); }
  .reader-heading { position: relative; padding-right: 175px; }
  .reader-heading .language-switch { position: absolute; top: 4px; right: 0; margin-top: 0; }
}
@media (max-width: 640px) {
  .frame { width: calc(100% - 48px); }
  .site-header { padding-top: 32px; }
  .site-name { font-size: 22px; letter-spacing: .075em; }
  .main-nav { gap: 8px 20px; margin-top: 19px; font-size: 14px; }
  .featured { padding-block: 58px 67px; }
  .featured-list { gap: 29px; }
  .title-list a { font-size: 29px; line-height: 1.35; letter-spacing: -.022em; }
  .home-details { padding-block: 48px 35px; }
  .about-grid { grid-template-columns: 1fr; gap: 15px; }
  .about-grid > .small-label:not(:first-child) { margin-top: 22px; }
  .bio { font-size: 24px; line-height: 1.6; }
  .contact-link { font-size: 20px; }
  .home-end { margin-top: 70px; }
  .archive-main { padding-block: 58px 80px; }
  .archive-list { gap: 29px; }
  .archive-list a { font-size: 27px; }
  .reader { padding-block: 56px 64px; }
  .reader-heading { margin-bottom: 37px; }
  .work-title { font-size: 34px; }
  .work-title:lang(zh-CN) { font-size: 30px; }
  .prose { font-size: 19px; line-height: 1.85; }
  .prose:lang(zh-CN) { font-size: 18px; line-height: 2.05; letter-spacing: .015em; }
  .reading-end { margin-top: 50px; }
  .not-found { padding-top: 75px; }
}
@media (max-width: 360px) {
  .main-nav { column-gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header, .skip-link, .language-switch, .reading-end, .quiet-footer { display: none !important; }
  .frame, .reader { width: 100%; max-width: none; padding: 0; }
  .reader-heading { margin-bottom: 30px; }
  .prose { font-size: 12pt; }
  .prose:lang(zh-CN) { font-size: 11pt; }
}
