@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --forest: #242b21;
  --forest-deep: #1a2018;
  --olive: #353e2c;
  --charcoal: #1c1c1c;
  --sand: #c3b18c;
  --rust: #805039;
  --ivory: #e8e4d8;
  --paper: #f5f1e8;
  --lime: #d4e157;
  --lime-hover: #e2ec7c;

  --ground: var(--forest);
  --on-ground: var(--paper);
  --on-ground-soft: #d3d6c6;
  --action: var(--lime);
  --on-action: var(--charcoal);
  --focus: var(--lime);
  --text-on-paper: var(--charcoal);
  --muted-on-paper: #4c5144;
  --rule-on-paper: #cfc8b6;

  --sticker-edge: var(--paper);
  --sticker-border: clamp(.3rem, .7vw, .5rem);
  --sticker-radius: 1.25rem;
  --sticker-shadow: 0 .15rem .3rem #0b0f0a59, 0 .9rem 2rem #0b0f0a66;
  --sticker-lift: 0 .3rem .5rem #0b0f0a4d, 0 2.2rem 3.4rem #0b0f0a80;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: clamp(4.5rem, 10vw, 8.5rem);
  --gutter: clamp(1rem, 5vw, 4.5rem);
  --shell: 84rem;
  --measure: 62ch;

  --body: "Source Sans 3", system-ui, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --lead: clamp(1.125rem, 1.45vw, 1.375rem);
  --heading: clamp(3rem, 7.2vw, 6rem);
  --title: clamp(4rem, 10.6vw, 9.25rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scrollbar-color: var(--sand) var(--forest-deep); }
body { margin: 0; background: var(--ground); color: var(--on-ground); font: 1.0625rem/1.55 var(--body); caret-color: var(--lime); overflow-x: clip; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: .5rem; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
figure, dl, dd { margin: 0; }
p { margin: 0; max-width: var(--measure); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: .96; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: var(--heading); }
h1 em, h2 em { font-style: normal; color: var(--lime); }
.largura { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; inset-block-start: var(--space-2); inset-inline-start: var(--space-2); transform: translateY(-200%); z-index: 9; padding: var(--space-3) var(--space-4); border-radius: 999px; background: var(--lime); color: var(--charcoal); font-weight: 700; }
.skip:focus { transform: none; }
main:focus { outline: none; }

/* Adesivo: borda recortada, sombra suave, leve rotação */
.adesivo {
  border: var(--sticker-border) solid var(--sticker-edge);
  border-radius: var(--sticker-radius);
  box-shadow: var(--sticker-shadow);
  background: var(--sticker-edge);
  rotate: var(--giro, 0deg);
}
img.adesivo { object-fit: cover; }

.pilula, .pilula-adesivo, .botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.pilula {
  min-height: 44px;
  padding: .55rem 1.15rem;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.pilula:hover:not(:disabled) { background: var(--on-ground); color: var(--charcoal); border-color: var(--on-ground); }
.pilula-acao { border-color: var(--action); background: var(--action); color: var(--on-action); }
.pilula-acao:hover { background: var(--lime-hover); border-color: var(--lime-hover); color: var(--on-action); }
.pilula-adesivo { padding: .5em 1.05em; color: var(--charcoal); font: 700 clamp(1rem, 1.6vw, 1.5rem)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.pilula-limao { background: var(--lime); }
.pilula-areia { background: var(--sand); }

.botao {
  min-height: 3.75rem;
  padding: .9rem 1.9rem;
  background: var(--action);
  color: var(--on-action);
  font-size: 1.1875rem;
  box-shadow: 0 .4rem .8rem #0b0f0a40, 0 .9rem 1.6rem #0b0f0a59;
  transition: transform .25s var(--ease-out), background .2s var(--ease-out), box-shadow .25s var(--ease-out);
}
.botao:hover { background: var(--lime-hover); transform: translateY(-2px) rotate(-1deg); box-shadow: 0 .5rem 1rem #0b0f0a40, 0 1.3rem 2rem #0b0f0a73; }
.botao:active { transform: translateY(1px); }
.botao-preco { padding: .2rem .7rem; border-radius: 999px; background: var(--charcoal); color: var(--lime); font-variant-numeric: tabular-nums; }
.botao-espera { background: var(--olive); color: var(--on-ground); box-shadow: none; border: 2px dashed var(--sand); }
.link-seta { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.link-seta svg { transition: translate .25s var(--ease-out); }
.link-seta:hover svg { translate: 4px 0; }
.link-seta:hover { border-bottom-color: currentColor; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--forest) 88%, transparent); backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid #ffffff14; }
.barra { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 4.5rem; }
.marca { display: inline-flex; align-items: center; min-height: 44px; }
.marca img { width: clamp(8.5rem, 20vw, 12rem); }
.topo nav { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.75rem); }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.nav-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.nav-preco { font-variant-numeric: tabular-nums; }

/* Abertura */
.abertura { position: relative; padding-top: clamp(2rem, 5vw, 4.5rem); }
.abertura-grade { display: grid; gap: var(--space-7); align-items: center; padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.abertura h1 { font-size: var(--title); line-height: .97; letter-spacing: -.02em; }
.abertura h1 em { display: block; }
.abertura-resumo { margin-top: var(--space-5); max-width: 40ch; color: var(--on-ground-soft); font-size: var(--lead); }
.abertura-resumo strong { color: var(--on-ground); font-weight: 700; }
.abertura-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-6); }

.palco { position: relative; aspect-ratio: 1 / 1.02; width: min(100%, 36rem); justify-self: center; }
.palco > * { position: absolute; }
.palco-capa { --giro: 4deg; left: 22%; top: 6%; width: 54%; aspect-ratio: 637 / 900; z-index: 2; }
.palco-panela { --giro: -8deg; left: 0; top: 52%; width: 40%; aspect-ratio: 600 / 446; z-index: 3; }
.palco-horta { --giro: 7deg; right: 2%; top: 0; width: 25%; aspect-ratio: 184 / 304; z-index: 1; }
.palco-tag-reparos { --giro: 6deg; left: 3%; top: 84%; z-index: 4; }
.palco-tag-horta { --giro: -6deg; right: 0; top: 30%; z-index: 4; }
.palco-pdf { --giro: -4deg; left: 0; top: 14%; z-index: 4; }
.palco-selo { --giro: -12deg; right: 2%; top: 52%; width: 32%; z-index: 4; }
.palco-pagamento { --giro: 3deg; left: 40%; bottom: 0; z-index: 4; }

.selo {
  display: grid;
  place-content: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sand);
  color: var(--charcoal);
  font-family: var(--display);
  line-height: .85;
  text-align: center;
  font-variant-numeric: tabular-nums;
  container-type: inline-size;
}
.selo-moeda { font-size: 16cqi; letter-spacing: .04em; }
.selo-valor { font-size: 44cqi; letter-spacing: -.02em; }
.selo-valor small { font-size: .5em; vertical-align: .62em; margin-left: .03em; }

/* Faixa contínua */
.faixa { --giro: -2deg; position: relative; z-index: 3; margin-inline: -2vw; padding-block: .85rem; background: var(--paper); color: var(--charcoal); rotate: var(--giro); overflow: hidden; box-shadow: 0 .8rem 1.6rem #0b0f0a4d; }
.faixa-trilho { display: flex; width: max-content; animation: correr 38s linear infinite; }
.faixa span { display: inline-flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem; font: 700 clamp(1.35rem, 2.6vw, 2.1rem)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.faixa span::after { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--forest); }
@keyframes correr { to { translate: -50% 0; } }

/* Temas */
.temas { padding-block: var(--space-9) var(--space-8); }
.temas-lista { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.tema { display: grid; gap: var(--space-5); align-items: center; }
.tema-arte { width: min(100%, 22rem); aspect-ratio: 4 / 3; }
.tema-2 .tema-arte { aspect-ratio: 3 / 4; width: min(72%, 15rem); }
.tema-3 .tema-arte { aspect-ratio: 2 / 3; width: min(66%, 14rem); }
.tema-1 .tema-arte { --giro: -3deg; }
.tema-2 .tema-arte { --giro: 4deg; }
.tema-3 .tema-arte { --giro: -5deg; }
.tema h3 { font-size: clamp(2.6rem, 6.4vw, 5.5rem); }
.tema p { margin-top: var(--space-3); color: var(--on-ground-soft); font-size: var(--lead); max-width: 36ch; }

/* Amostra */
.amostra { position: relative; padding-block: var(--space-9); background: var(--olive); border-radius: clamp(2rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem) 0 0; }
.amostra-grade { display: grid; gap: var(--space-7); align-items: start; }
.amostra-texto p { margin-block: var(--space-5) var(--space-4); color: var(--on-ground-soft); font-size: var(--lead); max-width: 34ch; }
.folha-adesivo { --giro: 1.2deg; --sticker-edge: var(--paper); padding: clamp(1rem, 2vw, 1.5rem); color: var(--text-on-paper); }
.leitor { outline-offset: 6px; }
.folhas { width: min(100%, 36rem); margin-inline: auto; }
.leitor:not(.leitor-pronto) .folha + .folha { margin-top: var(--space-5); }
.folha img { width: 100%; border-radius: .6rem; }
.folha figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 var(--space-3); padding-top: var(--space-2); color: var(--muted-on-paper); font-size: .9375rem; }
.folha figcaption a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--charcoal); }
.paginacao { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-2); align-items: center; width: min(100%, 36rem); margin: var(--space-2) auto 0; padding-top: var(--space-3); border-top: 1px solid var(--rule-on-paper); text-align: center; color: var(--charcoal); }
.paginacao .pilula { --on-ground: var(--charcoal); border-color: var(--charcoal); }
.paginacao .pilula:hover:not(:disabled) { color: var(--paper); }
.paginacao [data-anterior] { justify-self: start; }
.paginacao [data-proxima] { justify-self: end; }
.paginacao .pilula:disabled { opacity: .4; cursor: default; }
[data-contador] { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }

.indice { margin-top: var(--space-8); }
.indice summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 4.5rem;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-6);
  border: 2px solid var(--on-ground);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  font: 700 clamp(1.5rem, 3vw, 2.4rem)/1 var(--display);
  text-transform: uppercase;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.indice summary::-webkit-details-marker { display: none; }
.indice summary svg { flex: none; width: 3rem; height: 3rem; padding: .75rem; border-radius: 50%; background: var(--sand); color: var(--charcoal); transition: rotate .35s var(--ease-out); }
.indice summary:hover { background: var(--on-ground); color: var(--charcoal); }
.indice[open] summary svg { rotate: 45deg; }
.indice-folha { --giro: -.8deg; margin-top: var(--space-6); }

/* Compra: a cartela */
.compra { position: relative; padding-block: var(--space-9); background: var(--forest); border-radius: clamp(2rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem) 0 0; margin-top: calc(-1 * clamp(2rem, 6vw, 5rem)); }
.compra h2 { font-size: clamp(3.5rem, 9vw, 7.5rem); }
.cartela {
  --corte: color-mix(in srgb, var(--forest) 45%, transparent);
  display: grid;
  gap: var(--space-6) var(--space-5);
  margin-top: var(--space-7);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--ivory) radial-gradient(circle at 1px 1px, #242b2114 1px, transparent 0) 0 0 / 14px 14px;
  color: var(--text-on-paper);
  box-shadow: 0 1.5rem 3.5rem #0b0f0a66;
  rotate: -.6deg;
}
.compra h2 em { color: var(--sand); }
.cartela { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.cartela-dados, .cartela-acao { grid-column: 1 / -1; }
.corte { outline: 2px dashed var(--corte); outline-offset: .3rem; }
.cartela .adesivo { --sticker-shadow: 0 .15rem .3rem #1c1c1c33, 0 .6rem 1.2rem #1c1c1c33; }
.cartela-capa { --giro: -4deg; width: min(13rem, 100%); aspect-ratio: 637 / 900; justify-self: center; }
.cartela-selo { --giro: 9deg; width: clamp(8.5rem, 18vw, 12.5rem); justify-self: center; background: var(--rust); color: var(--paper); }
.cartela-dados { display: grid; gap: var(--space-7) 0; padding: var(--space-3) var(--space-2); }
.cartela-item:nth-child(2) { margin-top: var(--space-2); }
.cartela-item { padding: var(--space-4) var(--space-5); background: var(--paper); }
.cartela-item { width: fit-content; max-width: 86%; }
.cartela-item:nth-child(1) { --giro: -1.5deg; justify-self: start; }
.cartela-item:nth-child(2) { --giro: 2deg; justify-self: start; margin-left: 8%; --sticker-edge: var(--sand); background: var(--sand); }
.cartela-item:nth-child(3) { --giro: -1deg; justify-self: start; margin-left: 3%; max-width: 30rem; }
.cartela-item dt { display: flex; align-items: center; gap: var(--space-2); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-paper); }
.cartela-item dt svg { width: 1.4rem; height: 1.4rem; color: var(--rust); }
.cartela-item dd { margin-top: var(--space-1); font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }
.cartela-acao { display: grid; gap: var(--space-3); }
.cartela-acao .botao { width: 100%; min-height: 4.25rem; font-size: 1.3125rem; }
.cartela .botao-espera { color: var(--charcoal); background: var(--paper); border: 2px dashed var(--rust); box-shadow: none; }
.cartela-nota { color: var(--muted-on-paper); font-size: .9375rem; text-align: center; max-width: none; }

/* Perguntas */
.perguntas { padding-block: var(--space-8) var(--space-9); }
.perguntas-coluna { max-width: 46rem; }
.perguntas h2 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); text-align: center; margin-bottom: var(--space-6); }
.pergunta { border-bottom: 1px solid #ffffff24; }
.pergunta:first-child { border-top: 1px solid #ffffff24; }
.pergunta summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); min-height: 5.25rem; padding-block: var(--space-4); cursor: pointer; list-style: none; font: 700 clamp(1.625rem, 2.8vw, 2.125rem)/.95 var(--display); letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; -webkit-tap-highlight-color: transparent; }
.pergunta summary::-webkit-details-marker { display: none; }
.pergunta summary span { transition: color .2s var(--ease-out), translate .35s var(--ease-out); }
.pergunta summary svg { flex: none; box-sizing: content-box; width: 1.25rem; height: 1.25rem; padding: .8rem; border-radius: 50%; background: var(--sand); color: var(--charcoal); box-shadow: 0 .1rem .2rem #0b0f0a59, 0 .5rem 1rem #0b0f0a4d; transition: rotate .4s var(--ease-out), scale .2s var(--ease-out), background .2s var(--ease-out); }
.pergunta summary:hover span { color: var(--sand); }
.pergunta summary:hover svg { background: var(--on-ground); scale: 1.08; }
.pergunta summary:active svg { scale: .94; }
.pergunta summary:focus-visible { outline-offset: 2px; }
.pergunta[open] summary span { color: var(--sand); }
.pergunta[open] summary svg { rotate: 135deg; background: var(--on-ground); }
.pergunta p { padding: 0 4.5rem var(--space-6) 0; font-size: var(--lead); line-height: 1.5; color: var(--on-ground-soft); }
@media (prefers-reduced-motion: no-preference) {
  @supports selector(::details-content) {
    .pergunta { interpolate-size: allow-keywords; }
    .pergunta::details-content { height: 0; overflow: clip; transition: height .45s var(--ease-out), content-visibility .45s allow-discrete; }
    .pergunta[open]::details-content { height: auto; }
  }
  .pergunta[open] p { animation: resposta .5s var(--ease-out) both; }
  @keyframes resposta { from { opacity: 0; translate: 0 -.4rem; } }
}
@media (max-width: 40rem) { .pergunta p { padding-right: 0; } }

/* Rodapé */
.rodape { padding-block: var(--space-8) var(--space-6); background: var(--forest); border-top: 1px solid #ffffff14; }
.rodape-frase { font: 700 clamp(2.5rem, 8vw, 6.5rem)/.88 var(--display); text-transform: uppercase; color: var(--sand); max-width: 14ch; }
.rodape-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-7); color: var(--on-ground-soft); }
.rodape-base img { width: 10rem; }

.erro { min-height: 60vh; padding-block: var(--space-9); }
.erro .botao { margin-top: var(--space-6); }

/* Entrada: os adesivos assentam na página */
@media (prefers-reduced-motion: no-preference) {
  @keyframes colar {
    from { scale: 1.14; translate: 0 -16px; rotate: calc(var(--giro, 0deg) + 7deg); box-shadow: var(--sticker-lift); }
    65% { scale: .985; translate: 0 0; rotate: calc(var(--giro, 0deg) - 1deg); }
  }
  .palco > * { animation: colar .9s var(--ease-out) both; }
  .palco-horta { animation-delay: .02s; }
  .palco-capa { animation-delay: .1s; }
  .palco-panela { animation-delay: .22s; }
  .palco-pdf { animation-delay: .34s; }
  .palco-tag-horta { animation-delay: .42s; }
  .palco-tag-reparos { animation-delay: .5s; }
  .palco-selo { animation-delay: .6s; }
  .palco-pagamento { animation-delay: .7s; }
  @supports (animation-timeline: view()) {
    .tema-arte, .cartela .adesivo { animation: colar linear both; animation-timeline: view(); animation-range: entry 10% entry 75%; }
  }
  .tema-arte { transition: box-shadow .5s var(--ease-out); }
  .tema-arte:hover { box-shadow: var(--sticker-lift); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faixa-trilho { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 39.999rem) {
  .nav-link { display: none; }
  .abertura-acoes .botao { width: 100%; }
  .palco { width: min(100%, 26rem); }
  .indice summary { font-size: 1.375rem; padding-left: var(--space-5); }
  .paginacao .pilula { padding-inline: .8rem; }
  .tema:nth-child(even) .tema-arte { justify-self: end; }
}

@media (min-width: 52rem) {
  .abertura-grade { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-5); }
  .abertura-texto { grid-column: 1 / 7; }
  .palco { grid-column: 7 / 13; width: 100%; max-width: 40rem; }

  .tema { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-5); }
  .tema-1 .tema-arte { grid-column: 1 / 5; }
  .tema-1 .tema-texto { grid-column: 6 / 12; }
  .tema-2 .tema-arte { grid-column: 9 / 12; grid-row: 1; width: 100%; }
  .tema-2 .tema-texto { grid-column: 2 / 9; grid-row: 1; }
  .tema-3 .tema-arte { grid-column: 4 / 7; width: 100%; }
  .tema-3 .tema-texto { grid-column: 7 / 13; }

  .amostra-grade { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-5); }
  .amostra-texto { grid-column: 1 / 6; position: sticky; top: 7rem; }
  .folha-adesivo:not(.indice-folha) { grid-column: 6 / 13; }
  .indice-folha { width: min(100%, 44rem); margin-inline: auto; }

  .cartela { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
  .cartela-capa { grid-column: 1 / 5; grid-row: 1 / 3; width: 100%; max-width: 15rem; }
  .cartela-selo { grid-column: 4 / 6; grid-row: 2; justify-self: end; align-self: end; margin-bottom: -1rem; z-index: 2; }
  .cartela-dados { grid-column: 6 / 13; grid-row: 1; row-gap: var(--space-8); }
  .cartela-item:nth-child(2) { justify-self: end; margin: 0 2% 0 0; }
  .cartela-acao { grid-column: 6 / 13; grid-row: 2; }

}

/* Estante: os outros livros e a coleção */
.estante { padding-block: var(--space-9); background: var(--olive); border-radius: clamp(2rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem) 0 0; margin-top: calc(-1 * clamp(2rem, 6vw, 5rem)); position: relative; }
.estante-resumo { margin-top: var(--space-4); color: var(--on-ground-soft); font-size: var(--lead); }
.estante-desconto { --giro: -2deg; margin-top: var(--space-5); white-space: normal; text-align: center; line-height: 1.1; }
.apresentacao { padding-block-start: var(--space-8); }
.estante-reel { margin-block-start: var(--space-4); }
.estante-reel figcaption { margin-block-end: var(--space-4); }
.estante-reel p { color: var(--on-ground-soft); }
.estante-reel video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: .85rem;
  background: var(--forest-deep);
  box-shadow: 0 .15rem .3rem #0b0f0a59, 0 .9rem 2rem #0b0f0a66;
}
.estante-reel .estante-video-horizontal { display: none; }
@media (min-width: 42rem) {
  .estante-reel .estante-video-vertical { display: none; }
  .estante-reel .estante-video-horizontal { display: block; aspect-ratio: 16 / 9; }
}
.estante-lista { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: clamp(4rem, 8vw, 6rem) var(--space-7); }
.livro { display: grid; gap: var(--space-6); align-content: start; }
.livro-capas { display: flex; justify-content: center; padding-inline: var(--space-4); }
.livro-capas img { width: min(62%, 15rem); aspect-ratio: 637 / 902; }
.livro:nth-child(odd) .livro-capas img { --giro: -4deg; }
.livro:nth-child(even) .livro-capas img { --giro: 3.5deg; }
.livro-pacote .livro-capas img { width: min(40%, 13rem); }
.livro-pacote .livro-capas img + img { margin-left: -12%; }
.livro-pacote .livro-capas img:nth-child(1) { --giro: -8deg; z-index: 1; }
.livro-pacote .livro-capas img:nth-child(2) { --giro: 2deg; z-index: 2; translate: 0 -.6rem; }
.livro-pacote .livro-capas img:nth-child(3) { --giro: 9deg; z-index: 1; object-position: 50% 30%; }
.livro-chamada { color: var(--sand); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.livro h3, .colecao h3 { margin-top: var(--space-2); font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.livro-resumo { margin-top: var(--space-3); color: var(--on-ground-soft); max-width: 46ch; }
.livro-meta { margin-block: var(--space-3) var(--space-5); font-weight: 700; }
.livro .botao, .colecao .botao { white-space: normal; }

.colecao {
  --corte: color-mix(in srgb, var(--forest) 45%, transparent);
  display: grid; gap: var(--space-6);
  margin-top: var(--space-9);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--ivory) radial-gradient(circle at 1px 1px, #242b2114 1px, transparent 0) 0 0 / 14px 14px;
  color: var(--text-on-paper);
  box-shadow: 0 1.5rem 3.5rem #0b0f0a66;
  rotate: .5deg;
}
.colecao .adesivo { --sticker-shadow: 0 .15rem .3rem #1c1c1c33, 0 .6rem 1.2rem #1c1c1c33; outline: 2px dashed var(--corte); outline-offset: .3rem; }
.colecao-capas { display: flex; justify-content: center; padding: var(--space-3) var(--space-4); }
.colecao-capas img { width: 26%; max-width: 9.5rem; aspect-ratio: 637 / 902; }
.colecao-capas img + img { margin-left: -6%; }
.colecao-capas img:nth-child(odd) { --giro: -5deg; }
.colecao-capas img:nth-child(even) { --giro: 4deg; translate: 0 .5rem; }
.colecao-capas img:nth-child(3n) { --giro: -1deg; }
.colecao .livro-chamada { color: var(--rust); }
.colecao .livro-resumo { color: var(--muted-on-paper); }
.colecao .botao { margin-top: var(--space-5); }
.colecao .botao-espera { color: var(--charcoal); background: var(--paper); border: 2px dashed var(--rust); box-shadow: none; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .livro-capas img, .colecao-capas img { animation: colar linear both; animation-timeline: view(); animation-range: entry 10% entry 75%; }
  }
}

@media (max-width: 39.999rem) {
  .livro .botao, .colecao .botao { width: 100%; }
}

@media (min-width: 52rem) {
  .estante-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .livro:last-child:nth-child(even) { grid-column: 1 / -1; width: min(100%, 36rem); justify-self: center; }
  .livro-pacote { grid-column: 1 / -1; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: var(--space-5); }
  .livro-pacote .livro-capas { grid-column: 1 / 7; }
  .livro-pacote .livro-texto { grid-column: 8 / 13; }
  .colecao { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: var(--space-5); }
  .colecao-capas { grid-column: 1 / 7; }
  .colecao-texto { grid-column: 8 / 13; }
}

@media (min-width: 68rem) {
  .estante-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .livro:last-child:nth-child(even) { grid-column: auto; width: auto; }
  .livro-capas img { width: min(78%, 15rem); }
}
.livro { grid-template-rows: auto 1fr; }
.livro-texto { display: flex; flex-direction: column; align-items: flex-start; }
.livro-texto .botao { margin-top: auto; }

/* Lupa: página ampliada em tela cheia */
html.lupa-aberta { overflow: hidden; }
.lupa {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--forest-deep);
  color: var(--paper);
  display: none;
  grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr);
}
.lupa[open] { display: grid; }
.lupa::backdrop { background: #0b0f0acc; }
@keyframes lupa-entra { from { opacity: 0; } }
.lupa-topo, .lupa-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) max(var(--space-3), env(safe-area-inset-right)) var(--space-2) max(var(--space-4), env(safe-area-inset-left));
}
.lupa-base { padding-bottom: max(var(--space-2), env(safe-area-inset-bottom)); }
.lupa-legenda { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lupa-contador { margin-left: var(--space-2); color: var(--on-ground-soft); font-weight: 400; font-variant-numeric: tabular-nums; }
.lupa-fechar {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.lupa-fechar:hover { background: var(--paper); color: var(--charcoal); }
.lupa-palco {
  display: flex;
  align-items: flex-start;
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--space-2);
}
.lupa-palco img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: auto;
  border-radius: .5rem;
  box-shadow: var(--sticker-shadow);
  background: var(--paper);
  cursor: zoom-in;
}
.lupa-perto .lupa-palco img { flex: none; max-width: none; max-height: none; width: max(100%, min(230%, 1131px)); margin: 0 auto; cursor: zoom-out; }
@media (min-width: 60rem) { .lupa-perto .lupa-palco img { width: min(100%, 1131px); } }
.lupa-base .pilula:disabled { opacity: .35; cursor: default; }
.lupa-dica { color: var(--on-ground-soft); font-size: .875rem; line-height: 1.2; text-align: center; }
@media (prefers-reduced-motion: reduce) { .lupa[open] { animation: none; } }
