@font-face{font-family:"Source Serif 4";font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/fonts/source-serif-4-latin-wght-normal.197cc326af.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Source Serif 4";font-style:normal;font-display:swap;font-weight:200 900;src:url(/assets/fonts/source-serif-4-latin-ext-wght-normal.24102cbae8.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Poppins";font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fonts/poppins-latin-400-normal.9212f6f986.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Poppins";font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fonts/poppins-latin-ext-400-normal.90926c36b7.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Poppins";font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fonts/poppins-latin-500-normal.a09f2fccfe.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Poppins";font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fonts/poppins-latin-ext-500-normal.1f24684cbd.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Poppins";font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fonts/poppins-latin-600-normal.72993dddf8.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Poppins";font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fonts/poppins-latin-ext-600-normal.a575b6d9df.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Poppins";font-style:normal;font-display:swap;font-weight:700;src:url(/assets/fonts/poppins-latin-700-normal.25b0e113ca.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Poppins";font-style:normal;font-display:swap;font-weight:700;src:url(/assets/fonts/poppins-latin-ext-700-normal.367d2aa05b.woff2) format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
/* ==========================================================================
   Books Beyond Pages — warm cream, coral and navy
   Serif headings (Source Serif 4), friendly sans text (Poppins).
   Fonts (@font-face) are added automatically by the build.
   ========================================================================== */

:root {
  --bg: #FFF9F4;          /* warm cream page */
  --peach: #FDEDE4;       /* top of pages, soft bands */
  --card: #FFF1EA;        /* book cards: soft peach */
  --card-line: #F7D9CC;
  --coral: #CF4630;       /* buttons */
  --coral-hover: #B93D29;
  --coral-ink: #B83C27;   /* coral text and links (easy to read) */
  --coral-bright: #E8573F;/* small accents */
  --coral-soft: #FDE3DC;
  --navy: #1F2B3D;        /* headings */
  --text: #3E4757;        /* body text */
  --muted: #636A77;
  --line: #EDE3DC;
  --white: #FFFFFF;

  --blue-soft: #DCEBF9;  --blue: #2A63A3;
  --mint-soft: #DDF2E8;  --mint: #25775A;
  --sun-soft: #FFF0C7;   --sun: #8A5E05;
  --lav-soft: #ECE7FA;   --lav: #5E4BB5;
  --rose-soft: #FDE2E2;  --rose: #B0334A;
  --shade: 31, 43, 61;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --gutter: clamp(1.125rem, 4vw, 2rem);
  --max: 1200px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--coral-soft); color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--white); color: var(--navy); border: 2px solid var(--navy); padding: .75rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 1rem; }

.wrap { position: relative; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Soft background shapes */
.blob { position: absolute; z-index: 0; pointer-events: none; }
.blob--peach path { fill: #FBD7C6; }
.blob--blue path { fill: #CFE5F7; }

/* ---------- Type ---------- */
.h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em; color: var(--navy); }
.sub { margin-top: .4rem; color: var(--muted); font-size: 1rem; }
.sub p + p { margin-top: .4rem; }
.kicker-rule { display: block; width: 28px; height: 3px; margin-bottom: .9rem; background: var(--coral-bright); border-radius: 2px; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 2rem; flex-wrap: wrap; }

.chip { display: inline-block; align-self: flex-start; padding: .2rem .65rem; border-radius: 6px; font-size: .75rem; font-weight: 600; line-height: 1.5; }
.chip--coral { background: var(--coral-soft); color: var(--coral-ink); }
.chip--blue { background: var(--blue-soft); color: var(--blue); }
.chip--mint { background: var(--mint-soft); color: var(--mint); }
.chip--lav { background: var(--lav-soft); color: var(--lav); }
.chip--sun { background: var(--sun-soft); color: var(--sun); }
.chip--rose { background: var(--rose-soft); color: var(--rose); }

.ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; flex: none; }
.ic svg.i { width: 30px; height: 30px; stroke-width: 1.5; }
.ic--coral { background: var(--coral-soft); color: var(--coral-ink); }
.ic--blue { background: var(--blue-soft); color: var(--blue); }
.ic--mint { background: var(--mint-soft); color: var(--mint); }
.ic--rose { background: var(--rose-soft); color: var(--rose); }
.ic--sun { background: var(--sun-soft); color: var(--sun); }
.ic--lav { background: var(--lav-soft); color: var(--lav); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .65rem 1.6rem; border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--sans); font-size: .9375rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg.i { width: 18px; height: 18px; stroke-width: 2; }
.btn--coral { background: var(--coral); color: var(--white); box-shadow: 0 10px 24px -12px rgba(207, 70, 48, .8); }
.btn--coral:hover { background: var(--coral-hover); }
.btn--line { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn--line:hover { border-color: var(--navy); }
.btn--lg { min-height: 56px; padding: .85rem 2rem; font-size: 1rem; }

.link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--coral-ink); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.link u { text-decoration: none; border-bottom: 1.5px solid currentColor; }
.link svg.i { width: 18px; height: 18px; stroke-width: 2; transition: transform .2s var(--ease); }
.link:hover svg.i { transform: translateX(3px); }

/* Store buttons: "Buy on" + the store's logo (or its name) */
.buy__buttons { display: flex; flex-wrap: wrap; gap: .625rem; }
.store-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: .9rem;
  min-height: 60px; padding: .45rem .8rem .45rem 1rem;
  background: var(--white); color: var(--navy); border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: 0 6px 16px -12px rgba(var(--shade), .35);
  font-family: var(--sans); text-decoration: none; cursor: pointer; text-align: left;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.store-btn:hover { border-color: var(--coral-bright); box-shadow: 0 10px 22px -12px rgba(var(--shade), .45); }
.store-btn:active { transform: scale(.98); }
.store-btn svg.i { width: 18px; height: 18px; stroke-width: 2.2; color: var(--navy); }
.store-btn__text { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.store-btn small { font-size: .6875rem; line-height: 1.1; color: var(--muted); }
.store-btn b { font-size: 1.125rem; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.store-btn__logo { height: 24px; width: calc(24px * var(--r, 3)); max-width: 120px; object-fit: contain; object-position: left center; }
.store-btn__badge { height: 40px; width: calc(40px * var(--r, 3)); max-width: 190px; object-fit: contain; object-position: left center; }
.store-btn--wide { min-width: 220px; }
.store-btn.is-disabled { color: var(--muted); border-style: dashed; box-shadow: none; cursor: default; font-size: .9375rem; font-weight: 500; padding-inline: 1rem; }
.store-btn.is-disabled:hover { border-color: var(--line); }

.price { font-family: var(--serif); font-weight: 700; font-size: 1.625rem; line-height: 1.2; color: var(--navy); }
.price[hidden] { display: none; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; padding-top: env(safe-area-inset-top, 0px); }
.page-home .site-header, .page-book .site-header, .page-all .site-header { background: var(--peach); }
.site-header__inner { display: flex; align-items: center; gap: 2.25rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .75rem; margin-right: auto; color: var(--navy); text-decoration: none; min-height: 44px; }
.brand svg.mark { width: 46px; height: 46px; stroke-width: 1.5; }
.brand__name { font-weight: 700; font-size: 1.0625rem; line-height: 1.15; letter-spacing: -.01em; }
.logo-img { height: 44px; width: auto; }
.nav__list { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { position: relative; display: inline-block; padding: .4rem 0; font-size: .9375rem; font-weight: 500; color: var(--navy); text-decoration: none; }
.nav__list a:hover, .nav__list a.is-on { color: var(--coral-ink); }
.nav__list a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--coral-bright); border-radius: 2px; }
.nav__cta-mobile { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--navy); cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .7); }
.menu-toggle { display: none; position: relative; margin-right: -8px; }
.menu-toggle__bar { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle__bar:nth-of-type(2) { top: 15px; }
.menu-toggle__bar:nth-of-type(3) { top: 21px; }
.menu-toggle__bar:nth-of-type(4) { top: 27px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-of-type(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-header__inner { gap: .25rem; }
  .brand svg.mark { width: 38px; height: 38px; }
  .brand__name { font-size: .9375rem; }
  .logo-img { height: 36px; }
  .menu-toggle { display: inline-grid; }
  .nav__list {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0; z-index: 60;
    flex-direction: column; gap: 0; padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    background: var(--bg); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav__list.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { display: flex; padding: 1.1rem .25rem; font-family: var(--serif); font-size: 1.625rem; font-weight: 600; }
  .nav__list a.is-on::after { display: none; }
  .nav__cta-mobile { display: block; border-bottom: 0 !important; margin-top: 1.75rem; }
  .nav__cta-mobile .btn { display: flex; width: 100%; padding: 1rem; font-family: var(--sans); font-size: 1rem; color: var(--white); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Covers (the uploaded picture is never altered) ---------- */
.cover { position: relative; width: 100%; aspect-ratio: var(--ratio, 2 / 3); background: var(--line); border-radius: 3px 7px 7px 3px; container-type: inline-size; }
.cover__img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.cover--mockup { box-shadow: -6px 16px 26px -12px rgba(var(--shade), .45); }
.cover--mockup::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--shade), .14) 0%, rgba(255, 255, 255, .14) 1.6%, rgba(var(--shade), .05) 3.2%, rgba(255, 255, 255, 0) 6%);
}
.cover--flat { box-shadow: 0 0 0 1px rgba(var(--shade), .08); border-radius: 4px; }
.cover__fallback { position: absolute; inset: 0; display: flex; align-items: flex-start; padding: 10%; background: var(--coral-soft); color: var(--navy); border-radius: inherit; }
.cover__fallback-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1rem, 11cqi, 2.4rem); line-height: 1.05; }

/* ---------- Book cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.375rem; }
.cards--one { grid-template-columns: minmax(0, 620px); }
.bcard {
  position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "cover body" "cover actions"; gap: 0 1.6rem;
  padding: 1.5rem 1.6rem 1.5rem 1.5rem;
  background: var(--card); border: 1px solid var(--card-line); border-radius: 18px;
  box-shadow: 0 18px 40px -30px rgba(207, 70, 48, .35);
}
.bcard__cover { grid-area: cover; display: block; align-self: start; text-decoration: none; }
.bcard__cover .cover { transition: transform .4s var(--ease); }
.bcard__cover:hover .cover { transform: translateY(-4px) rotate(-1deg); }
.bcard__body { grid-area: body; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.bcard__actions { grid-area: actions; min-width: 0; }
.bcard__title { margin-top: .6rem; font-family: var(--serif); font-weight: 700; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5625rem); line-height: 1.15; color: var(--navy); }
.bcard__body > .bcard__title:first-child { margin-top: 0; }
.bcard__title a { text-decoration: none; }
.bcard__title a:hover { color: var(--coral-ink); }
.bcard__author { margin-top: .25rem; font-size: .875rem; color: var(--muted); }
.bcard__desc { margin-top: .6rem; font-size: .875rem; line-height: 1.55; }
.bcard__price { margin-top: .9rem; }
.buy--card { margin-top: .75rem; }
.bcard__view { margin-top: .4rem; }

@media (max-width: 1000px) { .cards, .cards--one { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .bcard { grid-template-columns: 108px minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "cover body" "actions actions"; gap: 0 1rem; padding: 1rem; }
  .bcard__title { font-size: 1.1875rem; }
  .bcard__desc { display: none; }
  .bcard__price { margin-top: .4rem; font-size: 1.375rem; }
  .buy--card { margin-top: .9rem; }
  .buy--card .store-btn { flex: 1 1 140px; min-height: 54px; }
  .store-btn--wide { min-width: 0; }
}

/* ---------- Home: books first ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--peach) 0%, #FFF4EE 55%, var(--bg) 100%); }
.hero .wrap { z-index: 1; }
.blob--h1 { width: 420px; right: -180px; top: -260px; opacity: .55; }
.blob--h2 { width: 300px; left: -170px; top: 120px; opacity: .5; }
.blob--h3 { width: 280px; right: -120px; bottom: 40px; opacity: .4; }
.hero__intro { padding-top: clamp(.5rem, 2vw, 1.5rem); padding-bottom: clamp(1.25rem, 3vw, 1.75rem); }
.hero__title { margin-top: .6rem; max-width: 30ch; font-family: var(--serif); font-weight: 700; font-size: clamp(1.875rem, 1.2rem + 2.6vw, 2.875rem); line-height: 1.06; letter-spacing: -.02em; color: var(--navy); }
.hero__title em { font-style: normal; color: var(--coral-ink); }
.hero__lede { margin-top: .6rem; max-width: 56ch; font-size: clamp(.9375rem, .9rem + .2vw, 1rem); }
.hero__books { padding-bottom: 2.25rem; scroll-margin-top: 1rem; }
.cards-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; font-size: .875rem; color: var(--muted); }
@media (max-width: 600px) { .hero__books { padding-bottom: 1.5rem; } .cards { gap: .875rem; } }

/* Feature row */
.features__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 2.25rem 0 2.5rem; }
.features__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features__list li { text-align: center; padding: 0 1.4rem; }
.features__list li + li { border-left: 1px solid var(--line); }
.features__list .ic { margin-bottom: .75rem; }
.features__title { font-family: var(--sans); font-size: .9375rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
.features__list p { margin-top: .35rem; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) {
  .features__list, .features__list--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 0; padding: 1.75rem 0; }
  .features__list li { padding: 0 .75rem; }
  .features__list li:nth-child(odd) { border-left: 0; }
}

/* About */
.about { padding: clamp(2rem, 5vw, 4rem) 0; }
.about__box {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 5vw, 3.5rem); align-items: center;
  padding: clamp(1.6rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--card); border: 1px solid var(--card-line); border-radius: 22px;
}
.blob--a1 { width: 260px; right: -110px; bottom: -130px; opacity: .45; }
.about__text, .about__side { position: relative; z-index: 1; }
.about__text p { margin-top: .9rem; }
.pull p { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.625rem); line-height: 1.3; color: var(--navy); }
.pull::before { content: "“"; display: block; height: .5em; margin-bottom: .6rem; font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--coral-bright); }
.founder { margin-top: 1.75rem; padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.founder__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: .75rem; }
.founder__note p + p { margin-top: .6rem; }
.founder__name { margin-top: .75rem; font-weight: 600; color: var(--navy); }
@media (max-width: 760px) { .about__box { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Reader notes */
.notes { padding: 0 0 clamp(2rem, 5vw, 4rem); }
.notes__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.note { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.note blockquote p { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.4; color: var(--navy); }
.note blockquote p::before { content: "“"; }
.note blockquote p::after { content: "”"; }
.note__who { margin-top: .75rem; font-size: .875rem; color: var(--muted); }

/* Coming soon */
.soon { padding: 0 0 clamp(2.5rem, 5vw, 4rem); }
.soon__box {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem 2.5rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--card); border: 1px solid var(--card-line); border-radius: 22px;
}
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .875rem; }
.slot { text-align: center; }
.slot__blank { aspect-ratio: 2 / 3; display: grid; place-items: center; border: 2px dashed #E9C9BC; border-radius: 12px; background: rgba(255, 255, 255, .6); }
.slot__blank .ic { width: 46px; height: 46px; }
.slot__blank .ic svg.i { width: 22px; height: 22px; }
.slot__title { margin-top: .5rem; font-size: .8125rem; font-weight: 500; line-height: 1.3; color: var(--navy); }
.slot__desc { margin-top: .2rem; font-size: .75rem; color: var(--muted); }
@media (max-width: 760px) { .soon__box { grid-template-columns: 1fr; } .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Community band (newsletter or Instagram) */
.community { position: relative; overflow: hidden; background: linear-gradient(90deg, var(--peach), #FFF3EC); }
.blob--c1 { width: 200px; right: -60px; top: -90px; opacity: .5; }
.community__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.75rem; padding-top: 2rem; padding-bottom: 2rem; z-index: 1; }
.community svg.plane { width: 60px; height: 60px; color: var(--navy); stroke-width: 1.3; }
.community__text { flex: 1 1 260px; }
.community__title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.1; color: var(--navy); }
.community__text p { margin-top: .25rem; font-size: .875rem; color: var(--muted); }
.signup { display: flex; flex-wrap: wrap; gap: .4rem; flex: 0 1 420px; padding: .3rem; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; }
.signup__input { flex: 1 1 160px; min-width: 0; min-height: 44px; padding: 0 1rem; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: .9375rem; border-radius: 999px; }
.signup__input::placeholder { color: #8A909B; }
.signup__input:focus { outline: none; }
.signup:has(.signup__input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
.signup .btn { min-height: 44px; padding: 0 1.4rem; }
.signup__status { flex-basis: 100%; padding: 0 1rem .35rem; font-size: .875rem; color: var(--muted); }
.signup__status:empty { display: none; }
.signup__status.is-error { color: var(--coral-ink); font-weight: 600; }
@media (max-width: 600px) { .community svg.plane { width: 46px; height: 46px; } .signup { flex-basis: 100%; } .community__cta { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(2.5rem, 6vw, 3.25rem) 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg); }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2rem 2.5rem; }
.footer__h { margin-bottom: .75rem; font-family: var(--sans); font-size: .875rem; font-weight: 600; color: var(--navy); }
.footer__line { margin-top: .9rem; max-width: 32ch; font-size: .875rem; color: var(--muted); }
.footer__line--top { margin-top: 0; }
.footer__links li + li { margin-top: .1rem; }
.footer__links a { display: inline-block; padding: .3rem 0; font-size: .875rem; color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--coral-ink); }
.social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.social a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem 1rem; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); font-size: .875rem; font-weight: 500; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.social a:hover { border-color: var(--navy); }
.social svg.i { width: 18px; height: 18px; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 2rem; margin-top: 2.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.footer__marks { max-width: 60ch; }
@media (max-width: 760px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__cols > div:last-child { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; }
}

/* ---------- Book page ---------- */
.book-top { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--peach) 0%, var(--bg) 70%); }
.book-top .wrap { z-index: 1; }
.blob--b1 { width: 300px; left: -170px; top: 240px; opacity: .5; }
.blob--b2 { width: 360px; right: -180px; top: 380px; opacity: .45; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; padding-top: .5rem; font-size: .875rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .25rem; }
.crumbs li + li::before { content: "/"; padding: 0 .35rem; color: #A4A9B2; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs a:hover { color: var(--coral-ink); text-decoration: underline; text-underline-offset: .25em; }
.crumbs [aria-current] { font-weight: 500; color: var(--navy); }

.detail { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 4rem); align-items: start; padding: 1rem 0 clamp(2.5rem, 5vw, 3.5rem); }
.detail__cover { position: relative; padding-top: 1rem; }
.detail__info { display: flex; flex-direction: column; align-items: flex-start; padding-top: .5rem; }
.detail__title { margin-top: .75rem; font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.2vw, 2.75rem); line-height: 1.08; letter-spacing: -.01em; color: var(--navy); }
.detail__info > .detail__title:first-child { margin-top: 0; }
.detail__author { margin-top: .4rem; font-weight: 500; color: var(--navy); }
.detail__tagline { margin-top: .6rem; font-size: 1.0625rem; color: var(--text); }
.detail__desc { margin-top: 1rem; max-width: 50ch; }
.detail__buy { width: 100%; margin-top: 1.5rem; }
.detail__price { font-size: 2.125rem; }
.buy--detail { margin-top: 1rem; }
.buy__note { margin-top: .75rem; font-size: .8125rem; color: var(--muted); }
.gift-note { display: flex; align-items: center; gap: .75rem; margin-top: 1.25rem; padding: .8rem 1rem; max-width: 46ch; background: var(--white); border: 1px solid var(--line); border-radius: 14px; font-size: .875rem; color: var(--navy); }
.gift-note svg.i { width: 22px; height: 22px; color: var(--rose); }
@media (max-width: 860px) {
  .detail { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-top: .25rem; }
  .detail__cover { width: min(72%, 340px); margin: 0 auto; }
  .detail__price { font-size: 1.875rem; }
  .buy--detail .store-btn { flex: 1 1 150px; }
}

.about-book { padding: clamp(2rem, 5vw, 2.75rem) 0 clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.about-book__copy { margin-top: .75rem; max-width: 70ch; }
.about-book__copy p + p { margin-top: .75rem; }
.hl { display: grid; gap: .75rem; max-width: 760px; margin-top: 1.5rem; padding: 1.5rem 1.75rem; background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; }
.hl li { display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; color: var(--navy); }
.hl svg.i { width: 20px; height: 20px; margin-top: .15rem; color: var(--coral-bright); stroke-width: 2.6; }
@media (max-width: 600px) { .hl { padding: 1.25rem; } }

.details { padding: 0 0 clamp(2rem, 5vw, 3rem); }
.details__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .875rem; margin-top: 1.25rem; }
.details__list div { padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.details__list dt { font-size: .75rem; color: var(--muted); }
.details__list dd { margin-top: .2rem; font-weight: 600; font-size: .9375rem; color: var(--navy); overflow-wrap: anywhere; }
.isbn { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .details__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.photos { padding: 0 0 clamp(2rem, 5vw, 3rem); }
.photos__grid { display: grid; gap: .875rem; margin-top: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photos__grid--1 { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.photos__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photos__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photos__grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.photos__grid--1 img { aspect-ratio: auto; }
@media (max-width: 760px) { .photos__grid--3, .photos__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.faq { padding: 0 0 clamp(2rem, 5vw, 3rem); }
.faq__list { display: grid; gap: .625rem; margin-top: 1rem; max-width: 900px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.faq__item[open] { border-color: var(--card-line); background: #FFFCFA; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 60px; padding: .9rem 1rem .9rem 1.4rem; cursor: pointer; list-style: none; font-weight: 500; font-size: .9375rem; color: var(--navy); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--coral-soft); color: var(--coral-ink); display: grid; place-items: center; }
.faq__icon svg.i { width: 16px; height: 16px; stroke-width: 2.6; transition: transform .25s var(--ease); }
.faq__item[open] .faq__icon svg.i { transform: rotate(45deg); }
.faq__item p { padding: 0 1.4rem 1.2rem; max-width: 65ch; font-size: .9375rem; }
.faq__more { padding: .5rem .25rem 0; font-size: .875rem; color: var(--muted); }
.faq__more a { color: var(--coral-ink); font-weight: 600; text-underline-offset: .2em; }

.more { padding: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.more .head-row { margin-bottom: 1.25rem; }

/* ---------- Look inside: flip through pages on the cover ---------- */
.flip { position: relative; }
.flip__stage { position: relative; aspect-ratio: var(--ratio, 2 / 3); perspective: 1800px; }
.flip__slide { position: absolute; inset: 0; }
.flip__slide.is-active { z-index: 2; }
.flip__slide .cover { height: 100%; }
.detail .cover--mockup { box-shadow: -12px 26px 40px -16px rgba(var(--shade), .5); border-radius: 4px 10px 10px 4px; }
.flip__page { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--white); cursor: zoom-in; border-radius: 4px 10px 10px 4px; box-shadow: -12px 26px 40px -16px rgba(var(--shade), .5); overflow: hidden; }
.flip__page img { width: 100%; height: 100%; object-fit: contain; }
.flip__page::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(var(--shade), .1), rgba(var(--shade), 0)); }
.flip__loupe {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--coral); color: var(--white); border-radius: 50%; box-shadow: 0 6px 14px -6px rgba(var(--shade), .5); transition: transform .2s var(--ease);
}
.flip__page:hover .flip__loupe { transform: scale(1.08); }
.flip svg.i, .zoom-btn svg.i, .viewer__nav svg.i { width: 20px; height: 20px; stroke-width: 2; }
.flip__slide.turn-next { transform-origin: left center; animation: turn-next .5s var(--ease) both; }
.flip__slide.turn-prev { transform-origin: right center; animation: turn-prev .5s var(--ease) both; }
@keyframes turn-next { from { transform: rotateY(-38deg) translateX(3%); opacity: 0; filter: brightness(.85); } 60% { opacity: 1; } to { transform: none; opacity: 1; filter: none; } }
@keyframes turn-prev { from { transform: rotateY(38deg) translateX(-3%); opacity: 0; filter: brightness(.85); } 60% { opacity: 1; } to { transform: none; opacity: 1; filter: none; } }

.flip__tab {
  position: absolute; top: -16px; right: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .35rem 1rem;
  background: var(--white); color: var(--coral-ink); border: 1.5px solid var(--coral-soft); border-radius: 999px; cursor: pointer;
  font-size: .8125rem; font-weight: 600; box-shadow: 0 6px 16px -10px rgba(var(--shade), .4);
  transition: border-color .2s var(--ease);
}
.flip__tab:hover { border-color: var(--coral-bright); }
.flip__tab svg.i { width: 17px; height: 17px; }
.flip__tab[hidden] { display: none; }
.flip__arrow {
  position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center;
  background: var(--white); color: var(--navy); border: 1.5px solid var(--line); border-radius: 50%; cursor: pointer;
  box-shadow: 0 6px 16px -10px rgba(var(--shade), .4); transition: border-color .2s var(--ease), color .2s var(--ease);
}
.flip__arrow[hidden] { display: none; }
.flip__arrow--prev { left: -23px; }
.flip__arrow--next { right: -23px; }
.flip__arrow:hover { border-color: var(--coral-bright); color: var(--coral-ink); }
.flip__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.flip__status { font-size: .8125rem; color: var(--muted); }
.flip__dots { display: flex; gap: 5px; flex-shrink: 0; }
.flip__dots span { width: 7px; height: 7px; border-radius: 50%; background: #E5D6CE; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.flip__dots span.is-active { background: var(--coral-bright); transform: scale(1.2); }
@media (max-width: 600px) { .flip__arrow--prev { left: -18px; } .flip__arrow--next { right: -18px; } .flip__arrow { width: 42px; height: 42px; margin-top: -21px; } }

/* ---------- Reading view: zoom + magnifier ---------- */
.viewer { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #FBEFE7; color: var(--navy); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
.viewer::backdrop { background: #FBEFE7; }
@media (prefers-reduced-motion: no-preference) { .viewer[open] { animation: fade-in .3s var(--ease); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.viewer__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: env(safe-area-inset-top, 0px) var(--gutter) 0; min-height: calc(64px + env(safe-area-inset-top, 0px)); background: var(--white); border-bottom: 1px solid var(--line); }
.viewer__title { min-width: 0; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zoom-controls { display: flex; align-items: center; gap: .25rem; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; background: var(--white); }
.zoom-btn { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--navy); cursor: pointer; }
.zoom-btn:hover:not(:disabled) { background: var(--coral-soft); }
.zoom-btn:disabled { opacity: .3; cursor: default; }
.zoom-level { min-width: 3.25rem; text-align: center; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.viewer__stage { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem); min-height: 0; padding: clamp(.75rem, 2vw, 1.5rem) var(--gutter); }
.zoom { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.zoom img { margin: auto; max-width: none; height: auto; background: var(--white); cursor: zoom-in; border-radius: 3px; box-shadow: 0 24px 50px -24px rgba(var(--shade), .5); user-select: none; -webkit-user-drag: none; }
.viewer.is-zoomed .zoom img { cursor: grab; }
.viewer.is-zoomed .zoom img:active { cursor: grabbing; }
.zoom img.is-missing { min-width: 240px; min-height: 360px; outline: 2px dashed #C9CED6; background: transparent; }
.lens { position: absolute; left: 0; top: 0; z-index: 2; width: 200px; height: 200px; border-radius: 50%; border: 3px solid var(--coral-bright); box-shadow: 0 14px 30px rgba(var(--shade), .35); background-color: var(--white); background-repeat: no-repeat; pointer-events: none; opacity: 0; transition: opacity .15s var(--ease); }
.lens.is-on { opacity: 1; }
.viewer__nav { width: 50px; height: 50px; display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--line); border-radius: 50%; color: var(--navy); cursor: pointer; transition: border-color .2s var(--ease); }
.viewer__nav:hover:not(:disabled) { border-color: var(--coral-bright); }
.viewer__nav:disabled { opacity: .3; cursor: default; }
.viewer__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1.5rem; padding: .9rem var(--gutter) calc(.9rem + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--line); }
.viewer__count { font-size: .875rem; font-weight: 600; }
.viewer__tip { font-size: .875rem; color: var(--muted); margin-right: auto; }
@media (max-width: 760px) {
  .viewer__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .viewer__title { display: none; }
  .zoom-controls { justify-self: start; }
  .viewer__stage { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: .4rem; padding-inline: .4rem; }
  .viewer__nav { width: 42px; height: 42px; }
  .viewer__foot { justify-content: center; text-align: center; }
  .viewer__count, .viewer__tip { flex-basis: 100%; margin: 0; }
  .viewer__foot > div { flex-basis: 100%; }
  .buy--viewer .store-btn { flex: 1 1 140px; }
}

/* ---------- Shared dialog close ---------- */
.dialog-close { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .25rem; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: .875rem; color: var(--navy); flex: none; }
.dialog-close svg.i { width: 20px; height: 20px; stroke-width: 2; }
.dialog-close:hover { color: var(--coral-ink); }

/* Store chooser (bottom sheet on phones) */
.sheet { width: min(460px, calc(100% - 2rem)); max-height: min(86vh, 680px); padding: 0; border: 0; border-radius: 22px; background: var(--white); color: var(--navy); box-shadow: 0 30px 80px -20px rgba(var(--shade), .45); overflow-y: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(var(--shade), .38); }
.sheet__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.25rem .25rem 1.5rem; background: var(--white); }
.sheet__title { font-family: var(--serif); font-weight: 700; font-size: 1.625rem; line-height: 1.1; }
.sheet__sub { padding: 0 1.5rem; font-size: .8125rem; color: var(--muted); max-width: 46ch; }
.sheet__fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.sheet .sheet__list { list-style: none; margin: .75rem 0 0; padding: 0 .75rem .75rem; }
.sheet__list li + li { margin-top: 4px; }
.sheet__option { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: .8rem; width: 100%; min-height: 58px; padding: .7rem .9rem; border: 1.5px solid transparent; border-radius: 14px; cursor: pointer; transition: background-color .15s var(--ease); }
.sheet__option:hover { background: #FFF8F4; }
.sheet__option:has(input:checked) { background: var(--card); border-color: var(--coral-bright); }
.sheet__option input { -webkit-appearance: none; appearance: none; margin: 0; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #A4A9B2; background: var(--white); display: grid; place-items: center; cursor: pointer; }
.sheet__option input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); transform: scale(0); transition: transform .15s var(--ease); }
.sheet__option input:checked { border-color: var(--coral); }
.sheet__option input:checked::before { transform: scale(1); }
.sheet__option input:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.sheet__country { font-size: .9375rem; font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .5rem; }
.sheet__tag { font-size: .6875rem; font-weight: 600; padding: .1rem .55rem; background: var(--coral-soft); color: var(--coral-ink); border-radius: 999px; white-space: nowrap; }
.sheet__meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.sheet__store { font-size: .75rem; color: var(--muted); }
.sheet__price { font-family: var(--serif); font-weight: 700; font-size: 1rem; }
.sheet__foot { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.5rem 1.25rem; background: var(--white); border-top: 1px solid var(--line); }
.sheet__foot .btn { width: 100%; min-height: 54px; }
@media (prefers-reduced-motion: no-preference) { .sheet[open] { animation: fade-in .2s var(--ease); } }
@media (max-width: 600px) {
  .sheet { width: 100%; max-width: 100%; max-height: 86vh; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sheet__head { padding-top: 1.5rem; }
  .sheet__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line); }
  @media (prefers-reduced-motion: no-preference) { .sheet[open] { animation: sheet-up .32s var(--ease); } }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

/* Sticky buy bar on phones */
.buybar { display: none; }
@media (max-width: 860px) {
  .buybar {
    position: sticky; bottom: 0; z-index: 30; display: block;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(var(--shade), .35);
    transition: transform .3s var(--ease), visibility 0s;
  }
  .buybar.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
  .buybar .buy--bar { display: flex; align-items: center; gap: .75rem; }
  .buybar__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .buybar__kicker { font-size: .75rem; color: var(--muted); }
  .buybar__title { font-family: var(--serif); font-weight: 700; font-size: 1rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar .buy__buttons { flex: 0 0 auto; flex-wrap: nowrap; gap: .4rem; }
  .buybar .store-btn { min-height: 48px; min-width: 0; padding: .35rem .55rem .35rem .75rem; gap: .5rem; }
  .buybar .store-btn b { font-size: .9375rem; }
  .buybar .store-btn__logo { height: 18px; max-width: 72px; }
  .buybar .store-btn__badge { height: 32px; max-width: 120px; }
  .buybar .store-btn svg.i { width: 15px; height: 15px; }
}

/* ---------- Search ---------- */
.search { width: min(640px, calc(100% - 2rem)); max-height: min(78vh, 720px); margin: 9vh auto auto; padding: 0; border: 0; border-radius: 22px; background: var(--white); color: var(--navy); box-shadow: 0 30px 80px -20px rgba(var(--shade), .45); overflow: hidden; }
.search[open] { display: flex; flex-direction: column; }
.search::backdrop { background: rgba(var(--shade), .38); }
@media (prefers-reduced-motion: no-preference) { .search[open] { animation: search-in .22s var(--ease); } }
@keyframes search-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.search__bar { display: flex; align-items: center; gap: .75rem; padding: .4rem .9rem .4rem 1.25rem; background: var(--peach); border-bottom: 1px solid var(--card-line); }
.search__icon svg.i { display: block; color: var(--coral-ink); stroke-width: 2.2; }
.search__input { flex: 1 1 auto; min-width: 0; min-height: 56px; border: 0; background: transparent; color: var(--navy); font-family: var(--sans); font-size: 1.25rem; font-weight: 500; }
.search__input::placeholder { color: #8A909B; }
.search__input:focus { outline: none; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__status { padding: .9rem 1.4rem .25rem; font-size: .8125rem; color: var(--muted); }
.search .search__results { list-style: none; margin: 0; padding: .25rem .6rem .75rem; overflow-y: auto; overscroll-behavior: contain; }
.sr { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .6rem .75rem; border-radius: 14px; cursor: pointer; }
.sr[aria-selected="true"] { background: var(--card); }
.sr__thumb { width: 46px; aspect-ratio: 2 / 3; background: var(--line); border-radius: 2px 4px 4px 2px; box-shadow: 0 4px 10px -6px rgba(var(--shade), .5); overflow: hidden; }
.sr__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.sr__title { font-family: var(--serif); font-weight: 700; font-size: 1.125rem; line-height: 1.2; color: var(--navy); }
.sr__meta { font-size: .8125rem; color: var(--muted); }
.sr mark { background: var(--coral-soft); color: var(--coral-ink); border-radius: 3px; padding: 0 2px; }
.sr__go { width: 18px; height: 18px; fill: none; stroke: var(--coral-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sr__tag { font-size: .6875rem; font-weight: 600; padding: .15rem .6rem; background: var(--sun-soft); color: var(--sun); border-radius: 999px; white-space: nowrap; }
.search__empty { padding: 1.25rem .8rem 1.5rem; }
.search__empty p + p { margin-top: .4rem; font-size: .875rem; color: var(--muted); }
.search__hint { padding: .75rem 1.4rem; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.search__hint kbd { display: inline-block; min-width: 1.5em; padding: 0 .35em; border: 1.5px solid #C9CED6; border-bottom-width: 3px; border-radius: 5px; font-family: var(--sans); font-size: .9em; font-weight: 600; text-align: center; color: var(--navy); }
@media (max-width: 600px) {
  .search { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  .search__bar { padding-top: env(safe-area-inset-top, 0px); padding-left: 1rem; }
  .search__input { font-size: 1.125rem; }
}

/* ---------- All books page ---------- */
.page-head { position: relative; overflow: hidden; padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(1.5rem, 4vw, 2.25rem); background: linear-gradient(180deg, var(--peach) 0%, var(--bg) 100%); }
.page-head .wrap { z-index: 1; }
.blob--p1 { width: 340px; right: -120px; top: -160px; opacity: .55; }
.blob--p2 { width: 220px; right: 180px; top: 40px; opacity: .45; }
.page-head__title { font-family: var(--serif); font-weight: 700; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.05; color: var(--navy); }
.page-head .sub { max-width: 52ch; }
.all__count { font-weight: 600; color: var(--navy); }
.page-head svg.openbook { position: absolute; right: calc(var(--gutter) + 2rem); top: 0; width: 130px; height: 110px; color: var(--navy); stroke-width: 1.2; }
.all { padding: .75rem 0 clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 760px) { .page-head svg.openbook { display: none; } }

/* ---------- 404 ---------- */
.notfound { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(4rem, 10vw, 7rem); text-align: center; background: linear-gradient(180deg, var(--peach) 0%, var(--bg) 100%); }
.notfound .wrap { z-index: 1; }
.blob--n1 { width: 320px; left: -140px; top: 40px; opacity: .5; }
.blob--n2 { width: 300px; right: -120px; bottom: -60px; opacity: .5; }
.notfound svg.openbook { width: 140px; height: 120px; margin: 0 auto; color: var(--navy); stroke-width: 1.2; }
.notfound__title { margin-top: 1rem; font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.1; color: var(--navy); }
.notfound p { margin: .9rem auto 0; max-width: 42ch; color: var(--muted); }
.notfound .btn { margin-top: 1.75rem; }

/* ---------- Gentle reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .hero__intro > * { animation: rise .7s var(--ease) both; }
  .js .hero__intro > :nth-child(2) { animation-delay: .06s; }
  .js .hero__intro > :nth-child(3) { animation-delay: .12s; }
  .js .hero .bcard { animation: rise .8s var(--ease) both .15s; }
  .js .hero .bcard:nth-child(2) { animation-delay: .25s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Site check ---------- */
.sitecheck { padding-block: 2.5rem 5rem; }
.check-intro { margin-top: 1rem; max-width: 62ch; color: var(--muted); }
.check-book { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.check-book h2 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.check-path { margin-top: .25rem; font-size: .875rem; color: var(--muted); }
.check-path a { color: var(--coral-ink); }
.check-book ul { margin-top: 1rem; padding: 0; list-style: none; display: grid; gap: .4rem; }
.check-book li { padding: .6rem 1rem; border-radius: 12px; font-size: .9375rem; }
.check-book li.ok { background: var(--mint-soft); color: #1E5E47; }
.check-book li.warn { background: var(--sun-soft); color: #6E4B04; }
.check-book li.bad { background: var(--rose-soft); color: #8E2638; border: 1.5px solid #E7A3AE; }
.pill { font-family: var(--sans); font-size: .75rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; background: var(--line); color: var(--navy); }
.pill--available { background: var(--mint-soft); color: var(--mint); }
