/*
  Classics on Graphics — estilo do site
  Direção visual: design do Claude Design (fundo preto, menu lateral,
  acento dourado, títulos em Bodoni Moda e texto em Inter).
  Para mudar cores ou fontes, altere só os tokens em :root.
*/

:root {
  --bg: #000;
  --surface: #0b0b0b;
  --surface-2: #111;
  --hover: #161616;
  --line: #1f1f1f;
  --line-2: #3a3a3a;
  --text: #fff;
  --soft: #d4d4d4;
  --muted: #a3a3a3;
  --accent: #E0B44C;

  --serif: "Bodoni Moda", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --side: 260px;
  --pad: 40px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--muted); margin-top: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -4rem; z-index: 10;
  background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.icon { flex: none; }
.icon--ext { width: 14px; height: 14px; margin-left: auto; }

/* ---------- Estrutura: menu lateral + coluna principal ---------- */
.shell { display: flex; align-items: stretch; min-height: 100vh; }
.side {
  position: sticky; top: 0; align-self: flex-start;
  flex: 0 0 var(--side); width: var(--side); height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--line); padding: 22px 14px;
  display: flex; flex-direction: column; gap: 22px;
}
.main { flex: 1 1 auto; min-width: 0; }
.pad { padding-inline: var(--pad); }

/* Faixa superior: logo à esquerda, idiomas à direita */
.topstrip { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand {
  flex: 0 0 var(--side); width: var(--side); display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 18px; border-right: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.brand img { height: 44px; width: auto; flex: none; }
.brand span { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.1; }
.brand:hover { color: var(--accent); }
.topstrip__bar {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--pad);
}

.side-nav, .side-extra { display: flex; flex-direction: column; gap: 2px; }
.side-extra { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; }
.side-extra:empty { display: none; }
.navlink {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: var(--radius); color: var(--muted);
  font-size: 15px; font-weight: 500; text-decoration: none;
}
.navlink:hover { background: var(--hover); color: var(--text); }
.navlink.is-active { background: #1a1a1a; color: var(--text); }
.navlink--accent { color: var(--accent); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; min-width: 0; color: var(--text); }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--accent); }
.crumbs a { text-decoration: none; }
.crumbs svg { color: #8a8a8a; }
.crumbs [aria-current] { color: var(--soft); }

.langs { display: flex; gap: 4px; padding: 4px; border: 1px solid #262626; border-radius: 999px; flex: none; }
.langs a {
  min-width: 44px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; border-radius: 999px; color: var(--soft);
  font-size: 13px; font-weight: 600; letter-spacing: .4px; text-decoration: none;
}
.langs a:hover { color: var(--text); background: var(--hover); }
.langs a[aria-current] { background: var(--text); color: #000; }

/* ---------- Destaque ---------- */
.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  padding-top: 72px; padding-bottom: 64px; overflow: clip;
}
/* Brilho dourado centralizado atrás das capas */
.hero__stack, .hero__single { position: relative; isolation: isolate; }
.hero__stack::before, .hero__single::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; width: 640px; height: 520px; max-width: 100vw; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(224,180,76,.26), rgba(122,31,43,.18) 55%, transparent);
}
.hero--title .hero__single::before {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 55%, transparent), rgba(224,180,76,.10) 55%, transparent);
}
.hero__single > .cover { position: relative; }
.hero__text { flex: 1 1 420px; min-width: 0; max-width: 660px; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
h1 { font-size: clamp(2.4rem, 1.6rem + 2.8vw, 3.75rem); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; overflow-wrap: break-word; hyphens: auto; }
.lead { font-size: 18px; line-height: 1.6; color: var(--soft); }
.by { font-size: 18px; color: var(--soft); margin-top: -6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 12px; border-radius: 999px; background: var(--line); font-size: 14px; font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  background: var(--text); color: #000; border: 1px solid var(--text);
  font: 600 16px var(--sans); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.button--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.button--ghost:hover { background: transparent; border-color: var(--text); color: var(--text); }
.button--sm { min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 500; }

/* Pilha de capas na home */
.hero__stack { position: relative; flex: 0 0 340px; height: 420px; }
.hero__cover { position: absolute; width: 230px; top: 50%; left: 50%; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.hero__cover--1 { z-index: 3; transform: translate(-50%, -50%); }
.hero__cover--2 { z-index: 2; transform: translate(-95%, -52%) rotate(-8deg); opacity: .85; }
.hero__cover--3 { z-index: 1; transform: translate(-5%, -52%) rotate(8deg); opacity: .85; }
.hero__single { flex: 0 0 280px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }

/* ---------- Capas ---------- */
.cover { width: 100%; aspect-ratio: 2 / 3; border-radius: 3px; }
/* Capa real: mantém a proporção original da arte, sem cortes */
img.cover { aspect-ratio: auto; height: auto; }
.cover--placeholder {
  background: var(--cover-bg); color: var(--cover-fg);
  padding: 14px 10px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center; overflow: hidden; container-type: inline-size;
}
.cover__brand { font-size: max(7px, 4.5cqi); letter-spacing: .2em; text-transform: uppercase; }
.cover__title { font-family: var(--serif); font-size: 11cqi; font-weight: 700; line-height: 1.05; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
.cover__by { font-family: var(--serif); font-size: 7cqi; font-style: italic; }

/* ---------- Seções ---------- */
.section { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.h-lg { font-size: 30px; font-weight: 700; letter-spacing: -.5px; }
.prose { max-width: 660px; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 24px; }
.prose p { color: var(--muted); font-size: 16px; line-height: 1.7; }

.points {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.points li { display: flex; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.points__n { font-family: var(--serif); font-size: 22px; color: var(--accent); min-width: 28px; }
.points h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.points p { color: var(--muted); font-size: 15px; }

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }

.grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.card__link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); }
.card__link .cover { box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .2s ease; margin-bottom: 8px; }
.card__link:hover .cover { transform: translateY(-4px); }
.card__cover { position: relative; }

/* Selo "Mais vendido" */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: #000; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.badge--on-cover { position: absolute; top: 8px; left: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.5); font-size: 11px; }
.card__title { font-size: 16px; font-weight: 600; line-height: 1.25; }
.card__link:hover .card__title { color: var(--accent); }
.card__meta { font-size: 14px; color: var(--muted); }

/* Faixa de ilustrações na home */
.strip { padding-left: 0; padding-right: 0; }
.strip h2 { margin-bottom: 24px; }
.strip__list {
  list-style: none; margin: 0 var(--pad); padding: 0 0 16px; display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0;
  scrollbar-width: auto; scrollbar-color: var(--accent) #1a1a1a;
}
/* Barra de rolagem visível (Chrome, Edge, Safari) */
.strip__list::-webkit-scrollbar { height: 10px; }
.strip__list::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 999px; }
.strip__list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.strip__list::-webkit-scrollbar-thumb:hover { background: #f0c860; }
.strip__list li { flex: 0 0 auto; width: min(240px, 62vw); scroll-snap-align: start; }
.strip__list a { display: block; position: relative; text-decoration: none; color: var(--text); }
.strip__list img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; transition: transform .2s ease; }
.strip__list a:hover img { transform: translateY(-3px); }
.strip__list span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; border-radius: 0 0 6px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: 14px; font-weight: 600;
}

/* Galeria de cenas */
.scenes {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 40vw), 1fr));
}
.scenes a { display: block; }
.scenes img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; transition: filter .2s ease; }
.scenes a:hover img { filter: brightness(1.12); }

/* Personagens */
.people {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(min(170px, 40vw), 1fr));
}
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 8px; margin-bottom: 12px; }
.person h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.person p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Avaliações de leitores */
.reviews {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.review figure {
  margin: 0; height: 100%; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border: 1px solid #262626; border-radius: 14px; background: var(--surface);
}
.review__stars { color: var(--accent); font-size: 18px; letter-spacing: 2px; }
.review__stars span { color: var(--line-2); }
.review blockquote { margin: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.review blockquote p { color: var(--soft); font-size: 16px; line-height: 1.6; }
.review blockquote .review__headline { color: var(--text); font-weight: 600; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.review__name { font-weight: 600; }
.review__meta { color: var(--muted); }
.review__link { margin-top: 8px; color: var(--accent); font-weight: 600; }

.box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px; border-radius: 16px; background: var(--surface-2);
}
.box .prose { flex: 1 1 360px; }

.news { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.news .prose { flex: 1 1 360px; max-width: 520px; }
.newsletter { flex: 1 1 360px; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
.newsletter label { font-size: 14px; font-weight: 500; color: var(--soft); }
.newsletter__row { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter input[type="email"] {
  flex: 1 1 220px; min-height: 48px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 16px var(--sans);
}

/* ---------- Página de título ---------- */
.cols { display: flex; flex-wrap: wrap; gap: 48px; }
.cols .prose { flex: 1 1 420px; }
.info { flex: 1 1 320px; max-width: 460px; }
.info h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

.samples {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.samples img { border-radius: 3px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }

/* ---------- Rodapé ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.site-footer__note { color: #8a8a8a; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }

/* ---------- Raiz e 404 ---------- */
.gateway { max-width: 44rem; margin: 0 auto; padding: 64px 20px; }
.gateway h1 { font-family: var(--serif); margin-bottom: 24px; }
.gateway__list { list-style: none; padding: 0; display: grid; gap: 20px; }
.gateway__list p { margin-bottom: 10px; color: var(--soft); }

/* ---------- Telas menores ---------- */
@media (max-width: 1100px) {
  .hero__stack { flex-basis: 260px; height: 340px; }
  .hero__cover { width: 180px; }
}
@media (max-width: 860px) {
  :root { --pad: 20px; }
  .shell { flex-direction: column; }
  .side {
    position: static; width: auto; height: auto; flex: none; overflow: visible; align-self: stretch; min-width: 0;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; gap: 12px;
  }
  .side-extra { display: none; }
  .side-nav { flex-direction: row; overflow-x: auto; gap: 4px; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .side-nav a { white-space: nowrap; }
  .topstrip { flex-wrap: wrap; }
  .brand { flex: 1 1 100%; width: auto; min-width: 0; border-right: 0; padding: 10px var(--pad) 4px; gap: 10px; }
  .brand img { height: 40px; }
  .brand span { font-size: 18px; }
  .topstrip__bar { flex: 1 1 100%; justify-content: flex-start; padding: 6px var(--pad) 10px; }
  .langs { gap: 2px; padding: 3px; }
  .langs a { min-width: 40px; height: 36px; padding: 0 6px; }
  .crumbs { display: none; }
  .hero { flex-direction: column-reverse; align-items: stretch; padding-top: 28px; padding-bottom: 48px; gap: 28px; }
  .hero__stack { align-self: center; flex: none; width: 100%; max-width: 320px; height: 270px; }
  .hero__cover { width: 150px; }
  .hero__single { align-self: center; flex: none; width: 200px; }
  .actions .button { flex: 1 1 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .facts div { grid-template-columns: 110px 1fr; }
  .box { padding: 24px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
}

/* Como a obra nasceu / compositor */
.work__creator { padding: 24px; border-radius: 14px; background: var(--surface-2); align-self: flex-start; }
.why-intro { max-width: 760px; margin-top: 16px; }
.focus { margin-top: 32px; max-width: 820px; padding: 24px 28px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--surface-2); }
.focus h3 { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.focus p { font-size: 18px; line-height: 1.6; color: var(--soft); }
