html { scroll-padding-top: calc(var(--header-height, 88px) + 10px); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  box-shadow: 0 1px 0 #203b3026;
}
.header-messengers {
  display: flex;
  align-items: center;
  gap: 3px;
}
.header-messengers a {
  display: inline-flex;
  min-width: 42px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 3px;
  color: var(--ink);
  transition: background-color .18s, color .18s;
}
.header-messengers a span { display: none; }
.header-messengers .icon { width: 21px; height: 21px; }
.header-messengers a:is(:hover,:focus-visible) { background: #e4e6da; color: #254e3e; }

/* The travelling highlight stays behind the icon and the type. */
.hero .button.cream {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 58px;
  max-width: 100%;
  padding: 16px 29px;
  border-radius: 999px;
  font-size: 16px;
  color: #1c2d22;
  border-color: #e8ce96 #c9a366 #b88f54 #ecd4a4;
  background: linear-gradient(111deg, #bd965b 0%, #e3c48d 18%, #f6e2b9 44%, #e8cd99 62%, #c8a66f 82%, #e9ce99 100%);
  box-shadow: inset 0 1px 0 #fff1cfb8, inset 0 -1px 0 #a8875180, 0 2px 7px #05190f30;
  font-weight: 600;
}
.hero .button.cream::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -25% 0;
  pointer-events: none;
  background: linear-gradient(111deg, transparent 26%, #fffae01c 40%, #fff5cb95 49%, #fff5cb26 56%, transparent 69%);
  transform: translateX(-110%);
  animation: gold-intro 1.65s .45s both var(--book);
}
@keyframes gold-intro { to { transform: translateX(110%); } }
@keyframes gold-hover { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@media (hover:hover) {
  .hero .button.cream:hover::before { animation: gold-hover 1.12s both var(--book); }
}
.header-book, .button.primary,
.header-book:hover, .button.primary:hover {
  color: #fffdf3;
  background: linear-gradient(108deg, #39594720, #06241838 76%), #1b382c url('assets/velvet.webp') center / cover no-repeat;
  border-color: #647861 #274a38 #193727 #48644b;
  box-shadow: inset 0 1px 0 #bed0ac35, inset 0 -1px 0 #12291f5c;
}
@media (hover:hover) {
  .header-book:not(:disabled):hover, .button.primary:not(:disabled):hover {
    background-image: linear-gradient(108deg, #a6b58c30, #163e2c04 76%), url('assets/velvet.webp');
    box-shadow: inset 0 1px 0 #e0ebcc4d, 0 2px 5px #1833261a;
  }
}
.button.primary:active, .header-book:active, .hero .button.cream:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px #18291e47;
}
@media (min-width: 1021px) and (max-width: 1240px) {
  .site-header .header-row { gap: 12px; }
  .header-messengers { gap: 0; }
  .header-messengers a { min-width: 36px; }
  #site-nav { gap: 16px; }
  .header-actions { gap: 12px; }
}
@media (min-width: 925px) and (max-width: 1020px) {
  .header-messengers a { padding-inline: 9px; font-size: 12px; }
  .header-messengers a span { display: inline; }
}
@media (min-width: 661px) and (max-width: 850px) {
  .header-phone { width: 42px; justify-content: center; }
  .header-phone span { display: none; }
}
@media (max-width: 660px) {
  .hero .button.cream { min-height: 54px; padding: 14px 21px; font-size: 15px; }
  html { scroll-padding-top: calc(var(--header-height, 105px) + 6px); }
  .site-header .header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'brand actions' 'chats chats';
    gap: 0 12px;
    align-items: center;
    padding-block: 3px 0;
  }
  .site-header .brand { grid-area: brand; }
  .header-actions { grid-area: actions; }
  .header-messengers {
    grid-area: chats;
    justify-content: space-between;
    border-top: 1px solid #dbdccf;
    margin-top: 3px;
  }
  .header-messengers a {
    min-width: 0;
    flex: 1;
    min-height: 39px;
    font-size: 12px;
    gap: 5px;
  }
  .header-messengers .icon { width: 17px; height: 17px; }
  .header-messengers a span { display: inline; }
}
@media (max-width: 365px) {
  .hero .button.cream { padding-inline: 15px; gap: 8px; font-size: 14.5px; }
  .header-messengers:has(a:nth-child(4)) a { font-size: 11px; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .button.cream::before { display: none; }
}
@media (forced-colors: active) {
  .hero .button.cream, .button.primary, .header-book { border: 1px solid ButtonText; }
  .hero .button.cream::before { display: none; }
}
