:root {
  --paper: #faf7ef;
  --ink: #342d32;
  --muted: #716568;
  --line: #d9ccbc;
  --accent: #963f39;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #956624;
  outline-offset: 4px;
}
.skip { position: absolute; left: .6rem; top: -5rem; z-index: 5; background: white; padding: .65rem; }
.skip:focus { top: .6rem; }
.bar, .wrap, .cover { width: min(960px, calc(100% - clamp(40px, 10vw, 128px))); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
header { border-bottom: 1px solid var(--line); }
header .bar { min-height: 72px; }
.site-title { margin: 0; font-size: inherit; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .12em; font-size: clamp(18px, 2vw, 24px); }
.brandmark { display: grid; place-items: center; background: var(--accent); color: #fff0d5; font-size: 15px; line-height: 1; width: 25px; height: 27px; border-radius: 2px; letter-spacing: 0; }
nav { display: flex; align-items: center; gap: 26px; font-size: 16px; letter-spacing: .13em; }
.cover { margin-block: clamp(28px, 3.6vw, 48px) 0; }
.cover picture, .book-art { display: block; }
.cover img, .book-art img { display: block; width: 100%; height: auto; }
.cover figcaption { margin-top: 17px; color: var(--muted); text-align: center; font-size: clamp(14px, 1.3vw, 16px); line-height: 1.8; letter-spacing: .10em; }
.archive { padding-block: clamp(38px, 4vw, 58px) 53px; }
.wrap h2 { display: flex; align-items: center; gap: 19px; font-size: clamp(23px, 2.3vw, 30px); font-weight: 600; letter-spacing: .1em; margin: 0 0 21px; }
.wrap h2::after { content: ""; width: 42px; height: 2px; background: #b68a4d; }
.empty { color: var(--muted); padding: 3px 0 23px; border-bottom: 1px solid var(--line); font-size: 17px; }
.book { max-width: 820px; padding-block: 42px 65px; }
.bookhead { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.bookhead h1 { font-size: 43px; letter-spacing: .16em; margin: 15px 0 10px; }
.bookhead p { margin: 0; color: var(--muted); }
.book-art { width: 30%; height: auto; }
.back, small, footer { font-family: system-ui, sans-serif; font-size: 13px; color: var(--muted); }
form { display: grid; gap: 10px; }
label { margin-top: 9px; font-weight: 600; }
input, textarea { width: 100%; border: 1px solid #aa998e; border-radius: 3px; background: #fffaf0; font: inherit; font-size: 16px; padding: 11px 13px; color: var(--ink); }
input { max-width: 330px; }
textarea { resize: vertical; min-height: 110px; }
.actions { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-top: 4px; }
button { font: inherit; font-weight: 600; letter-spacing: .08em; color: #fff4e4; background: #71393f; border: 0; border-radius: 3px; padding: 11px 24px; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
#notice { color: #663238; margin: 3px 0; line-height: 1.6; }
.notes { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 34px; }
#messages p { line-height: 1.85; overflow-wrap: anywhere; }
.note { padding-block: 12px; border-bottom: 1px solid var(--line); }
.note-header { display: flex; align-items: baseline; gap: 15px; }
.note p { white-space: pre-wrap; }
.note time, .note-reply { color: var(--muted); }
.note time { font-size: 13px; }
.note-reply { border-left: 2px solid #ae855a; padding-left: 12px; }
footer { border-top: 1px solid var(--line); }
footer .bar { min-height: 64px; }
footer a { padding-block: 11px; }
@media (max-width: 600px) {
  header .bar { min-height: 60px; }
  .bar, .wrap, .cover { width: calc(100% - 40px); }
  nav { gap: 15px; font-size: 15px; }
  .brand { gap: 8px; }
  .brandmark { width: 20px; height: 22px; font-size: 12px; }
  .cover figcaption { margin-top: 14px; }
  .archive, .book { padding-top: 33px; }
  .bookhead { gap: 15px; }
  .bookhead h1 { font-size: 35px; }
  .bookhead p { line-height: 1.75; }
}
