/* ========================================
   THE TRENT WILLIAMS FILES
   Neo-Noir Design System
   ======================================== */

/* CSS Variables - Dark Mode (Default) */
:root {
    /* Colors - Noir Palette */
    --color-bg: #0a0a0f;
    --color-bg-rgb: 10, 10, 15;
    --color-bg-elevated: #12121a;
    --color-bg-card: #1a1a24;
    --color-surface: #252533;
    --color-bg-translucent: rgba(10, 10, 15, 0.95);
    
    --color-text: #f5f5f0;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #6b6b6b;
    --color-text-inverse: #0a0a0f;
    
    /* Accent Colors */
    --color-accent: #c41e3a;
    --color-accent-hover: #e63950;
    --color-accent-subtle: rgba(196, 30, 58, 0.1);
    
    --color-gold: #d4af37;
    --color-gold-subtle: rgba(212, 175, 55, 0.1);
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.65vw, 1.375rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --text-4xl: clamp(2.5rem, 2rem + 3vw, 6rem);
    
    /* Spacing */
    --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --space-2xl: clamp(3rem, 2rem + 5vw, 8rem);
    
    /* Layout */
    --max-width: 1400px;
    --content-width: 720px;
    --nav-height: 80px;
    --reader-nav-height: 70px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Borders */
    --border-radius: 4px;
    --border-radius-lg: 8px;
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    --border-accent: 1px solid rgba(196, 30, 58, 0.3);
}

/* Light Mode Variables */
[data-theme="light"] {
    --color-bg: #faf9f6;
    --color-bg-rgb: 250, 249, 246;
    --color-bg-elevated: #ffffff;
    --color-bg-card: #f5f4f1;
    --color-surface: #ebeae7;
    --color-bg-translucent: rgba(250, 249, 246, 0.95);
    
    --color-text: #1a1a1a;
    --color-text-secondary: #5a5a5a;
    --color-text-muted: #8a8a8a;
    --color-text-inverse: #faf9f6;
    
    --border-subtle: 1px solid rgba(0, 0, 0, 0.08);
    --border-accent: 1px solid rgba(196, 30, 58, 0.3);
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color var(--transition-slow), color var(--transition-slow);
    min-height: 100vh;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  font-weight: 500;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-sm);
  left: var(--space-md);
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --color-text-secondary: #cccccc;
        --border-subtle: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    [data-theme="light"] {
        --color-text-secondary: #333333;
        --border-subtle: 1px solid rgba(0, 0, 0, 0.3);
    }
}

/* ========================================
   GRAIN OVERLAY (Noir Texture)
   ======================================== */

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    /* Static noise tile — avoids expensive SVG feTurbulence on mobile */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Crect width='160' height='160' fill='%23000'/%3E%3Ccircle cx='12' cy='28' r='1' fill='%23fff' opacity='.35'/%3E%3Ccircle cx='48' cy='8' r='1' fill='%23fff' opacity='.25'/%3E%3Ccircle cx='90' cy='40' r='1' fill='%23fff' opacity='.3'/%3E%3Ccircle cx='130' cy='18' r='1' fill='%23fff' opacity='.2'/%3E%3Ccircle cx='24' cy='70' r='1' fill='%23fff' opacity='.28'/%3E%3Ccircle cx='70' cy='95' r='1' fill='%23fff' opacity='.22'/%3E%3Ccircle cx='110' cy='78' r='1' fill='%23fff' opacity='.32'/%3E%3Ccircle cx='150' cy='110' r='1' fill='%23fff' opacity='.18'/%3E%3Ccircle cx='40' cy='130' r='1' fill='%23fff' opacity='.26'/%3E%3Ccircle cx='95' cy='145' r='1' fill='%23fff' opacity='.2'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 160px 160px;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-header {
    margin-bottom: var(--space-xl);
}

.section-header.centered {
    text-align: center;
}

.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.section-title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-text);
}

/* ========================================
   NAVIGATION
   ======================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: linear-gradient(to bottom, var(--color-bg) 0%, transparent 100%);
    transition: background var(--transition-base);
}

.main-nav.scrolled {
    background: var(--color-bg-translucent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-subtle);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.logo {
    display: flex;
    flex-direction: column;
    font-family: var(--font-serif);
    line-height: 1;
    z-index: 1001;
}

.logo-line {
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.logo-main {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
    margin: 0.1em 0;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    z-index: 1001;
}

.menu-line {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-text);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    position: relative;
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Theme Toggle */
.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: block;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-md);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Full-bleed cover art — cropped to the man figure */
.hero-image {
    position: absolute;
    inset: 0;
    background-color: #050508;
    background-image: url('../assets/sydney-park-hero.jpg');
    background-size: cover;
    background-position: 35% 70%;
    background-repeat: no-repeat;
    opacity: 0.55;
}

/* Soft vignette only — no heavy crimson blob */
.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(5, 5, 8, 0.55) 0%,
            rgba(10, 10, 15, 0.72) 45%,
            var(--color-bg) 100%
        ),
        radial-gradient(ellipse at 50% 80%, rgba(196, 30, 58, 0.08) 0%, transparent 55%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.title-series {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 1.5rem + 4vw, 4.5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.title-book {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--color-gold);
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--color-text-secondary);
    max-width: 540px;
    margin: 0 auto var(--space-xl);
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-md) var(--space-lg);
}

.hero-chapters-link {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: underline;
    text-underline-offset: 0.3em;
    transition: color var(--transition-fast);
}

.hero-chapters-link:hover {
    color: var(--color-text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-accent);
}

/* ========================================
   BOOK INFO SECTION
   ======================================== */

.book-info {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-elevated);
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

.book-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

/* Book Cover Visual */
.book-visual {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-lg));
}

.book-cover {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0;
    aspect-ratio: 2 / 3;
    border: var(--border-subtle);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    background: var(--color-bg-card);
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 70%;
    display: block;
}

/* Book Details */
.book-details {
    padding-top: var(--space-md);
}

.book-synopsis {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.book-synopsis p + p {
    margin-top: var(--space-md);
}

.book-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md) var(--space-lg);
    border-top: var(--border-subtle);
    padding-top: var(--space-lg);
}

.meta-item {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.meta-label {
    display: block;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.meta-value {
    display: block;
    font-weight: 500;
    color: var(--color-text);
}

/* ========================================
   CHAPTERS SECTION
   ======================================== */

.chapters-section {
    padding: var(--space-2xl) 0;
}

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 820px;
    margin: 0 auto;
    border-top: var(--border-subtle);
}

.chapter-card {
    position: relative;
    background: transparent;
    border: none;
    border-bottom: var(--border-subtle);
    border-radius: 0;
    overflow: hidden;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.chapter-card:hover {
    background: rgba(196, 30, 58, 0.04);
    border-color: rgba(196, 30, 58, 0.35);
}

.chapter-card.chapter-soon {
    opacity: 0.6;
}

.chapter-card.chapter-soon:hover {
    background: transparent;
    border-color: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.chapter-link {
    display: grid;
    grid-template-columns: 3.5rem 1fr auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md) 0;
    min-height: 56px;
}

.chapter-number {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-accent);
    opacity: 0.75;
    line-height: 1;
    min-width: 0;
    text-align: right;
}

.chapter-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.chapter-title {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
}

.chapter-excerpt {
    display: none;
}

.chapter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 0;
}

.chapter-status {
    color: var(--color-accent);
}

.chapter-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.chapter-arrow svg {
    width: 18px;
    height: 18px;
}

.chapter-card:hover .chapter-arrow {
    color: var(--color-accent);
    transform: translateX(3px);
}

.soon-badge {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    border: 1px solid var(--color-text-muted);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
}

/* ========================================
   CHARACTERS SECTION
   ======================================== */

.characters-section {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-elevated);
    border-top: var(--border-subtle);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl) var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.character-card {
    text-align: left;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.character-card:hover {
    transform: none;
}

.character-avatar {
    width: 64px;
    height: 64px;
    margin: 0 0 var(--space-md);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-surface), var(--color-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(196, 30, 58, 0.45);
}

.avatar-placeholder {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-accent);
}

.character-name {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.character-role {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.character-brief {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    padding: var(--space-2xl) 0;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.about-text p + p {
    margin-top: var(--space-md);
}

/* ========================================
   FOOTER
   ======================================== */

.main-footer {
    padding: var(--space-xl) 0;
    background: var(--color-bg-elevated);
    border-top: var(--border-subtle);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: var(--border-subtle);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-nav {
    display: flex;
    gap: var(--space-lg);
}

.footer-nav a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.content-warning {
    font-style: italic;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .book-grid {
        grid-template-columns: 240px 1fr;
        gap: var(--space-xl);
    }
}

/* Mobile */
@media (min-width: 0) and (max-width: 768px) {
  /* Mobile First Base */
    :root {
        --nav-height: 70px;
    }
    
    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-xl);
        padding: var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
    
    .nav-link {
        font-size: var(--text-xl);
    }
    
    /* Hero */
    .hero-content {
        padding-top: var(--nav-height);
    }

    .hero-image {
        opacity: 0.45;
        background-position: 30% 75%;
    }

    .hero-gradient {
        background:
            linear-gradient(
                to bottom,
                rgba(5, 5, 8, 0.65) 0%,
                rgba(10, 10, 15, 0.8) 50%,
                var(--color-bg) 100%
            );
    }

    .grain-overlay {
        display: none;
    }
    
    .title-series {
        font-size: clamp(1.85rem, 8vw, 2.75rem);
    }
    
    /* Book Grid */
    .book-grid {
        grid-template-columns: 1fr;
    }
    
    .book-visual {
        position: relative;
        top: 0;
        max-width: 240px;
        margin: 0 auto var(--space-lg);
    }

    .book-cover {
        max-width: 240px;
        margin: 0 auto;
    }
    
    /* Chapter rows keep numbers on mobile */
    .chapter-link {
        grid-template-columns: 2.5rem 1fr auto;
        gap: var(--space-sm);
        padding: var(--space-sm) 0;
    }
    
    .chapter-number {
        display: block;
        font-size: var(--text-base);
        text-align: left;
    }

    .chapter-meta .chapter-read-time {
        display: none;
    }

    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 12px;
    }
    
    /* Footer */
    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile */
@media (min-width: 0) and (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-chapters-link {
        padding: var(--space-sm) 0;
    }
    
    .book-meta {
        grid-template-columns: 1fr;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .main-nav,
    .grain-overlay,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .chapter-article {
        max-width: 100% !important;
    }
}
