/* Shared navigation and footer, using the supplied Books page design. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  z-index: 20;
  color: #fff9ee;
  border-bottom: 1px solid #ffffff30;
  line-height: 1.6;
  background: transparent;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(41, 20, 27, 0.94);
  box-shadow: 0 10px 30px rgba(25, 8, 14, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header .monogram {
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
}
.site-header .monogram img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-header .desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.site-header .desktop-nav a {
  position: relative;
}
.site-header .desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: #d3ba8c;
  transition: width 0.25s;
}
.site-header .desktop-nav a:hover::after,
.site-header .desktop-nav a:focus-visible::after {
  width: 100%;
}
.site-header .header-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-header .header-socials a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: inherit;
  transition:
    color 0.25s,
    transform 0.25s;
}
.site-header .header-socials a:hover,
.site-header .header-socials a:focus-visible {
  color: #d3ba8c;
  transform: translateY(-2px);
}
.site-header .header-socials svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-header .header-socials .social-dot {
  fill: currentColor;
  stroke: none;
}
.site-header .menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  padding: 10px 0;
  cursor: pointer;
}
.site-mobile-nav {
  display: none;
}
.site-footer {
  background: #29141b;
  color: #f1ede5;
  padding: 90px 6% 28px;
  line-height: 1.6;
}
.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #cbbbc0;
}
.site-footer h2 {
  font: 400 clamp(58px, 10vw, 160px) / 1.05 var(--serif);
  letter-spacing: -0.04em;
  margin: 35px 0 55px;
}
.site-footer h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1em;
  color: #d3ba8c;
}
.site-footer .footer-social {
  display: flex;
  gap: 40px;
  font-size: 14px;
}
.site-footer .footer-social a:last-child {
  margin-left: auto;
}
.site-footer .footer-pages {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #ffffff22;
  font-size: 13px;
}
.site-footer .footer-pages a {
  position: relative;
  color: #f1ede5;
  transition: color 0.25s ease;
}
.site-footer .footer-pages a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: #d3ba8c;
  transition: right 0.3s ease;
}
.site-footer .footer-pages a:hover,
.site-footer .footer-pages a:focus-visible,
.site-footer .footer-pages a[aria-current="page"] {
  color: #d3ba8c;
}
.site-footer .footer-pages a:hover::after,
.site-footer .footer-pages a:focus-visible::after,
.site-footer .footer-pages a[aria-current="page"]::after {
  right: 0;
}
.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff22;
  margin-top: 36px;
  padding-top: 24px;
  font-size: 11px;
  color: #b7a7ad;
}
.site-footer .footer-bottom > span {
  display: inline;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid #d3ba8c;
  outline-offset: 5px;
}
@media (max-width: 700px) {
  .site-header {
    height: 68px;
    padding: 0 6%;
  }
  .site-header .monogram {
    width: 36px;
    height: 40px;
  }
  .site-header .desktop-nav {
    display: none;
  }
  .site-header .header-socials {
    margin-left: auto;
    margin-right: 22px;
    gap: 12px;
  }
  .site-header .header-socials a {
    width: 22px;
    height: 22px;
  }
  .site-header .header-socials svg {
    width: 19px;
    height: 19px;
  }
  .site-header .menu-toggle {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 21px;
    line-height: 1;
  }
  .site-header.menu-open {
    background: #491925;
  }
  .site-mobile-nav:not([hidden]) {
    display: flex;
    position: absolute;
    inset: 68px 0 auto;
    flex-direction: column;
    padding: 20px 6% 28px;
    background: #491925;
    box-shadow: 0 15px 25px #200d1822;
    max-height: calc(100svh - 68px);
    overflow: auto;
  }
  .site-mobile-nav a {
    font: 30px/1.4 var(--serif);
    padding: 12px 0;
    border-bottom: 1px solid #ffffff20;
  }
  .site-footer {
    padding: 65px 6% 25px;
  }
  .site-footer h2 {
    font-size: 62px;
  }
  .site-footer h2 em {
    display: inline;
  }
  .site-footer .footer-social {
    gap: 20px;
    flex-wrap: wrap;
  }
  .site-footer .footer-social a:last-child {
    margin-left: 0;
  }
  .site-footer .footer-pages {
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 42px;
    padding-top: 20px;
    font-size: 13px;
  }
  .site-footer .footer-bottom {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 36px;
  }
}
/* Section entry only affects opacity; existing motion and layout stay intact. */
.section-load {
  transition: opacity 850ms cubic-bezier(0.22, 1, 0.36, 1);
}
.section-load.section-load-pending {
  opacity: 0;
}
@media print {
  .section-load.section-load-pending {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .section-load.section-load-pending {
    opacity: 1;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
