:root {
  color-scheme: dark;
  --bg: #090a0b;
  --panel: #121416;
  --panel-2: #191b1d;
  --text: #f2f0eb;
  --muted: #a7a29a;
  --line: rgba(242, 240, 235, 0.14);
  --accent: #d9d2c4;
  --accent-2: #7b838d;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(124, 130, 136, 0.2), transparent 28rem),
    linear-gradient(180deg, #0d0f11 0%, var(--bg) 42%, #0f1011 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 72px);
  background: rgba(9, 10, 11, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: Cinzel, serif;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--text);
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  padding: 118px clamp(20px, 6vw, 92px) 64px;
  border-bottom: 1px solid var(--line);
}

.hero__content {
  max-width: 760px;
}

.kicker,
.section-label {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 7.4vw, 7.2rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.55rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: #d3cec5;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.book-page {
  background:
    linear-gradient(90deg, var(--book-shade-left, rgba(9, 10, 11, 0.92)) 0%, var(--book-shade-mid, rgba(9, 10, 11, 0.74)) 48%, var(--book-shade-right, rgba(9, 10, 11, 0.9)) 100%),
    linear-gradient(180deg, var(--book-shade-top, rgba(9, 10, 11, 0.5)), var(--book-shade-bottom, rgba(9, 10, 11, 0.92))),
    var(--book-bg, none) center / cover fixed no-repeat,
    #090a0b;
}

.book-circulo {
  --book-bg: radial-gradient(circle at 50% 18%, rgba(124, 130, 136, 0.2), transparent 28rem);
}

.book-identidade {
  --book-bg: url("./fundo_identidade.png");
  --book-shade-left: rgba(12, 10, 10, 0.55);
  --book-shade-mid: rgba(12, 10, 10, 0.24);
  --book-shade-right: rgba(12, 10, 10, 0.52);
  --book-shade-top: rgba(12, 10, 10, 0.18);
  --book-shade-bottom: rgba(12, 10, 10, 0.62);
  --accent: #e7d2b8;
  --accent-2: #aa9179;
}

.book-desolacao {
  --book-bg: url("./fundo_desolacao.png");
  --book-shade-left: rgba(18, 11, 7, 0.58);
  --book-shade-mid: rgba(18, 11, 7, 0.26);
  --book-shade-right: rgba(18, 11, 7, 0.54);
  --book-shade-top: rgba(18, 11, 7, 0.16);
  --book-shade-bottom: rgba(18, 11, 7, 0.64);
  --accent: #f0c7a2;
  --accent-2: #c17b62;
}

.book-dialogo {
  --book-bg: url("./fundo_dialogo.png");
  --book-shade-left: rgba(5, 15, 14, 0.58);
  --book-shade-mid: rgba(5, 15, 14, 0.24);
  --book-shade-right: rgba(5, 15, 14, 0.54);
  --book-shade-top: rgba(5, 15, 14, 0.16);
  --book-shade-bottom: rgba(5, 15, 14, 0.64);
  --accent: #c9d8d3;
  --accent-2: #8fa9a2;
}

.book-page .intro,
.book-page .characters,
.book-page .author,
.book-page .buy,
.book-page .faq,
.book-page .themes article {
  background-color: rgba(12, 13, 14, 0.78);
}

.book-page:not(.book-circulo) .intro,
.book-page:not(.book-circulo) .characters,
.book-page:not(.book-circulo) .author,
.book-page:not(.book-circulo) .buy,
.book-page:not(.book-circulo) .faq,
.book-page:not(.book-circulo) .themes article {
  background-color: rgba(12, 13, 14, 0.58);
  backdrop-filter: blur(2px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}

.button--ghost {
  background: rgba(242, 240, 235, 0.04);
  color: var(--text);
}

.book-stage {
  position: relative;
  isolation: isolate;
}

.book-stage::before {
  content: "";
  position: absolute;
  inset: 9% -6% 7%;
  z-index: -1;
  border: 1px solid rgba(217, 210, 196, 0.34);
  border-radius: 50%;
  filter: blur(0.2px);
}

.book-page:not(.book-circulo) .book-stage::before {
  display: none;
}

.book-stage img {
  width: min(100%, 390px);
  margin-inline: auto;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.intro,
.author {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  padding: clamp(58px, 8vw, 106px) clamp(20px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
}

.intro__text,
.author__text {
  max-width: 680px;
}

.intro p:not(.section-label),
.author p:not(.section-label),
.buy p,
.faq p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.58;
}

.specs {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.specs div {
  background: rgba(18, 20, 22, 0.86);
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.specs div:last-child {
  border-bottom: 0;
}

.specs span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.specs strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 1.08rem;
}

.themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.themes article {
  min-height: 250px;
  padding: clamp(26px, 4.2vw, 48px);
  border-right: 1px solid var(--line);
  background: rgba(18, 20, 22, 0.58);
}

.themes article:last-child {
  border-right: 0;
}

.themes span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--accent-2);
  font-family: Cinzel, serif;
}

.themes p {
  color: var(--muted);
}

.characters {
  padding: clamp(62px, 9vw, 116px) clamp(20px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(242, 240, 235, 0.035), transparent 55%),
    rgba(12, 13, 14, 0.72);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(30px, 5vw, 56px);
}

.section-heading p:not(.section-label) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.character-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.character-card {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  min-height: 280px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  background: rgba(18, 20, 22, 0.78);
}

.character-card__image {
  width: 100%;
  height: 260px;
  border: 1px solid rgba(217, 210, 196, 0.18);
  background: #0d0e0f;
  object-fit: contain;
  object-position: center bottom;
}

.placeholder {
  display: grid;
  place-items: center;
  color: rgba(217, 210, 196, 0.46);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.character-card p {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.character-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
}

.character-card span {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.section-actions,
.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quote-band {
  padding: clamp(58px, 9vw, 104px) clamp(20px, 8vw, 130px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

blockquote {
  max-width: 980px;
  margin: 0 auto;
  color: var(--accent);
  font-size: clamp(1.7rem, 4vw, 4.2rem);
}

.author {
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
}

.author__image img {
  width: min(100%, 420px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.78) contrast(1.08);
}

.works-hero {
  padding: 132px clamp(20px, 6vw, 92px) 64px;
  border-bottom: 1px solid var(--line);
}

.works-hero h1 {
  font-size: clamp(3.2rem, 8vw, 7.5rem);
}

.books-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(42px, 7vw, 86px) clamp(20px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
}

.book-card a {
  display: grid;
  gap: 18px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(18, 20, 22, 0.78);
  transition: transform 160ms ease, border-color 160ms ease;
}

.book-card a:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 210, 196, 0.42);
}

.book-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(217, 210, 196, 0.16);
}

.book-card p {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.book-card span {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.work-detail {
  min-height: 100vh;
}

.buy,
.faq {
  padding: clamp(58px, 8vw, 106px) clamp(20px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
}

.buy {
  text-align: center;
  background: linear-gradient(180deg, rgba(217, 210, 196, 0.07), transparent);
}

.buy .button + .button {
  margin-left: 10px;
}

.buy p {
  max-width: 660px;
  margin: 20px auto 30px;
}

.faq {
  max-width: 980px;
  margin: 0 auto;
}

details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.08rem;
}

footer {
  padding: 34px clamp(20px, 6vw, 92px);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    padding: 16px 20px;
  }

  nav {
    display: none;
  }

  .hero,
  .intro,
  .author {
    grid-template-columns: 1fr;
  }

  .books-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .book-stage {
    order: -1;
  }

  .book-stage img {
    width: min(74vw, 320px);
  }

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

  .themes article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .themes span {
    margin-bottom: 34px;
  }

  .author__image img {
    width: min(100%, 340px);
  }
}

@media (max-width: 520px) {
  .hero__actions,
  .section-actions,
  .author-links {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .character-card {
    grid-template-columns: 1fr;
  }

  .character-card__image {
    height: 300px;
  }

  .books-showcase {
    grid-template-columns: 1fr;
  }

  .buy .button + .button {
    margin-left: 0;
    margin-top: 10px;
  }
}
