Centered video hero
Centered headline, bold subline and one button over a large video card with a title, time badge and play button.
snippet.html152 lines
<section class="cvh">
<header class="cvh__bar" data-block="Navigation">
<div class="cvh__brand">
<button class="cvh__menu" type="button" aria-label="Open menu">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 6h18M3 12h18M3 18h18" fill="none" stroke="currentColor" stroke-width="2"/></svg>
</button>
<a class="cvh__logo" href="#">Crumb<b>school</b></a>
</div>
<div class="cvh__contact">
<a class="cvh__link" href="#">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16v14H4z" fill="none" stroke="currentColor" stroke-width="2"/><path d="m4 6 8 7 8-7" fill="none" stroke="currentColor" stroke-width="2"/></svg>
<span>hello@crumbschool.com</span>
</a>
<a class="cvh__link" href="#">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z" fill="currentColor"/></svg>
<span>1-800-555-0172</span>
</a>
</div>
</header>
<div class="cvh__body">
<h1 class="cvh__title" data-block="Title">Bake your first sourdough this weekend</h1>
<p class="cvh__sub" data-block="Subtitle">Twelve short video lessons and a head baker who replies to your photos within a day.</p>
<a class="cvh__btn" href="#" data-block="CTA">Join the course</a>
<figure class="cvh__video" data-block="Video">
<figcaption class="cvh__vtop">
<span>Lesson 1: Feeding your starter</span>
<span class="cvh__vtime">
<svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="9" fill="none" stroke="currentColor" stroke-width="2"/><path d="M12 7v5l3 2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>
18:40
</span>
</figcaption>
<div class="cvh__poster" aria-hidden="true">
<span class="cvh__jar"><i></i></span>
<span class="cvh__board"><span class="cvh__loaf"></span></span>
</div>
<button class="cvh__play" type="button" aria-label="Play video: Lesson 1, Feeding your starter">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M8 5v14l11-7z" fill="currentColor"/></svg>
</button>
</figure>
</div>
</section>
<style>
.cvh {
--cvh-bg: #ffffff;
--cvh-brand: #111111;
--cvh-brand-dark: #000000;
--cvh-tint: #f2f2f2;
--cvh-line: #d4d4d4;
--cvh-surface: #ffffff;
min-height: 100vh;
box-sizing: border-box;
display: flex;
flex-direction: column;
background: var(--cvh-bg);
color: var(--cvh-brand);
font-family: Montserrat, "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
.cvh *, .cvh *::before, .cvh *::after { box-sizing: border-box; }
.cvh a { color: inherit; text-decoration: none; }
.cvh a:focus-visible, .cvh button:focus-visible { outline: 2px solid var(--cvh-brand-dark); outline-offset: 3px; border-radius: 4px; }
.cvh__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; padding: 0 clamp(1rem, 3.4vw, 3rem); }
.cvh__brand { display: flex; align-items: center; gap: 0.5rem; }
.cvh__menu { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: var(--cvh-brand); cursor: pointer; }
.cvh__menu svg { width: 24px; height: 24px; }
.cvh__menu:hover { color: var(--cvh-brand-dark); }
.cvh__logo { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.01em; }
.cvh__logo b { font-weight: 700; }
.cvh__contact { display: flex; align-items: center; gap: clamp(1rem, 3.5vw, 3.5rem); }
.cvh__link { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em; }
.cvh__link svg { width: 20px; height: 20px; color: var(--cvh-brand-dark); flex: none; }
.cvh__link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.cvh__body {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
max-width: calc(1128px + 4rem);
margin: 0 auto;
padding: clamp(2.5rem, 9.5vh, 5.3rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vh, 5rem);
text-align: center;
}
.cvh__title { margin: 0; font-size: clamp(2.25rem, 4.2vw, 3.125rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.cvh__sub { margin: 1rem 0 3rem; font-size: 1rem; font-weight: 700; line-height: 1.5; text-wrap: balance; }
.cvh__btn {
display: inline-flex; align-items: center; justify-content: center;
min-height: 48px; padding: 0 2rem;
border: 1px solid var(--cvh-brand); border-radius: 4px;
background: var(--cvh-brand); color: #fff !important;
font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em;
transition: background-color 0.15s, border-color 0.15s;
}
.cvh__btn:hover { background: var(--cvh-brand-dark); border-color: var(--cvh-brand-dark); }
.cvh__video { position: relative; width: 100%; max-width: 856px; margin: 3rem 0 0; aspect-ratio: 856 / 521; border-radius: 10px; overflow: hidden; background: var(--cvh-surface); border: 1px solid var(--cvh-line); text-align: left; }
.cvh__vtop { position: absolute; inset: 0 0 auto; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem; font-size: 0.875rem; font-weight: 700; }
.cvh__vtime { display: inline-flex; align-items: center; gap: 0.3rem; flex: none; padding: 0.2rem 0.5rem; border-radius: 4px; background: var(--cvh-brand-dark); color: #fff; font-size: 0.75rem; letter-spacing: 0.04em; }
.cvh__vtime svg { width: 14px; height: 14px; }
.cvh__poster { position: absolute; inset: 0; background: linear-gradient(180deg, var(--cvh-tint) 0 70%, #e4e4e4 70% 100%); }
.cvh__board {
position: absolute; left: 63%; top: 70%; width: 42%; height: 9%;
transform: translate(-50%, -30%);
border-radius: 999px; background: var(--cvh-line);
}
.cvh__board::after { content: ""; position: absolute; right: -9%; top: 32%; width: 11%; height: 36%; border-radius: 0 999px 999px 0; background: var(--cvh-line); }
.cvh__loaf {
position: absolute; left: 50%; bottom: 55%; width: 72%; aspect-ratio: 2.1;
transform: translateX(-50%);
border: 2px solid var(--cvh-line); border-radius: 50% 50% 14% 14% / 82% 82% 18% 18%;
background:
linear-gradient(118deg, transparent 0 30%, var(--cvh-line) 30% 34%, transparent 34% 46%, var(--cvh-line) 46% 50%, transparent 50% 62%, var(--cvh-line) 62% 66%, transparent 66%) 50% 34% / 64% 30% no-repeat,
var(--cvh-surface);
}
.cvh__jar {
position: absolute; left: 15%; top: 38%; width: 11%; height: 32%;
border: 2px solid var(--cvh-line); border-bottom: 0; border-radius: 10px 10px 0 0;
background: linear-gradient(transparent 0 40%, var(--cvh-surface) 40%);
}
.cvh__jar::before { content: ""; position: absolute; left: -8%; right: -8%; top: -12%; height: 12%; border-radius: 4px; background: var(--cvh-line); }
.cvh__jar i { position: absolute; left: 0; right: 0; top: 40%; border-top: 2px dashed var(--cvh-line); }
.cvh__play {
position: absolute; inset: 0; margin: auto; z-index: 1;
display: grid; place-items: center; width: 68px; height: 68px;
border: 0; border-radius: 50%; background: var(--cvh-brand); color: #fff; cursor: pointer;
box-shadow: 0 0 0 10px rgb(0 0 0 / 0.1);
transition: transform 0.2s, box-shadow 0.2s;
}
.cvh__play svg { width: 28px; height: 28px; margin-left: 3px; }
.cvh__play:hover { transform: scale(1.06); box-shadow: 0 0 0 14px rgb(0 0 0 / 0.1); }
@media (max-width: 720px) {
.cvh__link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cvh__sub { margin-bottom: 2rem; }
.cvh__video { margin-top: 2rem; }
}
@media (max-width: 480px) {
.cvh__logo { font-size: 1.5rem; }
.cvh__btn { width: 100%; }
.cvh__vtop { padding: 0.75rem; font-size: 0.75rem; }
.cvh__play { width: 56px; height: 56px; box-shadow: 0 0 0 8px rgb(0 0 0 / 0.1); }
.cvh__jar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.cvh__btn, .cvh__play { transition: none; }
.cvh__play:hover { transform: none; }
}
</style>




