/* Mahlas: readable, playful book discovery. 2026-11-20. */
body.home {
  --mh-ink: #20365c;
  --mh-muted: #52645d;
  --mh-leaf: #dceee4;
  --mh-sun: #fff0bd;
  --mh-peach: #fbe5d9;
}
body.home #mahlas-hero {
  border-radius: 28px;
  isolation: isolate;
}
body.home #mahlas-hero .nb-hero { border-radius: 28px; }
body.home #mahlas-hero .nb-title { line-height: 1.14; }
body.home #mahlas-hero :is(.nb-copy, .copy) p {
  font-size: 16px;
  line-height: 1.75;
  color: #415c56;
}
body.home #mahlas-hero :is(.nb-cta, .cta) {
  min-height: 48px;
  font-size: 14px;
  padding: 14px 22px;
}
body.home #mahlas-hero .mh-nav { width: 44px; height: 44px; }
body.home .mh-design :is(.intro, .section-head p) {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mh-muted);
}
body.home .mh-design .section-head h2,
body.home .mh-brand-story h2 { line-height: 1.22; }
body.home .mh-design .categories { gap: 24px; }
body.home .mh-design .category {
  min-height: 310px;
  padding: 32px;
  border-radius: 28px;
  background: #fff2c8;
  border: 1px solid #e9c76b3d;
}
body.home .mh-design .category.culture {
  background: #e3efe9;
  border-color: #9bbcaf40;
}
body.home .mh-design .category .catcopy { width: 53%; }
body.home .mh-design .category h3 { font-size: 30px; line-height: 1.15; }
body.home .mh-design .category p {
  max-width: 235px;
  font-size: 14px;
  line-height: 1.7;
  color: #4e6057;
}
body.home .mh-design .category .cat-label { color: #78551b; font-size: 11px; }
body.home .mh-design .category.culture .cat-label { color: #3c6254; }
body.home .mh-design .category .cat-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
body.home .mh-design .category .fan {
  position: absolute;
  width: 234px;
  height: 205px;
  right: 24px;
  bottom: 40px;
  top: auto;
}
body.home .mh-design .category .fan .fan-cover {
  width: 112px;
  height: 112px;
  border-radius: 3px;
  animation: none;
  transform: rotate(var(--r, 0deg));
  filter: drop-shadow(3px 7px 5px #20365c25);
  transition: transform .2s ease;
}
body.home .mh-design .category.culture .fan .fan-cover { height: 156px; }
body.home .mh-design .category .fan .fan-cover:nth-child(1) { left: 0; top: 65px; }
body.home .mh-design .category .fan .fan-cover:nth-child(2) { left: 60px; top: 22px; }
body.home .mh-design .category .fan .fan-cover:nth-child(3) { left: 118px; top: 65px; }
/* Product photos include a white studio margin; crop the wrapper, not the file. */
body.home .mh-design .category .fan .fan-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.91);
}
body.home .mh-design .category.culture .fan .fan-cover img { transform: scale(1.85); }
body.home .mh-design .category .fan .fan-cover:hover,
body.home .mh-design .category .fan .fan-cover:focus-visible {
  transform: translateY(-6px) rotate(var(--r, 0deg));
  z-index: 3;
}
/* A single forthcoming title is a compact feature, so the bookshop stays close. */
body.home .mh-upcoming-v2:has(.grid.single) {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 36px;
  padding: 32px;
  background: #fff6df;
}
body.home .mh-upcoming-v2:has(.grid.single) .mh-up-head { text-align: left; margin: 0; }
body.home .mh-upcoming-v2 .intro { font-size: 15px; line-height: 1.7; color: #596650; }
body.home .mh-upcoming-v2 .grid.single { display: block; }
body.home .mh-upcoming-v2 .single .card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 0 18px;
  padding: 16px;
  border: 0;
}
body.home .mh-upcoming-v2 .single .art { grid-row: 1 / 5; height: 190px; }
body.home .mh-upcoming-v2 .single .cover {
  width: 94px; height: 140px;
  background-size: 200% auto !important;
  box-shadow: none;
}
body.home .mh-upcoming-v2 .single .author { margin: 8px 0; font-size: 13px; color: #52645d; }
body.home .mh-upcoming-v2 .single h3 { margin: 0 0 10px; font-size: 19px; }
body.home .mh-upcoming-v2 .single .bottom { padding-top: 10px; font-size: 12px; color: #52645d; }
body.home .mh-upcoming-v2 .single .inspect { min-height: 44px; font-size: 13px; margin-top: 12px; }
body.home #mahlas-designed-library .mh-card-v2 {
  border-color: #20365c16;
  box-shadow: 0 6px 18px #20365c05;
  border-radius: 22px;
}
body.home #mahlas-designed-library .mh-card-v2 .author { font-size: 13px; color: #536259; }
body.home #mahlas-designed-library .mh-card-v2 h3 { font-size: 16px; line-height: 1.5; min-height: 72px; }
body.home #mahlas-designed-library .mh-card-v2 .inspect { min-height: 40px; font-size: 12px; }
body.home #mahlas-designed-library .mh-card-v2 .new { font-size: 10px; color: #536259; }
body.home #mahlas-designed-library :is(.tab, .all-link) { min-height: 46px; font-size: 13px; }
body.home #mahlas-designed-library .sort-line { font-size: 12px; color: #5b675e; }
body.home .mh-brand-story :is(p, .mh-story-small) { font-size: 15px; line-height: 1.8; color: #52645d; }
body.home .mh-brand-story a { min-height: 46px; font-size: 13px; }
/* All links stay in clear space; the old full-width PNG sat behind the text. */
body .wd-footer.footer-container {
  background-image: none !important;
  border-top: 6px solid #e5b74f;
}
body .wd-footer.footer-container::before { background-image: none !important; }
body .wd-footer.footer-container a { color: #e4eaf1; }
body .wd-footer.footer-container .sub-sub-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  line-height: 1.5;
}
body .wd-footer.footer-container a:hover { color: #ffe49a; }
body .wd-footer.footer-container a:focus-visible {
  outline: 3px solid #ffe49a;
  outline-offset: 4px;
}
body.home :is(#mahlas-hero, .mh-design, .mh-upcoming-v2, .mh-brand-story) :is(a, button):focus-visible {
  outline: 3px solid #9e481f;
  outline-offset: 4px;
}
@media (max-width: 1100px) and (min-width: 701px) {
  body.home .mh-design .category .fan { right: 10px; transform: scale(.82); transform-origin: right bottom; }
  body.home .mh-design .category { padding: 24px; }
}
@media (max-width: 700px) {
  body.home #mahlas-hero,
  body.home #mahlas-hero .nb-hero { border-radius: 22px; }
  body.home #mahlas-hero :is(.nb-copy, .copy) p { font-size: 14px; }
  body.home #mahlas-hero :is(.nb-cta, .cta) { font-size: 13px; min-height: 46px; }
  body.home .mh-design :is(.intro, .section-head p) { font-size: 14px; }
  body.home .mh-design .category { min-height: 320px; padding: 24px; border-radius: 24px; }
  body.home .mh-design .category .catcopy { width: 100%; position: static; }
  body.home .mh-design .category h3 { font-size: 27px; max-width: 180px; }
  body.home .mh-design .category p { font-size: 13px; line-height: 1.65; max-width: 145px; }
  body.home .mh-design .category .cat-label { font-size: 10px; letter-spacing: 1.3px; }
  body.home .mh-design .category .cat-cta {
    position: absolute; left: 24px; right: 24px; bottom: 16px;
    justify-content: space-between; font-size: 13px; padding: 0 14px;
    background: #ffffffad; border-radius: 24px;
  }
  body.home .mh-design .category .fan { width: 134px; height: 140px; right: 15px; bottom: 90px; transform: none; }
  body.home .mh-design .category.culture .fan { bottom: 105px; }
  body.home .mh-design .category .fan .fan-cover { width: 78px; height: 78px; }
  body.home .mh-design .category.culture .fan .fan-cover { height: 112px; }
  body.home .mh-design .category .fan .fan-cover:nth-child(1) { left: 0; top: 50px; }
  body.home .mh-design .category .fan .fan-cover:nth-child(2) { left: 30px; top: 20px; }
  body.home .mh-design .category .fan .fan-cover:nth-child(3) { left: 60px; top: 55px; }
  body.home .mh-upcoming-v2:has(.grid.single) { grid-template-columns: 1fr; gap: 20px; padding: 24px 16px; }
  body.home .mh-upcoming-v2 .mh-up-title { margin-top: 10px; }
  body.home .mh-upcoming-v2 .single .card { grid-template-columns: 105px minmax(0, 1fr); gap: 0 12px; padding: 12px; }
  body.home .mh-upcoming-v2 .single .art { height: 186px; }
  body.home .mh-upcoming-v2 .single .cover { width: 88px; height: 132px; }
  body.home .mh-upcoming-v2 .single .badge { font-size: 9px; }
  body.home .mh-upcoming-v2 .single h3 { font-size: 17px; }
  body.home .mh-upcoming-v2 .single .author { font-size: 12px; }
  body.home .mh-upcoming-v2 .single .inspect { font-size: 12px; }
  body.home #mahlas-designed-library .mh-card-v2 { padding: 11px; border-radius: 18px; }
  body.home #mahlas-designed-library .mh-card-v2 .author { font-size: 12px; line-height: 1.5; min-height: 36px; }
  body.home #mahlas-designed-library .mh-card-v2 h3 { font-size: 14px; line-height: 1.5; min-height: 84px; -webkit-line-clamp: 4; }
  body.home #mahlas-designed-library .mh-card-v2 .new { font-size: 9px; }
  body.home #mahlas-designed-library .mh-card-v2 .inspect { min-height: 44px; font-size: 12px; }
  body.home #mahlas-designed-library :is(.tab, .all-link) { font-size: 12px; }
  body.home #mahlas-designed-library .tabs { width: 100%; }
  body.home #mahlas-designed-library .tab { flex: 1; padding-inline: 10px; }
  body.home #mahlas-designed-library .sort-line { font-size: 11px; gap: 8px; }
  body.home .mh-brand-story :is(p, .mh-story-small) { font-size: 14px; }
  body .wd-footer.footer-container .sub-sub-menu a { min-height: 42px; }
  body .wd-footer .elementor-38 .elementor-element-beead6a > .e-con-inner {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  body .wd-footer .elementor-38 .elementor-element-beead6a > .e-con-inner > .e-con {
    width: auto; min-width: 0; padding: 0;
  }
  body .wd-footer .elementor-38 :is(.elementor-element-e135da7, .elementor-element-43ad33d, .elementor-element-b83098c) { grid-column: 1 / -1; }
  body .wd-footer .elementor-38 .elementor-element-e135da7 { order: 0; }
  body .wd-footer .elementor-38 .elementor-element-4475d72 { order: 1; }
  body .wd-footer .elementor-38 .elementor-element-ac2d03f { order: 2; }
  body .wd-footer .elementor-38 .elementor-element-b83098c { order: 3; }
  body .wd-footer .elementor-38 .elementor-element-43ad33d { order: 4; }
  body .wd-footer .elementor-38 .elementor-element-b83098c .sub-sub-menu {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px;
  }
  body .wd-footer .elementor-38 .elementor-element-beead6a { padding-block: 24px; }
  body .wd-footer .main-footer { padding-top: 24px; padding-bottom: 24px; }
  body .wd-footer .mega-menu-list > li > a { font-size: 15px; }
}
@media (max-width: 360px) {
  body.home .mh-design .category p { max-width: 125px; }
  body.home .mh-design .category h3 { font-size: 25px; }
  body.home .mh-design .category .fan { transform: scale(.75); transform-origin: right center; right: 22px; }
  body.home .mh-design .category .cat-cta { font-size: 12px; }
  body.home #mahlas-designed-library .mh-card-v2 h3 { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  body.home :is(#mahlas-hero, .mh-upcoming-v2, #mahlas-designed-library) *,
  body.home .mh-design .category .fan .fan-cover { animation: none !important; transition: none !important; }
}
