@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg:           #0a0a0a;
  --bg2:          #111111;
  --bg3:          #181818;
  --accent:       #9b1c1c;
  --accent-hover: #b91c1c;
  --text:         #f0ede8;
  --text-sub:     #aaa8a4;
  --text-muted:   #555250;
  --border:       #1f1f1f;
  --max-w:        1100px;
  --radius:       3px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 1.25rem 0 2rem;
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 64px;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav__logo em { font-style: normal; color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__social-link {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.nav__social-link:hover { color: var(--text); }
.nav__social-link svg { width: 18px; height: 18px; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 60%, rgba(155,28,28,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(155,28,28,0.07) 0%, transparent 55%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.hero__eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero__name {
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}
.hero__name .first { display: block; }
.hero__name .last  { display: block; color: var(--text-muted); }

.hero__tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-sub);
  margin-bottom: 0.5rem;
}

.hero__genres {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
}
.hero__genres span { color: var(--border); margin: 0 0.6rem; }

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); color: #fff; }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-muted); transform: translateY(-2px); }

/* ─── SECTIONS ─── */
section { padding: 6rem 0; }

/* ─── BOOKS ─── */
#books { background: var(--bg2); }

.books__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.book-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.book-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.book-card__cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  position: relative;
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.book-card:hover .book-card__cover img { transform: scale(1.03); }

.cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1212 0%, #0d0d0d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  gap: 1rem;
}

.cover-placeholder__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-sub);
  line-height: 1.3;
}

.cover-placeholder__author {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cover-placeholder__line {
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.book-card__body { padding: 1.5rem; }

.book-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 0.85rem;
}

.book-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.book-card__desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* ─── ABOUT ─── */
#about { background: var(--bg); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 4rem;
  align-items: center;
}

.about__photo {
  aspect-ratio: 3/4;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.photo-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: 0.25;
  margin: 0 auto 1rem;
}

.photo-placeholder p {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.about__text p {
  color: var(--text-sub);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: all 0.2s;
}
.social-pill:hover { border-color: var(--text-muted); color: var(--text); }
.social-pill svg { width: 15px; height: 15px; }

/* ─── NEWSLETTER ─── */
#newsletter {
  background: var(--bg2);
  text-align: center;
}

.newsletter__inner { max-width: 540px; margin: 0 auto; }

.newsletter__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.newsletter__sub {
  color: var(--text-sub);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}

.newsletter__form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter__input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.25rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter__input:focus { border-color: var(--accent); }
.newsletter__input::placeholder { color: var(--text-muted); }

.newsletter__note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.footer__logo em { font-style: normal; color: var(--accent); }

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer__links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.05em;
}
.footer__links a:hover { color: var(--text); }

.footer__social { display: flex; gap: 1rem; }
.footer__social a {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
}
.footer__social a:hover { color: var(--text); }
.footer__social svg { width: 18px; height: 18px; }

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav__links,
  .nav__right { display: none; }
  .nav__toggle { display: flex; }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(10,10,10,0.98);
    z-index: 999;
  }

  .nav__links.is-open a { font-size: 1.1rem; }

  .about__inner {
    grid-template-columns: 1fr;
  }

  .about__photo {
    max-width: 260px;
    margin: 0 auto;
  }

  .books__grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
  .footer__social { justify-content: center; }
}

@media (max-width: 480px) {
  .hero__name { font-size: clamp(3rem, 16vw, 5rem); }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
