/*
Theme Name: As Shadows of the Mind
Theme URI: https://turnerdentalcare.com/book
Author: J Turner
Author URI: https://turnerdentalcare.com
Description: A dark, gold-accented literary landing page for the fantasy novel "As Shadows of the Mind" — Book One of The Telling of A'llon. Single-page theme with hero, book overview, in-page chapter reader, world map, author bio, mailing-list signup, and a Beta Reader request form (wired to Formspree).
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: as-shadows
*/

:root {
    --bg:        #0a0807;
    --bg-2:      #15100c;
    --bg-3:      #1c1611;
    --ink:       #f5edd6;
    --ink-soft:  rgba(245, 237, 214, 0.78);
    --ink-mute:  rgba(245, 237, 214, 0.55);
    --gold:      #c9a84c;
    --gold-hi:   #e0c270;
    --gold-dim:  #8a7129;
    --gold-line: rgba(201, 168, 76, 0.28);
    --gold-line-strong: rgba(201, 168, 76, 0.55);
    --crimson:   #7a1f1f;

    --display: "Cormorant Infant", "Cormorant Garamond", serif;
    --label:   "Cinzel", serif;
    --body:    "EB Garamond", "Cormorant Garamond", Georgia, serif;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  /* ---- Type ----------------------------------------------------------- */
  .label {
    font-family: var(--label);
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    font-size: 12px;
  }
  .label--lg { font-size: 14px; }
  .section-title {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(40px, 5.2vw, 72px);
    line-height: 1.05;
    letter-spacing: 0.01em;
    margin: 18px 0 0;
    color: var(--ink);
  }
  .section-title .gilt { color: var(--gold); }
  .section-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 6px;
  }
  .section-eyebrow .rule {
    flex: 0 0 80px;
    height: 1px;
    background: var(--gold-line-strong);
  }
  .lede {
    font-family: var(--body);
    font-style: italic;
    color: var(--ink-soft);
    font-size: 19px;
    margin-top: 14px;
  }

  /* ---- Layout shells -------------------------------------------------- */
  section { position: relative; }
  .shell { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
  .section-pad { padding: 140px 0; }
  .section-head { text-align: center; margin-bottom: 80px; }

  /* ---- Nav ------------------------------------------------------------ */
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(10, 8, 7, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: background .4s ease, border-color .4s ease, padding .4s ease;
  }
  .nav.scrolled {
    background: rgba(10, 8, 7, 0.92);
    border-bottom-color: var(--gold-line);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 32px;
  }
  .nav-brand {
    font-family: var(--label);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 12px;
    text-decoration: none;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
  }
  .nav-links a {
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 12px;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color .25s ease;
  }
  .nav-links a:hover { color: var(--gold); }
  .nav-burger {
    display: none;
    background: none;
    border: 1px solid var(--gold-line);
    color: var(--gold);
    padding: 10px 12px;
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--gold);
    margin: 4px 0;
  }
  @media (max-width: 900px) {
    .nav-links {
      position: fixed;
      inset: 70px 0 auto 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      background: rgba(10, 8, 7, 0.98);
      border-bottom: 1px solid var(--gold-line);
      padding: 8px 0 16px;
      transform: translateY(-120%);
      transition: transform .35s ease;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a {
      padding: 16px 32px;
      border-top: 1px solid var(--gold-line);
      font-size: 12px;
    }
    .nav-burger { display: block; }
  }

  /* ---- Buttons -------------------------------------------------------- */
  .btn {
    display: inline-block;
    font-family: var(--label);
    font-size: 14px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    padding: 16px 32px;
    text-decoration: none;
    cursor: pointer;
    transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
  }
  .btn--filled {
    background: var(--gold);
    color: #1a120a;
  }
  .btn--filled:hover {
    background: var(--gold-hi);
    border-color: var(--gold-hi);
  }
  .btn--ghost:hover {
    background: rgba(201, 168, 76, 0.08);
    color: var(--gold-hi);
    border-color: var(--gold-hi);
  }
  .btn:active { transform: translateY(1px); }

  /* ---- Hero ----------------------------------------------------------- */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
    text-align: center;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background-image: url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
  }
  .hero-overlay {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse at center, rgba(10,8,7,0.28) 0%, rgba(10,8,7,0.60) 52%, rgba(10,8,7,0.82) 100%),
      linear-gradient(180deg, rgba(10,8,7,0.55) 0%, rgba(10,8,7,0.18) 35%, rgba(10,8,7,0.38) 70%, rgba(10,8,7,0.88) 100%);
  }

  /* rotating decorative rings — full-width, centered behind title */
  .rings {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    width: min(900px, 100vw);
    aspect-ratio: 1 / 1;
  }
  .ring {
    position: absolute;
    inset: 0;
    margin: auto;
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 50%;
  }
  .ring-1 { width: 100%; height: 100%; animation: spin 240s linear infinite; }
  .ring-2 { width: 72%;  height: 72%;  animation: spin 180s linear infinite reverse; border-color: rgba(201,168,76,0.16); border-style: dashed; }
  .ring-3 { width: 46%;  height: 46%;  animation: spin 140s linear infinite; border-color: rgba(201,168,76,0.28); }
  @keyframes spin { to { transform: rotate(360deg); } }

  .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    width: 100%;
  }
  .hero-text { text-align: center; }
  .hero .series-tag { color: var(--gold); }

  .hero-title {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(52px, 8.5vw, 110px);
    line-height: 0.97;
    letter-spacing: 0.015em;
    margin: 26px 0 20px;
    color: var(--ink);
    text-shadow: 0 2px 30px rgba(0,0,0,0.6);
  }
  .hero-title em { font-style: normal; color: var(--gold); }

  .hero-byline {
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: 0.42em;
    font-size: 18px;
    color: var(--ink-soft);
  }
  .hero-divider {
    width: 80px;
    height: 1px;
    background: var(--gold);
    margin: 34px auto 26px;
    opacity: 0.9;
  }
  .hero-tagline {
    font-style: italic;
    color: var(--ink);
    font-size: clamp(18px, 1.6vw, 22px);
    max-width: 520px;
    margin: 0 auto;
  }
  .hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 42px;
    flex-wrap: wrap;
  }

  .hero-scroll {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--gold);
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: 0.42em;
    font-size: 12px;
    text-decoration: none;
  }
  .hero-scroll::after {
    content: "";
    display: block;
    width: 1px;
    height: 36px;
    background: var(--gold);
    margin: 10px auto 0;
    opacity: 0.6;
  }

  /* ---- The Book ------------------------------------------------------- */
  .book {
    background:
      radial-gradient(ellipse at top, rgba(122, 92, 30, 0.10) 0%, transparent 60%),
      var(--bg);
  }
  .book-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 96px;
    align-items: start;
  }
  @media (max-width: 900px) {
    .book-grid { grid-template-columns: 1fr; gap: 56px; }
  }
  .cover-wrap {
    perspective: 1400px;
    text-align: center;
  }
  .cover {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    transition: transform .6s ease;
  }
  .cover:hover { transform: translateY(-6px); }
  .meta {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .meta-cell .label { display: block; margin-bottom: 6px; }
  .meta-cell .val { font-family: var(--body); font-size: 16px; color: var(--ink); }

  .book-title {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(40px, 4.5vw, 60px);
    line-height: 1.05;
    margin: 14px 0 6px;
  }
  .book-title em { font-style: normal; color: var(--gold); }
  .series-line {
    font-family: var(--label);
    font-size: 11px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
  }
  .prose p {
    color: var(--ink-soft);
    margin: 0 0 18px;
  }
  .prose p:first-of-type::first-letter {
    /* no drop cap here per spec — drop cap is in excerpt */
  }
  .fans {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--gold-line);
  }
  .fans .label { display: block; margin-bottom: 16px; }
  .fans-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .tag {
    font-family: var(--body);
    font-style: italic;
    font-size: 15px;
    color: var(--gold);
    padding: 8px 16px;
    border: 1px solid var(--gold-line-strong);
    background: rgba(201, 168, 76, 0.04);
  }

  /* ---- The Three ------------------------------------------------------ */
  .three {
    background:
      linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  }
  .three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  @media (max-width: 900px) {
    .three-grid { grid-template-columns: 1fr; gap: 24px; }
  }
  .character {
    position: relative;
    background: linear-gradient(180deg, rgba(28, 22, 17, 0.85) 0%, rgba(20, 15, 11, 0.85) 100%);
    border: 1px solid var(--gold-line);
    padding: 44px 34px 36px;
    overflow: hidden;
    transition: transform .35s ease, border-color .35s ease;
  }
  .character::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .5s ease;
  }
  .character:hover {
    border-color: var(--gold-line-strong);
    transform: translateY(-3px);
  }
  .character:hover::before { transform: scaleX(1); }
  .character .numeral {
    position: absolute;
    top: 18px; right: 22px;
    font-family: var(--display);
    font-size: 64px;
    color: rgba(201, 168, 76, 0.10);
    line-height: 1;
    user-select: none;
  }
  .character h3 {
    font-family: var(--display);
    font-weight: 300;
    color: var(--gold);
    font-size: 32px;
    line-height: 1.1;
    margin: 0 0 6px;
  }
  .character .role {
    font-family: var(--label);
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 22px;
  }
  .character p {
    color: var(--ink-soft);
    margin: 0 0 24px;
    font-size: 16.5px;
    line-height: 1.65;
  }
  .character .weapon {
    border-top: 1px solid var(--gold-line);
    padding-top: 18px;
    font-style: italic;
    color: var(--ink-mute);
    font-size: 15px;
  }
  .character .weapon strong {
    font-style: normal;
    color: var(--gold);
    font-family: var(--label);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: inline-block;
    margin-right: 8px;
    font-weight: 500;
  }

  /* ---- Excerpt -------------------------------------------------------- */
  .excerpt { background: var(--bg-2); }
  .excerpt-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }
  .excerpt .chapter-label {
    margin-bottom: 32px;
    color: var(--gold);
  }
  .excerpt h2 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(36px, 4vw, 52px);
    margin: 0 0 56px;
    color: var(--ink);
  }
  .excerpt-prose {
    text-align: left;
    border-left: 1px solid var(--gold);
    padding: 8px 0 8px 42px;
    margin-bottom: 56px;
  }
  .excerpt-prose p {
    font-size: 19px;
    line-height: 1.85;
    color: var(--ink-soft);
    margin: 0 0 22px;
  }
  .excerpt-prose p:last-child { margin-bottom: 0; }
  .excerpt-prose p:first-child::first-letter {
    font-family: var(--display);
    font-weight: 400;
    font-size: 80px;
    line-height: 0.85;
    float: left;
    color: var(--gold);
    padding: 6px 14px 0 0;
    margin-top: 4px;
  }

  /* ---- The World ------------------------------------------------------ */
  .world { background: var(--bg); }
  .map-frame {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 10;
    background: #0d0a07;
    border: 1px solid var(--gold-line);
    overflow: hidden;
  }
  .map-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: sepia(0.35) brightness(0.72) contrast(1.08);
    display: block;
  }
  /* corner brackets */
  .corner {
    position: absolute;
    width: 32px; height: 32px;
    border-color: var(--gold);
    border-style: solid;
    border-width: 0;
  }
  .corner.tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
  .corner.tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
  .corner.bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
  .corner.br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }

  /* ---- The Author ----------------------------------------------------- */
  .author { background: var(--bg-2); }
  .author-single {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }
  .author-single .prose p {
    font-size: 19px;
    color: var(--ink-soft);
  }

  /* ---- Join the Company ---------------------------------------------- */
  .join {
    background:
      radial-gradient(ellipse at center, rgba(122, 92, 30, 0.16) 0%, transparent 60%),
      var(--bg);
    text-align: center;
  }
  .join-inner { max-width: 620px; margin: 0 auto; }
  .join h2 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(38px, 4.4vw, 60px);
    margin: 18px 0 18px;
  }
  .join p.lede {
    margin: 0 auto 36px;
    max-width: 520px;
  }
  .join-form {
    display: flex;
    gap: 0;
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid var(--gold);
  }
  .join-form input {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    padding: 16px 20px;
    outline: none;
  }
  .join-form input::placeholder {
    color: var(--ink-mute);
    font-style: italic;
  }
  .join-form button {
    background: var(--gold);
    color: #1a120a;
    border: 0;
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 14px;
    padding: 0 28px;
    cursor: pointer;
    transition: background .25s ease;
  }
  .join-form button:hover { background: var(--gold-hi); }
  .join .fineprint {
    margin-top: 22px;
    color: var(--ink-mute);
    font-size: 14px;
    font-style: italic;
  }
  @media (max-width: 560px) {
    .join-form { flex-direction: column; }
    .join-form button { padding: 16px; }
  }

  /* ---- Footer --------------------------------------------------------- */
  footer {
    background: #06050468;
    border-top: 1px solid var(--gold-line);
    padding: 72px 32px 48px;
    text-align: center;
  }
  footer .f-title {
    font-family: var(--display);
    font-weight: 300;
    font-size: 36px;
    color: var(--ink);
    margin: 0 0 6px;
  }
  footer .f-title em { font-style: normal; color: var(--gold); }
  footer .f-series {
    font-family: var(--label);
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 36px;
  }
  footer .f-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-bottom: 36px;
  }
  footer .f-nav a {
    font-family: var(--label);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
  }
  footer .f-nav a:hover { color: var(--gold); }

  /* Beta reader button in footer nav */
  footer .f-nav a.f-beta-btn {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 18px;
    transition: background .25s ease, color .25s ease;
  }
  footer .f-nav a.f-beta-btn:hover {
    background: var(--gold);
    color: #1a120a;
  }

  /* ---- Modal ---------------------------------------------------------- */
  .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(6, 5, 4, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .modal-overlay.open { opacity: 1; visibility: visible; }
  .modal {
    position: relative;
    max-width: 520px;
    width: 100%;
    background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
    border: 1px solid var(--gold);
    padding: 48px 44px 40px;
    text-align: center;
    transform: translateY(16px);
    transition: transform .35s ease;
    box-shadow: 0 40px 90px rgba(0,0,0,0.7);
  }
  .modal-overlay.open .modal { transform: translateY(0); }
  .modal-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none;
    border: 0;
    color: var(--ink-mute);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease;
  }
  .modal-close:hover { color: var(--gold); }
  .modal-title {
    font-family: var(--display);
    font-weight: 300;
    font-size: 24px;
    line-height: 1.35;
    color: var(--ink);
    margin: 0 0 30px;
  }
  .modal-form {
    display: flex;
    border: 1px solid var(--gold);
  }
  .modal-form input {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    padding: 15px 18px;
    outline: none;
  }
  .modal-form input::placeholder { color: var(--ink-mute); font-style: italic; }
  .modal-form button {
    background: var(--gold);
    color: #1a120a;
    border: 0;
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 12px;
    padding: 0 24px;
    cursor: pointer;
    transition: background .25s ease;
    white-space: nowrap;
  }
  .modal-form button:hover { background: var(--gold-hi); }
  .modal-note {
    font-family: var(--body);
    font-style: italic;
    color: var(--ink-mute);
    font-size: 14px;
    margin: 18px 0 0;
  }
  @media (max-width: 520px) {
    .modal-form { flex-direction: column; }
    .modal-form button { padding: 14px; }
  }
  footer .f-rule {
    width: 60px;
    height: 1px;
    background: var(--gold-line-strong);
    margin: 0 auto 24px;
  }
  footer .f-copy {
    font-family: var(--label);
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }

  /* ---- Signup strip -------------------------------------------------- */
  .signup {
    background: var(--bg);
    border-top: 1px solid var(--gold-line);
    padding: 48px 0;
  }
  .signup-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
  }
  .signup-text {
    font-family: var(--body);
    font-style: italic;
    color: var(--ink-mute);
    font-size: 16px;
    margin: 0;
  }
  .signup-form {
    display: flex;
    border: 1px solid var(--gold-line-strong);
  }
  .signup-form input {
    background: transparent;
    border: 0;
    color: var(--ink);
    font-family: var(--body);
    font-size: 15px;
    padding: 12px 18px;
    outline: none;
    width: 220px;
  }
  .signup-form input::placeholder { color: var(--ink-mute); font-style: italic; }
  .signup-status {
    width: 100%;
    text-align: center;
    font-family: var(--body);
    font-style: italic;
    font-size: 14px;
    color: var(--gold);
    margin: 14px 0 0;
    min-height: 1em;
  }
  .signup-form button {
    background: transparent;
    border: 0;
    border-left: 1px solid var(--gold-line-strong);
    color: var(--gold);
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 11px;
    padding: 0 20px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
  }
  .signup-form button:hover {
    background: var(--gold);
    color: #1a120a;
  }
  .reader-note {
    max-width: 380px;
    margin: 20px auto 0;
    background: rgba(201, 168, 76, 0.05);
    border: 1px solid var(--gold-line);
    padding: 20px 22px;
    text-align: left;
  }
  .reader-note p {
    font-family: var(--body);
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ink-mute);
    margin: 0;
  }
  /* teaser version: single paragraph, faded bottom, centered */
  .excerpt-teaser {
    border-left: 0;
    padding: 0;
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: left;
  }
  .excerpt-teaser p:first-child::first-letter {
    font-family: var(--display);
    font-weight: 400;
    font-size: 80px;
    line-height: 0.85;
    float: left;
    color: var(--gold);
    padding: 6px 14px 0 0;
    margin-top: 4px;
  }
  .excerpt-inner #readerOpen { cursor: pointer; }

  /* Beta reader call-to-action below Read On */
  .beta-cta {
    margin-top: 54px;
    padding-top: 46px;
    border-top: 1px solid var(--gold-line);
    text-align: center;
  }
  .beta-cta-q {
    font-family: var(--display);
    font-style: italic;
    font-size: clamp(23px, 2.5vw, 32px);
    line-height: 1.4;
    color: var(--ink);
    max-width: 640px;
    margin: 0 auto 34px;
    text-wrap: balance;
  }
  .btn-beta {
    display: inline-block;
    font-family: var(--label);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #1a120a;
    background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 100%);
    border: 1px solid var(--gold-hi);
    padding: 22px 50px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 0 1px rgba(201,168,76,0.3), 0 0 32px rgba(201,168,76,0.22);
    transition: transform .25s ease, box-shadow .25s ease;
    animation: betaPulse 2.8s ease-in-out infinite;
  }
  @keyframes betaPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(201,168,76,0.30), 0 0 28px rgba(201,168,76,0.18); }
    50%      { box-shadow: 0 0 0 1px rgba(201,168,76,0.55), 0 0 52px rgba(201,168,76,0.42); }
  }
  .btn-beta:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #f0d489 0%, var(--gold-hi) 100%);
    box-shadow: 0 0 0 1px rgba(224,194,112,0.7), 0 0 64px rgba(201,168,76,0.55);
  }
  .btn-beta:active { transform: translateY(0); }
  @media (prefers-reduced-motion: reduce) {
    .btn-beta { animation: none; }
  }

  /* ---- Chapter Reader Modal ------------------------------------------ */
  .reader-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(6, 5, 4, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .reader-overlay.open { opacity: 1; visibility: visible; }
  .reader {
    position: relative;
    width: 100%;
    max-width: 760px;
    height: 88vh;
    max-height: 920px;
    background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
    border: 1px solid var(--gold);
    display: flex;
    flex-direction: column;
    transform: translateY(18px);
    transition: transform .35s ease;
    box-shadow: 0 40px 100px rgba(0,0,0,0.75);
  }
  .reader-overlay.open .reader { transform: translateY(0); }

  .reader-bar {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    border-bottom: 1px solid var(--gold-line);
    background: rgba(10, 8, 7, 0.6);
    flex: 0 0 auto;
  }
  .reader-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .reader-tab {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--ink-mute);
    font-family: var(--label);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    padding: 18px 22px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .25s ease, border-color .25s ease;
  }
  .reader-tab:hover { color: var(--ink-soft); }
  .reader-tab.is-active {
    color: var(--gold);
    border-bottom-color: var(--gold);
  }
  .reader-close {
    background: none;
    border: 0;
    border-left: 1px solid var(--gold-line);
    color: var(--ink-mute);
    font-size: 26px;
    line-height: 1;
    padding: 0 20px;
    cursor: pointer;
    transition: color .2s ease;
    flex: 0 0 auto;
  }
  .reader-close:hover { color: var(--gold); }

  .reader-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 44px 52px 56px;
    scroll-behavior: smooth;
  }
  .reader-chapter { display: none; }
  .reader-chapter.is-active { display: block; }
  .reader-chapter-head {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gold-line);
  }
  .reader-chapter-head .label { display: block; margin-bottom: 10px; }
  .reader-chapter-head h3 {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(30px, 5vw, 44px);
    color: var(--ink);
    margin: 0;
  }
  .reader-chapter p {
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.85;
    color: var(--ink-soft);
    margin: 0 0 22px;
  }
  .reader-chapter p:first-of-type::first-letter {
    font-family: var(--display);
    font-weight: 400;
    font-size: 72px;
    line-height: 0.85;
    float: left;
    color: var(--gold);
    padding: 4px 12px 0 0;
    margin-top: 4px;
  }
  .reader-chapter .reader-pending::first-letter {
    font-size: inherit; float: none; color: inherit; padding: 0; margin: 0;
  }
  .reader-pending {
    font-style: italic;
    color: var(--ink-mute);
    text-align: center;
    padding: 40px 0;
  }
  .reader-break {
    text-align: center;
    color: var(--gold);
    letter-spacing: 0.6em;
    margin: 14px 0 30px;
    font-size: 16px;
    user-select: none;
  }
  /* scrollbar */
  .reader-body::-webkit-scrollbar { width: 10px; }
  .reader-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
  .reader-body::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 0; }

  @media (max-width: 640px) {
    .reader-overlay { padding: 0; }
    .reader { height: 100vh; max-height: none; border: 0; }
    .reader-body { padding: 30px 22px 44px; }
    .reader-chapter p { font-size: 17px; }
    .reader-tab { padding: 16px 16px; font-size: 10px; }
  }

  ::selection { background: var(--gold); color: #1a120a; }
