/*
  Book_01_Read_It.css
  Realm of the Crystals — Infinite Shades — Book One

  Purpose:
  Styles the Book One "Read It" experience only.

  Shared site structure belongs in:
  Book_01_Base.css

  Reader controls and behavior will later belong in:
  Book_01_Read_It.js
*/

/* ---------------------------------------------------------
   READ IT THEME
   --------------------------------------------------------- */

:root {
  --bg: #03070d;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(198, 158, 92, 0.42);
  --gold: #d7b978;
  --text: #eadfce;
  --muted: #bdb4a6;
  --nav: #9fb8dc;
  --bar: rgba(2, 5, 10, 0.94);
}

html,
body {
  background:
    radial-gradient(
      circle at top,
      rgba(70, 110, 165, 0.18),
      transparent 35%
    ),
    linear-gradient(#06101a, var(--bg) 55%);
}

body {
  user-select: none;
  -webkit-user-select: none;
}

/* ---------------------------------------------------------
   READ IT PAGE LAYOUT
   --------------------------------------------------------- */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 22px 70px;
}

.chapter-head {
  margin: 0 0 24px;
  text-align: center;
}

.chapter-head .book {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.chapter-head h1 {
  margin: 8px 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: normal;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.readtime {
  color: var(--muted);
  font-size: 0.95rem;
}

.reader-note {
  margin: 0 auto 28px;
  padding: 14px 18px;
  border: 1px solid rgba(198, 158, 92, 0.35);
  border-radius: 12px;
  background: var(--panel);
  color: #ded4c5;
  font-size: 0.96rem;
  line-height: 1.5;
  text-align: center;
}

/* ---------------------------------------------------------
   READER WINDOW

   Only the chapter text belongs inside #reader-window.
   Future font size, line spacing, width, theme, search,
   and reading-progress controls should target this element.
   --------------------------------------------------------- */

#reader-window {
  padding: 34px clamp(20px, 5vw, 58px);
  border: 1px solid rgba(198, 158, 92, 0.42);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 0 45px rgba(0, 0, 0, 0.24),
    0 0 35px rgba(0, 0, 0, 0.22);
  font-size: clamp(1.08rem, 2.4vw, 1.22rem);
  line-height: 1.78;
}

#reader-window p {
  margin: 0 0 1.15em;
}

#reader-window p:last-child {
  margin-bottom: 0;
}

#reader-window .chapter-title-line {
  color: var(--gold);
  font-size: 1.25rem;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
}

#reader-window .scene-break {
  margin: 1.9em 0;
  color: var(--gold);
  letter-spacing: 6px;
  text-align: center;
}

/* ---------------------------------------------------------
   READER NAVIGATION
   --------------------------------------------------------- */

.bottom-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.bottom-nav .button {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid rgba(198, 158, 92, 0.55);
  border-radius: 10px;
  background: rgba(198, 158, 92, 0.12);
  color: #ffe0a1;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.bottom-nav .button:hover {
  background: rgba(198, 158, 92, 0.22);
}

hr {
  max-width: 900px;
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------
   SMALL SCREENS
   --------------------------------------------------------- */

@media (max-width: 720px) {
  main {
    padding: 22px 12px 56px;
  }

  #reader-window {
    padding: 24px 18px;
    line-height: 1.7;
  }
}

/* ---------------------------------------------------------
   PRINT LIMIT
   --------------------------------------------------------- */

@media print {
  body {
    display: none;
  }
}

/* ---------------------------------------------------------
   READER CONTROLS
   --------------------------------------------------------- */

#reader-size-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.reader-controls-label {
  margin-right: 0.25rem;
  font-weight: 600;
}

.reader-size-button {
  padding: 0.35rem 0.75rem;
  border: 1px solid #8b6b3f;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.reader-size-button:hover {
  background: rgba(139, 107, 63, 0.15);
}

.reader-size-button.active {
  background: #8b6b3f;
  color: #ffffff;
  font-weight: 700;
}

.reader-size-button:focus-visible {
  outline: 2px solid #8b6b3f;
  outline-offset: 2px;
}
