.poetry-wrapper {
width: 100%;
box-sizing: border-box;
padding: 28px 10px 32px;
text-align: center;
font-family: Verdana, Arial, sans-serif;
color: inherit;
}
.poetry-poem {
width: 100%;
margin: 0 auto;
line-height: 1.18;
}
.poetry-title {
font-weight: bold;
margin-bottom: 18px;
}
.poetry-stanza {
margin-bottom: 18px;
}
.poetry-line {
white-space: nowrap;
}
.poetry-author {
margin-top: 28px;
margin-bottom: 22px;
}
.poetry-references {
width: 100%;
max-width: 760px;
margin: 0 auto;
line-height: 1.35;
text-align: center;
white-space: normal;
}
.poetry-ref-title {
margin-bottom: 8px;
}
.poetry-reference {
white-space: normal;
}
.poetry-reference a {
color: inherit;
text-decoration: none;
}
Creatio ex Divina Materia
Intelligence the light of truth,
no start nor end to this story;
Element eternal in sooth,
in both dwells all the glory.
Preparing for a future junction,
growing parallel as He frames.
Matter formed with no function,
spirit organized without names.
Tabernacle of mother earth,
spirits formed in heav’n above.
Combined at last in mortal birth,
mind and temple linked in love.
Man is spirit, dust eternal;
Spirit, element, the soul of man.
Connected forever—life supernal,
receives His fulness is God’s plan.
Les Cookson
(function () {
function fitPoem() {
const poem = document.getElementById(‘currentPoem’);
if (!poem) return;
const lines = poem.querySelectorAll(‘.poetry-line’);
if (!lines.length) return;
const availableWidth = poem.clientWidth – 8;
poem.style.fontSize = ’16px’;
let longestWidth = 0;
lines.forEach(function(line) {
longestWidth = Math.max(longestWidth, line.scrollWidth);
});
let newSize = 16;
if (longestWidth > availableWidth) {
newSize = 16 * (availableWidth / longestWidth);
}
newSize = Math.min(16, Math.max(8, newSize));
poem.style.fontSize = newSize + ‘px’;
const references = document.querySelector(‘.poetry-references’);
if (references) {
references.style.fontSize = newSize + ‘px’;
}
}
fitPoem();
window.addEventListener(‘resize’, fitPoem);
setTimeout(fitPoem, 250);
setTimeout(fitPoem, 1000);
})();
I turned this poem into a song with AI just for fun—and it actually turned out kinda cool.