.lh-home {
  --lh-ink: #36283a;
  --lh-muted: #6e5d70;
  --lh-surface: #fffaf9;
  --lh-line: #e3d7de;
  --lh-rule: #c1a78a;
  --lh-serif: 'Cormorant Garamond', 'Baskerville', Georgia, serif;
  width: min(calc(100% - clamp(36px, 8vw, 128px)), 72rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 2.8vw, 2.625rem) 0 clamp(2.3rem, 5vw, 4.5rem);
  color: var(--lh-ink);
}
.lh-intro { text-align: center; margin: 0 0 clamp(1.75rem, 3vw, 2.75rem); }
.lh-hero-logo {
  display: block;
  width: clamp(8.875rem, 17vw, 13.25rem);
  height: auto;
  margin: 0 auto clamp(1rem, 1.5vw, 1.45rem);
  filter: drop-shadow(0 4px 8px #80602b17);
}
.lh-home .lh-overline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin: 0 0 .65rem;
  font: 500 .81rem/1.5 Georgia, serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lh-muted);
}
.lh-overline > span:first-child, .lh-overline > span:last-child {
  width: clamp(1.25rem, 4vw, 3.3rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lh-rule));
}
.lh-overline > span:last-child { transform: rotate(180deg); }
.lh-star { color: var(--lh-rule); font: 1rem/1 Georgia, serif; }
.lh-home .lh-intro h1 {
  margin: 0;
  color: var(--lh-ink);
  font: 500 clamp(2.35rem, 4.3vw, 3.5rem)/1.35 'Lalil Thai Serif', 'Noto Serif Thai', 'Th Sarabun New', 'Leelawadee UI', Tahoma, serif;
  letter-spacing: -.035em;
}
.lh-intro h1 em { font-style: normal; color: var(--accent); }
.lh-home .lh-description { margin: .4rem 0 0; color: var(--lh-muted); font-size: 1rem; line-height: 1.8; }
.lh-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.7vw, 2.1rem); }
@media (min-width: 721px) {
  .lh-shelf > :only-child {
    grid-column: 1 / -1;
    width: calc((100% - clamp(1rem, 2.7vw, 2.1rem)) / 2);
    justify-self: center;
  }
}
.lh-shelf .lh-collection {
  display: block;
  min-width: 0;
  position: relative;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: var(--lh-ink);
  background: var(--lh-surface);
  border: 1px solid var(--lh-line);
  border-radius: 1.2rem;
  box-shadow: 0 3px 10px #4f344407, 0 15px 34px -28px #4c304a59;
  touch-action: manipulation;
  isolation: isolate;
  transition: border-color .2s ease, box-shadow .3s ease;
}
.lh-collection:hover, .lh-collection:focus-visible { border-color: #ac8c9c; box-shadow: 0 13px 40px -20px #50304a50; }
.lh-collection:focus-visible { outline: 3px solid #9168a3; outline-offset: 4px; }
.lh-collection.boost-duang {
  --lh-ratio: 768 / 1122;
  --lh-orbit: #695179;
  --lh-tint: #5c416d;
  --lh-stage: radial-gradient(ellipse at 26% 13%, #f6eaf0 0%, #f6eaf000 52%),
              radial-gradient(ellipse at 85% 100%, #a18cb9 0%, #a18cb900 50%),
              radial-gradient(ellipse at 53% 66%, #eedbec 0%, #eedbec00 58%),
              linear-gradient(132deg, #c4b8d4, #dbc9e6 57%, #c7bad8);
}
.lh-collection.broken-heart {
  --lh-ratio: 816 / 1400;
  --lh-orbit: #ae665d;
  --lh-tint: #784449;
  --lh-stage: radial-gradient(ellipse at 22% 6%, #fff0e3 0%, #fff0e300 50%),
              radial-gradient(ellipse at 89% 100%, #d397a1 0%, #d397a100 55%),
              radial-gradient(ellipse at 49% 73%, #f8e6d9 0%, #f8e6d900 62%),
              linear-gradient(127deg, #eac0ba, #eecdc6 62%, #e6b9c4);
}
.lh-display { background: var(--lh-stage); }
.lh-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: clamp(.9rem, 1.6vw, 1.4rem) clamp(1.1rem, 2.25vw, 1.75rem) 0;
}
.lh-wordmark {
  display: flex;
  align-items: center;
  height: clamp(3.7rem, 5.4vw, 4.8rem);
  max-width: 65%;
  margin: 0;
}
.lh-wordmark img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.lh-tableau {
  position: relative;
  height: clamp(14.7rem, 22.7vw, 18.5rem);
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
}
.lh-tableau::after {
  content: '';
  position: absolute;
  z-index: 2;
  pointer-events: none;
  inset: auto 0 0;
  height: 1px;
  background: #70566324;
}
.lh-count {
  flex: none;
  border: 1px solid #fff9;
  border-radius: 99rem;
  background: #fff8;
  padding: .26rem .78rem .21rem;
  font-size: .8125rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--lh-tint);
}
.lh-orbit-field, .lh-stars, .lh-stack, .lh-place { position: absolute; inset: 0; pointer-events: none; }
.lh-orbit-field i {
  position: absolute;
  width: 83%;
  height: 70%;
  border: 1px solid var(--lh-orbit);
  border-radius: 50%;
  top: 18%;
  left: 8%;
  transform: rotate(-19deg);
  opacity: .26;
}
.lh-orbit-field i:nth-child(2) { width: 73%; height: 99%; top: 3%; left: 15%; transform: rotate(27deg); opacity: .14; }
.lh-orbit-field i:nth-child(3) { width: 107%; height: 81%; top: 5%; left: -4%; transform: rotate(-26deg); opacity: .12; }
.broken-heart .lh-orbit-field { transform: scaleX(-1); }
.lh-stars { color: var(--lh-orbit); opacity: .65; }
.lh-stars i { position: absolute; font: 1.15rem/1 Georgia, serif; }
.lh-stars i:nth-child(1) { top: 19%; right: 18%; }
.lh-stars i:nth-child(2) { bottom: 26%; left: 12%; font-size: 1.5rem; }
.lh-stars i:nth-child(3) { bottom: 21%; right: 15%; font-size: .66rem; }
.lh-stars i:nth-child(4) { top: 27%; left: 19%; font-size: .8rem; }
.lh-stack { top: 0; }
.lh-stack::before {
  content: '';
  position: absolute;
  bottom: 3%;
  left: 26%;
  width: 48%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #49324350 0%, transparent 72%);
  filter: blur(4px);
}
.lh-place { display: grid; place-items: center; }
.lh-tilt { display: block; height: clamp(7.7rem, 38cqw, 13.3rem); aspect-ratio: var(--lh-ratio); }
.lh-paper {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: clamp(4px, 1.4cqw, 9px);
  object-fit: contain;
  box-shadow: 0 1px 2px #2213224a, 0 6px 11px #2e192c24, 0 14px 19px -12px #331e3266;
}
.lh-face { --spread: 0%; --angle: 0deg; --phase: 0s; --lift: 0%; }
.lh-face.face-1 { --spread: -87%; --angle: -19deg; --phase: -.5s; --lift: 3%; }
.lh-face.face-2 { --spread: -44%; --angle: -10deg; --phase: -3.2s; --lift: -3%; }
.lh-face.face-3 { --spread: 87%; --angle: 19deg; --phase: -3.1s; --lift: 3%; }
.lh-face.face-4 { --spread: 44%; --angle: 10deg; --phase: -.6s; --lift: -3%; }
.lh-face .lh-tilt {
  transform: translate(var(--spread), var(--lift)) rotate(var(--angle));
  animation: lh-fan 5.6s ease-in-out var(--phase) infinite;
}
.broken-heart .lh-face .lh-tilt { animation-delay: calc(var(--phase) - 1.2s); }
@keyframes lh-fan {
  0%, 100% { transform: translate(calc(var(--spread) * .78), calc(var(--lift) + 4%)) rotate(calc(var(--angle) * .86)); }
  50% { transform: translate(calc(var(--spread) * 1.16), calc(var(--lift) - 4%)) rotate(calc(var(--angle) * 1.1)); }
}
.lh-cover { z-index: 1; }
.lh-cover .lh-tilt {
  height: clamp(8.5rem, 41cqw, 14.55rem);
  transform: translateY(var(--cover-lift, 0)) scale(var(--cover-scale, 1));
  transition: transform .34s cubic-bezier(.2, 1.5, .44, 1);
}
.lh-cover img {
  filter: drop-shadow(0 0 0 transparent);
  transition: filter .25s ease;
}
@media (any-hover: hover) {
  .lh-collection:hover { --cover-lift: -8%; --cover-scale: 1.10; }
  .lh-collection:hover .lh-cover img { filter: drop-shadow(0 9px 7px #42253c40); }
}
.lh-collection:focus-visible { --cover-lift: -8%; --cover-scale: 1.10; }
.lh-collection.lh-opening .lh-cover img { visibility: hidden; }
.lh-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .65rem 1rem;
  padding: 1rem clamp(1.1rem, 2.25vw, 1.75rem) 1.15rem;
}
.lh-caption { flex: 1 1 max-content; min-width: 0; max-width: 100%; }
.lh-caption .lh-title {
  margin: 0;
  color: var(--lh-ink);
  font: 600 clamp(1.45rem, 2.1vw, 1.85rem)/1.45 'Lalil Thai Serif', 'Noto Serif Thai', Tahoma, serif;
  overflow-wrap: anywhere;
}
.lh-caption .lh-title[lang="en"] { font: 500 clamp(1.55rem, 2.5vw, 2.05rem)/1.22 var(--lh-serif); }
.lh-subtitle { margin: .2rem 0 0; color: var(--lh-muted); font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.lh-subtitle[lang="en"] { font: 1.12rem/1.4 var(--lh-serif); }
.lh-open {
  display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: .45rem;
  min-height: 2.7rem; border-radius: 6rem; border: 1px solid var(--lh-line);
  padding: 0 .95rem; font-size: .875rem; color: var(--lh-ink); white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.lh-collection:hover .lh-open, .lh-collection:focus-visible .lh-open { background: var(--lh-ink); border-color: var(--lh-ink); color: var(--lh-surface); }
.lh-book { position: relative; width: 1.05rem; height: .82rem; display: inline-flex; align-items: stretch; margin-right: .1rem; }
.lh-book::before, .lh-book::after { content: ''; flex: 1; border: 1.2px solid currentColor; border-radius: 1px 3px 0 0; transform: skewY(9deg); }
.lh-book::after { border-radius: 3px 1px 0 0; transform: skewY(-9deg); margin-left: -1px; }
.lh-flight { position: fixed; z-index: 9990; inset: 0; overflow: hidden; pointer-events: none; isolation: isolate; }
.lh-flight::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, #f4e9f2e8, #e3d6e2e6);
  animation: lh-flight-light .56s ease-in both;
}
.lh-flight.broken-heart::before { background: radial-gradient(ellipse at center, #fff0e9e8, #ecd6d7e6); }
@keyframes lh-flight-light { from { opacity: 0; } to { opacity: 1; } }
.lh-flying-paper { position: absolute; display: block; max-width: none; border-radius: .65rem; box-shadow: 0 13px 32px #3423324d; }
[data-theme="dark"] .lh-home { --lh-ink: #f5e9f3; --lh-muted: #d7bfd0; --lh-surface: #322834; --lh-line: #574558; --lh-rule: #be9f82; }
@media (max-width: 720px) {
  .lh-shelf { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .lh-tableau { height: clamp(12rem, 51vw, 16rem); }
  .lh-home { max-width: 36rem; padding-top: 1.6rem; }
  .lh-home .lh-description { max-width: 29rem; margin: .45rem auto 0; text-wrap: balance; }
  .lh-label { padding: 1rem 1.05rem 1.05rem; }
}
@media (max-width: 360px) {
  .lh-open { padding: 0 .75rem; gap: .25rem; }
  .lh-label { padding: .9rem .75rem; }
}
[data-motion="paused"] .lh-face .lh-tilt { animation-play-state: paused; }
[data-motion="paused"] .lh-cover .lh-tilt { transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .lh-face .lh-tilt, .lh-flight::before { animation: none; }
  .lh-collection, .lh-open, .lh-cover img { transition: none; }
  .lh-cover .lh-tilt { transform: none; transition: none; }
}
