/* Wondrbit Books — riso look on the web: warm paper, three inks, overprinted headings. */
:root {
  --paper: #f4efe3;
  --yellow: #ffe800;
  --pink: #ff48b0;
  --blue: #0078bf;
  --font: 'Futura', 'Avenir Next', 'Trebuchet MS', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--blue);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* overprinted heading: blue + pink, multiplied */
.op { position: relative; font-weight: 800; line-height: 1.02; margin: 0; isolation: isolate; }
.op::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: var(--pink);
  mix-blend-mode: multiply;
  transform: translate(2px, -2px);
  pointer-events: none;
}

header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { font-weight: 800; letter-spacing: .14em; font-size: 15px; text-decoration: none; }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 26px 0 50px; }
.hero img.cover { width: 100%; border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 60, 100, .18); transform: rotate(-1.5deg); }
.hero h1 { font-size: clamp(44px, 6vw, 76px); }
.hero .sub { font-size: 21px; margin: 14px 0 22px; }
.ages { display: inline-block; background: var(--yellow); padding: 3px 12px; border-radius: 99px; font-weight: 700; font-size: 15px; }
.price { font-size: 40px; font-weight: 800; margin: 22px 0 6px; }
.price small { font-size: 16px; font-weight: 500; margin-left: 6px; }
.buy {
  display: inline-block; background: var(--pink); color: var(--paper); text-decoration: none;
  font-weight: 800; font-size: 22px; padding: 16px 34px; border-radius: 99px; border: 0; cursor: pointer;
  box-shadow: 4px 4px 0 var(--blue);
}
.buy:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--blue); }
.fine { font-size: 14px; margin-top: 12px; opacity: .9; }

section { padding: 46px 0; }
section h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 22px; }
.band { background: radial-gradient(circle, rgba(255, 232, 0, .55) 2.2px, transparent 2.6px) 0 0 / 12px 12px; }

.samples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.samples figure { margin: 0; }
.samples img { width: 100%; border-radius: 4px; box-shadow: 0 8px 20px rgba(0, 60, 100, .14); }
.samples figcaption { font-size: 14px; margin-top: 6px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; padding: 0; list-style: none; }
.steps li { background: var(--paper); border: 3px solid var(--blue); border-radius: 14px; padding: 16px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow); font-weight: 800; font-size: 22px; margin-bottom: 8px;
}

.readers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.reader { border: 3px solid var(--blue); border-radius: 14px; padding: 18px 20px; background: var(--paper); }
.reader h3 { margin: 0 0 6px; font-size: 21px; }
.reader p, .reader ol { margin: 6px 0 0; }
.dl { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0 6px; }
.dl a { background: var(--blue); color: var(--paper); text-decoration: none; font-weight: 800; padding: 14px 24px; border-radius: 99px; font-size: 19px; }
.dl a.alt { background: var(--paper); color: var(--blue); border: 3px solid var(--blue); }

details { border-bottom: 2px dashed var(--blue); padding: 12px 0; }
summary { font-weight: 700; cursor: pointer; font-size: 19px; }

footer { padding: 30px 0 50px; font-size: 14px; }
.proto {
  background: var(--yellow); color: var(--blue); font-size: 14px; text-align: center; padding: 6px 12px; font-weight: 700;
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .hero img.cover { max-width: 360px; margin: 0 auto; display: block; }
  .samples { grid-template-columns: repeat(2, 1fr); }
  .steps, .readers { grid-template-columns: 1fr; }
}

/* ChirpPal store */
/* The ChirpPal mark in a shop's header: the frame's look (chirppal.css), not the shop's. */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #111; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: 19px; }
.logo svg { width: 26px; height: 26px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { display: block; text-decoration: none; border: 3px solid var(--blue); border-radius: 18px; padding: 18px; background: var(--paper); }
.card img { width: 100%; border-radius: 6px; display: block; margin-bottom: 12px; box-shadow: 0 8px 20px rgba(0, 60, 100, .14); }
.card h3 { margin: 0 0 4px; font-size: 24px; }
.card p { margin: 0; }
.card.soon { border-style: dashed; display: grid; place-items: center; min-height: 220px; text-align: center; }
.series-tag { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; background: var(--yellow); padding: 2px 10px; border-radius: 99px; margin-bottom: 8px; }
.buy.off { background: var(--paper); color: var(--blue); border: 3px solid var(--blue); box-shadow: none; cursor: default; transform: none; }
