<section class="sn-rsp" aria-label="Responsive sidebar toggle demo">
<input type="checkbox" id="sn-rsp-nav" class="toggle" aria-label="Toggle navigation">
<aside class="sidebar" aria-label="Magazine sections">
<div class="head">
<div class="kicker">Issue No. 47</div>
<h2>The Margin</h2>
</div>
<nav class="nav" aria-label="Sections">
<a class="item active" href="#"><span class="num">01</span>Featured Essay</a>
<a class="item" href="#"><span class="num">02</span>Culture</a>
<a class="item" href="#"><span class="num">03</span>Long Reads</a>
<a class="item" href="#"><span class="num">04</span>Interviews</a>
<div class="rule" aria-hidden="true"></div>
<a class="item" href="#"><span class="num">05</span>Fiction</a>
<a class="item" href="#"><span class="num">06</span>Poetry</a>
<a class="item" href="#"><span class="num">07</span>Archive</a>
</nav>
<div class="foot">Saved for later — 4 stories</div>
</aside>
<label for="sn-rsp-nav" class="overlay" aria-hidden="true"></label>
<div class="content">
<div class="topbar">
<label for="sn-rsp-nav" class="menu-btn" aria-label="Open navigation">
<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M4 6h16M4 12h16M4 18h16" stroke-width="2" stroke-linecap="round"/></svg>
</label>
<h1>Featured Essay</h1>
</div>
<article class="article">
<p class="lead">On a responsive layout, the sidebar slides away on small screens and reappears with a tap of the menu — no JavaScript involved.</p>
<p>This demonstration uses the classic checkbox toggle to drive a fully responsive off-canvas navigation. On wide screens the menu sits permanently to the left as a reading index. Resize the window below the breakpoint and the rail tucks itself off-canvas, summoned by the hamburger button and dismissed by tapping the dimmed overlay.</p>
<p>Everything is hand-set in CSS: the transitions, the overlay, the breakpoint behaviour. The result is a warm, print-inspired interface that feels considered rather than templated.</p>
</article>
</div>
</section>