---
type: Component
title: Rail
description: "The top header: a 44px mono strip with the brand, section links and the mode switch."
status: released
register: both
tags: [interface, layout]
tokens: [--rail-h, --bg, --line, --ink, --ink-2, --f-mono, --f-wordmark, --text-micro]
---

```html
<div class="rail">
  <span class="brand"><span class="m">😱</span> ScreamingFace</span>
  <nav class="crumbs">
    <a class="here" href="#">brand guide</a>
    <a href="#">leaderboard</a>
  </nav>
  <span class="spacer"></span>
  <button class="toggle" id="theme-toggle">◐</button>
</div>
```

**Anatomy.** A `--rail-h` strip on the ground color with a hairline under it, in mono micro. The brand on the left, links (`.crumbs`, the current one `.here`), a spacer, and the mode switch (`.toggle`) fixed at the top right.

**Behavior.** The rail scrolls with the page, then re-pins to the top once scrolled past (`.stuck`, added by script). On phones it wraps instead of hiding its links.

**Rules.** Banners mount below the rail (*The rail owns the top strip*).

*Open:* this component is in `style.css` but not in the guide's component list. The markup above is the guide's own header, with fewer links. Its brand is the typed name in the wordmark face; the homepage's rail uses the lockup file instead, as the rule asks (*Never re-type the wordmark*). Which the rail should carry needs one answer.
