@font-face {
  font-family: 'Leitura Headline-Sans';
  src: url('../fonts/Leitura Headline Sans.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

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

:root {
  --bg:          #191510;
  --bg-mid:      #211d16;
  --bg-card:     #1e1a13;
  --cream:       #f0e8d8;
  --muted:       #7a7060;
  --muted-light: #a8998a;
  --accent:      #d9621a;
  --border:      rgba(240, 232, 216, 0.08);
  --border-mid:  rgba(240, 232, 216, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NOISE TEXTURE ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1000;
}

/* ─── NAV ─── */
nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 24px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(25, 21, 16, 0.72) 0%, transparent 100%);
}

.logo {
  display: flex;
  align-items: center;
}

.logo svg {
  height: 40px;
  width: auto;
}

.logo svg path {
  fill: var(--cream);
  transition: fill 0.2s;
}

.logo:hover svg path {
  fill: var(--accent);
}

.nav-contact {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.nav-contact a {
  color: var(--muted-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-contact a:hover {
  color: var(--cream);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.72;
  display: block;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(25, 21, 16, 0.25) 0%,
    rgba(25, 21, 16, 0.0) 35%,
    rgba(25, 21, 16, 0.55) 68%,
    rgba(25, 21, 16, 1.0) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 52px 80px;
  max-width: 900px;
}

/* Hero text */
.hero-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.hero-title {
  font-family: 'Leitura Headline-Sans', serif;
  font-size: clamp(4.5rem, 10vw, 9.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  margin-top: 28px;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(240, 232, 216, 0.65);
  max-width: 500px;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease 0.75s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 52px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 0.6s ease 1.4s forwards;
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--muted);
  transform: scaleX(0);
  transform-origin: left;
  animation: expandLine 0.8s ease 1.6s forwards;
}

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: calc(1440px - 104px);
  margin: 0 auto;
}

/* ─── SECTION ─── */
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 88px 52px;
}

.section-head {
  margin-bottom: 64px;
}

.section-eyebrow {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Leitura Headline-Sans', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
  color: var(--cream);
  text-transform: uppercase;
}

.section-desc {
  margin-top: 12px;
  max-width: 560px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ─── BOOK GRID ─── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 52px 28px;
}

/* ─── BOOK CARD ─── */
/* Opacity-only reveal — no translateY to prevent subpixel blur on fine cover lines */
.book-card {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.book-card.visible {
  opacity: 1;
}

.book-cover-wrap {
  position: relative;
  aspect-ratio: 0.775;
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.4s ease;
}

.book-card:hover .book-cover-wrap {
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.6);
}

.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* No transform/scale — any pixel-shift during animation blurs fine cover lines */
}

.book-title {
  font-family: 'Leitura Headline-Sans', serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.book-card:hover .book-title {
  color: white;
}

.book-desc {
  font-size: 0.9rem;
  color: var(--muted-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.book-isbn {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ─── GEZOND SECTION ─── */
.section-gezond {
  background: var(--cream);
  color: var(--bg);
  padding: 88px 0;
}

.gezond-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 52px;
}

.section-gezond .section-eyebrow {
  color: var(--accent);
}

.section-gezond .section-title {
  color: var(--bg);
}

.section-gezond .section-desc {
  color: rgba(25, 21, 16, 0.55);
}

.gezond-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 52px;
  align-items: start;
  max-width: 720px;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.gezond-card.visible {
  opacity: 1;
}

.gezond-card .book-cover-wrap {
  background: #ddd5c5;
  box-shadow: 0 12px 40px rgba(25, 21, 16, 0.18);
}

.gezond-card .book-title {
  font-family: 'Leitura Headline-Sans', serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--bg);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.gezond-card .book-desc {
  font-size: 0.9rem;
  color: rgba(25, 21, 16, 0.6);
  line-height: 1.75;
  margin-bottom: 16px;
}

.gezond-card .book-isbn {
  color: rgba(25, 21, 16, 0.3);
}

/* ─── FOOTER ─── */
footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--border);
}

.footer-logo svg {
  height: 36px;
  width: auto;
}

.footer-logo svg path {
  fill: var(--muted);
  transition: fill 0.25s;
}

.footer-logo:hover svg path {
  fill: var(--cream);
}

.footer-contact {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.8;
}

.footer-contact strong {
  font-weight: 400;
  color: var(--muted-light);
}

.footer-contact a {
  color: var(--muted-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--cream);
}

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes expandLine {
  to { transform: scaleX(1); }
}

/* ─── RESPONSIVE ─── */

@media (max-width: 1200px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  nav { padding: 20px 28px; }
  .nav-contact { display: none; }
  .section { padding: 64px 28px; }
  .section-gezond { padding: 64px 0; }
  .gezond-inner { padding: 0 28px; }
  .divider { margin: 0 28px; }
  footer { padding: 40px 28px; }
  .hero-content { padding: 0 28px 56px; }
}

@media (max-width: 768px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .gezond-card { grid-template-columns: 160px 1fr; gap: 28px; }
  .gezond-card .book-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(3.5rem, 14vw, 5rem); }
  .hero-scroll { right: 28px; }
  .gezond-card { grid-template-columns: 1fr; }
}
