kitbash Sign in Connect agent
Components

Masthead

The capital bitmap wordmark, a one-line tagline, a parenthesised link and a small pixel-grid brand mark at the right.

Part of the style

Pixel Caps Manuscript

6 parts that belong together, with their tokens, type and rules.

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --paper: #d5e8e6;
  --ink: #5e352b;
  --ink-mute: #577774;
  --rule-mute: #9bb8b5;
  --paper-wash: #cde2e0;
}
</style>

<header class="masthead">
  <div class="masthead__lead">
    <h1 class="masthead__wordmark">Blackout Desk</h1>
    <p class="masthead__tagline">Every old page is hiding a poem. Keep the words you want.</p>
    <a class="masthead__link" href="#poems">(see the poems people kept)</a>
  </div>
  <a class="masthead__brand" href="#" aria-label="Ostra, home">
    <svg class="masthead__mark" viewBox="0 0 30 30" width="30" height="30" aria-hidden="true">
      <rect x="1" y="1" width="28" height="28" fill="none" stroke="currentColor" stroke-width="2" />
      <rect x="6" y="6" width="5" height="5" fill="currentColor" />
      <rect x="19" y="6" width="5" height="5" fill="currentColor" />
      <rect x="6" y="12.5" width="18" height="5" fill="currentColor" />
      <rect x="12.5" y="19" width="5" height="5" fill="currentColor" />
    </svg>
    <span class="masthead__name">Ostra</span>
  </a>
</header>

<style>
  .masthead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--gap);
    padding: var(--space-xl) var(--edge) var(--space-xl);
  }
  .masthead__wordmark {
    margin: 0 0 var(--space-m);
    font-family: var(--font-display);
    font-size: var(--display-xl);
    font-weight: 400;
    line-height: 1;
    letter-spacing: var(--track-caps);
    text-transform: uppercase;
  }
  .masthead__tagline {
    max-width: 34ch;
    margin: 0 0 var(--space-s);
    font-family: var(--font-display);
    font-size: var(--text-l);
    line-height: 1.4;
  }
  .masthead__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: inherit;
    font-family: var(--font-display);
    font-size: var(--text-m);
    text-decoration: underline;
    text-decoration-thickness: var(--rule-thin);
    text-underline-offset: 3px;
    transition: text-decoration-thickness var(--quick) var(--ease);
  }
  .masthead__link:hover,
  .masthead__link:focus-visible {
    text-decoration-thickness: var(--rule);
  }
  .masthead__brand {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--space-s);
    min-height: var(--tap);
    padding-left: var(--space-m);
    border-left: var(--rule-thin) solid var(--ink);
    color: inherit;
    text-decoration: none;
  }
  .masthead__name {
    font-family: var(--font-display);
    font-size: var(--display-m);
    line-height: 1;
  }
  .masthead__mark {
    transition: transform var(--step) var(--ease);
  }
  .masthead__brand:hover .masthead__mark,
  .masthead__brand:focus-visible .masthead__mark {
    transform: rotate(90deg);
  }

  @media (max-width: 40rem) {
    .masthead {
      flex-direction: column-reverse;
      padding-top: var(--space-l);
    }
    .masthead__brand {
      align-self: flex-end;
    }
    .masthead__wordmark {
      font-size: clamp(3rem, 2rem + 6vw, 4rem);
      line-height: 0.95;
    }
  }
</style>

Similar components

Split hero

Split hero

Sky wordmark hero

Sky wordmark hero

Masthead

Masthead

Start screen HUD

Start screen HUD

Sticker headline hero

Sticker headline hero

Corner frame hero

Corner frame hero

Sky hero

Sky hero

Night globe hero

Night globe hero