/* Global reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* Header & navigation */
header {
  background: #020617;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.05em;
}

nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

nav a.active {
  font-weight: 600;
  opacity: 1;
  text-decoration: underline;
}

/* Main layout */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* Hero section (home page) */
.hero {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  margin-bottom: 0.75rem;
}

.hero p {
  max-width: 600px;
  margin: 0.5rem auto 0;
  color: #9ca3af;
}

/* Generic grid and cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #020617;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #111827;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.6);
  border-color: #4b5563;
}

.card h2,
.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #9ca3af;
}

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #111827;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.btn:hover {
  border-color: #e5e7eb;
}

/* Section headers */
.section-header {
  margin-bottom: 1.5rem;
}

.section-header h1 {
  margin-bottom: 0.25rem;
}

.section-header p {
  color: #9ca3af;
  max-width: 600px;
}

/* Video grid (for 10 Minute Dad & music) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  border: none;
}

.video-description {
  font-size: 0.9rem;
  color: #d1d5db;
}

/* Books page layout */
.book-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.price {
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Book cover window (3 x 4.5 proportion) */
.book-cover {
  width: 100%;
  aspect-ratio: 2 / 3; /* 3 x 4.5 is the same proportion as 2 x 3 */
  background: #111827;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid #1f2937;
  transition: transform 0.2s;
  display: block;
}

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

.book-cover:hover {
  transform: scale(1.02);
  cursor: pointer;
}

/* Music streaming buttons */
.streaming-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.streaming-links a {
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: #0b1120;
}

/* Footer */
footer {
  border-top: 1px solid #1f2937;
  padding: 1.5rem 1.25rem 3rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
