/* ── CSS Variabelen ── */
:root {
  --bg: #FCF1EC;
  --card-bg: #FFF9F7;
  --text: #000;
  --text-muted: #727272;
  --text-body: #393939;
  --border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 0 1px rgba(143,102,102,0.24), 0 3px 8px -1px rgba(68,100,156,0.05);
  --card-shadow-hover: 0 0 1px rgba(143,102,102,0.24), 0 8px 20px -2px rgba(68,100,156,0.1);
}

[data-theme="dark"] {
  --bg: #1C1A1F;
  --card-bg: #252328;
  --text: #EDE8E3;
  --text-muted: #8A8590;
  --text-body: #B0ACA8;
  --border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 0 1px rgba(0,0,0,0.5), 0 3px 12px -1px rgba(0,0,0,0.4);
  --card-shadow-hover: 0 0 1px rgba(0,0,0,0.6), 0 8px 24px -2px rgba(0,0,0,0.5);
}

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

body {
  background-color: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  height: 90px;
  display: flex;
  align-items: center;
  padding: 0 64px;
  transition: background-color 0.3s ease;
}

.navbar-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
}

.logo-img {
  width: 48px;
  height: 48px;
  display: block;
}

.logo-img.small {
  width: 40px;
  height: 40px;
}

.logo-link {
  display: block;
  line-height: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.4px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s, color 0.3s;
}

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

/* ── Theme toggle ── */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--text);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: opacity 0.2s, border-color 0.3s, color 0.3s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  opacity: 0.6;
}

/* ── Hero ── */
.hero-section {
  padding: 40px 140px 80px;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  height: 425px;
  border-radius: 16px;
  background: #222;
  box-shadow: 0 4px 17.6px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.0) brightness(0.95);
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px;
}

.hero-title {
  font-family: 'Knewave', sans-serif;
  font-size: 64px;
  color: #efb2ea;
  letter-spacing: -1.28px;
  line-height: 1.1;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  letter-spacing: -0.48px;
  line-height: 1.1;
  max-width: 500px;
}

/* ── Feature section ── */
.feature-section {
  padding: 0 140px 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
}

/* ── Book card ── */
.book-card {
  width: 100%;
  max-width: 1000px;
  background: var(--card-bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  transition: background-color 0.3s ease;
}

.book-text {
  padding: 60px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 400px;
}

.book-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.dot {
  color: var(--text-muted);
  font-size: 12px;
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.book-title {
  font-family: 'Knewave', sans-serif;
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.48px;
  line-height: 1.45;
}

.book-description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.book-release {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.6;
}

.book-image {
  position: relative;
  width: 408px;
  height: 454px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0 16px 16px 0;
}

.book-video-clip {
  position: absolute;
  inset: 0;
}

.book-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.4) translateY(-12%);
  transform-origin: center top;
}

.book-finn {
  display: none;
  position: absolute;
  bottom: 10%;
  right: -30px;
  transform: translateX(15%);
  height: 155%;
  width: auto;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

.book-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: 'Knewave', sans-serif;
  font-size: 48px;
  color: #fff;
  letter-spacing: -0.96px;
  z-index: 2;
}

/* ── Story grid ── */
.story-grid {
  width: 100%;
  max-width: 1000px;
  display: flex;
  gap: 50px;
}

.story-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  gap: 12px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.story-card:hover {
  transform: translateY(-4px);
}

.story-image {
  position: relative;
  height: 235px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #222;
}

.story-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.story-image-text {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 1;
}

.story-image-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.09px;
  line-height: 1.45;
  max-width: 228px;
}

.story-category {
  font-family: 'Knewave', sans-serif;
  font-size: 48px;
  color: #fff;
  line-height: 1;
}

.story-arrow {
  position: absolute;
  bottom: 24px;
  right: 16px;
  font-size: 20px;
  color: #fff;
  opacity: 0.8;
  z-index: 1;
}

.story-body {
  background: var(--card-bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.story-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-title {
  font-family: 'Knewave', sans-serif;
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.48px;
  line-height: 1.45;
}

.story-excerpt {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-read-more {
  font-size: 20px;
  color: var(--text-body);
}

/* ── Footer ── */
.footer {
  background: var(--bg);
  height: 120px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease;
}

.footer-social {
  color: var(--text-body);
}

.footer-social svg {
  display: block;
}

/* ── Responsive: Tablet ── */
@media (max-width: 900px) {
  .navbar {
    padding: 0 32px;
    height: 70px;
  }

  .hero-section {
    padding: 32px 40px;
  }

  .hero-card {
    height: auto;
    min-height: 300px;
    padding: 60px 32px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .feature-section {
    padding: 0 40px 60px;
  }

  .book-card {
    flex-direction: column;
  }

  .book-text {
    padding: 40px 32px 24px;
    max-width: 100%;
  }

  .book-image {
    width: 100%;
    height: 300px;
    border-radius: 0 0 16px 16px;
  }

  .story-grid {
    flex-direction: column;
    gap: 32px;
  }
}

/* ── Responsive: Mobile ── */
@media (max-width: 600px) {
  .navbar {
    padding: 0 24px;
  }

  .hero-section {
    padding: 32px 24px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .feature-section {
    padding: 24px 24px 64px;
    gap: 56px;
  }

  .book-text {
    padding: 32px 24px 16px;
  }

  .footer {
    padding: 0 24px;
  }
}
