/* Voice of I AM — mobile chrome + hardcover books
   Additive. Does not touch /v2/trust/.
   Pattern: labeled Menu (not icon-only) + drawer, hybrid with one visible CTA.
   Hardcover: Castiel 3D book (pages + back board + thickness), Apple Books spine light. */

:root{
  --book-w: 210px;
  --book-h: 315px;
  --book-t: 38px;
  --book-over: 3px;
}

/* —— MOBILE CHROME —— */
.chrome-menu-btn{
  display:none;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:8px 14px;
  border:1px solid var(--rule,#d6ceb8);
  background:var(--paper,#faf7f0);
  color:var(--ink,#0c0a09);
  font-family:var(--sans,inherit);
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  border-radius:2px;
  cursor:pointer;
}
.chrome-menu-btn .bars{
  display:flex;flex-direction:column;gap:3px;width:16px;
}
.chrome-menu-btn .bars i{
  display:block;height:2px;background:currentColor;border-radius:1px;
}
.chrome-menu-btn[aria-expanded="true"]{
  background:var(--ink,#0c0a09);color:var(--paper,#faf7f0);border-color:var(--ink,#0c0a09);
}
.chrome-drawer{
  display:none;
}
.chrome-scrim{
  display:none;
}

@media (max-width: 900px){
  .topstrip .ts-left > span:not(.ts-mark){ display:none; }
  .topstrip{ padding:8px 16px; }
  .identity-band,
  .hdr-id,
  .hdr-registers,
  .voia-share-bar{ display:none !important; }

  .masthead{
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between;
    gap:10px;
    padding:10px 14px 10px;
    position:sticky;top:0;z-index:40;
    background:var(--paper,#faf7f0);
  }
  .masthead .mk-meta{ display:none; }
  .masthead .wordmark{ font-size:18px; }
  .masthead nav{
    display:none;
  }
  .chrome-menu-btn{ display:inline-flex; margin-left:auto; }
  .masthead nav a.cta,
  .hdr-right,
  .bar .return,
  .product-nav,
  header.site-header nav{ display:none; }
  .bar,
  header.site-header{
    display:flex !important;
    align-items:center;
    position:sticky;top:0;z-index:40;
    background:var(--paper,#faf7f0);
  }
  .bar .chrome-menu-btn,
  header.site-header .chrome-menu-btn{ margin-left:auto; }

  header.hdr .hdr-inner{
    display:flex;align-items:center;gap:10px;
    padding:10px 14px;
  }
  header.hdr{
    position:sticky;top:0;z-index:40;background:var(--paper,#faf7f0);
  }
  header.hdr .logo small{ display:none; }
  .announce{
    font-size:12px;padding:8px 14px;line-height:1.35;
  }
  .announce strong:first-child{ }
  /* keep announce to one line + menu handles the rest */
  .announce{ display:none; }

  .hero-meta > div:nth-child(n+4){ display:none; }
  .hero-stats > .hero-stat:nth-child(n+4){ display:none; }

  .chrome-scrim{
    display:block;
    position:fixed;inset:0;background:rgba(12,10,9,.42);
    z-index:60;opacity:0;pointer-events:none;transition:opacity .2s;
  }
  body.chrome-open .chrome-scrim{ opacity:1;pointer-events:auto; }
  .chrome-drawer{
    display:block;
    position:fixed;top:0;right:0;bottom:0;
    width:min(360px,92vw);
    background:var(--paper,#faf7f0);
    z-index:70;
    transform:translateX(104%);
    transition:transform .28s cubic-bezier(.2,.8,.2,1);
    overflow:auto;
    padding:18px 18px 40px;
    box-shadow:-18px 0 40px -18px rgba(12,10,9,.35);
  }
  body.chrome-open .chrome-drawer{ transform:none; }
  .chrome-drawer h2{
    font-family:var(--serif,Georgia,serif);
    font-size:22px;font-weight:500;margin:8px 0 16px;
  }
  .chrome-drawer a,
  .chrome-drawer button.chrome-link{
    display:flex;align-items:center;
    min-height:48px;
    padding:10px 4px;
    border-bottom:1px solid var(--rule,#d6ceb8);
    text-decoration:none;color:var(--ink,#0c0a09);
    font-size:16px;font-weight:600;
    background:none;border-left:0;border-right:0;border-top:0;
    width:100%;text-align:left;cursor:pointer;font-family:inherit;
  }
  .chrome-drawer a.primary{
    background:var(--ink,#0c0a09);color:var(--paper,#faf7f0);
    justify-content:center;border:0;border-radius:2px;margin:8px 0 18px;
    letter-spacing:.08em;text-transform:uppercase;font-size:13px;
  }
  .chrome-facts{
    display:flex;flex-wrap:wrap;gap:6px;margin-top:18px;
  }
  .chrome-facts span{
    font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;
    border:1px solid var(--rule,#d6ceb8);border-radius:999px;padding:6px 10px;color:var(--ink-soft,#44403c);
  }
  .chrome-drawer-close{
    position:absolute;top:10px;right:10px;
    min-width:44px;min-height:44px;border:0;background:transparent;
    font-size:22px;cursor:pointer;color:var(--ink,#0c0a09);
  }
}

@media (min-width: 901px){
  .chrome-menu-btn,
  .chrome-drawer,
  .chrome-scrim{ display:none !important; }
}

/* —— HARDCOVER 3D (Castiel geometry) —— */
.book3d{
  position:relative !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:calc(var(--book-w) + 36px);
  height:calc(var(--book-h) + 28px);
  perspective:640px;
  transform:none !important;
  transform-style:preserve-3d;
  filter:drop-shadow(18px 28px 28px rgba(12,10,9,.38));
}
.book3d .b3d-spine{ display:none !important; }
.book3d .book,
.book3d > img,
.book3d > span:not(.book){
  /* if old markup, wrap handled in JS */
}
.book3d .book{
  width:var(--book-w);
  height:var(--book-h);
  position:relative;
  transform-style:preserve-3d;
  transform:rotateY(-28deg);
  transition:transform .7s cubic-bezier(.2,.8,.2,1);
}
.lf-slide.lf-active .book3d .book{
  animation:voiaBookIn .9s ease 1;
}
.lf-slide.lf-active:hover .book3d .book,
.lf-slide.lf-active:focus-visible .book3d .book,
.book3d:hover .book{
  transform:rotateY(-12deg);
}
.book3d .book > img,
.book3d .book > :first-child{
  position:absolute;inset:0;
  width:var(--book-w) !important;
  height:var(--book-h) !important;
  max-width:none;
  aspect-ratio:auto !important;
  object-fit:cover;
  border-radius:0 4px 4px 0;
  box-shadow:none !important;
  border:0 !important;
  background:#1a1410;
}
.book3d .book::before{
  /* page block */
  content:"";
  position:absolute;
  top:var(--book-over);
  height:calc(var(--book-h) - 2 * var(--book-over));
  width:var(--book-t);
  background:
    repeating-linear-gradient(90deg,
      #f7f1e4 0 2px,
      #e7dcc4 2px 3px,
      #fbf7ee 3px 5px);
  transform:translateX(calc(var(--book-w) - var(--book-t) / 2 - 2px)) rotateY(90deg) translateX(calc(var(--book-t) / 2));
  box-shadow:inset 0 0 8px rgba(0,0,0,.12);
}
.book3d .book::after{
  /* back board */
  content:"";
  position:absolute;left:0;top:0;
  width:var(--book-w);height:var(--book-h);
  background:#1a1410;
  border-radius:4px 0 0 4px;
  transform:translateZ(calc(var(--book-t) * -1));
  box-shadow:-12px 0 28px rgba(12,10,9,.28);
}
.book3d .book .board-edge{
  position:absolute;left:0;top:0;bottom:0;width:10px;
  background:linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.12) 55%,rgba(255,255,255,.22) 78%,rgba(0,0,0,.18));
  border-radius:2px 0 0 2px;
  z-index:2;pointer-events:none;
}

@keyframes voiaBookIn{
  from{ transform:rotateY(0deg); }
  to{ transform:rotateY(-28deg); }
}

@media (max-width: 640px){
  :root{ --book-w: 168px; --book-h: 252px; --book-t: 28px; }
  .lf-view{ min-height: 420px !important; }
  .lf-cap-title{ font-size:18px !important; }
  .lf-cap-meta{ font-size:10.5px !important; }
  .hero{ padding-left:16px; padding-right:16px; }
}

@media (prefers-reduced-motion: reduce){
  .book3d .book{ animation:none !important; transition:none !important; }
}

body.chrome-open{ overflow:hidden; }

/* House line — Canongate/Faber lockup. Static. NN/G: do not animate a tagline. */
.house-line{
  margin:0;
  font-family:var(--serif, Georgia, serif);
  font-weight:400;
  font-style:italic;
  font-size:14px;
  line-height:1.35;
  letter-spacing:-.01em;
  color:var(--ink,#0c0a09);
}
.house-line .hl-a,
.house-line .hl-b{ display:block; }
.house-line .hl-b{
  font-style:normal;
  color:var(--gold-ink,#8a641f);
  font-weight:500;
}
header.hdr .hdr-inner{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  column-gap:12px;
  row-gap:8px;
}
header.hdr .hdr-inner .logo{ grid-column:1; grid-row:1; min-width:0; }
header.hdr .hdr-inner .hdr-right,
header.hdr .hdr-inner .chrome-menu-btn{
  grid-column:2; grid-row:1; justify-self:end;
}
header.hdr .hdr-inner .house-line{
  grid-column:1 / -1; grid-row:2;
}
@media (min-width: 901px){
  .house-line{
    font-size:16px;
    display:flex;
    flex-wrap:wrap;
    gap:.35em 1.1em;
    align-items:baseline;
  }
  .house-line .hl-a,
  .house-line .hl-b{ display:inline; }
}

/* Painted binding strip is not a book. Keep 3D pages + back board only. */
.book3d > .b3d-spine,
.book3d .b3d-spine,
.book3d .board-edge{
  display:none !important;
}
.book3d::after{
  content:none !important;
  display:none !important;
}

/* Library: covers first, copy short. */
.announce,
.voia-share-bar,
.hdr-registers,
.hdr-id,
.library .hero-led,
.library .hero-stats,
.library .hero-rule,
.library .hero-eyebrow,
.shelf-desc,
.shelf-sub,
.feat-body p,
.feat-tag,
.book-sub,
.book-badge:not(.keep){
  display:none !important;
}
header.hdr .logo small{ display:none; }
.hero-led,
.hero-stats,
.hero-eyebrow,
.hero-rule,
section.hero p{
  display:none !important;
}
section.hero{
  padding:16px 16px 8px !important;
}
section.hero h1{
  font-size:clamp(22px,6.4vw,34px) !important;
  max-width:16ch;
  margin-bottom:0 !important;
}
.featured{
  padding:18px 16px 22px !important;
}
.featured h2{ margin-bottom:16px !important; }
.feat-body h3{ font-size:16px !important; margin-bottom:4px !important; }
.feat-cta{ font-size:12px !important; }
.book-meta{ padding:0 !important; }
.book-title{ font-size:14px !important; margin-bottom:2px !important; }
.book-price{ font-size:14px !important; }
.book-grid{ gap:28px 16px !important; }
.catalog-shelf{ padding:28px 16px !important; }
.shelf-label{ font-size:20px !important; }

/* —— LIBRARY GRID / FEATURED: same hardcover, thumbnail scale —— */
.book-cover.book3d,
.feat-cover.book3d{
  --book-w: 122px;
  --book-h: 183px;
  --book-t: 16px;
  --book-over: 2px;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  width: calc(var(--book-w) + 32px) !important;
  height: calc(var(--book-h) + 24px) !important;
  margin: 4px auto 16px;
  filter: drop-shadow(10px 16px 16px rgba(12,10,9,.32));
  transform: none !important;
}
.book-cover.book3d::before,
.book-cover.book3d::after,
.feat-cover.book3d::before,
.feat-cover.book3d::after,
.book-cover.book3d .spine,
.feat-cover.book3d .spine{
  content: none !important;
  display: none !important;
}
.feat-cover.book3d{
  --book-w: 110px;
  --book-h: 165px;
  --book-t: 18px;
  flex-shrink: 0;
  margin: 0 4px 0 0;
  width: calc(var(--book-w) + 28px) !important;
  height: calc(var(--book-h) + 18px) !important;
}
.catalog-shelf#shelf-longform .book-cover.book3d{
  --book-w: 158px;
  --book-h: 237px;
  --book-t: 28px;
}
.catalog-shelf#shelf-longform .book:hover .book-cover.book3d{
  transform: none !important;
}
.catalog-shelf#shelf-longform .book:hover .book-cover.book3d .book{
  transform: rotateY(-12deg);
}
.book-soon .book-cover.book3d{
  filter: drop-shadow(8px 12px 12px rgba(12,10,9,.22)) grayscale(.28);
  opacity: .9;
}
.book-grid,
.book-grid .book,
.feat-book,
#featured-grid,
.catalog-shelf{
  overflow: visible !important;
}
.feat-book{
  align-items: flex-start;
}
