/* ════════════════════════════════════════════
   SKILL CREATIVE — Blue & Grey Edition
   Palette:
     --deep:     #0d1b3e  (midnight navy — header/footer)
     --ocean:    #1a4b8c  (rich blue — primary interactive)
     --sky:      #2e86de  (bright blue — accent)
     --electric: #5eb8ff  (light blue — highlights)
     --silver:   #f2f4f7  (pale grey — alt sections)
     --cloud:    #e4e8ef  (mid grey — rule/borders)
     --slate:    #8a96a8  (muted grey text)
     --white:    #ffffff  (page background)
     --ink:      #1c2639  (near-black navy for body text)
   ════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --deep:     #0d1b3e;
  --ocean:    #1a4b8c;
  --sky:      #2e86de;
  --electric: #5eb8ff;
  --silver:   #f2f4f7;
  --cloud:    #e4e8ef;
  --slate:    #8a96a8;
  --white:    #ffffff;
  --ink:      #1c2639;
  --radius:   6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── HEADER / BANNER ─────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(13,27,62,0.35);
}

.banner {
  background: linear-gradient(120deg, #0d1b3e 0%, #1a3a7a 40%, #0d3060 70%, #0a1a3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px 24px 16px;
  border-bottom: 2px solid var(--electric);
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '✦  ·  ✧  ·  ★  ·  ✦  ·  ✧  ·  ★  ·  ✦  ·  ✧  ·  ★  ·  ✦  ·  ✧  ·  ★  ·  ✦  ·  ✧';
  position: absolute;
  top: 6px; left: 0;
  width: 200%;
  font-size: 0.6rem;
  color: rgba(94, 184, 255, 0.22);
  letter-spacing: 0.5em;
  animation: drift 28s linear infinite;
  pointer-events: none;
  white-space: nowrap;
}

.banner::after {
  content: '·  ✧  ·  ✦  ·  ★  ·  ✧  ·  ✦  ·  ★  ·  ✧  ·  ✦  ·  ★  ·  ✧  ·  ✦  ·  ★  ·  ✧  ·';
  position: absolute;
  bottom: 10px; left: -10%;
  width: 200%;
  font-size: 0.55rem;
  color: rgba(94, 184, 255, 0.12);
  letter-spacing: 0.6em;
  animation: drift 36s linear infinite reverse;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.banner-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: #fff;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 30px rgba(94,184,255,0.35);
}

.banner-icon {
  color: var(--electric);
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
  animation: pulse-icon 3s ease-in-out infinite;
}
.banner-icon:last-child { animation-delay: 1.5s; }

@keyframes pulse-icon {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.15); }
}

/* ─── NAV ─────────────────────────────────── */

.nav {
  background: var(--silver);
  border-bottom: 1px solid var(--cloud);
  padding: 0 16px;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  display: block;
  padding: 12px 20px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sky);
  border-bottom-color: var(--sky);
}

/* ─── HOME PAGE ───────────────────────────── */

.home-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px;
  background: linear-gradient(150deg, var(--white) 0%, var(--silver) 60%, #dde3ec 100%);
  position: relative;
  overflow: hidden;
}

.home-main::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,134,222,0.07) 0%, transparent 70%);
  top: -120px; right: -100px;
  pointer-events: none;
}

.home-main::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94,184,255,0.06) 0%, transparent 70%);
  bottom: -60px; left: -60px;
  pointer-events: none;
}

.home-hero {
  text-align: center;
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.home-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
  font-weight: 600;
}

.home-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--deep);
  margin-bottom: 22px;
}

.home-headline em {
  font-style: italic;
  color: var(--sky);
}

.home-sub {
  font-size: 1.05rem;
  color: var(--slate);
  margin-bottom: 40px;
  line-height: 1.75;
}

.home-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--sky) 0%, var(--ocean) 100%);
  color: #fff;
  text-decoration: none;
  padding: 14px 38px;
  border-radius: 40px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(46,134,222,0.35);
  transition: box-shadow 0.2s, transform 0.18s;
}

.home-cta:hover {
  box-shadow: 0 6px 28px rgba(46,134,222,0.5);
  transform: translateY(-2px);
}

/* ─── PAGE TITLE BAR ──────────────────────── */

.page-title-bar {
  background: var(--silver);
  border-bottom: 1px solid var(--cloud);
  padding: 28px 40px 22px;
}

.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--deep);
  letter-spacing: 0.04em;
}

/* ─── HORIZONTAL SCROLL SHELF ─────────────── */

.scroll-shelf-wrapper {
  background: var(--silver);
  padding: 28px 36px 36px;
  border-bottom: 1px solid var(--cloud);
}

.scroll-shelf {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-shelf::-webkit-scrollbar { height: 5px; }
.scroll-shelf::-webkit-scrollbar-track { background: var(--cloud); border-radius: 3px; }
.scroll-shelf::-webkit-scrollbar-thumb { background: var(--sky); border-radius: 3px; }

.shelf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 115px;
  transition: transform 0.22s;
}

.shelf-item:hover { transform: translateY(-6px); }

.shelf-cover {
  width: 90px;
  height: 122px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 3px 5px 16px rgba(13,27,62,0.22);
  background: var(--ocean);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: box-shadow 0.22s;
}

.shelf-item:hover .shelf-cover {
  box-shadow: 5px 10px 24px rgba(46,134,222,0.35);
}

.shelf-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-cover { background: var(--cover-color, var(--ocean)); }

.cover-fallback-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 8px;
  line-height: 1.4;
  pointer-events: none;
}

.shelf-title {
  font-size: 0.78rem;
  color: var(--ocean);
  text-align: center;
  line-height: 1.3;
  font-weight: 600;
}

/* ─── SECTION DIVIDER ─────────────────────── */

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 36px 40px 0;
  background: var(--white);
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cloud);
}

.section-divider span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  font-style: italic;
}

/* ─── BOOK DETAIL SECTIONS ────────────────── */

.book-detail {
  background: var(--white);
  padding: 64px 40px;
  border-bottom: 1px solid var(--cloud);
}

.book-detail--alt {
  background: var(--silver);
}

.book-detail-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.book-detail-image {
  position: sticky;
  top: 110px;
}

.detail-cover-img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 8px 14px 40px rgba(13,27,62,0.22);
  display: block;
}

.cover-3d-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, var(--cover-color, var(--ocean)), color-mix(in srgb, var(--cover-color, var(--ocean)) 70%, #000));
  border-radius: 6px;
  box-shadow: 8px 14px 40px rgba(13,27,62,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cover-3d-placeholder span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
  line-height: 1.5;
}

.detail-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--deep);
  line-height: 1.2;
  margin-bottom: 8px;
}

.detail-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--sky);
  font-style: italic;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cloud);
}

.detail-blurb {
  font-size: 0.97rem;
  color: #2e3a4e;
  line-height: 1.82;
  margin-bottom: 14px;
}

.detail-climax {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 36px;
}

.placeholder-text {
  color: var(--slate);
  font-style: italic;
  margin-bottom: 36px;
}

/* Info table */
.book-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 36px;
  font-size: 0.9rem;
  border: 1px solid var(--cloud);
  border-radius: var(--radius);
  overflow: hidden;
}

.book-info-table th,
.book-info-table td {
  padding: 5px 16px;
  text-align: left;
  border-bottom: 1px solid var(--cloud);
}

.book-info-table tr:last-child th,
.book-info-table tr:last-child td { border-bottom: none; }

.book-info-table th {
/*  background: var(--ocean);
  color: #fff;  */
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  width: 26%;
}

.book-info-table td {
  background: var(--white);
  color: var(--ink);
}

.book-detail--alt .book-info-table td {
  background: var(--silver);
}

/* Purchase links */
.purchase-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--deep);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cloud);
}

.merchant-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.merchant-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ocean);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 16px;
  margin-top:6px; 
  border: 1px solid var(--cloud);
  border-radius: 40px;
  background: var(--silver);
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.merchant-link:hover {
  background: linear-gradient(135deg, var(--sky), var(--ocean));
  color: #fff;
  border-color: var(--sky);
  box-shadow: 0 3px 14px rgba(46,134,222,0.3);
}

.merchant-icon { font-size: 1rem; }

.merchant-format {
  font-size: 0.78rem;
  opacity: 0.7;
  font-weight: 400;
}

.coming-soon-note {
  font-size: 0.88rem;
  color: var(--slate);
  font-style: italic;
}

/* ─── FOOTER ──────────────────────────────── */

.site-footer {
  background: linear-gradient(90deg, var(--deep) 0%, #0e2254 100%);
  color: rgba(234,244,255,0.45);
  text-align: center;
  padding: 22px 24px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-top: auto;
  border-top: 1px solid rgba(94,184,255,0.15);
}

/* ─── RESPONSIVE ──────────────────────────── */

@media (max-width: 720px) {
  .banner-title { font-size: 1.4rem; }
  .nav-link { padding: 10px 12px; font-size: 0.73rem; }
  .page-title-bar { padding: 22px 20px 18px; }
  .scroll-shelf-wrapper { padding: 20px 16px 26px; }
  .section-divider { padding: 24px 20px 0; }
  .book-detail { padding: 40px 20px; }
  .book-detail-inner { grid-template-columns: 1fr; gap: 32px; }
  .book-detail-image { position: static; max-width: 200px; margin: 0 auto; }
  .detail-title { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .banner::before, .banner::after { animation: none; }
  .banner-icon { animation: none; }
  .shelf-item, .home-cta, .merchant-link { transition: none; }
}
