/* ============================================================
   M. Anthony Harris Designs — shared styles across all pages
   ============================================================ */

:root {
  --bg: #131313;
  --bg-soft: #1c1b1b;
  --bg-card: #201f1f;
  --bg-card-hi: #2a2a2a;
  --text: #e5e2e1;
  --text-dim: #a6a9bb;
  --text-faint: #777;
  --accent: #b6c4ff;
  --accent-strong: #0055ff;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(19,19,19,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 2rem;
  max-width: 1280px; margin: 0 auto;
}
.brand {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 2.25rem; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active {
  color: #fff;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #001551;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,85,255,0.3); }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 0.95rem; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; transform: none; }

@media (max-width: 720px) {
  .nav-links a:not(.btn):not(.nav-link-always) { display: none; }
  .nav-links { gap: 1.25rem; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem;
  padding: 7rem 0 4rem;
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(0,85,255,0.12), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(182,196,255,0.06), transparent 60%),
    var(--bg);
}
.hero-short {
  min-height: 60vh;
  padding: 8rem 2rem 4rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0;
}
.hero-inner { max-width: 900px; position: relative; z-index: 2; padding: 0 2rem; }

/* ---------- hero marquee (cover showcase) ---------- */
.hero-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.hero-marquee-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  animation: hero-marquee-left 70s linear infinite;
  will-change: transform;
}
.hero-marquee-track-rev {
  animation-name: hero-marquee-right;
  animation-duration: 80s;
}
.hero-marquee-track img {
  height: 180px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.hero-marquee-track img:hover {
  transform: translateY(-4px) scale(1.03);
}
@keyframes hero-marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes hero-marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track { animation: none; }
}
@media (max-width: 900px) {
  .hero-marquee-track { gap: 0.8rem; }
  .hero-marquee-track img { height: 130px; border-radius: 3px; box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
  .hero { gap: 1.75rem; padding: 6rem 0 3rem; }
}
@media (max-width: 600px) {
  .hero-marquee-track img { height: 110px; }
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}
.hero h1 {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  color: var(--accent);
  font-style: italic;
}
.hero p {
  font-family: 'Newsreader', serif;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.5;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- section headings ---------- */
section { padding: 7rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.1;
}
.section-head p {
  color: var(--text-dim);
  max-width: 420px;
}
.section-head-sub {
  margin-top: 6rem;
}
.price-tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #001551;
  background: var(--accent);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.6rem;
  position: relative;
  top: -0.35rem;
}
.price-tag s {
  font-weight: 400;
  opacity: 0.55;
  font-size: 0.7rem;
  margin-right: 0.15em;
}

/* ---------- portfolio grid (covers page) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
.cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.cover:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.7);
}
.cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.cover:hover img { transform: scale(1.04); }
.gallery-square .cover { aspect-ratio: 1 / 1; }
.gallery-square { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .gallery-square { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .gallery-square { grid-template-columns: repeat(2, 1fr); }
}
.cover-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.cover:hover .cover-meta { opacity: 1; }
.cover-meta small {
  color: var(--accent);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.15rem;
}
.cover-meta span {
  color: #fff;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 1rem;
}

/* ---------- pricing ---------- */
.pricing { background: var(--bg-soft); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.price-card .btn { margin-top: auto; }
.price-card:hover { transform: translateY(-4px); border-color: rgba(182,196,255,0.3); }
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(182,196,255,0.06), var(--bg-card));
}
.price-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -10px; left: 2rem;
  background: var(--accent);
  color: #001551;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}
/* launch sale banner */
.launch-banner {
  text-align: center;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(182,196,255,0.2);
  border-radius: 6px;
  background: rgba(182,196,255,0.05);
  margin-top: -1rem;
  margin-bottom: 1rem;
}
.launch-banner .yeti-headline {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.launch-banner .yeti-sub {
  display: block;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 44rem;
  margin: 0 auto;
}
/* strikethrough original price */
.price-card .price-original {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-faint);
  margin-top: 1rem;
  margin-bottom: -0.5rem;
  line-height: 1;
}
.price-card .price-original s {
  text-decoration: line-through;
  text-decoration-color: var(--text-faint);
}
.price-card h3 {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.price-card .price {
  font-family: 'Manrope', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin: 1rem 0;
}
.price-card .price small {
  font-size: 1rem;
  color: var(--text-faint);
  font-weight: 400;
  vertical-align: super;
}
.price-card ul {
  list-style: none;
  margin: 1.5rem 0 2rem;
}
.price-card li {
  color: var(--text-dim);
  padding: 0.45rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.price-card li:last-child { border-bottom: none; }
.price-card .btn { display: block; text-align: center; width: 100%; }

/* ---------- about ---------- */
.about { text-align: center; }
.about .section-head { justify-content: center; text-align: center; }
.about p {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 720px;
  font-weight: 300;
  line-height: 1.7;
  margin: 0 auto 1.2rem;
}
.elsewhere {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 3rem auto 0;
  max-width: 900px;
  text-align: left;
}
@media (max-width: 720px) {
  .elsewhere { grid-template-columns: 1fr; }
}
.elsewhere-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.elsewhere-card:hover {
  transform: translateY(-3px);
  border-color: rgba(182,196,255,0.4);
  background: var(--bg-card-hi);
}
.elsewhere-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(182,196,255,0.15), rgba(0,85,255,0.15));
  border-radius: 6px;
  color: var(--accent);
}
.elsewhere-text { flex: 1; line-height: 1.35; min-width: 0; }
.elsewhere-text small {
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  line-height: 1.6;
  padding-top: 0.15rem;
  margin-bottom: 0.3rem;
}
.elsewhere-text strong {
  display: block;
  color: #fff;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}
.elsewhere-text span {
  color: var(--text-dim);
  font-size: 0.85rem;
}
.elsewhere-arrow {
  color: var(--text-faint);
  font-size: 1.3rem;
  transition: color 0.25s, transform 0.25s;
}
.elsewhere-card:hover .elsewhere-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ---------- contact ---------- */
.contact {
  background: var(--bg-soft);
  text-align: center;
}
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact h2 {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.contact p {
  color: var(--text-dim);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.email-display {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  font-family: 'Manrope', monospace;
  font-size: 1rem;
  letter-spacing: 0.02em;
  user-select: all;
}
.email-sep {
  color: var(--text-faint);
  font-style: italic;
  padding: 0 0.1rem;
}
.email-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   BOOKS PAGE
   ============================================================ */
.book-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.book-feature:last-child { border-bottom: none; }
.book-feature.reverse { direction: rtl; }
.book-feature.reverse > * { direction: ltr; }
@media (max-width: 820px) {
  .book-feature { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0; }
  .book-feature.reverse { direction: ltr; }
}
.book-feature-img {
  aspect-ratio: 2 / 3;
  max-width: 380px;
  justify-self: center;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.book-feature-img img { width: 100%; height: 100%; object-fit: cover; }
.book-feature-text .series {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.book-feature-text h3 {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.book-feature-text p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1.2rem;
}
.book-feature-text .btn { margin-top: 1rem; }

/* Compact book cards (series & standalones) */
.section-snug { padding-top: 3rem; }
.series-block { margin-top: 5rem; }
.series-block:first-of-type { margin-top: 0; }
.series-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.series-head h3 {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
}
.series-head .series-meta {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
}
.book-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 720px) {
  .book-card-grid { grid-template-columns: 1fr; }
}
.book-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.book-card:hover {
  transform: translateY(-3px);
  border-color: rgba(182,196,255,0.3);
  background: var(--bg-card-hi);
}
.book-card-cover {
  flex-shrink: 0;
  width: 120px;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.book-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.book-card-body .book-num {
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.book-card-body h4 {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.7rem;
}
.book-card-body p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.book-card-body p:last-of-type { margin-bottom: 1rem; }
.book-card-body .buy-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.2s;
}
.book-card-body .buy-link:hover { transform: translateX(3px); }
.book-card-body .buy-link::after { content: ' \2192'; }

/* ============================================================
   MUSIC PAGE
   ============================================================ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 820px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 520px) {
  .album-grid { grid-template-columns: 1fr; }
}
.album {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.album:hover {
  transform: translateY(-6px);
  border-color: rgba(182,196,255,0.3);
}
.album-art {
  aspect-ratio: 1;
  overflow: hidden;
  background: #000;
}
.album-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.album:hover .album-art img { transform: scale(1.05); }
.album-body {
  padding: 1.25rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.album-type {
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.album-title {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}
.album-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex: 1;
}
.album-link {
  align-self: flex-start;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.2s;
}
.album-link:hover { transform: translateX(3px); }
.album-link::after { content: ' \2192'; }

/* ---------- footer ---------- */
footer {
  background: #0e0e0e;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner small {
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  gap: 1.75rem;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

@media (max-width: 640px) {
  section { padding: 5rem 0; }
  .wrap { padding: 0 1.25rem; }
  .hero { padding: 7rem 1.25rem 4rem; }
  .hero-short { padding: 7rem 1.25rem 3rem; min-height: auto; }
  .nav-inner { padding: 1rem 1.25rem; }
}
