:root { --ink:#101014; --blue:#2337ff; --paper:#ffffff; --muted:#6a6a72; --line:#e6e6ea; --tint:#f2f3ff; }
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:"IBM Plex Mono",ui-monospace,monospace; background:var(--paper); color:var(--ink); font-size:14px; }
.serif { font-family:"Fraunces",Georgia,serif; }
.wrap { max-width:880px; margin:0 auto; padding:0 24px; }
a { color:inherit; }
header { border-bottom:3px solid var(--blue); }
header .wrap { display:flex; align-items:baseline; justify-content:space-between; height:68px; padding-top:20px; }
.brand { font-size:21px; letter-spacing:3px; text-decoration:none; font-weight:600; color:var(--blue); }
#q { width:min(240px,44vw); padding:6px 2px; font-size:13px; font-family:inherit; border:none; border-bottom:1px solid var(--line); background:transparent; color:var(--ink); outline:none; border-radius:0; }
#q:focus { border-bottom-color:var(--blue); }
#q::placeholder { color:var(--muted); }
/* manifesto */
.hero { padding:72px 0 44px; border-bottom:1px solid var(--line); }
.hero h2 { font-size:58px; font-weight:560; line-height:1.08; letter-spacing:-0.015em; margin-bottom:22px; }
.hero h2 em { color:var(--blue); }
.hero p { font-size:14px; color:var(--muted); max-width:62ch; line-height:1.75; }
/* pagination + search info */
.pagenote { padding:36px 0 18px; border-bottom:1px solid var(--line); color:var(--muted); font-size:13px; }
.sinfo { padding:18px 0 0; font-size:12px; color:var(--muted); letter-spacing:1px; min-height:18px; }
.pages { display:flex; gap:18px; align-items:center; padding:26px 0 8px; font-size:13px; }
.pages a { color:var(--blue); text-decoration:none; }
.pages a:hover { text-decoration:underline; }
.pages .cur { color:var(--ink); }
/* index list */
.row { display:grid; grid-template-columns:52px 1fr 56px 72px 22px; gap:20px; align-items:center; padding:14px 8px; margin:0 -8px; border-bottom:1px solid var(--line); text-decoration:none; }
.row:hover { background:var(--tint); }
.row img { width:52px; height:78px; object-fit:cover; display:block; }
.row h3 { font-size:24px; font-weight:560; line-height:1.15; }
.row:hover h3 { color:var(--blue); }
.row .author { font-size:12px; color:var(--muted); margin-top:4px; }
.row .year { font-size:12px; color:var(--muted); }
.row .price { font-size:14px; font-weight:600; text-align:right; color:var(--blue); }
.row .arrow { font-family:inherit; font-size:16px; color:var(--blue); opacity:.4; transition:opacity .12s, transform .12s; }
.row:hover .arrow { opacity:1; transform:translateX(3px); }
/* book page */
.detail { display:grid; grid-template-columns:280px 1fr; gap:48px; padding:56px 0 64px; }
.detail .cover { width:100%; display:block; }
.detail h1 { font-size:46px; font-weight:560; line-height:1.08; letter-spacing:-0.015em; margin-bottom:12px; }
.detail .byline { font-size:13px; color:var(--muted); margin-bottom:28px; }
.detail .desc { font-size:14px; line-height:1.8; max-width:52ch; margin-bottom:36px; color:var(--ink); }
.buy { border:2px solid var(--blue); padding:24px; max-width:400px; background:#fff; }
.buy .price { font-size:26px; font-weight:600; color:var(--blue); margin-bottom:6px; }
.buy .note { font-size:12px; color:var(--muted); margin-bottom:16px; line-height:1.6; }
.buy input { width:100%; padding:11px 12px; font-size:13px; font-family:inherit; border:1px solid var(--line); border-radius:0; margin-bottom:10px; outline:none; background:var(--paper); }
.buy input:focus { border-color:var(--blue); }
.buy button { width:100%; padding:14px; font-size:13px; font-family:inherit; font-weight:600; letter-spacing:3px; text-transform:uppercase; color:#fff; background:var(--blue); border:none; border-radius:0; cursor:pointer; }
.buy button:hover { background:var(--ink); }
.buy .formats { font-size:11px; color:var(--muted); margin-top:14px; letter-spacing:2px; text-align:center; }
.err { color:var(--blue); font-size:12px; margin-top:10px; display:none; }
/* success */
.plain { padding:96px 0 128px; }
.plain h1 { font-size:40px; font-weight:560; margin-bottom:14px; }
.plain p { color:var(--muted); font-size:14px; line-height:1.8; }
.plain a { color:var(--blue); text-decoration:none; border-bottom:1px solid var(--line); }
/* footer */
footer { border-top:3px solid var(--blue); padding:20px 0 36px; font-size:12px; color:var(--muted); }
footer a { color:var(--muted); }
@media (max-width:700px) {
  .detail { grid-template-columns:1fr; gap:28px; } .detail .cover { max-width:220px; }
  .hero h2 { font-size:38px; } .detail h1 { font-size:32px; }
  .row { grid-template-columns:44px 1fr 72px 22px; } .row .year { display:none; } .row img { width:44px; height:66px; }
}