/* ═══════════════════════════════════════════
   VLEERAZSPACE.COM — REDESIGN
   Kujtim Drite — Memory of Light
   ═══════════════════════════════════════════ */

:root {
  --bg: #FAF9F6;
  --bg-warm: #F5F3EE;
  --text: #1A1A1A;
  --text-light: #6B6459;
  --text-lighter: #9B9488;
  --accent: #8B7355;
  --accent-light: #B8A88A;
  --accent-dark: #6B5539;
  --divider: #E8E4DE;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --max-w: 960px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--sans); }
img { max-width: 100%; height: auto; }

::selection { background: var(--accent); color: var(--white); }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.nav--scrolled { border-bottom-color: var(--divider); }

.nav__logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

/* ─── VIEWS ─── */
.view {
  display: none;
  min-height: 100vh;
  padding-top: 64px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.view.active {
  display: block;
  opacity: 1;
}

/* ─── HOME ─── */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.hero__subtitle {
  font-family: var(--serif);
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-light);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.hero__divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 32px auto;
}

.hero__tagline {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lighter);
}

/* Home Grid */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.home-card {
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 2px;
  transition: all var(--transition);
  text-decoration: none;
}

.home-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 115, 85, 0.08);
}

.home-card__label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.home-card__title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}

.home-card__desc {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

.home-card__cta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 24px;
}

/* Subscribe */
.subscribe-section {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.subscribe {
  text-align: center;
}

.subscribe__label {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 20px;
}

.subscribe__fields {
  display: flex;
  gap: 8px;
}

.subscribe__input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--divider);
  background: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.subscribe__input:focus { border-color: var(--accent); }
.subscribe__input::placeholder { color: var(--text-lighter); }

.subscribe__btn {
  padding: 12px 24px;
  background: var(--text);
  color: var(--white);
  border: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition);
}

.subscribe__btn:hover { background: var(--accent-dark); }

.subscribe__msg {
  font-family: var(--sans);
  font-size: 12px;
  margin-top: 12px;
  color: var(--accent);
  min-height: 18px;
}

/* ─── BOOK ─── */
.book-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

.book-sidebar {
  width: 280px;
  min-width: 280px;
  border-right: 1px solid var(--divider);
  padding: 48px 32px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--bg-warm);
}

.book-sidebar__header {
  margin-bottom: 40px;
}

.book-sidebar__header h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.book-sidebar__header p {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--text-light);
  margin-top: 4px;
}

.book-chapters {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.book-chapter-btn {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-light);
  border-radius: 2px;
  transition: all var(--transition);
  width: 100%;
}

.book-chapter-btn:hover { color: var(--text); background: rgba(139,115,85,0.06); }
.book-chapter-btn.active { color: var(--text); background: rgba(139,115,85,0.1); }

.book-chapter-btn .num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--text-lighter);
  min-width: 24px;
}

.book-chapter-btn .info {
  display: flex;
  flex-direction: column;
}

.book-chapter-btn .info span:first-child {
  font-weight: 500;
}

.book-chapter-btn .info span:last-child {
  font-size: 12px;
  font-style: italic;
  color: var(--text-lighter);
}

.book-content {
  flex: 1;
  padding: 48px 64px 100px;
  max-width: 680px;
}

/* Book Intro */
.book-intro {
  text-align: center;
  padding: 80px 0 60px;
}

.book-intro h1 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.book-intro__subtitle {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text-light);
  margin-top: 8px;
}

.book-intro__divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 32px auto;
}

.book-intro__text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
}

.book-intro__dedication {
  margin-top: 48px;
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  line-height: 1.6;
}

/* Chapter Header */
.chapter-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 40px;
}

.chapter-header__num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-lighter);
  margin-bottom: 8px;
}

.chapter-header__title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.chapter-header__subtitle {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--text-light);
  margin-top: 4px;
}

/* Poem Card */
.poem-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: all var(--transition);
}

.poem-card:hover { padding-left: 12px; }

.poem-card:last-child { border-bottom: none; }

.poem-card__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.poem-card__preview {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── THOUGHTS ─── */
.section-header {
  text-align: center;
  padding: 80px 24px 48px;
}

.section-header h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.section-header p {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--text-light);
  margin-top: 8px;
}

.thoughts-grid {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.thought-card {
  background: var(--white);
  border: 1px solid var(--divider);
  padding: 40px;
  position: relative;
}

.thought-card__date {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lighter);
  margin-bottom: 16px;
}

.thought-card__image {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 1px;
}

.thought-card__text {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-line;
}

.thought-card__embed {
  margin-top: 20px;
}

.thought-card__embed iframe {
  width: 100%;
  border-radius: 8px;
}

.thoughts-empty {
  text-align: center;
  padding: 80px 24px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text-light);
  font-style: italic;
  line-height: 2;
}

/* ─── SOUND ─── */
.sound-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.sound-player {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sound-track {
  background: var(--white);
  border: 1px solid var(--divider);
  padding: 24px;
}

.sound-track__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
}

.sound-track iframe {
  width: 100%;
  height: 152px;
  border-radius: 12px;
  border: none;
}

.sound-cta {
  text-align: center;
  margin-top: 48px;
  padding: 40px;
  background: var(--bg-warm);
  border: 1px solid var(--divider);
}

.sound-cta p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.sound-follow-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #1DB954;
  color: white;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 24px;
  transition: all var(--transition);
}

.sound-follow-btn:hover { background: #1ed760; transform: scale(1.03); }

/* ─── ABOUT ─── */
.about-content {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  text-align: center;
}

.about-content h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.about__divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 28px auto;
}

.about__role {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.about__text {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-top: 24px;
}

.about__links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.about__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-light);
  transition: color var(--transition);
}

.about__link:hover { color: var(--accent); }

.about__link-icon {
  font-size: 18px;
}

/* ─── OVERLAY ─── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.overlay.open {
  display: flex;
  opacity: 1;
}

.overlay__close {
  position: absolute;
  top: 20px;
  right: 32px;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.overlay__close span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

.overlay__close span:first-child { transform: rotate(45deg) translate(2px, 2px); }
.overlay__close span:last-child { transform: rotate(-45deg) translate(2px, -2px); }

.overlay__close:hover span { background: var(--accent); }

.overlay__content {
  flex: 1;
  overflow-y: auto;
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overlay__poem {
  max-width: 560px;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
}

.overlay__poem-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.overlay__poem-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 2;
  white-space: pre-line;
  text-align: center;
  color: var(--text);
}

.overlay__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  border-top: 1px solid var(--divider);
}

.overlay__prev,
.overlay__next {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 8px 16px;
  transition: color var(--transition);
}

.overlay__prev:hover,
.overlay__next:hover { color: var(--text); }

.overlay__counter {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-lighter);
}

/* ─── FOOTER ─── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-top: 1px solid var(--divider);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-lighter);
  letter-spacing: 0.04em;
}

.footer__book-title {
  font-family: var(--serif);
  font-style: italic;
}

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  
  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px 40px;
    gap: 16px;
    border-bottom: 1px solid var(--divider);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .home-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

  .book-sidebar {
    width: 100%;
    min-width: auto;
    position: relative;
    top: auto;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--divider);
    padding: 24px;
  }

  .book-chapters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .book-chapter-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .book-content {
    padding: 24px;
  }

  .overlay__content {
    padding: 80px 20px 40px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 24px;
  }

  .subscribe__fields {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero { min-height: 60vh; padding: 60px 20px 20px; }
  .thought-card { padding: 24px; }
  .sound-track { padding: 16px; }
  .book-intro h1 { font-size: 32px; }
  .chapter-header__title { font-size: 26px; }
}
