/* Biki and Hupu: shared look. The books' Poppins type, navy words, Biki's yellow, a soft
   sky over warm paper. Used by every page; the reader adds reader.css. */
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/art/Poppins-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/art/Poppins-Bold.ttf) format("truetype"); }

:root {
  --paper: #FBF5E6;
  --sky: #DCEFF9;
  --navy: #1D3557;
  --ink-soft: #4A5C78;
  --yellow: #FFD34D;
  --white: #FFFFFF;
  --wood: #B9814A;
  --wood-dark: #8E5C2E;
  --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: linear-gradient(var(--sky), var(--paper) 420px) no-repeat, var(--paper);
  color: var(--navy);
  font: 600 17px/1.55 Poppins, "Trebuchet MS", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 4px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 54px; padding: .55em 1.4em; border: 3px solid var(--navy); border-radius: 999px;
  background: var(--white); color: var(--navy); font-weight: 700; font-size: clamp(17px, 2.4vh, 21px);
  box-shadow: 0 4px 0 var(--navy); text-decoration: none; transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.btn.primary { background: var(--yellow); }
.btn svg { width: 1.15em; height: 1.15em; }
.press { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 14px; }
.press img { width: clamp(48px, 7vh, 72px); height: auto; }

/* Home: the bookshelf */
.masthead { text-align: center; padding: clamp(24px, 5vh, 56px) 16px clamp(12px, 3vh, 28px); }
.masthead .logo { width: clamp(76px, 11vh, 110px); height: auto; filter: drop-shadow(0 4px 10px rgba(29, 53, 87, .18)); }
.masthead h1 { font-weight: 700; font-size: clamp(36px, 8vw, 64px); line-height: 1.05; margin-top: 10px; letter-spacing: .01em; }
.lede { color: var(--ink-soft); font-size: clamp(16px, 2.2vw, 20px); margin-top: 8px; }

.shelf {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1040px; margin: clamp(8px, 3vh, 28px) auto 0; padding: 0 16px;
}
.shelf-book { display: flex; flex-direction: column; align-items: center; color: var(--navy); }
.shelf-book .cover { padding: 0 9%; width: 100%; display: flex; align-items: flex-end; }
.shelf-book .cover img {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px 10px 10px 4px;
  box-shadow: -3px 0 0 rgba(0, 0, 0, .12) inset, 0 10px 18px rgba(29, 53, 87, .28);
  transition: transform .2s ease;
}
.shelf-book a.cover:hover img, .shelf-book:has(.act a:hover, .act a:focus-visible) .cover img { transform: translateY(-6px) rotate(-1deg); }
.board {
  width: 100%; height: 18px;
  background: linear-gradient(var(--wood), var(--wood-dark));
  box-shadow: 0 8px 12px -6px rgba(60, 35, 10, .45);
}
.shelf-book:first-child .board { border-radius: 6px 0 0 6px; }
.shelf-book:last-child .board { border-radius: 0 6px 6px 0; }
.book-title { font-weight: 700; font-size: clamp(16px, 2vw, 21px); text-align: center; margin: 14px 8px 10px; line-height: 1.25; }
/* The back-cover story and its lesson, under each book (Sarfraz, 2026-11-10). */
.shelf-book .story, .shelf-book .lesson { width: 100%; padding: 0 9%; font-size: 15.5px; line-height: 1.6; }
.shelf-book .lesson { margin-top: 10px; color: var(--ink-soft); }
.shelf-book .lesson strong { color: var(--navy); font-weight: 700; }
/* The button or "Coming soon" lines up along the bottom, however long the story. */
.shelf-book .act { margin-top: auto; padding-top: 18px; min-height: 74px; display: flex; align-items: center; justify-content: center; }
.shelf-book .btn { min-height: 48px; font-size: 17px; padding: .45em 1.2em; }
.tag {
  display: inline-block; padding: .3em .9em; border-radius: 999px; font-size: 15px;
  background: rgba(29, 53, 87, .08); color: var(--ink-soft);
}
.shelf-book.soon .cover img { filter: saturate(.75) brightness(1.04); }

.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: clamp(28px, 6vh, 56px) auto 0; padding: 0 16px; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: .35em 1.1em; border-radius: 999px;
  border: 2px solid rgba(29, 53, 87, .25); background: rgba(255, 255, 255, .7); text-decoration: none; font-size: 16px;
}
.pill:hover { border-color: var(--navy); }

@media (max-width: 640px) {
  .shelf { grid-template-columns: 1fr; gap: 34px; padding: 0 28px; }
  .shelf-book .cover { padding: 0 14%; }
  .shelf-book .story, .shelf-book .lesson { padding: 0 2%; }
  .shelf-book .board { border-radius: 6px !important; }
}

/* Other pages: characters, printed books, about */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1040px; margin: 0 auto; padding: 16px;
}
.home-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.home-link img { width: 48px; height: 48px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 8px 16px 0; }
.wrap > h1 { font-weight: 700; font-size: clamp(30px, 6vw, 46px); line-height: 1.1; text-align: center; margin-top: 8px; }
.wrap > .lede { text-align: center; }

.cast { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 28px; }
.who {
  flex: 0 1 310px;
  background: var(--white); border-radius: 24px; padding: 18px; text-align: center;
  box-shadow: 0 6px 20px rgba(29, 53, 87, .1);
}
.who img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 5px solid var(--sky); }
.who h2 { font-weight: 700; font-size: 24px; margin-top: 8px; }
.who p { color: var(--ink-soft); margin-top: 6px; }

.printed { display: grid; gap: 22px; margin-top: 28px; }
.printed-book {
  display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center;
  background: var(--white); border-radius: 24px; padding: 18px; box-shadow: 0 6px 20px rgba(29, 53, 87, .1);
}
.printed-book img { border-radius: 4px 10px 10px 4px; box-shadow: 0 6px 14px rgba(29, 53, 87, .25); }
.printed-book h2 { font-weight: 700; font-size: 24px; }
.printed-book p { color: var(--ink-soft); margin: 6px 0 14px; }
.printed-book .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.printed-book .btn { min-height: 46px; font-size: 16px; padding: .4em 1.1em; }
@media (max-width: 560px) {
  .printed-book { grid-template-columns: 1fr; text-align: center; }
  .printed-book img { width: 60%; margin: 0 auto; }
  .printed-book .actions { justify-content: center; }
}

.story-of { max-width: 40em; margin: 24px auto 0; font-size: 18px; }
.story-of p + p { margin-top: 1em; }
.story-of .quote { font-weight: 700; }

.foot {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  margin-top: clamp(40px, 8vh, 80px); padding: 24px 16px calc(28px + var(--sab));
  color: var(--ink-soft); font-size: 14px; border-top: 1px solid rgba(29, 53, 87, .1);
}
.foot img { width: 56px; height: 56px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
