: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 h1 { font-size:58px; font-weight:560; line-height:1.08; letter-spacing:-0.015em; margin-bottom:22px; }
.hero h1 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 .byline a { color:var(--blue); text-decoration:none; border-bottom:1px solid var(--line); }
.detail .byline a:hover { border-bottom-color:var(--blue); }
.detail .desc { font-size:14px; line-height:1.8; max-width:52ch; margin-bottom:36px; color:var(--ink); }
.book-facts { display:flex; flex-wrap:wrap; gap:10px 28px; padding:14px 0; margin:-8px 0 24px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.book-fact { display:flex; align-items:baseline; gap:10px; font-size:11px; letter-spacing:1.2px; }
.book-fact strong { color:var(--blue); font-weight:600; }
.book-fact span { 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%; min-height:48px; 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; }
.book-sections { border-top:3px solid var(--blue); padding-bottom:72px; }
.book-section { display:grid; grid-template-columns:170px minmax(0,1fr); gap:44px; padding:54px 0 58px; border-bottom:1px solid var(--line); }
.book-section h2 { font-size:30px; font-weight:560; line-height:1.12; letter-spacing:-0.01em; }
.section-note { margin-top:12px; color:var(--muted); font-size:11px; line-height:1.6; letter-spacing:.6px; text-transform:uppercase; }
.book-copy { max-width:62ch; font-family:"Literata",Georgia,serif; font-size:1.0625rem; line-height:1.78; font-optical-sizing:auto; font-kerning:normal; }
.book-copy p { margin-bottom:1.15em; font-size:inherit; line-height:inherit; }
.book-copy p:last-child { margin-bottom:0; }
.sample-text { max-width:62ch; font-family:"Literata",Georgia,serif; font-size:1.125rem; font-weight:400; line-height:1.75; font-optical-sizing:auto; font-kerning:normal; }
.sample-text h3 { margin:34px 0 20px; font-family:"IBM Plex Mono",ui-monospace,monospace; font-size:12px; font-weight:600; letter-spacing:2px; color:var(--blue); }
.sample-text h3:first-child { margin-top:0; }
.sample-text p { margin-bottom:1.15em; }
.sample-more { margin-top:30px; border-top:1px solid var(--line); }
.sample-more summary { display:flex; align-items:center; justify-content:space-between; min-height:52px; color:var(--blue); font-family:"IBM Plex Mono",ui-monospace,monospace; font-size:12px; font-weight:600; letter-spacing:1.8px; text-transform:uppercase; cursor:pointer; list-style:none; }
.sample-more summary::-webkit-details-marker { display:none; }
.sample-more summary::after { content:"+"; font-size:20px; line-height:1; }
.sample-more[open] summary::after { content:"−"; }
.sample-more .when-open { display:none; }
.sample-more[open] .when-closed { display:none; }
.sample-more[open] .when-open { display:inline; }
.sample-more[open] .sample-text { padding-top:28px; }
/* author page */
.author-hero { display:grid; grid-template-columns:170px minmax(0,1fr); gap:44px; padding:72px 0 54px; border-bottom:3px solid var(--blue); }
.author-kicker { color:var(--blue); font-size:11px; font-weight:600; letter-spacing:2px; }
.author-hero h1 { font-size:58px; font-weight:560; line-height:1.04; letter-spacing:-.02em; margin-bottom:18px; }
.author-deck { max-width:55ch; color:var(--muted); font-size:14px; line-height:1.75; }
.author-library { padding:54px 0 64px; }
.author-library-head { margin-bottom:26px; }
.author-library h2 { font-size:30px; font-weight:560; line-height:1.12; letter-spacing:-.01em; }
.author-source { display:grid; grid-template-columns:170px minmax(0,1fr); gap:44px; padding:32px 0 42px; }
.author-source p { max-width:62ch; color:var(--muted); font-size:12px; line-height:1.75; }
.author-source a { color:var(--blue); text-decoration:none; border-bottom:1px solid var(--line); }
.author-source a:hover { border-bottom-color:var(--blue); }
/* 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; max-width:62ch; }
.plain strong { color:var(--ink); font-weight:600; overflow-wrap:anywhere; }
.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:820px) and (min-width:701px) {
  .detail { grid-template-columns:240px 1fr; gap:36px; }
  .detail h1 { font-size:40px; }
  .book-section { grid-template-columns:150px minmax(0,1fr); gap:34px; }
}
@media (max-width:700px) {
  .detail { grid-template-columns:1fr; gap:28px; padding:36px 0 48px; } .detail .cover { max-width:220px; }
  .hero h1 { font-size:38px; } .detail h1 { font-size:32px; }
  .detail .byline { margin-bottom:22px; }
  .book-facts { flex-direction:column; align-items:flex-start; gap:9px; margin-top:-4px; }
  .book-fact { width:100%; justify-content:space-between; }
  .buy { max-width:none; }
  .book-sections { padding-bottom:48px; }
  .book-section { grid-template-columns:1fr; gap:22px; padding:40px 0 44px; }
  .book-section h2 { font-size:28px; }
  .sample-text { font-size:1.0625rem; line-height:1.75; }
  .author-hero { grid-template-columns:1fr; gap:26px; padding:48px 0 40px; }
  .author-hero h1 { font-size:42px; }
  .author-library { padding:40px 0 48px; }
  .author-library h2 { font-size:28px; }
  .author-source { grid-template-columns:1fr; gap:14px; }
  #q { min-height:44px; }
  .row { grid-template-columns:44px 1fr 72px 22px; } .row .year { display:none; } .row img { width:44px; height:66px; }
}
@media (max-width:460px) {
  header .wrap { gap:16px; }
  .brand { flex:0 0 auto; white-space:nowrap; font-size:15px; letter-spacing:1.4px; }
  #q { width:min(150px,42vw); }
}
@media (max-width:380px) {
  .wrap { padding-left:16px; padding-right:16px; }
  .detail .cover { max-width:190px; }
  .buy { padding:20px; }
}