*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #FAFAF4;
  --surface: #f3f4ee;
  --border: #d4d6ce;
  --text: #1A1C19;
  --muted: #414941;
  --accent: #2a676c;
  --font-head: 'Newsreader', serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  border-bottom: 0.5px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-bottom: 0.5px solid var(--border);
}

.hero-text {
  padding: 4rem 2.5rem 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  border-right: 0.5px solid var(--border);
}

.release {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}

.title {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}

.subtitle {
  font-family: var(--font-head);
  font-size: 15px;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-top: 0.75rem;
}

.excerpt {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 38ch;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.btn-primary {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted);
  border: 0.5px solid var(--border);
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.hero-image img {
  width: 100%;
  max-width: 340px;
  height: auto;
  mix-blend-mode: multiply;
}

/* CHAPTERS */
.chapters {
  padding: 3rem 2rem;
  border-bottom: 0.5px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.5px solid var(--border);
}

.chapter-item {
  padding: 1.25rem 1.5rem;
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.chapter-item:nth-child(3n) {
  border-right: none;
}

.chapter-item:nth-child(n+4) {
  border-bottom: none;
}

.chapter-item:hover {
  background: var(--surface);
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.chapter-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.chapter-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* BOTTOM */
.bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about {
  padding: 2.5rem 2rem;
  border-right: 0.5px solid var(--border);
}

.about-name {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.about-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.community {
  padding: 2.5rem 2rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.community-quote {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* FOOTER */
footer {
  padding: 1rem 2rem;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-isbn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.5;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.6;
}

.footer-links a:hover {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-text {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
    padding: 2.5rem 1.5rem;
  }

  .hero-image {
    padding: 2rem 1.5rem;
  }

  .title {
    font-size: 36px;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .chapter-item:nth-child(3n) {
    border-right: none;
  }

  .chapter-item:nth-child(n+4) {
    border-bottom: 0.5px solid var(--border);
  }

  .chapter-item:last-child {
    border-bottom: none;
  }

  .bottom {
    grid-template-columns: 1fr;
  }

  .about {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }
}
