Morning Pages Journal
A lined journal card with a dated header, writable ruled area, margin line and live word count.
Preview and code
index.html
<div class='jn'><header><div><b>Morning pages</b><small id='jnd'></small></div><svg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='#444' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20c3-1 5-3 7-6l6-8c1-1.500 3-.500 2 1l-5 9c-1 2-4 4-10 4zM4 20h16'/></svg></header><textarea id='jnt' placeholder='Write freely. No edits, no judgment...'></textarea><footer><span id='jnw'>0 words</span><i></i></footer></div>
styles.css
.jn{width:min(320px,94%);margin:auto;background:#fff;border-radius:20px;box-shadow:0 8px 30px rgba(0,0,0,.1);font-family:Inter,Arial,sans-serif;color:#111;overflow:hidden}.jn header{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:#f5f1ea}.jn b{display:block;font-size:15px}.jn small{display:block;margin-top:2px;font-size:11.5px;color:#777}.jn textarea{display:block;width:100%;height:190px;border:0;outline:0;resize:none;padding:11px 14px 0 38px;font:italic 14px/23px Georgia,serif;color:#333;background:linear-gradient(90deg,transparent 28px,#f4a3a3 28px 29px,transparent 29px),repeating-linear-gradient(transparent 0 22px,#e7e7e7 22px 23px)}.jn textarea::placeholder{color:#b8b8b8}.jn footer{display:flex;justify-content:space-between;align-items:center;padding:10px 18px;border-top:1px solid #efefef;font-size:12px;color:#888}.jn footer i{width:9px;height:9px;border-radius:50%;background:#10b981}
script.js
const t=document.getElementById('jnt'),w=document.getElementById('jnw');document.getElementById('jnd').textContent=new Date().toLocaleDateString(undefined,{weekday:'long',month:'short',day:'numeric'});t.addEventListener('input',()=>{const n=(t.value.trim().match(/S+/g)||[]).length;w.textContent=n+(n===1?' word':' words')});
About
A notebook card: cream header with title and date, ruled textarea with a red margin line, and a footer that counts words and shows a green saved dot.