@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Inter:wght@400;500;700&display=swap");
:root {
  --cream: #FFF8EC; --paper: #FFFFFF; --ink: #141414; --soft: #4a4a4a; --red: #FF4B2B; --teal: #00A99D; --sun: #FFD23F;
  --r: 18px; --shadow: 6px 6px 0 var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.6 Inter, system-ui, sans-serif; }
h1, h2, h3 { font-family: "Bricolage Grotesque", Inter, sans-serif; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 8vw, 76px); font-weight: 800; }
h2 { font-size: clamp(30px, 5.5vw, 48px); font-weight: 800; }
h3 { font-size: 23px; }
p { margin: 0 0 1em; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 20px "Bricolage Grotesque", sans-serif; text-decoration: none; }
.logo img { width: 38px; height: 46px; }
.mark { background: linear-gradient(transparent 58%, var(--sun) 58%); padding: 0 .08em; }
.red { color: var(--red); }
.btn { display: inline-block; background: var(--red); color: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 16px 30px;
  font: 800 21px "Bricolage Grotesque", sans-serif; text-decoration: none; box-shadow: var(--shadow); cursor: pointer; transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(6px, 6px); box-shadow: none; }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }
.card { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; }
.grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } }
.hero { display: grid; gap: 36px; align-items: center; padding-top: 28px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.25fr .9fr; } }
.lead { font-size: 21px; color: var(--soft); }
.small { font-size: 14px; color: var(--soft); }
.pill { display: inline-block; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
ul.check { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li { padding-left: 36px; position: relative; margin-bottom: 10px; }
ul.check li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
ul.x li::before { content: "✗"; background: var(--red); }
.band { background: var(--ink); color: var(--cream); }
.band .lead { color: #cfc8bb; }
.teal { background: var(--teal); }
.quote { font: 700 26px/1.3 "Bricolage Grotesque", sans-serif; }
details { border-bottom: 2px solid var(--ink); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 19px; }
footer { padding: 36px 0 60px; font-size: 14px; color: var(--soft); text-align: center; }
footer a { margin: 0 8px; }
.notice { background: var(--sun); border: 3px solid var(--ink); border-radius: 12px; padding: 12px 16px; margin: 14px 0; font-weight: 600; }

/* the book, drawn in CSS */
.book { width: min(300px, 74vw); aspect-ratio: 3/4.2; margin: 0 auto; position: relative; transform: perspective(1200px) rotateY(-16deg) rotateZ(1deg); }
.book .cover { position: absolute; inset: 0; background: var(--red); border: 4px solid var(--ink); border-radius: 6px 14px 14px 6px; box-shadow: 14px 14px 0 var(--ink);
  padding: 22px 20px; color: #fff; display: flex; flex-direction: column; overflow: hidden; }
.book .cover::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 4px; background: rgba(0,0,0,.25); }
.book .t1 { font: 800 clamp(16px, 4vw, 20px) "Bricolage Grotesque", sans-serif; letter-spacing: .04em; }
.book .t2 { font: 800 clamp(38px, 10vw, 54px)/.92 "Bricolage Grotesque", sans-serif; margin: 6px 0 10px; color: var(--cream); }
.book .t2 span { color: var(--sun); }
.book .t3 { font-size: clamp(11px, 2.8vw, 13px); line-height: 1.35; max-width: 80%; }
.book img { position: absolute; right: -6px; bottom: -4px; width: 52%; }
.book .tag { position: absolute; left: 20px; bottom: 16px; background: var(--ink); color: var(--sun); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; }

/* checkout box */
.checkout { max-width: 520px; margin: 0 auto; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #bbb; }
.bump { display: flex; gap: 14px; align-items: flex-start; background: #FFF3B0; border: 3px dashed var(--red); border-radius: 12px; padding: 14px; margin: 16px 0; cursor: pointer; }
.bump input { width: 26px; height: 26px; flex: none; margin-top: 2px; accent-color: var(--red); }
.total { font: 800 28px "Bricolage Grotesque", sans-serif; display: flex; justify-content: space-between; margin: 12px 0 18px; }
.err { color: var(--red); font-weight: 700; min-height: 1.4em; }
.price-old { text-decoration: line-through; color: var(--soft); font-weight: 400; }
.chapters li { margin-bottom: 8px; }
.oto-bar { background: var(--red); color: #fff; text-align: center; font-weight: 800; padding: 10px 16px; }
