/* 06 Book: the Letterpress postcard (js/book.js), picked Nov 21. Turn over and Posted live in versions/r22-round-two.
   Scoped to html[data-booko] (not data-book, which main.js uses to find the section). */

/* no wash over the evening film and no brightness filter on it: the sunset shows as it is behind the card
   (Sam, Nov 22: "keep it clean, no need to add that white filter"). The wash was a cream radial on .book::before. */
html[data-booko] .bk-send { white-space: nowrap; }

html[data-booko="press"] .book__card {
  --paper: #FBF7EE; background: none; box-shadow: none; padding: 46px 50px 44px;
  filter: drop-shadow(0 34px 44px rgba(60, 40, 15, .26)) drop-shadow(0 4px 6px rgba(60, 40, 15, .18));
}
.lp-paper, .lp-edge { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lp-edge { background: #E2D5BC; transform: translate(2px, 3px); }
.lp-paper {
  background: var(--tex) 0 0 / 512px 512px,
    radial-gradient(ellipse 90% 70% at 30% 20%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%),
    linear-gradient(170deg, #FDFAF3 0%, #F8F2E5 60%, #F3EBDA 100%);
  box-shadow: inset 0 0 40px rgba(170, 140, 90, .14);
}
/* the sun mark pressed into the paper without ink */
/* top left of the address half, clear of the stamp, the postmark and the small print */
.lp-emboss { position: absolute; z-index: 0; left: calc(50px + (100% - 100px) * .5122 + 40px); top: 80px; width: 96px; height: auto; opacity: .95; pointer-events: none; }
.lp-emboss circle { fill: #F5EEDF; }
.lp-emboss path { stroke: #F5EEDF; }
.lp-emboss { filter: drop-shadow(1.6px 1.6px 0 rgba(255, 255, 255, 1)) drop-shadow(-1.4px -1.4px 0 rgba(120, 95, 55, .34)); }
html[data-booko="press"] .book__message { border-right: 1.5px solid rgba(15, 59, 64, .14); position: relative; z-index: 1; }
html[data-booko="press"] .book__address { position: relative; z-index: 1; }
html[data-booko="press"] .book__message .label { display: flex; align-items: center; gap: 12px; color: #8A6A2C; }
.lp-rule { flex: 1; height: 1.5px; background: linear-gradient(90deg, #A47F35, #F2D98F 40%, #B38C3F 60%, #E9CF84); }
/* letterpress: the ink sits a hair into the paper */
html[data-booko="press"] .book__title { color: #12383C; text-shadow: 0 1px 0 rgba(255, 255, 255, .85), 0 -1px 0 rgba(15, 50, 55, .18); }
/* gold foil on the last word, its light sliding slowly */
/* the gradient sits on each word (the title is split into inline-block words, and the clip doesn't reach into them);
   no text-shadow there (it would show through the clear letters), the soft shadow is a filter on the em instead */
html[data-booko="press"] .book__title em { text-shadow: none; filter: drop-shadow(0 1px 0 rgba(90, 60, 20, .3)); }
html[data-booko="press"] .book__title em .w {
  background: linear-gradient(105deg, #8E6A26 0%, #C9A24C 18%, #F3DA8E 27%, #A98234 40%, #7C5A1E 52%, #C79F4A 64%, #F0D488 73%, #9C7630 86%, #8E6A26 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none; animation: lp-foil 7s ease-in-out infinite alternate;
}
@keyframes lp-foil { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
html[data-booko="press"] .book__note { color: #22408A; }
.lp-to { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: #8A6A2C; }
/* an engraved stamp: fine hatching over the colour, a foil frame */
html[data-booko="press"] .book__stamps .pstamp { filter: drop-shadow(0 2px 3px rgba(60, 40, 15, .25)); }
html[data-booko="press"] .book__stamps .pstamp__in {
  background: repeating-linear-gradient(45deg, rgba(60, 10, 10, .14) 0 1px, transparent 1px 3.2px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 4px), #D9473F;
  outline: 1.5px solid #E9CF84; outline-offset: -6px;
}
html[data-booko="press"] .book__pm .pm { color: #22408A; }
/* the answers in fountain pen on printed rules */
html[data-booko="press"] .field { border-bottom: 0; background: linear-gradient(90deg, rgba(15, 59, 64, .32) 50%, transparent 0) 0 100% / 6px 1px repeat-x; padding-bottom: 8px; }
html[data-booko="press"] .field__k { color: #8A6A2C; letter-spacing: .2em; }
html[data-booko="press"] .field__v { font-family: var(--hand); font-style: normal; font-weight: 400; font-size: 24px; line-height: 1.7; color: #22408A; padding-top: 4px; }
html[data-booko="press"] .field::after { color: #B8913F; }
html[data-booko="press"] .book__total { color: #12383C; }
html[data-booko="press"] .book__total b { color: #22408A; font-family: var(--hand); font-style: normal; font-size: 26px; }
html[data-booko="press"] .bk-send {
  background: #12383C; color: transparent; border-radius: 3px; padding: 0 28px; height: 54px; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 18px rgba(18, 56, 60, .28);
  background-image: linear-gradient(105deg, #C9A355, #FFF0BF 30%, #B8913F 55%, #F2D98F), linear-gradient(#12383C, #12383C);
  -webkit-background-clip: text, padding-box; background-clip: text, padding-box; -webkit-text-fill-color: transparent;
}
html[data-booko="press"] .book__ctas { position: relative; }
.lp-seal { position: absolute; left: 212px; top: -36px; width: 94px; height: 94px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(90, 14, 14, .35)); }
.lp-seal svg { width: 100%; height: 100%; display: block; }

@media (max-width: 760px) {
  /* a phone is short: the card is made compact so it sits between the nav and the small print, never under the nav */
  html[data-booko] .book { padding-top: 84px; }
  html[data-booko="press"] .book__card { padding: 20px 20px 18px; }
  .lp-emboss { width: 82px; left: auto; top: auto; right: 22px; bottom: 64px; }
  .lp-seal { left: auto; right: 6px; top: -6px; width: 76px; height: 76px; }
  .lp-to { display: none; }   /* the stamps take that corner on a phone */
  .lp-emboss { transition: opacity .3s ease .35s; }
  .is-sealed .lp-emboss { opacity: 0; }   /* on a phone the seal lands on the mark, and covers it */
  html[data-booko="press"] .field { padding-bottom: 4px; }
  html[data-booko="press"] .field__v { font-size: 18px; line-height: 1.35; padding-top: 2px; }
  html[data-booko="press"] .book__address { position: static; }   /* the stamps go back to the card's top right, as on the page */
}

/* the nav at the end: you've arrived where Plan my trip leads, so its stub says so (sun label, the arrow points down) */
html[data-navo="pass"] .nav.is-at-book .nvo-cta small { color: var(--sun); }
html[data-navo="pass"] .nav.is-at-book .nvo-cta i { transform: rotate(90deg); }
html[data-navo="pass"] .nav.is-at-book .nvo-cta b {
  background: linear-gradient(90deg, rgba(255, 181, 71, 0), rgba(255, 181, 71, .28) 12%, rgba(255, 196, 92, .32) 70%, rgba(255, 181, 71, 0)) 0 100% / 100% 7px no-repeat;
}
@media (prefers-reduced-motion: reduce) { html[data-booko="press"] .book__title em .w { animation: none; } html[data-booko] .stage:has(.book.is-live) .screen__canvas { transition: none; } }

/* the sun mark that flew into the card (js/sunmark.js) was removed on Sam's word, Nov 22; it lives on in versions/r42-r44 */

