:root {
  --black: #0d0c0c;
  --ink: #f7f4ee;
  --muted: #b3a89a;
  --beige: #d8c8ae;
  --beige-hover: #e6d9c0;
  --band: #e6dccb;
  --paper: #faf8f4;
  --text-dark: #4a443d;
  --hair: rgba(247, 244, 238, 0.16);
  --frame: rgba(247, 244, 238, 0.24);
  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }

:focus-visible { outline: 2px solid #8a7a5c; outline-offset: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 72px; }

.eyebrow { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.eyebrow--accent { color: var(--beige); }
.eyebrow--dark { color: var(--text-dark); }

.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  background: var(--beige); color: var(--black);
  font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-align: center;
  border: 0; cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--beige-hover); }

.btn-dark {
  display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 24px;
  background: var(--black); color: var(--band);
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  transition: background-color 0.15s ease;
}
.btn-dark:hover { background: #2a2622; }

.link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; letter-spacing: 0.04em; }
.link:hover { color: var(--beige); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 1px solid var(--hair); }
.site-header .wrap { height: 96px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--serif); font-size: 26px; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; letter-spacing: 0.04em; }
.nav a:hover { color: var(--beige); }
.nav-cta { display: none; min-height: 44px; padding: 0 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.02em; }
.hero h1 em { color: var(--beige); }
.byline { font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; }
.hook { max-width: 480px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 26px); line-height: 1.35; text-wrap: balance; }
.hero-actions { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.hero-cover { position: relative; width: 100%; max-width: 400px; margin-left: auto; }
.hero-cover::before { content: ''; position: absolute; top: 28px; left: 28px; right: -28px; bottom: -28px; background: var(--beige); }
.hero-cover img { position: relative; width: 100%; height: auto; aspect-ratio: 1132 / 1600; object-fit: cover; border: 1px solid var(--frame); }

/* ---------- Faixa de lançamento ---------- */
.launch { background: var(--paper); color: var(--black); }
.launch .wrap { min-height: 152px; display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-top: 24px; padding-bottom: 24px; }
.launch-date { display: flex; align-items: baseline; gap: 20px; }
.launch-date strong { font-family: var(--serif); font-weight: 400; font-size: 72px; line-height: 1; }
.launch-date span { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dark); }
.launch p { flex-grow: 1; max-width: 440px; font-size: 18px; line-height: 1.5; }

/* ---------- Sinopse ---------- */
.synopsis { padding: 96px 0; }
.synopsis .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: center; }
.synopsis-head { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.synopsis h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; text-wrap: balance; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.tags li { padding: 9px 16px; border: 1px solid rgba(247, 244, 238, 0.4); font-size: 13px; letter-spacing: 0.06em; }
.synopsis-body { display: flex; flex-direction: column; gap: 24px; font-size: 18px; line-height: 1.7; color: #d9d2c6; text-wrap: pretty; }

/* ---------- Livros ---------- */
.books { background: var(--paper); color: var(--black); padding: 96px 0; }
.books-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 56px; }
.book-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
.book {
  display: grid; column-gap: 32px; row-gap: 14px; align-content: start;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-areas: 'cover head' 'cover text' 'cover btn';
  grid-template-rows: auto auto 1fr;
}
.book-cover { grid-area: cover; width: 100%; aspect-ratio: 900 / 1272; object-fit: cover; }
.book-head { grid-area: head; display: flex; flex-direction: column; gap: 14px; }
.book-head .kicker { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dark); }
.book-head h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
.book-head .genre { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dark); }
.book-text { grid-area: text; font-size: 15px; line-height: 1.6; color: var(--text-dark); }
.book .btn { grid-area: btn; align-self: start; justify-self: start; }

/* ---------- Ilustrações ---------- */
.gallery { padding: 96px 0; }
.gallery-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 56px; }
.gallery-head p { font-size: 15px; color: var(--muted); }
.gal-group { display: flex; flex-direction: column; gap: 16px; }
.gal-group + .gal-group { margin-top: 56px; }
.gal-title { font-family: var(--serif); font-style: italic; font-size: 26px; }

.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--frame); }

.gal-pred { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr); gap: 24px; align-items: start; }
.gal-pred .zoom:nth-child(1), .gal-pred .zoom:nth-child(4) { aspect-ratio: 3 / 4; }
.gal-pred .zoom:nth-child(2), .gal-pred .zoom:nth-child(3) { aspect-ratio: 1 / 1; }

.gal-ang { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.gal-ang .zoom { width: calc((100% - 72px) / 4); aspect-ratio: 1080 / 1046; }

.gal-cenas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.gal-cenas .zoom { aspect-ratio: 1026 / 1400; }

/* ---------- Playlists ---------- */
.playlists { background: var(--band); color: var(--black); padding: 96px 0; }
.playlists-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 56px; }
.playlists h2 { font-size: clamp(44px, 5vw, 60px); }
.playlist-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
.playlist { display: flex; gap: 32px; align-items: center; }
.playlist img { width: 200px; height: 200px; flex-shrink: 0; object-fit: cover; object-position: 50% 30%; }
.playlist-info { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; min-width: 0; }
.playlist-info .kicker { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dark); }
.playlist-info h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }

/* ---------- Sobre ---------- */
.about { background: var(--paper); color: var(--black); padding: 96px 0; }
.about .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: center; }
.about img { width: 100%; height: 528px; object-fit: cover; object-position: 50% 25%; }
.about-text { display: flex; flex-direction: column; gap: 24px; }
.about h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; text-wrap: balance; }
.about p { max-width: 580px; font-size: 18px; line-height: 1.7; color: var(--text-dark); text-wrap: pretty; }

/* ---------- Newsletter ---------- */
.newsletter { padding: 96px 0; }
.newsletter .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.newsletter h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; text-wrap: balance; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { font-size: 14px; letter-spacing: 0.06em; }
.form-row { display: flex; gap: 12px; }
.form input[type='email'] {
  flex-grow: 1; min-width: 0; height: 56px; padding: 0 20px;
  background: transparent; border: 1px solid rgba(247, 244, 238, 0.5); color: var(--ink);
  font-family: var(--sans); font-size: 16px;
}
.form input::placeholder { color: var(--muted); opacity: 1; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 24px; font-size: 15px; color: var(--beige); }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--hair); }
.site-footer .wrap { min-height: 140px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; gap: 32px; align-items: center; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(13, 12, 12, 0.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-out; }
.lb-img { position: relative; max-width: 86vw; max-height: 88vh; object-fit: contain; }
.lb-btn {
  position: absolute; border: 1px solid rgba(247, 244, 238, 0.5); background: rgba(13, 12, 12, 0.7);
  color: var(--ink); cursor: pointer; font-size: 24px;
}
.lb-btn:hover { background: rgba(247, 244, 238, 0.14); }
.lb-close { top: 24px; right: 24px; min-height: 48px; padding: 0 20px; font-size: 15px; letter-spacing: 0.06em; }
.lb-prev, .lb-next { top: 50%; width: 56px; height: 56px; margin-top: -28px; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-size: 13px; letter-spacing: 0.2em; color: var(--muted); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .wrap { padding: 0 40px; }
  .hero .wrap, .synopsis .wrap, .about .wrap { gap: 48px; }
  .book { grid-template-columns: 160px minmax(0, 1fr); column-gap: 24px; }
  .book-list, .playlist-list { gap: 40px; }
  .playlist { gap: 20px; }
  .playlist img { width: 140px; height: 140px; }
}

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  html { scroll-padding-top: 72px; }
  .wrap { padding: 0 20px; }

  .site-header .wrap { height: 64px; }
  .logo { font-size: 22px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav-cta { display: inline-flex; }

  .hero { padding: 32px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-cover { order: -1; max-width: 240px; margin-left: 0; }
  .hero-cover::before { display: none; }
  .hero-text { gap: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
  .hero-actions .link { justify-content: center; }
  .hero-text .btn, .synopsis-head .btn, .book .btn, .launch .btn { width: 100%; }

  .launch .wrap { flex-direction: column; align-items: stretch; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
  .launch-date { gap: 14px; }
  .launch-date strong { font-size: 56px; }
  .launch p { font-size: 16px; max-width: none; }

  .synopsis, .books, .gallery, .playlists, .about, .newsletter { padding: 56px 0; }
  .synopsis { padding: 48px 0; }
  .synopsis .wrap, .about .wrap, .newsletter .wrap { grid-template-columns: 1fr; gap: 24px; }
  .synopsis-head { gap: 20px; }
  .synopsis-body { font-size: 17px; gap: 20px; }
  .tags li { padding: 8px 14px; font-size: 13px; letter-spacing: 0.04em; }

  .books-head, .gallery-head, .playlists-head { margin-bottom: 32px; }
  .book-list { grid-template-columns: 1fr; gap: 40px; }
  .book {
    grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; row-gap: 16px;
    grid-template-areas: 'cover head' 'text text' 'btn btn';
    grid-template-rows: auto;
  }
  .book-head { gap: 8px; }
  .book-head .kicker { font-size: 11px; letter-spacing: 0.16em; }
  .book-head h3 { font-size: 26px; }
  .book-head .genre { font-size: 12px; letter-spacing: 0.14em; }
  .book-text { font-size: 14px; }
  .book .btn { justify-self: stretch; }

  .gal-group + .gal-group { margin-top: 32px; }
  .gal-pred, .gal-ang, .gal-cenas {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-left: -20px; margin-right: -20px; padding: 0 20px 8px;
  }
  .gal-cenas { margin-top: 16px; }
  .gal-pred .zoom, .gal-ang .zoom, .gal-cenas .zoom { flex: 0 0 auto; width: auto; scroll-snap-align: start; }
  .gal-pred .zoom { height: 300px; }
  .gal-ang .zoom { height: 213px; }
  .gal-cenas .zoom { height: 382px; }

  .playlist-list { grid-template-columns: 1fr; gap: 32px; }
  .playlist { gap: 16px; }
  .playlist img { width: 104px; height: 104px; }
  .playlist-info { gap: 10px; }
  .playlist-info .kicker { font-size: 11px; letter-spacing: 0.16em; }
  .playlist-info h3 { font-size: 24px; }
  .playlist-info .btn-dark { padding: 0 20px; }

  .about img { height: 360px; }
  .about p { font-size: 16px; }

  .form-row { flex-direction: column; }
  .form input[type='email'] { padding: 0 16px; }
  .form .btn { width: 100%; }

  .site-footer .wrap { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding-top: 32px; padding-bottom: 32px; min-height: 0; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 0; order: -1; }

  .lb-img { max-width: 100vw; max-height: 76vh; }
  .lb-close { top: 16px; right: 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; margin-top: 0; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-count { bottom: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-dark { transition: none; }
}
