/* Ruth S. Norman — site extras */

/* Native page scroll */
html,
html.lenis {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
}

html.lenis body,
body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overscroll-behavior-y: auto;
  margin: 0;
  padding-bottom: 0 !important;
  position: static !important;
  touch-action: pan-y !important;
}

/* ≤767 — smooth native scroll, no lock */
@media (max-width: 767px) {
  html,
  html.lenis,
  body,
  html.lenis body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
    position: static !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    scroll-behavior: smooth;
  }

  .inner-body {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    transform: none !important;
  }

  .author-section,
  .footer,
  .banner,
  .story-section,
  .my-books-sect,
  .trailer-section,
  .subscribe {
    overflow: visible !important;
  }
}

html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #e85f26 #1a2a4a;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #1a2a4a;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #e85f26;
  border-radius: 6px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #ff7a3d;
}

.bnner-img.ruth-book-img {
  width: 120% !important;
  max-width: 120% !important;
  height: auto;
  margin-left: -8%;
}

.book-column-area .ruth-book-img {
  width: 115%;
  max-width: 115%;
}

.footer-links {
  margin-bottom: 130px;
}

.footer {
  min-height: auto !important;
  height: auto;
}

@media (max-width: 991px) {
  .book-buy-under-img {
    margin-top: 12px !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .book-image-with-buy {
    align-items: center !important;
  }

  html,
  html.lenis,
  body,
  html.lenis body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
    position: static !important;
  }

  html,
  body,
  .inner-body {
    background-color: #21345d !important;
    background-image: none !important;
  }

  .inner-body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .footer-links {
    margin-bottom: 0.5rem !important;
  }

  .footer {
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 0 10px !important;
    overflow: visible !important;
  }

  .foot-top {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .foot-middle {
    flex-grow: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .foot-bottom {
    margin: 0.8rem 0 0 !important;
    padding: 0 0 8px !important;
  }

  .foot-bottom p,
  .foot-bottom .text-story-sec {
    margin-bottom: 0 !important;
  }

  .author-section {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }
}

.footer-author-name {
  font-size: 10rem;
  line-height: 1.05;
  padding: 0 1rem;
}

/* Prevent GSAP pin-spacer ghost / double "I'm the Author" */
.author-section {
  overflow: hidden;
}

.author-section .hd-large.anim-hds3 {
  position: relative;
  z-index: 1;
}

.author-section .pin-spacer {
  display: contents !important;
}

.author-portrait-wrap {
  max-width: 420px;
}

.author-portrait-frame {
  background: #1a1a1a;
  border: 14px solid #111;
  box-shadow:
    inset 0 0 0 3px #c9a84c,
    inset 0 0 0 6px #2a2a2a,
    0 12px 40px rgba(0, 0, 0, 0.45);
  padding: 18px 18px 22px;
}

.author-portrait-inner {
  background: #2c2c2c;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.author-portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.author-brass-plate {
  margin: 18px auto 0;
  max-width: 92%;
  background: linear-gradient(180deg, #e8d5a3 0%, #c9a84c 45%, #a8862e 100%);
  border: 2px solid #8a7024;
  border-radius: 4px;
  box-shadow: 0 2px 0 #6e5818, inset 0 1px 0 rgba(255, 255, 255, 0.35);
  padding: 14px 16px 16px;
  text-align: center;
  color: #2a1f0a;
  position: relative;
}

.author-brass-plate::before,
.author-brass-plate::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f0e0b0, #8a7024);
  transform: translateY(-50%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.author-brass-plate::before {
  left: 10px;
}

.author-brass-plate::after {
  right: 10px;
}

.author-brass-plate .plate-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.author-brass-plate .plate-role {
  display: block;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.author-brass-plate .plate-book {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.25;
}

.contact-page-section {
  padding: 6rem 0 4rem;
  position: relative;
}

.contact-page-heading {
  font-family: var(--lavish-font);
  font-size: 8rem;
  color: #e85f26;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-page-intro {
  font-family: var(--salmond-font);
  font-size: 1.8rem;
  color: #fff;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 3rem;
  max-width: 560px;
  color: #fff;
  font-family: var(--salmond-font);
  font-size: 1.7rem;
}

.contact-info-list li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  line-height: 1.45;
}

.contact-info-list i {
  color: #e85f26;
  margin-top: 0.35rem;
  width: 22px;
  text-align: center;
}

.contact-info-list strong {
  color: #e85f26;
  margin-right: 0.35rem;
}

.contact-info-list a {
  color: #fff;
  text-decoration: none;
}

.contact-info-list a:hover {
  color: #e85f26;
}

#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.inner-body {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  #snow-canvas {
    display: none;
  }
}

.about-hero-label {
  font-family: var(--salmond-font);
  font-size: 1.8rem;
  font-weight: 500;
  color: #e85f26;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
