.cf05 {
width: 100%;
padding: 64px 24px 28px;
background: #fdfaf3;
color: #2a2520;
font-family: ui-serif, Georgia, serif;
box-sizing: border-box;
text-align: center;
}
.cf05hero {
max-width: 640px;
margin: 0 auto 36px;
}
.cf05h {
margin: 0 0 10px;
font:
700 32px/1.2 ui-serif,
Georgia,
serif;
color: #2a2520;
letter-spacing: -0.02em;
}
.cf05p {
margin: 0 0 24px;
font:
16px/1.55 ui-serif,
Georgia,
serif;
color: #6b6056;
}
.cf05f {
display: flex;
gap: 8px;
max-width: 480px;
margin: 0 auto 16px;
}
.cf05f input {
flex: 1;
min-width: 0;
padding: 14px 18px;
background: #fff;
border: 2px solid #2a2520;
border-radius: 10px;
font:
15px ui-sans-serif,
system-ui;
color: #2a2520;
outline: none;
transition: border-color 0.2s;
}
.cf05f input:focus {
border-color: #c43a32;
}
.cf05f button {
position: relative;
padding: 14px 22px;
background: #2a2520;
border: 2px solid #2a2520;
border-radius: 10px;
color: #fdfaf3;
font:
600 14px ui-sans-serif,
system-ui;
cursor: pointer;
transition:
background 0.2s,
transform 0.15s;
min-width: 120px;
}
.cf05f button:hover {
background: #c43a32;
border-color: #c43a32;
}
.cf05f.cf05-ok button {
background: #2d8a3e;
border-color: #2d8a3e;
}
.cf05bt {
transition: opacity 0.2s;
}
.cf05ck {
position: absolute;
top: 50%;
left: 50%;
width: 22px;
height: 22px;
transform: translate(-50%, -50%);
color: #fdfaf3;
opacity: 0;
stroke-dasharray: 30;
stroke-dashoffset: 30;
transition: opacity 0.2s;
}
.cf05f.cf05-ok .cf05bt {
opacity: 0;
}
.cf05f.cf05-ok .cf05ck {
opacity: 1;
animation: cf05-draw 0.45s 0.15s forwards ease-out;
}
@keyframes cf05-draw {
to {
stroke-dashoffset: 0;
}
}
.cf05count {
font:
italic 13px ui-serif,
Georgia,
serif;
color: #8a7d6f;
}
.cf05count strong {
color: #2a2520;
font-weight: 700;
}
.cf05n {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 24px;
padding: 22px 0;
border-top: 1px solid rgba(42, 37, 32, 0.15);
border-bottom: 1px solid rgba(42, 37, 32, 0.15);
margin: 0 auto;
max-width: 720px;
}
.cf05n a {
font:
14px/1 ui-serif,
Georgia,
serif;
color: #6b6056;
text-decoration: none;
transition: color 0.2s;
}
.cf05n a:hover {
color: #c43a32;
text-decoration: underline;
text-underline-offset: 4px;
}
.cf05meta {
margin-top: 18px;
font:
italic 12px ui-serif,
Georgia,
serif;
color: #8a7d6f;
}
@media (prefers-reduced-motion: reduce) {
.cf05ck {
transition: none;
animation: none;
stroke-dashoffset: 0;
}
} <footer class="cf05">
<div class="cf05hero">
<h2 class="cf05h">Get one short essay every Friday.</h2>
<p class="cf05p">No promotions. No "growth hacks." Unsubscribe with one click.</p>
<form class="cf05f" data-cf05>
<input type="email" placeholder="[email protected]" aria-label="Email" required />
<button type="submit">
<span class="cf05bt">Subscribe</span>
<svg class="cf05ck" viewBox="0 0 24 24" aria-hidden="true">
<path
d="M5 12l5 5L20 7"
stroke="currentColor"
stroke-width="2.5"
fill="none"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
</button>
</form>
<div class="cf05count">Joined by <strong>4,128</strong> readers</div>
</div>
<nav class="cf05n">
<a href="#">Essays</a>
<a href="#">About</a>
<a href="#">Bookshelf</a>
<a href="#">Now</a>
<a href="#">RSS</a>
<a href="#">Contact</a>
</nav>
<div class="cf05meta">© 2026 Mira Okafor — Personal corner of the internet.</div>
</footer> /* Newsletter Hero — submit shows checkmark draw + button color shift,
then reverts after 2.6s. Demo only — no actual network call. */
(function () {
var form = document.querySelector("[data-cf05]");
if (!form) return;
form.addEventListener("submit", function (e) {
e.preventDefault();
if (form.classList.contains("cf05-ok")) return;
form.classList.add("cf05-ok");
setTimeout(function () {
form.classList.remove("cf05-ok");
form.reset();
}, 2600);
});
})(); Live preview Edit any tab — preview updates live Ready