:root {
  --color-primary: #142819;
  --color-bg: #e0d7c6;
  --color-text: #2e2717;
  --color-accent: #411a13;
  --color-moss: #777738;
  --color-mist: #706e78;
  --font-display: "RL Horizon", "Fraunces", Georgia, serif;
  --font-text: "Courier Prime", "Courier New", monospace;
  --container: 1200px;
  --section-space: clamp(4rem, 9vw, 8rem);
  --border: 1px solid rgba(112, 110, 120, 0.46);
  --texture-horizontal: url("assets/textura-oficial-horizontal.webp");
  --texture-size: 980px 210px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--color-bg);
  background-image: var(--texture-horizontal);
  background-repeat: repeat;
  background-size: var(--texture-size);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background-image: var(--texture-horizontal);
  background-repeat: repeat;
  background-size: var(--texture-size);
  mix-blend-mode: soft-light;
  opacity: 0.16;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: var(--color-bg);
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-space); }

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.04;
}
h1 { font-size: clamp(2.65rem, 7vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 500; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: var(--color-bg);
  border-bottom: 1px solid rgba(224, 215, 198, 0.42);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.92;
}
.wordmark span { font-family: var(--font-text); font-size: 0.6rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; }

.desktop-nav { display: none; gap: 2rem; font-size: 0.9rem; }
.desktop-nav a, .header-cta { transition: opacity 180ms ease; }
.desktop-nav a:hover, .header-cta:hover { opacity: 0.62; }

.header-cta { font-size: 0.88rem; font-weight: 600; }

.hero {
  min-height: 760px;
  padding: 8.75rem 0 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  color: var(--color-bg);
  background-color: var(--color-primary);
  background-image: url("assets/capa-rozalia.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Vídeo de fundo da abertura, sem som e em repetição */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Véu Terra Profunda que mantém a leitura do título sobre o vídeo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(20, 40, 25, 0.94) 0%, rgba(20, 40, 25, 0.78) 44%, rgba(20, 40, 25, 0.42) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: clamp(18px, 2.2vw, 34px);
  background-color: var(--color-bg);
  background-image: var(--texture-horizontal);
  background-repeat: repeat;
  background-size: var(--texture-size);
}

.hero-grid { position: relative; z-index: 2; display: grid; gap: 4rem; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 760px; margin-bottom: 1.5rem; }
.hero h1::after {
  content: "";
  display: block;
  width: 86px;
  height: 3px;
  margin-top: 1.35rem;
  background: var(--color-moss);
}
.hero-subtitle { max-width: 610px; margin-bottom: 2rem; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.button-note { font-size: 0.82rem; opacity: 0.7; }

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 200ms ease, opacity 200ms ease;
}
.button:hover { transform: scale(1.02); opacity: 0.94; }
.button--primary { background: var(--color-primary); color: var(--color-bg); }
.button--large { min-height: 64px; padding-inline: 2.6rem; }
.hero-actions .button--primary { background: var(--color-moss); }

.hero-visual { min-height: 560px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(100%, 500px);
  aspect-ratio: 1;
  border: 1px solid rgba(224, 215, 198, 0.42);
  border-radius: 50%;
}

/* Mockup do livro com abertura no hover */
.book-stage {
  width: min(100%, 420px);
  aspect-ratio: 0.64;
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.book-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(16px 20px 26px rgba(8, 18, 10, 0.45));
  transition: opacity 560ms ease, transform 560ms ease;
}
/* A capa fechada aparece 10% menor que o palco */
.book-shot--closed { width: 90%; height: 90%; margin: auto; }
/* O livro aberto também aparece 10% menor que o palco */
.book-shot--open { opacity: 0; transform: scale(0.86); }

/* No toque, um clique abre o livro e outro fecha */
.book-stage.is-open .book-shot--closed { opacity: 0; transform: scale(0.96); }
.book-stage.is-open .book-shot--open { opacity: 1; transform: scale(0.9); }

/* Só onde existe cursor o livro abre ao passar o mouse */
@media (hover: hover) {
  .book-stage:hover .book-shot--closed,
  .book-stage:focus-within .book-shot--closed { opacity: 0; transform: scale(0.96); }
  .book-stage:hover .book-shot--open,
  .book-stage:focus-within .book-shot--open { opacity: 1; transform: scale(0.9); }
}

.book-stage__hint {
  position: absolute;
  left: 50%;
  bottom: -0.25rem;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  pointer-events: none;
}

.statement { position: relative; overflow: hidden; border-top: var(--border); border-bottom: var(--border); }
.statement-grid { display: grid; gap: 3rem; }
.statement h2 { max-width: 830px; margin: 0; }
.statement h2 span { color: var(--color-accent); }
.statement-copy { max-width: 520px; }
.statement-copy p:last-child { margin-bottom: 0; }
.symbol { display: block; object-fit: contain; }
.symbol--petal { position: absolute; width: min(29vw, 370px); right: -3%; bottom: -10%; opacity: 0.18; mix-blend-mode: multiply; transform: rotate(-8deg); }

.reading-grid { display: grid; gap: 4rem; align-items: center; }

/* Páginas internas da obra */
.spread { margin: 0; }
.spread__img { display: block; width: min(100%, 620px); height: auto; margin-inline: auto; filter: drop-shadow(0 22px 28px rgba(46, 39, 23, 0.2)); }
.spread figcaption { max-width: 460px; margin: 2rem auto 0; font-size: 0.86rem; line-height: 1.6; text-align: center; opacity: 0.72; }

.reading h2 { margin-bottom: 2rem; }
.editorial-list { margin: 0 0 2rem; padding: 0; list-style: none; border-top: var(--border); }
.editorial-list li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.75rem; padding: 1rem 0; border-bottom: var(--border); }
.editorial-list span { font-size: 0.72rem; opacity: 0.6; }
.text-link { display: inline-flex; align-items: center; gap: 0.6rem; padding-bottom: 0.25rem; border-bottom: 1px solid currentColor; font-weight: 600; }
.text-link:hover { opacity: 0.62; }

.audience { position: relative; overflow: hidden; background-color: var(--color-primary); background-image: var(--texture-horizontal); background-repeat: repeat; background-size: var(--texture-size); background-blend-mode: multiply; color: var(--color-bg); }
.audience .container { position: relative; }
.symbol--window {
  position: absolute;
  width: min(32vw, 390px);
  aspect-ratio: 0.645;
  right: 0;
  top: -3rem;
  opacity: 0.55;
  background-color: var(--color-moss);
  -webkit-mask-image: url("assets/icone-janela.png");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: cover;
  mask-image: url("assets/icone-janela.png");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
}
.section-heading { max-width: 700px; margin-bottom: 4rem; }
.section-heading h2 { margin: 0; }
.audience-list { position: relative; z-index: 1; border-top: 1px solid rgba(224,215,198,0.32); }
.audience-list p { margin: 0; padding: 1.3rem 0; border-bottom: 1px solid rgba(224,215,198,0.32); font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.65rem); font-weight: 500; }
.audience-close { margin: 3rem 0 0 auto; max-width: 420px; text-align: right; opacity: 0.76; }

.origin { border-bottom: var(--border); }
.origin-grid { display: grid; gap: 4rem; align-items: stretch; }
.origin-number { position: relative; padding-bottom: 2.5rem; border-bottom: var(--border); }
.origin-number strong { display: block; color: var(--color-moss); font-family: var(--font-display); font-size: clamp(7rem, 24vw, 14rem); font-weight: 500; line-height: 0.76; letter-spacing: -0.07em; }
.origin-number span { display: block; margin-top: 1.3rem; font-size: 2rem; color: var(--color-accent); }
.origin-number p { max-width: 220px; margin: 1rem 0 0; font-size: 0.85rem; }
.origin-photo { width: min(100%, 330px); aspect-ratio: 0.82; margin-top: 2.25rem; object-fit: cover; filter: saturate(0.72) contrast(1.03); border: var(--border); }
.memory-frame { position: absolute; width: min(100%, 365px); left: -18px; bottom: -18px; opacity: 0.58; mix-blend-mode: multiply; pointer-events: none; }
.origin-copy { width: 100%; max-width: none; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.origin-copy h2 { margin-bottom: 2rem; }
.origin-copy p { margin-bottom: 1.4rem; font-size: 1.05rem; }
.origin-copy .text-link { margin-top: 0.5rem; }
.text-link--light { margin-top: 1.2rem; }

.author-grid { display: grid; gap: 4rem; align-items: center; }
.author-portrait { min-height: 560px; position: relative; overflow: hidden; background-color: var(--color-primary); }
.author-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.author-copy { max-width: 590px; }
.author-copy h2 { margin-bottom: 0.6rem; }
.author-role { margin-bottom: 2rem; font-size: 0.88rem; color: var(--color-accent); }
.author-copy > p:not(.eyebrow):not(.author-role) { font-size: 1.08rem; }
.author-copy blockquote { margin: 2.5rem 0 0; padding: 1.5rem 0 0 1.5rem; border-top: var(--border); border-left: 2px solid var(--color-accent); font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.45; }

.preorder { position: relative; overflow: hidden; background-color: var(--color-accent); background-image: url("assets/icones-pagina-edição-especial.png"), var(--texture-horizontal); background-repeat: repeat, repeat; background-size: 560px auto, var(--texture-size); background-blend-mode: soft-light, multiply; color: var(--color-bg); }
.preorder-grid { display: grid; gap: 4.5rem; align-items: center; }
.preorder-visual { position: relative; }
.preorder-monogram { position: absolute; width: min(62%, 300px); right: -10%; top: 0; opacity: 0.22; transform: translateY(-46%); mix-blend-mode: screen; }
.kit-shot { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 38px rgba(12, 6, 4, 0.48)); }
.preorder-copy { max-width: 620px; }
.preorder-copy h2 { margin-bottom: 1.5rem; }
.preorder-lead { font-size: 1.1rem; }

/* Preços junto ao mockup */
.preorder-price {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.15rem;
  width: min(100%, 430px);
  margin: -1.25rem 0 0;
  padding: 1.35rem 1.7rem;
  background-color: rgba(24, 10, 6, 0.72);
  border: 1px solid rgba(224, 215, 198, 0.34);
}
.preorder-price__item { display: grid; gap: 0.45rem; }
.preorder-price__item + .preorder-price__item {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(224, 215, 198, 0.26);
}
.preorder-price__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.72; }
.preorder-price__desc { font-size: 0.86rem; line-height: 1.5; opacity: 0.78; }
.preorder-price__value { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1; }

.launch-agenda { margin: 0 0 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(224,215,198,0.34); }
.launch-agenda__title { margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.68; }
.launch-agenda ul { margin: 0; padding: 0; list-style: none; }
.launch-agenda li { display: grid; gap: 0.15rem 1.25rem; padding: 0.85rem 0; border-bottom: 1px solid rgba(224,215,198,0.22); font-size: 0.88rem; }
.launch-agenda li:last-child { border-bottom: 0; padding-bottom: 0; }
.launch-agenda li time { font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.launch-agenda li span { line-height: 1.45; }
.launch-agenda li em { font-style: normal; opacity: 0.66; white-space: nowrap; }

.preorder .button--primary { background: var(--color-bg); color: var(--color-primary); }
.faq-grid { display: grid; gap: 4rem; align-items: start; }
.faq-heading { max-width: 480px; }
.faq-heading h2 { margin-bottom: 1.5rem; }
.faq-list { border-top: var(--border); }
.faq-list details { border-bottom: var(--border); }
.faq-list summary { cursor: pointer; list-style: none; padding: 1.25rem 2.4rem 1.25rem 0; position: relative; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 1.15rem; right: 0; font-size: 1.4rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 650px; padding: 0 2rem 1.4rem 0; margin: 0; }
.faq-cta { margin-top: 2rem; }

.closing { padding: var(--section-space) 0; background-color: var(--color-primary); background-image: var(--texture-horizontal); background-repeat: repeat; background-size: var(--texture-size); background-blend-mode: multiply; color: var(--color-bg); text-align: center; overflow: hidden; }
.closing-inner { position: relative; }
.closing-symbol { position: absolute; width: min(44vw, 390px); right: -4%; top: -20%; opacity: 0.25; mix-blend-mode: screen; }
.closing-inner p, .closing-inner strong { display: block; margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4.8rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 400; }
.closing-inner strong { color: var(--color-bg); font-weight: 600; }

.closing-cta { position: relative; display: grid; justify-items: center; gap: 1.5rem; margin-top: clamp(2.75rem, 6vw, 4.5rem); }
.closing-inner .closing-cta__line { margin: 0; font-family: var(--font-text); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.6; letter-spacing: 0.02em; font-weight: 400; opacity: 0.8; }
.closing .button--primary { background: var(--color-bg); color: var(--color-primary); }

.site-footer { padding: 3.5rem 0; background-color: var(--color-primary); background-image: url("assets/pattern-petalas.webp"), var(--texture-horizontal); background-repeat: repeat, repeat; background-size: 420px auto, var(--texture-size); background-blend-mode: soft-light, multiply; color: var(--color-bg); border-top: 1px solid rgba(224,215,198,0.28); }
.footer-grid { display: grid; gap: 2.5rem; }
.wordmark--footer { margin-bottom: 1rem; font-size: 1.2rem; }
.site-footer p { margin: 0; font-size: 0.82rem; opacity: 0.68; }
.footer-links { display: grid; gap: 0.75rem; align-content: start; }
.footer-links a { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 0.45rem; border-bottom: 1px solid rgba(224,215,198,0.28); font-size: 0.9rem; transition: opacity 180ms ease; }
.footer-links a:hover { opacity: 0.68; }
.footer-links a span { opacity: 0.66; text-align: right; }
.footer-legal { align-self: end; }

/* Crédito discreto no fim do site */
.site-footer .footer-credit {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(224, 215, 198, 0.16);
  font-size: 0.72rem;
  opacity: 0.5;
  transition: opacity 180ms ease;
}
.site-footer .footer-credit:hover { opacity: 0.85; }
.footer-credit a { border-bottom: 1px solid rgba(224, 215, 198, 0.4); }

.reveal { opacity: 1; transform: none; }
.has-js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease-out, transform 720ms ease-out;
}
.has-js .reveal--delay { transition-delay: 100ms; }
.has-js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 640px) {
  .container { width: min(100% - 4rem, var(--container)); }
  .hero-actions { flex-direction: row; align-items: center; }
  .launch-agenda li { grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; }
  .launch-agenda li em { text-align: right; }
  .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .footer-legal { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  /* Onde há espaço, o livro aberto ganha mais largura que o palco */
  .book-shot--open { width: 138%; left: -19%; right: auto; }
  .statement-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr); align-items: end; }
  .audience-list { width: min(65%, 780px); }
  .audience-list p { padding-left: 2rem; }
  .audience-close { width: min(65%, 780px); margin-left: 0; text-align: right; }
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.8fr); }
  .footer-legal { grid-column: auto; }
}

@media (min-width: 1024px) {
  .container { width: min(100% - 6rem, var(--container)); }
  .hero-grid { grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr); }
  .hero { padding-top: 7.5rem; }
  .reading-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 7rem; }
  .origin-grid { grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr); gap: 5rem; }
  .author-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 7rem; }
  .preorder-grid { grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: 4.5rem; }
  .kit-shot { width: min(112%, 700px); margin-left: -8%; }
  .preorder-price { margin: -3rem 0 0 auto; }
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8rem; }
}

@media (min-width: 1280px) {
  .hero h1 { font-size: 4.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .has-js .reveal { opacity: 1; transform: none; }
  /* Quem pede menos movimento fica com a fotografia da abertura */
  .hero-video { display: none; }
}
