/* The school book supplies the paper, ink, rose, honey and berry tones. */
.edisi-meja .book-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 46px;
  width: fit-content;
  font: 700 .9rem/1.25 var(--sans);
  text-decoration: none;
}
.book-link .nav-icon {
  flex: none;
  width: 18px;
  height: 18px;
}
.edisi-meja .book-link { color: var(--wine); text-underline-offset: .32em; text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 1px; }
.edisi-meja .book-link:hover { text-decoration-color: currentColor; }
.hero-actions .book-link { padding-inline: .2rem; }

.meja-diorama {
  --diorama-ink: #54283b;
  background: var(--diorama-ink);
  color: var(--paper);
}
.diorama-frame {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.35fr);
  gap: clamp(2rem,5vw,6rem);
  align-items: center;
  padding-block: clamp(36px,4.5vw,80px);
}
.diorama-copy { min-width: 0; }
.diorama-label {
  display: flex; align-items: center; gap: .6rem;
  color: #f6d5d4;
  font: 620 .78rem/1.5 var(--sans);
}
.diorama-label span { width: 22px; height: 1px; background: var(--honey); }
.diorama-copy h2 {
  margin: clamp(1.4rem,3vw,3rem) 0 1rem;
  font: 460 clamp(3.4rem,5.8vw,6.8rem)/.96 var(--serif);
  letter-spacing: -.052em;
}
.diorama-copy h2 em { display: block; color: #f1c975; font-weight: 440; }
.diorama-copy article > p {
  max-width: 37ch; color: #f3e3e3;
  font-size: clamp(.94rem,1.1vw,1.09rem); line-height: 1.65;
}
.diorama-link {
  display: inline-flex; align-items: center; gap: .85em;
  color: var(--paper); margin-top: .8rem; min-height: 44px;
  font: 650 .88rem/1.4 var(--sans);
  text-decoration: underline; text-decoration-color: #b17a84; text-underline-offset: .38em;
}
.diorama-link span, .diorama-figure figcaption a span { color: #f1c975; }
.diorama-figure { margin: 0; min-width: 0; }
.diorama-model {
  position: relative; isolation: isolate;
  background: #e6b9b8;
  border-radius: 5.5rem .25rem .25rem .25rem;
  box-shadow: 0 2px 0 #a97871, 0 12px 25px -22px #120914;
}
.diorama-model > img { display: block; width: 100%; height: auto; border-radius: inherit; }
.diorama-pin[data-benda="pondasi-islam"] { --x: 22%; --y: 52%; }
.diorama-pin[data-benda="practical-life"] { --x: 25%; --y: 72%; }
.diorama-pin[data-benda="sensorial"] { --x: 48%; --y: 47%; }
.diorama-pin[data-benda="bahasa"] { --x: 59%; --y: 72%; }
.diorama-pin[data-benda="matematika"] { --x: 78%; --y: 45%; }
.diorama-pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%);
  display: grid; place-items: center; width: 44px; height: 44px;
  text-decoration: none; border-radius: 50%; z-index: 1;
  -webkit-tap-highlight-color: transparent;
}
.diorama-dot {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1.5px solid var(--wine); border-radius: 50%;
  color: var(--wine); background: #fff9ec;
  box-shadow: 0 2px 8px #33142157;
}
.diorama-dot::after { content: '+'; font: 500 22px/1 var(--sans); }
.diorama-tag {
  position: absolute; bottom: calc(100% - 5px); left: 50%; transform: translateX(-50%);
  padding: .24rem .6rem; border-radius: 3px;
  background: var(--diorama-ink); color: #fff8ed;
  font: 650 .72rem/1.35 var(--sans); white-space: nowrap;
  pointer-events: none; visibility: hidden;
}
.diorama-pin[aria-pressed=true] .diorama-dot, .diorama-pin:hover .diorama-dot {
  background: #703448; color: var(--paper); border-color: #fff5da;
}
.diorama-pin[aria-pressed=true] .diorama-dot::after { content: ''; width: 8px; height: 8px; border-radius: 100%; background: #f5d78c; }
.diorama-pin[aria-pressed=true] .diorama-tag, .diorama-pin:hover .diorama-tag, .diorama-pin:focus-visible .diorama-tag { visibility: visible; }
.diorama-pin:focus-visible, .meja-diorama a:focus-visible { outline: 3px solid #f8c65c; outline-offset: 2px; }
.diorama-figure figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: #ecd6d8; padding-block-start: 4px; font: 500 .81rem/1.5 var(--sans);
}
.diorama-figure figcaption a { display: inline-flex; gap: .5em; align-items: center; min-height: 44px; color: var(--paper); font-weight: 650; text-underline-offset: .25em; }
@media (max-width: 800px) {
  .diorama-frame { grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: 23px; }
  .diorama-copy h2 { font-size: clamp(44px,6.8vw,58px); }
  .diorama-model { border-top-left-radius: 3rem; }
}
@media (max-width: 660px) {
  .diorama-frame { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block: 32px; }
  .diorama-copy { display: contents; }
  .diorama-label { order: 0; margin-block: 0 13px; }
  .diorama-figure { order: 1; }
  #cerita-benda { order: 2; padding-block: .6rem 0; border-top: 1px solid #926570; }
  .diorama-copy h2 { margin: 8px 0 10px; font-size: clamp(38px,10vw,55px); }
  .diorama-copy h2 em { display: inline; }
  .diorama-copy article > p { max-width: 47ch; }
  .diorama-link { margin-top: .2rem; }
  .diorama-model { border-top-left-radius: 2.2rem; }
  .diorama-dot { width: 25px; height: 25px; }
  .diorama-tag { font-size: .66rem; bottom: calc(100% - 8px); }
}
@media (max-width: 600px) {
  .hero-actions { gap: 4px 14px; }
  .hero-actions .book-action, .hero-actions .book-link { font-size: .83rem; }
  .hero-actions .book-action { padding-inline: .8rem; }
}
@media (max-width: 370px) {
  .hero-actions .book-action, .hero-actions .book-link { min-height: 44px; }
  .hero-actions .book-link { gap: .4rem; }
}
