:root {
  color-scheme: light;
  --ink: #283d31;
  --moss: #365641;
  --line: #d2d4c7;
  --paper: #faf8f0;
  --serif: 'Songti SC', 'STSong', 'Noto Serif CJK SC', serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 system-ui, sans-serif; }
header { border-bottom: 1px solid var(--line); }
.bar, main, footer { width: min(1120px, calc(100% - 48px)); margin: auto; }
.bar, .brand, nav, .section-head, .postscript, .row, .actions { display: flex; align-items: center; }
.bar, .section-head { justify-content: space-between; }
.bar { min-height: 80px; gap: 12px; flex-wrap: wrap; }
.brand { gap: 12px; font: 600 clamp(20px, 2vw, 24px)/1.3 var(--serif); color: inherit; text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
nav { gap: 22px; }
a { color: inherit; text-underline-offset: 5px; }
nav a { text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
nav [aria-current] { border-color: var(--moss); font-weight: 650; }
main { padding: 36px 0 24px; }
.section-head { gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.shelf-heading { margin-bottom: 18px; }
.shelf-heading .section-head { margin-bottom: 4px; }
.shelf-subtitle { margin: 0; color: var(--moss); font: 16px/1.6 var(--serif); }
h1, h2, .quote { font-family: var(--serif); margin: 0; line-height: 1.25; }
h1 { font-size: 28px; }
.caption, .genre { font-size: 14px; color: #566753; }
.feature { display: grid; grid-template-columns: 1fr 1fr; background: #244537; color: #faf8ed; border-radius: 5px; overflow: hidden; }
.display { display: grid; place-items: center; padding: 32px; background: repeating-linear-gradient(125deg, #dedecf 0 1px, transparent 1px 8px), #e6e5d8; }
.display img { width: min(70%, 212px); transform: rotate(-5deg); box-shadow: 8px 12px 14px #333b3040; }
.feature-text { padding: clamp(28px, 4.5vw, 70px); align-self: center; }
.feature .genre { color: #d4dccc; }
.genre { letter-spacing: .12em; }
.feature h2, .list-title { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 2vw, 26px); margin-top: 7px; }
article p { margin: 12px 0 20px; max-width: 29em; }
button, .primary-link { font: inherit; cursor: pointer; border: 1px solid var(--moss); border-radius: 4px; background: transparent; color: var(--moss); padding: 7px 16px; min-height: 42px; }
.add, .primary-link { background: var(--moss); color: white; }
.feature button { background: #f2f1dc; color: #264536; }
.add[aria-disabled=true] { background: transparent; color: inherit; border-color: currentColor; cursor: default; }
.visit { display: inline-block; margin: 6px 0 0 10px; font-size: 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 24px 0; }
.short { display: grid; grid-template-columns: 32% 1fr; gap: 24px; align-items: center; padding: 22px 0; border-block: 1px solid var(--line); }
.short img { width: 100%; max-width: 160px; }
.short p { color: #526151; }
.postscript { gap: 20px; flex-wrap: wrap; justify-content: space-between; background: #e9edde; padding: 20px 28px; border-left: 4px solid #798b60; }
.quote { font-size: 24px; margin: 4px 0; user-select: all; }
.postscript p:empty, .error:empty { display: none; }
#copy-feedback { flex-basis: 100%; margin: 0; }
.row { gap: 22px; border-top: 1px solid var(--line); padding: 18px 0; }
.row img { width: 68px; }
.row h2 { margin: 0; }
.actions { margin-left: auto; flex-wrap: wrap; gap: 18px; }
.actions label { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 0; }
.actions input { width: 18px; height: 18px; accent-color: var(--moss); }
#empty { padding: 64px 20px; text-align: center; background: #eef0e5; border-block: 1px solid var(--line); }
.primary-link { display: inline-block; text-decoration: none; margin-top: 22px; }
footer { border-top: 1px solid var(--line); padding: 20px 0 32px; }
footer img { width: 156px; max-width: 100%; height: auto; display: block; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #344bc1; outline-offset: 3px; box-shadow: 0 0 0 3px white; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }
@media (max-width: 850px) {
  .short { gap: 16px; }
  .pair { gap: 20px; }
  .visit { margin-left: 0; display: block; }
}
@media (max-width: 640px) {
  .bar, main, footer { width: calc(100% - 32px); }
  .bar { min-height: 66px; }
  .brand { gap: 6px; }
  .brand img { width: 28px; height: 28px; }
  nav { gap: 12px; font-size: 14px; }
  main { padding-top: 24px; }
  .feature { grid-template-columns: 35% 1fr; }
  .display { padding: 12px; }
  .display img { width: 95%; }
  .feature-text { padding: 22px 15px; }
  .feature p { margin: 10px 0 14px; }
  .pair { grid-template-columns: 1fr; gap: 0; margin: 16px 0; }
  .short { grid-template-columns: 30% 1fr; padding: 18px 0; }
  .short + .short { border-top: 0; }
  .postscript { padding: 16px; gap: 10px; }
  .row { display: grid; grid-template-columns: 60px 1fr; gap: 8px 16px; }
  .row img { grid-row: span 2; width: 60px; }
  .actions { margin-left: 0; }
}