:root{
  --ink:#22272E; --ink-2:#46505C; --muted:#5B6673;
  --ground:#F7F8FA; --card:#FFFFFF; --line:#DDE3EA;
  --mint:#7CC4A8; --sun:#F2C230; --sky:#B9D2EC; --rose:#E58C8C;
  --link:#2F5E94; --link-hover:#1F4470;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Nunito Sans",system-ui,sans-serif;color:var(--ink);background:var(--ground);line-height:1.55}
a{color:var(--link)} a:hover{color:var(--link-hover)}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.brand{font-family:"Lexend Deca",system-ui,sans-serif}

/* header */
.site-header{background:var(--card);border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between;padding-top:16px;padding-bottom:16px}
.logo{font-family:"Lexend Deca",system-ui,sans-serif;font-weight:600;font-size:21px;color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:10px}
.logo-tabs{display:flex;flex-direction:column;gap:3px}
.logo-tabs span{display:block;height:6px;border-radius:3px 0 0 3px}
.logo-tabs span:nth-child(1){width:18px;background:var(--mint)}
.logo-tabs span:nth-child(2){width:14px;background:var(--sun)}
.logo-tabs span:nth-child(3){width:10px;background:var(--sky)}
.site-nav{display:flex;flex-wrap:wrap;gap:6px 22px;font-size:15px;font-weight:600}
.site-nav a{text-decoration:none;color:var(--ink);padding:8px 0}
.site-nav a:hover{color:var(--link)}

/* hero */
.hero{padding:64px 0 36px}
.eyebrow{font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 12px}
.hero h1{font-family:"Lexend Deca",system-ui,sans-serif;font-weight:600;font-size:clamp(34px,5.4vw,56px);line-height:1.08;margin:0 0 16px;max-width:760px;text-wrap:balance}
.hero p{font-size:18px;color:var(--ink-2);margin:0;max-width:640px}

/* shelves */
.shelves{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px;padding:12px 0 72px}
.shelf{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;scroll-margin-top:24px}
.shelf-head{height:150px;border-bottom:1px solid var(--line);position:relative;display:flex;align-items:center}
.shelf-head.paper{background-color:#fff;background-image:repeating-linear-gradient(#fff 0 27px,var(--sky) 27px 28px);padding-left:72px}
.shelf-head.paper::before{content:"";position:absolute;left:52px;top:0;bottom:0;width:2px;background:var(--rose)}
.shelf-head.tabs{background:#fff;padding-left:32px}
.tab-stack{position:absolute;right:0;top:18px;display:flex;flex-direction:column;gap:8px}
.tab-stack span{height:30px;border-radius:8px 0 0 8px;display:block}
.tab-stack span:nth-child(1){width:56px;background:var(--mint)}
.tab-stack span:nth-child(2){width:44px;background:var(--sun)}
.tab-stack span:nth-child(3){width:36px;background:var(--sky)}
.shelf-title{font-family:"Lexend Deca",system-ui,sans-serif;font-weight:600;line-height:1;color:var(--ink);margin:0}
.shelf-title small{display:block;font-weight:500;font-size:22px;color:var(--ink-2);margin-top:6px}
.shelf-head.paper .shelf-title{font-size:40px}
.shelf-head.tabs .shelf-title{font-size:46px}
.shelf-head.tabs .shelf-title small{display:inline;font-size:26px;margin:0}
.shelf-body{padding:24px;display:flex;flex-direction:column;gap:18px;flex-grow:1}
.label{font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:0}

.books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.book{display:flex;flex-direction:column;gap:6px}
.cover{aspect-ratio:3/4;border-radius:6px;display:flex;align-items:flex-start;justify-content:flex-end;padding:10px;font-family:"Lexend Deca",system-ui,sans-serif;font-size:13px}
.cover.journal{background:linear-gradient(160deg,#EEF1F6 0%,#D9DDEB 55%,#E7D9E8 100%);color:#4F7FB0;box-shadow:inset 3px 0 0 #C3C8D8}
.cover.soon{background:#EEF3F8;border:1px dashed #B9C6D4;color:var(--muted);align-items:center;justify-content:center;font-family:inherit;font-size:12px}
.book-title{font-size:14px;font-weight:600;margin:0}
.book-price{font-size:14px;font-weight:800;margin:0}
.book.muted .book-title{color:var(--muted)}

.product{display:flex;gap:16px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:10px}
.product.soon{border-style:dashed;border-color:#C6D0DB;color:var(--muted)}
.thumb{width:96px;height:72px;flex-shrink:0;border-radius:6px;background-color:#F3F6F9}
.thumb.grid{background-image:linear-gradient(#D5DDE6 1px,transparent 1px),linear-gradient(90deg,#D5DDE6 1px,transparent 1px);background-size:16px 12px}
.product h3{font-size:17px;font-weight:800;margin:0 0 2px}
.product p{margin:0;font-size:14px;color:var(--ink-2)}
.product .price{font-size:15px;font-weight:800;color:var(--ink);margin-top:4px}

.btn{align-self:flex-start;display:inline-block;padding:13px 20px;border-radius:10px;font-weight:800;text-decoration:none;min-height:44px}
.btn-dark{background:var(--ink);color:#fff}
.btn-dark:hover{background:#000;color:#fff}
.btn-line{border:2px solid var(--ink);color:var(--ink)}
.btn-line:hover{background:var(--ink);color:#fff}
.shelf-body .btn{margin-top:auto}

/* about */
.about{background:var(--card);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:48px 0;scroll-margin-top:24px}
.about h2{font-family:"Lexend Deca",system-ui,sans-serif;font-weight:600;font-size:28px;margin:0 0 12px}
.about p{max-width:680px;margin:0 0 12px;color:var(--ink-2);font-size:17px}

/* footer */
.site-footer{background:var(--ground);padding:28px 0 40px;font-size:14px;color:var(--muted)}
.site-footer .wrap{display:flex;flex-wrap:wrap;gap:14px 32px;justify-content:space-between}
.foot-links{display:flex;flex-wrap:wrap;gap:8px 20px}
.foot-links a{color:var(--muted);text-decoration:none}
.foot-links a:hover{color:var(--ink);text-decoration:underline}
.site-footer p{margin:0}

/* policy pages */
.policy{padding:48px 0 72px}
.policy article{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:clamp(24px,5vw,48px);max-width:820px}
.policy h1{font-family:"Lexend Deca",system-ui,sans-serif;font-weight:600;font-size:clamp(28px,4vw,38px);margin:0 0 6px}
.policy .updated{color:var(--muted);font-size:14px;margin:0 0 28px}
.policy h2{font-size:19px;font-weight:800;margin:28px 0 8px}
.policy p,.policy li{color:var(--ink-2);font-size:16px}
.policy ul{padding-left:20px}

@media (max-width:520px){
  .hero{padding:44px 0 24px}
  .books{grid-template-columns:repeat(2,minmax(0,1fr))}
  .books .book:last-child{display:none}
  .shelf-head.tabs .shelf-title{font-size:38px}
  .shelf-head.paper .shelf-title{font-size:34px}
  .product{flex-direction:column;align-items:flex-start}
}