:root {
  color-scheme: light;
  --paper: #efebe1;
  --ink: #272522;
  --muted: #645e55;
  --rule: #c7bfb0;
  --accent: #68533d;
  --leather: #242424;
  --metal: #c9b79d;
  --serif: "Noto Serif CJK SC", "Songti SC", STSong, SimSun, serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
}

.wrap { width: min(1100px, calc(100% - 100px)); margin-inline: auto; }
a { color: inherit; text-underline-offset: 0.24em; }
a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.masthead, .colophon { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.jacket {
  color: var(--paper);
  background: var(--leather);
}
.jacket a:focus-visible { outline-color: var(--metal); }
.masthead { min-height: 76px; border-bottom: 1px solid #514c45; }
.imprint, .masthead nav a, .colophon a { text-decoration: none; }
.imprint { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; }
.clasp {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--metal);
  border-radius: 2px;
}
.clasp::after {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--metal);
  rotate: 45deg;
}
.masthead nav { display: flex; gap: clamp(16px, 4vw, 42px); }
.masthead nav a, .colophon a { font-size: 0.9rem; }
.masthead nav a { color: #cec6b8; }
.masthead nav a:hover, .colophon a:hover { color: inherit; text-decoration: underline; }

.opening {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 41%);
  gap: clamp(25px, 5.7vw, 90px);
  align-items: center;
  padding: 46px 0 55px;
}
.opening-text { padding: 18px 0; }
.eyebrow { color: var(--metal); font-size: 0.9rem; letter-spacing: 0.16em; margin: 0 0 19px; }
.eyebrow span { display: inline-block; padding-inline: 0.25em; }
h1, h2 { font-family: var(--serif); line-height: 1.25; margin: 0; }
h1 { font-size: clamp(3.05rem, 6.5vw, 6.1rem); letter-spacing: -0.05em; }
.lede {
  margin: 32px 0 34px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
  color: #d5cec2;
  line-height: 1.9;
}
.open-book {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.11em;
  padding: 11px 25px;
  transition: background 0.18s ease;
}
.open-book:hover { background: #d9cbb6; }
.cover {
  margin: 0;
  border: 1px solid #544e46;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 14px 30px #0005;
}
.cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: cover;
  object-position: center bottom;
  background: #c7bfb0;
}

.index { padding: 56px 0 64px; }
.index-header { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4.1vw, 3.15rem); letter-spacing: -0.03em; }
.index-count { color: var(--muted); font-size: 0.89rem; margin: 9px 0 0; }
.search { flex: 0 1 305px; }
.search label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
.search-field { position: relative; }
.search-field::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  left: 0;
  top: 13px;
  pointer-events: none;
}
.search-field::after {
  content: "";
  position: absolute;
  width: 6px;
  border-top: 1.5px solid var(--muted);
  left: 10px;
  top: 26px;
  rotate: 45deg;
  pointer-events: none;
}
.search input {
  display: block;
  font: inherit;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  background: none;
  padding: 7px 0 9px 26px;
}
.search input::placeholder { color: var(--muted); }
.empty { color: var(--muted); margin: 0; padding: 33px 0; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 1.06rem; }
.entry { border-top: 1px solid var(--rule); scroll-margin-top: 12px; }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(124px, 20%) 1fr;
  align-items: baseline;
  gap: 10px 22px;
  list-style: none;
  padding: 18px 30px 18px 0;
  cursor: pointer;
}
.entry summary::-webkit-details-marker { display: none; }
.entry summary::after { content: "+"; position: absolute; right: 0; color: var(--muted); font-size: 1.1rem; }
.entry[open] summary::after { content: "−"; }
.entry summary:hover .entry-title { text-decoration: underline; text-underline-offset: 0.2em; }
.entry-date { color: var(--muted); font-size: 0.88rem; }
.entry-title { font-family: var(--serif); font-size: 1.28rem; font-weight: 700; overflow-wrap: anywhere; }
.article-body { max-width: 42em; line-height: 1.95; font-family: var(--serif); font-size: 1.13rem; margin: 0 auto; padding: 6px 0 36px; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 1em; white-space: pre-wrap; }
.article-body a { font-family: var(--sans); font-size: 0.88rem; color: var(--accent); }
.colophon { padding: 20px 0 30px; border-top: 1px solid var(--rule); color: var(--muted); font-family: var(--serif); }

@media (max-width: 860px) {
  .wrap { width: calc(100% - 56px); }
  .opening { grid-template-columns: 1fr minmax(210px, 42%); gap: 24px; }
}
@media (max-width: 610px) {
  .wrap { width: calc(100% - 40px); }
  .masthead { min-height: 67px; gap: 13px; }
  .imprint { gap: 9px; white-space: nowrap; }
  .opening { grid-template-columns: 1fr; gap: 24px; padding: 43px 0 32px; }
  .opening-text { padding: 0; }
  h1 { font-size: clamp(2.7rem, 10vw, 3.8rem); }
  .lede { margin-block: 23px; }
  .cover { max-width: 405px; }
  .index { padding: 32px 0; }
  .index-header { flex-direction: column; align-items: stretch; gap: 15px; }
  .search { flex: auto; }
  .entry summary { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .open-book { transition: none; }
}
