/* ==========================================================================
   Camila L. Oliveira — tema
   Tokens → base → layout → componentes → efeitos da marca → movimento
   ========================================================================== */

/* Marca em fonte: coloque CentersGeorge.woff2 em assets/fonts/ e ative com a
   classe .marca--tipografica (veja assets/fonts/LEIA-ME.txt). */
@font-face {
  font-family: "Centers George";
  src:
    local("Centers George"),
    url("../fonts/CentersGeorge.woff2") format("woff2"),
    url("../fonts/CentersGeorge.otf") format("opentype");
  font-display: swap;
}

:root {
  --papel: #ffffff;
  --linho: #f1e7db;
  --texto: #1d1b19;
  --preto: #000000;
  --marca: #5b5348;
  --brilho: #c9a97a;
  --fio: #1d1b19;
  --campo: #fcfcfc;
  --campo-borda: #dcdcdc;

  --sans: "Outfit", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --medida: 38rem;
  --larga: 68rem;
  --respiro: clamp(1rem, 4vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--papel);
  color: var(--texto);
  font: 400 1.0625rem/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--preto);
  outline-offset: 3px;
}

.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pular {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--preto);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-family: var(--sans);
}
.pular:focus {
  left: 0;
}
.armadilha {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* ---------- Tipografia de títulos (sans geométrica, caixa-alta, negrito) ---------- */
.titulo-pagina,
.vitrine__cab h2,
.colecao__titulo,
.newsletter h2 {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.titulo-pagina {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 2.5rem;
}

/* ---------- Cabeçalho ---------- */
.topo {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--respiro) 0;
}
.topo__marca {
  display: block;
  width: clamp(3.5rem, 7vw, 5.25rem);
  color: var(--marca);
}
.monograma {
  display: block;
  aspect-ratio: 290 / 320;
  color: var(--marca);
  background: linear-gradient(
      105deg,
      var(--marca) 0 40%,
      var(--brilho) 50%,
      var(--marca) 60% 100%
    )
    100% 0 / 260% 100%;
  -webkit-mask: var(--mascara) center / contain no-repeat;
  mask: var(--mascara) center / contain no-repeat;
}
.marca {
  margin: 0 auto;
  color: var(--marca);
}
.marca__texto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.marca__arte {
  display: block;
  aspect-ratio: 550 / 185;
  width: 100%;
  background: linear-gradient(
      105deg,
      var(--marca) 0 40%,
      var(--brilho) 50%,
      var(--marca) 60% 100%
    )
    100% 0 / 260% 100%;
  -webkit-mask: var(--mascara) center / contain no-repeat;
  mask: var(--mascara) center / contain no-repeat;
}
.topo__menu {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.75rem;
  margin: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
}
.topo__menu i,
.topo__menu i::before,
.topo__menu i::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--texto);
  content: "";
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.topo__menu i {
  position: relative;
}
.topo__menu i::before {
  position: absolute;
  top: -6px;
}
.topo__menu i::after {
  position: absolute;
  top: 6px;
}
.topo__menu[aria-expanded="true"] i {
  background: transparent;
}
.topo__menu[aria-expanded="true"] i::before {
  transform: translateY(6px) rotate(45deg);
}
.topo__menu[aria-expanded="true"] i::after {
  transform: translateY(-6px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--linho);
  display: grid;
  align-content: center;
  padding: 6rem var(--respiro) 3rem;
}
.menu[hidden] {
  display: none;
}
.menu ul {
  display: grid;
  gap: 0.25rem;
  max-width: var(--larga);
  margin-inline: auto;
  width: 100%;
}
.menu a {
  display: inline-block;
  font: 700 clamp(2rem, 7vw, 4rem)/1.15 var(--sans);
  text-transform: uppercase;
  text-decoration: none;
}
.menu a:hover,
.menu a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 2px;
}
.topo__menu[aria-expanded="true"] {
  position: relative;
  z-index: 30;
}
.topo__marca {
  position: relative;
  z-index: 30;
}

/* ---------- Conteúdo ---------- */
.conteudo {
  padding: 0 0 clamp(4rem, 9vw, 7rem);
}
.conteudo > .titulo-pagina {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.conteudo > .titulo-pagina,
.conteudo > .introducao,
.conteudo > .colecao,
.conteudo > .vitrine {
  margin-inline: auto;
  width: min(var(--larga), 100% - 2 * var(--respiro));
}
.lista-linhas,
.prosa,
.formulario,
.aviso,
.paginacao,
.vazio,
.texto-completo__data {
  margin-left: clamp(0px, 24%, 20rem);
  max-width: var(--medida);
}
.conteudo > .prosa,
.conteudo > .formulario,
.conteudo > .aviso,
.conteudo > .lista-linhas,
.conteudo > .paginacao,
.conteudo > .vazio {
  margin-left: max(
    var(--respiro),
    calc((100% - var(--larga)) / 2 + min(24%, 20rem))
  );
  margin-right: var(--respiro);
}
.texto-completo {
  width: min(var(--larga), 100% - 2 * var(--respiro));
  margin: clamp(2.5rem, 6vw, 4.5rem) auto 0;
}
.texto-completo .prosa,
.texto-completo .texto-completo__data {
  margin-left: clamp(0px, 24%, 20rem);
}
.texto-completo--artigo .texto-completo__data {
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  font: 500 0.88rem/1.4 var(--sans);
}
.texto-completo__foto {
  margin: 0 0 3rem;
}
.texto-completo__foto img {
  width: 100%;
}
.prosa > * + * {
  margin-top: 1.1em;
}
.prosa a {
  text-underline-offset: 0.18em;
}
.introducao {
  font-size: 1.125rem;
  max-width: 42rem;
  margin-bottom: 3.5rem !important;
  margin-left: auto;
}
.vazio {
  color: #5d574f;
}
.link-forte {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
}

.newsletter__aviso,
.aviso {
  flex-basis: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.aviso {
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--preto);
  background: var(--linho);
  margin-bottom: 1.5rem;
}
.aviso--erro {
  border-color: #9b2c2c;
}

/* ---------- Rodapé ---------- */
.rodape {
  background: var(--linho);
  padding: clamp(2.5rem, 6vw, 4rem) var(--respiro) 1.5rem;
  text-align: center;
}
.rodape__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
}
.rodape__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  justify-content: center;
}
.rodape__nav a {
  font: 500 0.95rem var(--sans);
  text-transform: uppercase;
  text-decoration: none;
}
.rodape__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.busca {
  display: flex;
  background: #fff;
  border: 1px solid #8d8d8d;
  padding: 3px;
  width: min(100%, 20rem);
}
.busca input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.55rem 0.75rem;
  font: 500 1rem var(--sans);
  text-transform: uppercase;
  background: transparent;
}
.busca input::placeholder {
  color: #767676;
}
.busca button {
  appearance: none;
  border: 0;
  background: var(--preto);
  color: #fff;
  width: 2.9rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.marca--rodape {
  width: min(30rem, 78%);
  margin: clamp(3rem, 8vw, 5.5rem) auto 1.5rem;
}
.rodape__copy {
  font-size: 0.95rem;
}

/* ==========================================================================
   Efeitos da marca (todos em CSS: troque à vontade)
   ========================================================================== */
.marca__arte,
.monograma {
  transition:
    background-position 1.6s cubic-bezier(0.3, 0.6, 0.2, 1),
    filter 0.6s;
}
.marca:hover .marca__arte,
.topo__marca:hover .monograma,
.marca__arte:focus-visible {
  background-position: 0 0;
  filter: drop-shadow(0 0 0.35rem rgb(201 169 122 / 0.45));
}

/* Revelação única, da esquerda para a direita, só na marca grande da capa. */
@media (prefers-reduced-motion: no-preference) {
  .marca--capa .marca__arte {
    animation: revelar 2.2s cubic-bezier(0.65, 0, 0.25, 1) both;
  }
  @keyframes revelar {
    from {
      clip-path: inset(0 100% 0 0);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* Variação com a fonte: <p class="marca marca--tipografica"> mostra o texto em Centers George. */
.marca--tipografica .marca__arte {
  display: none;
}
.marca--tipografica .marca__texto {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  white-space: normal;
  font:
    400 clamp(3rem, 12vw, 9rem)/1 "Centers George",
    var(--serif);
  text-align: center;
  background: linear-gradient(
      105deg,
      var(--marca) 40%,
      var(--brilho) 50%,
      var(--marca) 60%
    )
    100% 0 / 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1.6s;
}
.marca--tipografica:hover .marca__texto {
  background-position: 0 0;
}

/* ---------- Telas pequenas ---------- */
@media (max-width: 40rem) {
  .linha {
    grid-template-columns: 1fr;
  }
  .linha__imagem {
    order: -1;
    aspect-ratio: 16 / 9;
  }
  .linha__texto {
    padding: 1rem 0 1.4rem;
  }
  .lista-linhas,
  .prosa,
  .formulario,
  .aviso,
  .paginacao,
  .vazio,
  .texto-completo .prosa,
  .texto-completo .texto-completo__data {
    margin-left: 0 !important;
  }
  .conteudo > .prosa,
  .conteudo > .formulario,
  .conteudo > .aviso,
  .conteudo > .lista-linhas,
  .conteudo > .paginacao,
  .conteudo > .vazio {
    margin-inline: var(--respiro) !important;
  }
  .livro-pagina {
    grid-template-columns: 1fr;
  }
  .newsletter__form {
    flex-basis: 100%;
    max-width: none;
    width: 100%;
    min-width: 0;
  }
  .capa__foto img {
    aspect-ratio: 4 / 5;
    object-position: 50% 18%;
  }
  .som {
    grid-template-columns: auto 1fr;
  }
  .som__tempo {
    grid-column: 2;
  }
}
