/* ============================================
   LESLIE JANE BOOKS — Design System & Styles
   lesliejanebooks.com
   ============================================ */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

/* --- Custom Properties --- */
:root {
  /* Backgrounds */
  --bg-deepest:     #07070c;
  --bg-dark:        #0a0a12;
  --bg-elevated:    #12121e;
  --bg-surface:     #1a1a2e;

  /* Purple — witch frequency */
  --purple-glow:    #a855f7;
  --purple-primary: #8B5CF6;
  --purple-muted:   #6D28D9;
  --purple-deep:    #4C1D95;

  /* Gold — wizard frequency */
  --gold-bright:    #E5B84C;
  --gold-primary:   #D4A843;
  --gold-muted:     #B8943B;
  --gold-deep:      #8B6914;

  /* Text */
  --text-primary:   #F0EDE6;
  --text-secondary: #A8A4B8;
  --text-dim:       #6B6880;

  /* Effects */
  --divider:        rgba(139, 92, 246, 0.15);
  --glow-purple:    0 0 30px rgba(139, 92, 246, 0.3);
  --glow-gold:      0 0 30px rgba(212, 168, 67, 0.3);

  /* Typography scale (fluid) */
  --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.6vw, 1.375rem);
  --text-xl:   clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
  --text-2xl:  clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --text-3xl:  clamp(2.25rem, 1.5rem + 3.5vw, 3.5rem);
  --text-hero: clamp(2.75rem, 1.8rem + 4.5vw, 5rem);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --section-py:    clamp(4rem, 3rem + 5vw, 8rem);
  --container-px:  clamp(1rem, 0.5rem + 3vw, 4rem);
  --container-max: 1200px;
}

/* --- Base Styles --- */
body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg-deepest);
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Inter', Arial, sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--gold-primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--gold-bright);
  transform: scale(1.02);
  box-shadow: var(--glow-gold);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--purple-primary);
}

.btn-secondary:hover {
  background: var(--purple-primary);
  color: var(--text-primary);
  box-shadow: var(--glow-purple);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(7, 7, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--divider);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-primary);
  transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 12, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
}

.nav-overlay.active {
  display: flex;
}

.nav-overlay a {
  font-family: 'Cinzel', serif;
  font-size: var(--text-2xl);
  color: var(--text-primary);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.nav-overlay.active a {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.active a:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.active a:nth-child(2) { transition-delay: 0.2s; }
.nav-overlay.active a:nth-child(3) { transition-delay: 0.3s; }
.nav-overlay.active a:nth-child(4) { transition-delay: 0.4s; }

.nav-overlay a:hover {
  color: var(--gold-primary);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-deepest);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(139, 92, 246, 0.1), transparent 55%),
    radial-gradient(ellipse at 75% 50%, rgba(212, 168, 67, 0.07), transparent 55%);
  animation: ambientGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ambientGlow {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 6rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-series {
  font-family: 'Cinzel', serif;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--gold-primary);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-title {
  font-size: var(--text-hero);
  color: var(--text-primary);
  line-height: 1.05;
}

.hero-hook {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.hero-tropes {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: 0.03em;
  margin-top: var(--space-sm);
}

.hero-cover {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-cover img {
  max-width: 380px;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 40px rgba(139, 92, 246, 0.35))
    drop-shadow(0 0 80px rgba(212, 168, 67, 0.15));
  border-radius: 4px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold-primary));
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(10px); opacity: 1; }
}

/* --- Books Section --- */
.books {
  padding: var(--section-py) 0;
  background: var(--bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  font-size: var(--text-2xl);
  color: var(--gold-primary);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
}

.section-header p {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.book-card {
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: var(--space-xl);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.15);
}

.book-card-cover {
  margin-bottom: var(--space-lg);
}

.book-card-cover img {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 3px;
  transition: filter 0.3s ease;
}

.book-card:hover .book-card-cover img {
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
}

.book-card-number {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.book-card-title {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.book-card-blurb {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.spice-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.spice-label {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spice-flames {
  display: flex;
  gap: 3px;
}

.flame {
  width: 16px;
  height: 16px;
  position: relative;
}

.flame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-surface);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 23c-3.9 0-7-3.1-7-7 0-3.1 2-5.7 3.2-7.2.5-.6 1.5-.3 1.5.5v1.5c0 .8.5 1.5 1.2 1.8.4.2.9.1 1.2-.2C13.8 10.6 16 7.5 16 4c0-.7.8-1.1 1.3-.6C19.6 5.7 22 9.5 22 13c0 5.5-4.5 10-10 10z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 23c-3.9 0-7-3.1-7-7 0-3.1 2-5.7 3.2-7.2.5-.6 1.5-.3 1.5.5v1.5c0 .8.5 1.5 1.2 1.8.4.2.9.1 1.2-.2C13.8 10.6 16 7.5 16 4c0-.7.8-1.1 1.3-.6C19.6 5.7 22 9.5 22 13c0 5.5-4.5 10-10 10z'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.flame.lit::before {
  background: linear-gradient(to top, var(--gold-primary), #ef4444);
}

.badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  border-radius: 2px;
}

.badge-available {
  background: var(--gold-primary);
  color: var(--bg-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.badge-available:hover {
  background: var(--gold-bright);
  transform: scale(1.02);
  box-shadow: var(--glow-gold);
}

.badge-coming {
  border: 1px solid var(--purple-muted);
  color: var(--purple-primary);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.badge-coming:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--purple-primary);
  box-shadow: var(--glow-purple);
}

.badge-coming-later {
  border: 1px solid rgba(109, 40, 217, 0.4);
  color: var(--text-dim);
  background: transparent;
}

/* --- Newsletter Section --- */
.newsletter {
  padding: var(--section-py) 0;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.04), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 168, 67, 0.03), transparent 50%);
  pointer-events: none;
}

.newsletter-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-inner h2 {
  font-size: var(--text-2xl);
  color: var(--gold-primary);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
}

.newsletter-inner > p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.875rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-dim);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--purple-primary);
}

.newsletter-form .btn {
  white-space: nowrap;
}

.newsletter-incentive {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--text-dim);
}

.newsletter-success {
  display: none;
  padding: var(--space-xl);
  color: var(--gold-primary);
  font-family: 'Cinzel', serif;
  font-size: var(--text-lg);
}

.newsletter-success.visible {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.newsletter-error {
  color: #ef4444;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  margin-top: var(--space-sm);
  display: none;
}

.newsletter-error.visible {
  display: block;
}

/* --- About Section --- */
.about {
  padding: var(--section-py) 0;
  background: var(--bg-dark);
}

.about-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-photo {
  display: flex;
  justify-content: center;
}

.about-logo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  filter:
    drop-shadow(0 0 20px rgba(139, 92, 246, 0.2))
    drop-shadow(0 0 40px rgba(212, 168, 67, 0.1));
}

.about-text h2 {
  font-size: var(--text-2xl);
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
}

.about-text p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about-text a {
  color: var(--purple-primary);
  transition: color 0.3s ease;
}

.about-text a:hover {
  color: var(--purple-glow);
}

/* --- Contact Section --- */
.contact {
  padding: var(--section-py) 0;
  background: var(--bg-elevated);
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact h2 {
  font-size: var(--text-2xl);
  color: var(--gold-primary);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xl);
}

.contact-intro {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.contact-email {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-base);
  color: var(--purple-primary);
  letter-spacing: 0.05em;
  padding: 0.875rem 2rem;
  border: 1px solid var(--purple-muted);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.contact-email:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: var(--purple-primary);
  box-shadow: var(--glow-purple);
}

/* --- Footer --- */
.footer {
  padding: var(--space-2xl) 0;
  background: var(--bg-deepest);
  border-top: 1px solid var(--divider);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: var(--text-sm);
  color: var(--gold-primary);
  letter-spacing: 0.15em;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-dim);
}

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

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

/* --- Retailer Modal --- */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: var(--space-2xl);
  max-width: 440px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-xs);
}

.modal .modal-subtitle {
  font-family: 'Cinzel', serif;
  font-size: var(--text-sm);
  color: var(--gold-primary);
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
}

.retailer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.retailer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--divider);
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.retailer-link:hover {
  border-color: var(--purple-primary);
  background: rgba(139, 92, 246, 0.06);
}

.retailer-link span:last-child {
  color: var(--text-dim);
  font-size: 0.75rem;
}

/* Hero load animations */
.hero-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-anim.loaded {
  opacity: 1;
  transform: translateY(0);
}

.hero-anim-cover {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-anim-cover.loaded {
  opacity: 1;
  transform: scale(1);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-anim, .hero-anim-cover { opacity: 1; transform: none; }
}

/* --- Responsive --- */

/* Mobile: base styles above */

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .hero-cover { order: -1; }

  .hero-cover img {
    max-width: 260px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-tropes {
    text-align: center;
  }

  .book-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo { order: -1; }

  .about-logo {
    width: 200px;
    height: 200px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .hero-cover img {
    max-width: 300px;
  }

  .book-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .book-card-cover img {
    max-width: 180px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero-cover img {
    max-width: 380px;
  }
}

/* Screen reader only */
.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(--purple-primary);
  outline-offset: 2px;
}

/* Body scroll lock */
body.modal-open {
  overflow: hidden;
}
