.phrasebook-invite {
  --board: #64312f;
  --paper: #fbf1d9;
  --print: #263d45;
  display: block;
  position: relative;
  isolation: isolate;
  width: min(100%, 22rem);
  color: var(--print);
  text-decoration: none;
  border-radius: .45rem;
}
.pbook-sample::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 19%;
  bottom: -.78rem;
  width: .76rem;
  height: 1.7rem;
  background: #ac594b;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 79%, 0 100%);
  transform: rotate(-3deg);
}
.pbook-spread {
  display: grid;
  grid-template-columns: 46fr 54fr;
  min-height: 9.15rem;
  position: relative;
  padding: 2px 3px 6px;
  background: var(--board);
  border-radius: 4px 9px 9px 4px;
  box-shadow: 0 2px 0 #54372b, 0 5px 7px rgb(19 27 30 / 15%), 0 12px 20px -9px rgb(19 27 30 / 35%);
  transform: rotate(-1.2deg);
  transition: transform .18s ease;
}
.phrasebook-invite:focus-visible { outline: 3px solid var(--dialect-blue); outline-offset: 7px; }
.coast-home .phrasebook-invite:focus-visible { outline-color: var(--gold); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .phrasebook-invite:hover .pbook-spread { transform: translateY(-2px) rotate(0); }
}
.pbook-leaf {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 1.1rem clamp(.65rem, 1.8vw, 1.4rem);
  line-height: 1.2;
  text-align: left;
}
.pbook-left {
  border-radius: 2px 9px 2px 3px / 2px 4px 2px 3px;
  background: linear-gradient(90deg, #faefd4 0%, #f9efd8 80%, #eddfbf 96%, #d4c5a8 100%);
  border-bottom: 2px solid #d1bf9d;
}
.pbook-right {
  border-radius: 9px 7px 6px 2px / 5px 4px 6px 2px;
  background: linear-gradient(90deg, #c4b79f 0, #ede2ca 4%, var(--paper) 14%, #faf0d9 94%, #e6d5b6 100%);
  box-shadow: inset -2px -2px 0 #dacaab, inset -3px -4px 0 #f3e9d0;
  padding-bottom: 1.25rem;
}
.pbook-phrase, .pbook-equivalent {
  display: block;
  font-family: var(--serif);
  font-weight: 450;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.pbook-phrase { font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.22rem); }
.pbook-equivalent { font-size: clamp(1.35rem, 2.2vw, 1.78rem); }
.pbook-place { display: block; margin-bottom: .5rem; font: 600 .78rem/1.2 var(--sans); color: #794238; }
.pbook-action {
  margin-top: .85rem;
  font: 600 .84rem/1.3 var(--sans);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.phrasebook-invite.pbook-cover {
  width: clamp(8rem, 12vw, 10rem);
  max-width: 100%;
  margin: clamp(2rem, 4.65vw, 3.8rem) 0 .5rem clamp(.75rem, 1.7vw, 1.65rem);
  transition: transform .18s ease;
}
.pbook-cover-art {
  display: block;
  aspect-ratio: 1173 / 1341;
  background: url("assets/vestlussonastik-suletud-et.webp") center / contain no-repeat;
}
.pbook-cover-art:lang(sv) { background-image: url("assets/vestlussonastik-suletud-sv.webp"); }
.pbook-cover .pbook-action {
  position: absolute;
  inset-block-start: 59%;
  inset-inline: 19.5%;
  margin-top: 0;
  color: #fbdfa5;
  font-size: clamp(.8rem, 1.06vw, .9rem);
  line-height: 1.25;
  transform: rotate(-1deg);
  text-align: center;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pbook-cover:hover { transform: translateY(-3px); }
}
.phrasebook-shelf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  gap: clamp(1.6rem, 4.3vw, 4.3rem);
  align-items: center;
}
.collection-entry.phrasebook-shelf { padding-bottom: clamp(2.2rem, 4.3vw, 4rem); }
.phrasebook-shelf .pbook-heading { min-width: 0; }
.phrasebook-shelf .pbook-heading p { max-width: 55ch; }
.collection-entry.phrasebook-shelf h2 { margin-bottom: .55rem; }
.phrasebook-intro.phrasebook-shelf { max-width: none; }
.phrasebook-shelf .phrasebook-invite { justify-self: end; margin: .2rem .18rem .6rem; }
@media (max-width: 720px) {
  .phrasebook-shelf { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .phrasebook-shelf .phrasebook-invite { justify-self: start; }
}
@media (width > 800px) {
  .phrasebook-invite.pbook-cover {
    margin-inline-start: clamp(1.5rem, 3.6vw, 3.4rem);
    rotate: -8deg;
  }
}
@media (max-width: 800px) {
  .phrasebook-invite.pbook-cover { margin-top: 1.8rem; }
}
@media (max-width: 380px) {
  .pbook-leaf { padding-inline: .75rem; }
  .pbook-spread { min-height: 8.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pbook-spread, .pbook-cover { transition: none; }
}
