/* ============================================
   FRANK & INK — Main Stylesheet (Light/Pastel Theme)
   ============================================ */

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

:root {
  --red:        #C00000;
  --red-dark:   #8B0000;
  --red-light:  #fde8e8;
  --gold:       #C9A84C;
  --gold-light: #fdf6e3;

  /* Pastel palette */
  --bg-main:    #faf8f5;
  --bg-alt:     #f3eff9;
  --bg-card:    #ffffff;
  --bg-hero:    #fff5f5;

  --text-dark:  #1e1a2e;
  --text-mid:   #4a4560;
  --text-soft:  #7a758f;
  --text-light: #b0aac0;

  --border:     #e8e2f0;
  --shadow-sm:  0 2px 12px rgba(60,40,100,0.07);
  --shadow-md:  0 8px 32px rgba(60,40,100,0.12);
  --shadow-lg:  0 20px 56px rgba(60,40,100,0.16);

  --white:      #ffffff;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', sans-serif;
  --font-alt:   'Oswald', sans-serif;
  --radius:     16px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-alt);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,0,0,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}
.btn-outline:hover {
  background: var(--text-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  font-family: var(--font-alt);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--red-light);
  transform: translateY(-2px);
}

/* ============================================
   HEADER / NAV
   ============================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
#main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
}
.logo-frank { color: var(--text-dark); }
.logo-amp   { color: var(--red); margin: 0 3px; }
.logo-ink   { color: var(--gold); font-style: italic; }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-alt);
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(160deg, #fff5f5 0%, #f5f0ff 40%, #f0f7ff 70%, #fffaf0 100%);
  overflow: hidden;
  padding: 100px 24px 60px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(192,0,0,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 85%, rgba(155,89,182,0.06) 0%, transparent 50%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(192,0,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}
.hero-tagline {
  font-family: var(--font-alt);
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.hero-subtitle {
  font-family: var(--font-alt);
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.section-header p {
  color: var(--text-soft);
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.section-label {
  font-family: var(--font-alt);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}

/* ============================================
   SERIES SECTION
   ============================================ */
.series-section {
  padding: 100px 0;
  background: var(--bg-alt);
}
.series-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.series-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.series-card:hover {
  transform: translateY(-6px);
  border-color: rgba(192,0,0,0.2);
  box-shadow: var(--shadow-md);
}
.series-card-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: #ffffff;
}
.series-card h3 {
  font-family: var(--font-alt);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  color: var(--text-dark);
}
/* THE GRID series card title specifically */
.series-card[data-series="the-grid"] h3 {
  color: var(--red);
}
.series-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 16px;
}
.series-count {
  font-family: var(--font-alt);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}

/* ============================================
   BOOKS SECTION
   ============================================ */
.books-section {
  padding: 100px 0;
  background: var(--bg-main);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 56px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-soft);
  font-family: var(--font-alt);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(192,0,0,0.2);
}

/* Books Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
.book-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(192,0,0,0.15);
}
.book-card.hidden { display: none; }

.book-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  padding: 4px 12px;
  border-radius: 50px;
  font-family: var(--font-alt);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 600;
}

.book-cover-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f7f5f2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.5s ease;
  padding: 0;
}
.book-card:hover .book-cover {
  transform: scale(1.04);
}
.book-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,26,46,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}
.book-card:hover .book-overlay { opacity: 1; }
.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #FF9900;
  color: #111;
  border-radius: 50px;
  font-family: var(--font-alt);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-amazon:hover {
  background: #e88800;
  transform: scale(1.05);
}

.book-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
  line-height: 1.4;
}
.book-desc {
  font-size: 0.83rem;
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 6px;
}
.book-type {
  font-family: var(--font-alt);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: #FF9900;
  color: #111;
  border-radius: 8px;
  font-family: var(--font-alt);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition);
  width: 100%;
}
.btn-buy:hover {
  background: #e88800;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,153,0,0.3);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 100px 0;
  background: var(--bg-alt);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--text-dark);
}
.about-text p {
  color: var(--text-mid);
  margin-bottom: 20px;
  font-size: 0.97rem;
  line-height: 1.8;
}
.about-stats {
  display: flex;
  gap: 32px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-alt);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* About image stack */
.about-image-stack {
  position: relative;
  height: 480px;
}
.about-img {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: contain;
  object-position: center center;
  background: var(--bg-alt);
}
.about-img-1 {
  width: 52%;
  top: 0; left: 0;
  aspect-ratio: 3/4;
  z-index: 1;
}
.about-img-2 {
  width: 52%;
  top: 30px; right: 0;
  aspect-ratio: 3/4;
  z-index: 2;
  border: 3px solid var(--red);
}
.about-img-3 {
  width: 38%;
  bottom: 0; left: 20%;
  aspect-ratio: 3/4;
  z-index: 3;
  border: 3px solid var(--gold);
}

/* ============================================
   COMING SOON BANNER
   ============================================ */
.coming-soon-banner {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  padding: 48px 0;
}
.banner-content {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.banner-icon {
  font-size: 2.5rem;
  opacity: 0.9;
  flex-shrink: 0;
  color: var(--white);
}
.banner-content > div { flex: 1; min-width: 200px; }
.banner-content h3 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--white);
}
.banner-content p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: 100px 0;
  background: var(--bg-main);
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192,0,0,0.25);
  box-shadow: var(--shadow-md);
}
.contact-card i {
  font-size: 2rem;
  color: var(--red);
  margin-bottom: 16px;
}
.contact-card h4 {
  font-family: var(--font-alt);
  letter-spacing: 2px;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-soft);
}
.contact-card p,
.contact-card a {
  font-size: 0.95rem;
  color: var(--text-dark);
}
.contact-card a:hover { color: var(--red); }

/* ============================================
   FOOTER
   ============================================ */
#site-footer {
  background: var(--text-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo .nav-logo {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.footer-logo .logo-frank { color: #ffffff; }
.footer-logo .logo-amp   { color: var(--red); }
.footer-logo .logo-ink   { color: var(--gold); }
.footer-logo p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 280px;
}
.footer-links h4,
.footer-series h4 {
  font-family: var(--font-alt);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer-links ul li,
.footer-series ul li {
  margin-bottom: 12px;
}
.footer-links a,
.footer-series a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-series a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 32px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-alt);
  letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-image-stack { height: 380px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  #main-nav { position: relative; }

  .hero { padding: 120px 24px 80px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .banner-content { flex-direction: column; text-align: center; }
  .about-image-stack { display: none; }
}
@media (max-width: 560px) {
  .series-cards { grid-template-columns: 1fr 1fr; }
  .books-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
  .footer-inner { grid-template-columns: 1fr; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 6px 14px; font-size: 0.72rem; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
