@media (min-width: 1200px) {
  .xl-big-text {
    font-size: 1.5rem !important;
    line-height: 1.6;
  }
}

@media (min-width:1200px) {
  .h1, h1 {
    font-size: 3.0rem;
  }
}

/* 1. Base style: Applies to Mobile, Tablet, & Laptop */

.xl-big-text {
  font-size: 21.4px;
}

/* 2. XL/XXL style: Applies ONLY to screens 1200px and wider */

@media (min-width: 1200px) {
  .xl-page-title {
    font-size: 42px !important;
  }
}

body {
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.2rem) !important;
  line-height: 1.65 !important;
}

p {
  max-width: 68ch !important;
  margin-bottom: 1.25rem !important;
}

h1, .display-1, .h1 {
  font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3.25rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

h2, .display-2, .h2 {
  font-size: clamp(1.35rem, 0.95rem + 1.8vw, 2.25rem) !important;
  line-height: 1.25 !important;
}

ul, ol {
  font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.15rem) !important;
  line-height: 1.6 !important;
}

html[data-protected="true"] body {
  display: none !important;
}

/* =========================================================   TRUE HARDWARE - FLUID BOOK LAYOUT ENGINE   ========================================================= */

/* 1. Root Fluid Base (Smooth 16px to 21px root scaling) */

:root {
  font-size: clamp(16px, 0.8vw + 13px, 21px);
}

/* 2. Global Document Reset (Prevents fixed heights and overlaps) */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #d1bebc;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* 3. The Sacred "Book Container" Rule */

.chapter-container {
  width: 100%;
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.5rem;
  height: auto !important;
}

/* 4. Flawless Reading Paragraphs */

.chapter-container p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 1.5rem;
  position: static !important;
}

/* 5. Scaled Headings */

.chapter-container h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3.5rem);
  line-height: 1.1;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-transform: none;
}

.chapter-container h2 {
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2.5rem);
  line-height: 1.2;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* 6. Clean Divider Line */

.chapter-container hr {
  border: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.15);
  margin: 2.5rem 0;
}

/* Custom Reader Container */

.chapter-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 2rem 1.5rem;
  height: auto !important;
}

/* Universal base setup */

.hover-change, .hover-change * {
  transition: color 0.4s ease-in-out !important;
}

/* Universal hover trigger */

.hover-change:hover, .hover-change:hover * {
  color: #ffffff !important;
}

/* Container alignment */

.scroll-indicator-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.scroll-indicator-wrap:hover {
  opacity: 1;
}

/* Monospace Tech Label */

.scroll-text {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  color: #00ff66;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Arrow styling & Bounce Animation */

.bounce-arrow {
  color: #00ff66;
  animation: techBounce 1.8s infinite ease-in-out;
}

/* Keyframes for smooth vertical float */

@keyframes techBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

/* Smooth bottom gradient fade so the image doesn't look cut off */

.bg-gradient-fade {
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

