:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #252b26;
  --moss: #3f5945;
  --muted: #6c7368;
  --line: #d9ddd3;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --roman: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
::selection { background: #dce4d7; color: var(--ink); }
a { color: inherit; text-decoration: none; text-underline-offset: 7px; }
a:focus-visible { outline: 2px solid var(--moss); outline-offset: 7px; }
main:focus { outline: none; }
h1, h2, h3, p, ol, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 500; }
h1 { font-weight: 600; }
.shell { width: 82%; max-width: 1180px; margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; margin-top: 50px; height: 66px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--roman); font-size: 40px; line-height: 1; letter-spacing: -1.3px; padding-bottom: 16px; }
.site-header nav { align-self: stretch; display: flex; gap: 46px; }
.site-header nav a { position: relative; display: flex; align-items: center; padding: 0 3px 11px; font-size: 20px; line-height: 1.5; color: #525d53; }
.site-header nav a:hover { color: var(--moss); }
.site-header nav a[aria-current="page"] { color: var(--moss); }
.site-header nav a[aria-current="page"]::after { content: ""; position: absolute; height: 3px; background: var(--moss); inset: auto 0 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1; background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: 18px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--moss); width: fit-content; border-bottom: 1px solid currentColor; padding-bottom: 3px; font-size: 23px; line-height: 1.35; }
.text-link:hover { color: var(--ink); }
.arrow { flex: 0 0 auto; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease; }
.text-link:hover .arrow { transform: translateX(3px); }
.back-link .text-link:hover .arrow { transform: translateX(-3px); }
.home-intro { padding-top: 88px; padding-bottom: 69px; }
.home-intro h1 { font-size: 96px; line-height: 1.16; letter-spacing: -2px; }
.home-description { margin-top: 35px; font-size: 22px; line-height: 1.8; color: #555e54; text-wrap: balance; }
.home-description > span { display: block; text-wrap: balance; }
.home-description .phrase { display: inline-block; }
.home-intro > .text-link { margin-top: 29px; }
.section-heading { border-block: 1px solid var(--line); min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.section-heading h2 { font-size: 27px; line-height: 1.4; }
.section-heading .text-link { font-size: 18px; border-bottom: 0; gap: 11px; padding-bottom: 0; }
.section-heading .text-link span { text-decoration: underline; }
.section-heading .arrow { width: 21px; height: 21px; }
.note-list { padding: 0; list-style: none; }
.note-list > li { border-bottom: 1px solid var(--line); }
.note-row { min-height: 86px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; column-gap: 24px; padding-block: 22px; }
.note-number { align-self: start; padding-top: 4px; font-family: var(--roman); color: #969b91; font-size: 22px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.note-copy :is(h2, h3) { font-size: 28px; line-height: 1.5; text-wrap: balance; transition: color 160ms ease; }
.note-row:hover :is(h2, h3) { color: var(--moss); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.note-meta, .article-meta { display: flex; gap: 22px; align-items: center; color: var(--muted); font-size: 18px; line-height: 1.7; white-space: nowrap; }
.note-meta { align-self: start; padding-top: 5px; }
.meta-dot { color: inherit; }
.site-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px; padding: 17px 0 26px; font-size: 18px; line-height: 1.6; }
.footer-brand { font-family: var(--roman); }
.site-footer p { color: var(--muted); }
.page-intro { padding-top: 78px; padding-bottom: 58px; }
.page-intro h1 { font-size: 88px; line-height: 1.25; letter-spacing: -1.8px; }
.page-intro > p { color: #687066; font-size: 27px; line-height: 1.7; margin-top: 10px; }
.notes-index .page-intro { padding-top: 60px; padding-bottom: 43px; }
.notes-index .page-intro h1 { font-size: 96px; }
.all-notes { border-top: 1px solid var(--line); }
.all-notes .note-row { padding-block: 22px; min-height: 120px; }
.note-description { font-size: 19px; line-height: 1.65; color: var(--muted); margin-top: 3px; text-wrap: balance; }
.notes-index + .site-footer { margin-top: 0; border-top: 0; }
.reading-shell { padding-top: 46px; }
.reading-column { width: 100%; max-width: 760px; margin-inline: auto; }
.back-link { margin-bottom: 56px; }
.back-link .text-link { font-size: 19px; gap: 8px; }
.back-link .arrow { width: 22px; height: 22px; }
.article-header h1 { font-size: 54px; line-height: 1.26; letter-spacing: -1px; }
.article-meta { margin-top: 23px; font-size: 17px; gap: 20px; }
.article-description { font-size: 22px; line-height: 1.85; color: #687066; margin-top: 26px; }
.article-body { font-size: 20px; line-height: 1.95; padding-top: 48px; }
.article-body section + section { margin-top: 46px; }
.article-body h2 { font-size: 29px; line-height: 1.5; margin-bottom: 16px; }
.article-body p + p { margin-top: 24px; }
.practice { padding-left: 30px; }
.practice li { padding-left: 9px; }
.practice li::marker { color: var(--muted); }
.article-body p + .practice { margin-top: 20px; }
.article-body blockquote { border-left: 2px solid var(--moss); color: var(--moss); margin-top: 30px; padding: 7px 0 7px 24px; font-size: 22px; line-height: 1.8; }
.next-note { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; }
.next-note > p { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 9px; }
.next-note .text-link { font-size: 20px; }
.reading-shell + .site-footer { margin-top: 42px; }
.about .page-intro { padding-bottom: 50px; }
.about-layout { display: grid; grid-template-columns: 31% minmax(0, 1fr); gap: 6%; }
.about-aside { font-size: 30px; line-height: 1.8; color: var(--moss); }
.about-copy { font-size: 22px; line-height: 1.9; }
.about-copy > p + p { margin-top: 32px; }
.about-start { margin-top: 60px; }
.about-start h2 { font-size: 34px; line-height: 1.4; margin-bottom: 21px; }
.about-start > .text-link { margin-top: 24px; }
.about + .site-footer { margin-top: 68px; }
.not-found { padding-block: 100px 120px; }
.not-found h1 { font-size: 72px; line-height: 1.3; }
.not-found > p { margin-top: 30px; color: var(--muted); font-size: 22px; line-height: 1.8; }
.not-found-links { display: flex; gap: 32px; margin-top: 32px; }

@media (min-width: 1500px) {
  .site-header { margin-top: 56px; }
}

@media (max-width: 1050px) {
  .home-intro h1 { font-size: 76px; }
  .home-description { font-size: 20px; }
  .note-row { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 18px; }
  .note-copy :is(h2, h3) { font-size: 24px; }
  .note-meta { font-size: 16px; gap: 14px; }
  .note-description { font-size: 17px; }
  .about-layout { grid-template-columns: 29% minmax(0, 1fr); gap: 5%; }
  .about-copy { font-size: 20px; }
  .about-aside { font-size: 26px; }
  .page-intro h1 { font-size: 72px; }
}

@media (max-width: 720px) {
  .shell { width: auto; margin-inline: 24px; }
  .site-header { margin-top: 27px; height: 58px; }
  .wordmark { font-size: 31px; padding-bottom: 14px; letter-spacing: -1px; }
  .site-header nav { gap: 23px; }
  .site-header nav a { font-size: 17px; padding-inline: 0; padding-bottom: 10px; }
  .site-header nav a[aria-current="page"]::after { height: 2px; }
  .home-intro { padding-top: 67px; padding-bottom: 61px; }
  .home-intro h1 { font-size: clamp(36px, 10.8vw, 66px); line-height: 1.3; letter-spacing: -0.9px; }
  .home-description { font-size: 18px; line-height: 1.95; margin-top: 28px; max-width: 32em; }
  .home-intro > .text-link { margin-top: 25px; }
  .text-link { font-size: 20px; }
  .arrow { width: 21px; height: 21px; }
  .section-heading { min-height: 60px; gap: 12px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading .text-link { font-size: 16px; gap: 6px; }
  .note-row { grid-template-columns: 26px minmax(0, 1fr); column-gap: 17px; row-gap: 7px; padding-block: 22px; min-height: 0; }
  .note-number { font-size: 17px; padding-top: 3px; }
  .note-copy :is(h2, h3) { font-size: 22px; line-height: 1.55; }
  .note-meta { grid-column: 2; padding-top: 0; font-size: 15px; gap: 13px; line-height: 1.6; }
  .site-footer { margin-top: 30px; padding: 17px 0 27px; font-size: 15px; gap: 14px; }
  .page-intro { padding-top: 58px; padding-bottom: 42px; }
  .notes-index .page-intro { padding-top: 58px; padding-bottom: 42px; }
  .notes-index .page-intro h1 { font-size: 53px; }
  .page-intro h1 { font-size: 53px; line-height: 1.3; letter-spacing: -0.8px; }
  .page-intro > p { font-size: 21px; line-height: 1.8; margin-top: 15px; }
  .all-notes .note-row { min-height: 0; padding-block: 24px; }
  .note-description { font-size: 17px; line-height: 1.85; margin-top: 8px; }
  .reading-shell { padding-top: 29px; }
  .back-link { margin-bottom: 40px; }
  .back-link .text-link { font-size: 17px; }
  .article-header h1 { font-size: 35px; line-height: 1.4; letter-spacing: -0.5px; text-wrap: initial; }
  .article-meta { margin-top: 21px; font-size: 15px; gap: 17px; }
  .article-description { font-size: 20px; line-height: 1.85; margin-top: 25px; }
  .article-body { padding-top: 38px; font-size: 19px; line-height: 1.95; }
  .article-body h2 { font-size: 25px; margin-bottom: 17px; }
  .article-body section + section { margin-top: 38px; }
  .article-body p + p { margin-top: 23px; }
  .practice { padding-left: 25px; }
  .practice li { padding-left: 6px; }
  .article-body blockquote { padding-left: 19px; font-size: 21px; }
  .next-note .text-link { font-size: 18px; line-height: 1.6; }
  .next-note .arrow { align-self: flex-end; margin-bottom: 6px; }
  .about .page-intro { padding-bottom: 31px; }
  .about .page-intro h1 { font-size: clamp(38px, 9.8vw, 53px); }
  .about-layout { display: block; }
  .about-aside { font-size: 25px; margin-bottom: 34px; }
  .about-copy { font-size: 20px; line-height: 1.95; }
  .about-copy > p + p { margin-top: 27px; }
  .about-start { margin-top: 43px; }
  .about-start h2 { font-size: 28px; margin-bottom: 19px; }
  .about + .site-footer { margin-top: 48px; }
  .not-found { padding-block: 72px 90px; }
  .not-found h1 { font-size: 42px; line-height: 1.4; }
  .not-found > p { font-size: 20px; }
  .not-found-links { flex-wrap: wrap; gap: 25px; }
}

@media (max-width: 359px) {
  .shell { margin-inline: 20px; }
  .wordmark { font-size: 27px; }
  .site-header nav { gap: 17px; }
  .site-header nav a { font-size: 16px; }
  .note-copy :is(h2, h3) { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

@media print {
  :root { --paper: #fff; --ink: #000; }
  .shell { width: 100%; margin-inline: 0; }
  .site-header, .site-footer, .back-link, .next-note, .skip-link { display: none; }
  .reading-shell { padding-top: 0; }
  .reading-column { max-width: 100%; }
  .article-header h1 { font-size: 28pt; }
  .article-body { font-size: 12pt; line-height: 1.8; }
  .article-body h2 { break-after: avoid; font-size: 17pt; }
  .article-body p, .article-body li { orphans: 3; widows: 3; }
}
