:root {
  color-scheme:light;
  --paper:#faf9f5; /* taste-skill-ignore: 用户明确指定 Claude 暖色系。 */
  --surface:#f0ede6;
  --ink:#292720;
  --muted:#716c61;
  --accent:#a44e35;
  --line:#e5e0d6;
  --serif:"Songti SC","STSong","Noto Serif CJK SC",Georgia,serif;
  --sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:32px
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:1rem;
  line-height:1.7;
  -webkit-font-smoothing:antialiased
}
a {
  color:inherit;
  text-decoration:none
}
button,input {
  font:inherit
}
button {
  color:inherit;
  cursor:pointer
}
button,a,input {
  -webkit-tap-highlight-color:transparent
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:5px
}
::selection {
  background:#e6caba;
  color:var(--ink)
}
[hidden] {
  display:none!important
}
.page-shell {
  max-width:1192px;
  padding:0 56px;
  margin:auto
}
.site-header {
  height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.wordmark {
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-family:Georgia,serif;
  font-size:1.5625rem;
  letter-spacing:-.7px
}
.wordmark svg {
  width:31px;
  height:31px;
  fill:none;
  stroke:var(--accent);
  stroke-width:1.55;
  stroke-linecap:round;
  stroke-linejoin:round
}
.site-header nav {
  display:flex;
  gap:34px;
  font-size:0.9375rem
}
.site-header nav a {
  padding:10px 0
}
.site-header nav a:hover,footer a:hover {
  color:var(--accent)
}
.intro {
  padding:34px 0 42px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,340px);
  align-items:center;
  gap:36px;
}
.intro h1 {
  font-family:var(--serif);
  font-size:clamp(2.75rem,4.3vw,4rem);
  font-weight:500;
  line-height:1.3;
  letter-spacing:.02em;
  margin:0;
  text-wrap:balance
}
.intro-copy {
  font-size:1rem;
  color:var(--muted);
  margin:0;
  line-height:1.9;
  max-width:22em;
}
.continue-reading {
  padding:20px 26px;
  background:var(--surface);
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:0 0 28px;
  border-radius:6px;
  gap:20px
}
.continue-caption {
  font-size:0.8125rem;
  color:var(--muted);
  margin-right:20px
}
.continue-reading a {
  font-size:1rem
}
.continue-reading a:hover {
  color:var(--accent)
}
.continue-reading button {
  font-size:1.5rem;
  line-height:1;
  border:0;
  background:none;
  min-width:44px;
  min-height:44px
}
.library {
  padding-top:12px;
  min-height:500px
}
.library-heading {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  margin-bottom:14px
}
.library-heading h2 {
  font-family:var(--serif);
  font-size:1.75rem;
  font-weight:500;
  letter-spacing:.04em;
  margin:0
}
.collection-total {
  font-family:var(--sans);
  font-size:0.875rem;
  color:var(--muted);
  vertical-align:middle;
  letter-spacing:0;
  margin-left:12px
}
.filters {
  display:flex;
  gap:5px
}
.filters button {
  border:0;
  background:transparent;
  padding:9px 16px;
  min-height:44px;
  border-radius:5px;
  color:var(--muted);
  font-size:0.875rem;
  transition:background .18s,color .18s
}
.filters button[aria-pressed=true] {
  background:var(--surface);
  color:var(--ink)
}
.filters button:hover {
  color:var(--ink);
  background:var(--surface)
}
.search-wrap {
  display:flex;
  align-items:center;
  gap:14px;
  background:var(--surface);
  padding:0 20px;
  border-radius:6px;
  height:58px;
  margin-bottom:36px
}
.search-wrap>svg {
  width:20px;
  height:20px;
  flex:none;
  stroke:var(--muted);
  fill:none;
  stroke-width:1.6;
  stroke-linecap:round
}
.search-wrap input {
  border:0;
  border-radius:0;
  outline:0;
  background:transparent;
  width:100%;
  min-width:0;
  color:var(--ink);
  font-size:0.9375rem;
  height:100%;
  padding:0
}
.search-wrap:focus-within {
  outline:2px solid var(--accent);
  outline-offset:2px
}
.search-wrap input:focus-visible {
  outline:0
}
.search-wrap input::placeholder {
  color:var(--muted)
}
.search-shortcut {
  font-size:1rem;
  color:var(--muted)
}
.collection {
  position:relative;
  display:grid;
  grid-template-columns:146px minmax(0,1fr) auto;
  gap:46px;
  align-items:center;
  padding:36px 0 40px;
  transition:opacity .2s
}
.collection+.collection {
  margin-top:8px
}
.cover-link {
  display:block;
  width:146px;
  transition:transform .25s ease
}
.cover-link:hover {
  transform:translateY(-5px) rotate(-1deg)
}
.cover-link img {
  width:146px;
  height:190px;
  display:block;
  border-radius:2px
}
.collection-meta {
  font-size:0.8125rem;
  color:var(--muted);
  margin:0 0 13px;
  line-height:1.6
}
.collection h3 {
  font-family:var(--serif);
  font-size:1.875rem;
  font-weight:500;
  letter-spacing:.025em;
  line-height:1.45;
  margin:0 0 12px;
  text-wrap:balance
}
.collection h3 a:hover {
  color:var(--accent)
}
.collection-description {
  color:var(--muted);
  font-size:0.9375rem;
  margin:0;
  max-width:34em;
  line-height:1.9
}
.read-link {
  align-self:center;
  white-space:nowrap;
  font-size:0.875rem;
  display:inline-flex;
  gap:14px;
  align-items:center;
  min-height:44px;
  padding:8px 0 8px 18px;
  color:var(--accent)
}
.read-link svg {
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.4;
  transition:transform .2s
}
.read-link:hover svg {
  transform:translateX(4px)
}
.search-status {
  font-size:0.875rem;
  color:var(--muted);
  margin:-12px 0 16px
}
.empty-state {
  font-size:1rem;
  color:var(--muted);
  padding:52px 0;
  text-align:center
}
.document-results {
  margin:32px 0 0
}
.document-results>h3 {
  font-size:1.125rem;
  font-weight:500;
  margin:0 0 22px
}
.document-result {
  display:block;
  padding:22px 24px;
  margin:8px 0;
  border-radius:5px;
  transition:background .18s
}
.document-result:hover {
  background:var(--surface)
}
.document-result small {
  display:block;
  font-size:0.8125rem;
  color:var(--muted);
  margin-bottom:6px
}
.document-result h4 {
  font-size:1.125rem;
  font-weight:500;
  line-height:1.6;
  margin:0 0 8px
}
.document-result p {
  margin:0;
  color:var(--muted);
  font-size:0.875rem;
  line-height:1.8
}
.more-results {
  border:0;
  border-radius:5px;
  background:var(--surface);
  padding:12px 24px;
  display:block;
  margin:24px auto;
  min-height:44px
}
.more-results:hover {
  background:#e8e3d8
}
mark {
  background:#e8d2be;
  color:var(--ink);
  padding:0 2px
}
footer {
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
  padding:76px 0 42px;
  color:var(--muted);
  font-size:0.8125rem
}
footer p {
  margin:0
}
footer a {
  padding:10px 0
}
.sr-only,.skip-link:not(:focus) {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link:focus {
  position:fixed;
  top:8px;
  left:8px;
  padding:12px;
  background:var(--paper);
  z-index:10
}
.intro h1 {
  animation:arrive .65s ease both
}
.intro-copy {
  animation:arrive .65s .08s ease both
}
.library-heading {
  animation:arrive .65s .16s ease both
}
.search-wrap {
  animation:arrive .65s .2s ease both
}
.collection {
  animation:arrive .65s ease both;
  animation-delay:calc(var(--order)*.08s + .22s)
}
@keyframes arrive {
  from {
    opacity:0;
    transform:translateY(10px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
@media(min-width:1500px) {
  .page-shell {
    max-width:1260px
  }
  .intro {
    padding-top:40px;
    padding-bottom:48px
  }
}
@media(max-width:900px) {
  .page-shell {
    padding:0 36px
  }
  .site-header {
    height:80px
  }
  .intro {
    padding:26px 0 36px
  }
  .intro h1 {
    font-size:clamp(2.5rem,6.5vw,3.25rem)
  }
  .collection {
    grid-template-columns:122px minmax(0,1fr);
    gap:30px;
    padding:28px 0
  }
  .cover-link,.cover-link img {
    width:122px
  }
  .cover-link img {
    height:159px
  }
  .collection h3 {
    font-size:1.625rem
  }
  .read-link {
    grid-column:2;
    justify-self:start;
    margin-top:-20px;
    padding:0;
    min-height:36px
  }
  .collection .cover-link {
    grid-row:1/3
  }
  .collection-meta {
    margin-bottom:9px
  }
}
@media(max-width:560px) {
  .page-shell {
    padding:0 22px
  }
  .site-header {
    height:76px
  }
  .wordmark {
    font-size:1.375rem;
    gap:9px
  }
  .wordmark svg {
    width:26px;
    height:26px
  }
  .site-header nav {
    gap:22px;
    font-size:0.875rem
  }
  .intro {
    padding:20px 0 30px;
    display:block
  }
  .intro h1 {
    font-size:clamp(2.125rem,10.8vw,3rem);
    letter-spacing:.02em;
    margin-bottom:26px;
    line-height:1.3
  }
  .intro-copy {
    font-size:1rem;
    letter-spacing:0;
    line-height:1.8;
  }
  .library {
    padding-top:8px
  }
  .library-heading {
    margin-bottom:20px;
    gap:12px
  }
  .library-heading h2 {
    font-size:1.4375rem
  }
  .collection-total {
    font-size:0.8125rem;
    margin-left:5px
  }
  .filters {
    gap:0
  }
  .filters button {
    padding:8px 12px;
    font-size:0.8125rem
  }
  .search-wrap {
    height:54px;
    padding:0 16px;
    gap:12px;
    margin-bottom:20px
  }
  .search-wrap input {
    font-size:0.875rem
  }
  .search-shortcut {
    display:none
  }
  .collection {
    grid-template-columns:90px minmax(0,1fr);
    gap:20px;
    padding:26px 0 22px;
    align-items:start
  }
  .collection+.collection {
    margin-top:10px
  }
  .cover-link,.cover-link img {
    width:90px
  }
  .cover-link img {
    height:117px
  }
  .collection-meta {
    font-size:0.8125rem;
    margin-bottom:7px;
    line-height:1.7
  }
  .collection h3 {
    font-size:1.3125rem;
    margin-bottom:9px;
    letter-spacing:0;
    line-height:1.5
  }
  .collection-description {
    font-size:0.8125rem;
    line-height:1.85
  }
  .read-link {
    margin-top:-7px;
    font-size:0.8125rem;
    min-height:44px;
    gap:10px
  }
  .read-link svg {
    width:16px
  }
  .continue-reading {
    padding:14px 16px;
    margin:0 0 32px
  }
  .continue-caption {
    display:block;
    font-size:0.8125rem;
    margin:0 0 4px
  }
  .continue-reading a {
    font-size:0.875rem
  }
  .document-result {
    padding:18px 8px
  }
  .document-result h4 {
    font-size:1.0625rem
  }
  .document-result p {
    font-size:0.8125rem
  }
  footer {
    font-size:0.8125rem;
    padding:50px 0 30px
  }
  .document-results {
    margin-top:22px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important
  }
}

@media(max-width:400px) {
  .library-heading { gap:8px; }
  .filters button { padding-inline:9px; }
}

.font-settings {
  position:relative;
}
.font-menu-toggle {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 12px;
  border:0;
  border-radius:8px;
  background:var(--surface);
  font-family:var(--serif);
  font-size:1.1875rem;
  line-height:1;
}
.font-menu-toggle:hover,
.font-menu-toggle[aria-expanded="true"] {
  background:#e8e3d8;
}
.font-menu-toggle svg {
  width:12px;
  height:12px;
  fill:none;
  stroke:var(--muted);
  stroke-width:1.5;
}
.font-menu {
  position:absolute;
  z-index:20;
  right:0;
  top:calc(100% + 8px);
  width:216px;
  padding:7px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  background:var(--paper);
  border:0;
  border-radius:10px;
  box-shadow:0 8px 28px #29272012; /* taste-skill-ignore: 浮动字号菜单使用投影，与静态内容区分。 */
}
.font-menu button {
  min-height:44px;
  padding:8px 4px;
  border:0;
  border-radius:5px;
  background:transparent;
  font-size:.875rem;
}
.font-menu button:hover {
  background:var(--surface);
}
.font-menu button:disabled {
  opacity:.4;
  cursor:default;
}
.site-header nav {
  align-items:center;
  gap:24px;
}
@media(max-width:560px) {
  .site-header nav { gap:16px; }
  .header-link { display:none; }
  .header-link[href="#library"] { display:block; }
  footer { flex-wrap:wrap; gap:10px 20px; }
  footer p { flex-basis:100%; }
}
@media(max-width:560px) {
  .library-heading { flex-wrap:wrap; row-gap:14px; }
  .filters { flex-wrap:wrap; }

}
@media(max-width:360px) {
  .wordmark svg { display:none; }
}
