* { box-sizing: border-box; }
:root { --ink: #292323; --wine: #792a39; --paper: #faf7f0; --line: #dfd5c7; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 system-ui, "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--wine); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #b25b4d; outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 48px)); margin: auto; }
header { border-bottom: 1px solid var(--line); background: #fffdf8; }
.mast { display: flex; align-items: center; gap: 14px; padding: 22px 0; }
.mast img { width: 46px; height: 46px; }
.brand { font-weight: 800; font-size: 20px; overflow-wrap: anywhere; }
.eyebrow { font-size: 12px; letter-spacing: .16em; color: var(--wine); font-weight: 700; }
nav { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 10px 0 16px; font-size: 15px; }
main { padding: 32px 0 56px; }
.hero { display: grid; grid-template-columns:  .82fr 1.18fr; background: #302326; color: #fff6e9; border-radius: 8px; overflow: hidden; }
.hero-copy { padding: clamp(24px,4vw,56px); align-self: center; }
.hero .eyebrow { color: #e7b5a5; }
h1,h2,h3,p { margin: 0 0 16px; }
h1 { font-size: clamp(26px,3.2vw,43px); line-height: 1.35; overflow-wrap: anywhere; }
h2 { font-size: clamp(23px,2.4vw,30px); line-height: 1.4; }
h3 { font-size: 19px; line-height: 1.5; }
.hero img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: 65% center; display: block; }
.cta { display: inline-block; padding: 10px 20px; background: #e9d3ad; color: #352526; border-radius: 4px; font-weight: 700; }
.note { font-size: 14px; color: #665c56; border-left: 3px solid var(--wine); padding: 12px 16px; margin: 24px 0; background: #f0e9df; }
.section { margin-top: 38px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.shelf { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.genre { background: #fffdf8; border: 1px solid var(--line); padding: 20px; border-top: 4px solid var(--wine); }
.genre span { display: block; color: var(--wine); font-size: 12px; }
.catalog { display: grid; grid-template-columns:  2fr 1fr; gap: 30px; }
.entries { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.entry { background: #fffdf9; border: 1px solid var(--line); padding: 20px; min-width: 0; }
.entry .meta { color: var(--wine); font-size: 13px; }
.entry p { font-size: 15px; }
.sidebar { background: #eee5d8; padding: 24px; align-self: start; }
.sidebar a { display: block; border-bottom: 1px solid #d7c8b7; padding: 12px 0; }
.prose { max-width: 820px; background: #fffdf9; border: 1px solid var(--line); padding: clamp(20px,4vw,48px); }
.crumb { font-size: 14px; color: #665c56; margin-bottom: 20px; }
footer { border-top: 1px solid var(--line); background: #302326; color: #f2e7d9; padding: 32px 0; }
footer p { margin-bottom: 8px; }
input { width: min(100%,420px); border: 1px solid #9c8c7c; padding: 12px; font: inherit; border-radius: 4px; }
[hidden] { display: none !important; }
@media (max-width: 850px) { .hero,.catalog { grid-template-columns: 1fr; } .hero img { min-height: 0; aspect-ratio: 16/9; } .shelf { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 520px) { .wrap { width: calc(100% - 28px); } .mast { padding: 15px 0; } .brand { font-size: 16px; } nav { gap: 8px 16px; } main { padding-top: 20px; } .shelf,.entries { grid-template-columns: 1fr; } .genre { padding: 14px; } .section { margin-top: 28px; } }
