kitbash Sign in Connect agent
Components

Masthead

Scanline pixel title on the left, two-line serif blurb on the right, a rule of dithered blocks below. The three pieces blur in on load and the title's scanlines thin out on hover. The title wraps to two lines on a phone, so keep it to two short words.

Part of the style

Blueprint Manual

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

Preview

Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..700&family=Fraunces:ital,opsz,wght@1,9..144,400..600&display=swap");
:root {
  --paper: #000000;
  --card: #e4e4e4;
  --ink: #d8ff00;
  --ink-soft: #883a56;
  --ink-faint: #0e0205;
  --blue-wash: #000000;
  --blue: #745a46;
  --blue-light: #676361;
  --blue-mid: #75695f;
  --grid-dot: #706964;
  --font-text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-label: "Bitcount Single", ui-monospace, monospace;
  --font-display: "Sixtyfour", ui-monospace, monospace;
}
</style>

<header class="masthead">
  <div class="masthead__row">
    <a class="masthead__title" href="#">Plain Machines</a>
    <p class="masthead__blurb">
      A field manual for the machines on your kitchen counter.
      <strong>Drawn and annotated at the Slow Bench.</strong>
    </p>
  </div>
  <div class="masthead__rule" aria-hidden="true"></div>
</header>

<style>
  .masthead {
    container-type: inline-size;
    padding: var(--gutter) var(--gutter) 0;
  }

  .masthead__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 3rem;
  }

  .masthead__title {
    display: block;
    min-height: var(--tap);
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 10.6cqi, 3.5rem);
    font-variation-settings: "SCAN" 0, "BLED" 0;
    line-height: 1.1;
    text-transform: uppercase;
    text-decoration: none;
    text-wrap: balance;
    color: var(--blue);
    transition: font-variation-settings var(--time-slow) var(--ease-settle);
    animation: masthead-blur-in var(--time-slow) linear both;
  }

  .masthead__title:hover,
  .masthead__title:focus-visible {
    font-variation-settings: "SCAN" -40, "BLED" 60;
  }

  .masthead__title:focus-visible {
    outline: 1px dashed var(--blue);
    outline-offset: 6px;
  }

  .masthead__blurb {
    margin: 0;
    max-width: 30rem;
    line-height: 1.7;
    animation: masthead-blur-in var(--time-slow) linear var(--stagger) both;
  }

  .masthead__blurb strong {
    display: block;
    font-weight: 600;
  }

  .masthead__rule {
    height: 8px;
    margin-top: clamp(2rem, 4.5cqi, 3.5rem);
    background: var(--pattern-dither) 0 0 / 2px 2px;
    -webkit-mask-image: var(--pattern-blocks);
    mask-image: var(--pattern-blocks);
    animation: masthead-blur-in var(--time-slow) linear calc(var(--stagger) * 2) both;
  }

  @container (min-width: 34rem) {
    .masthead__title {
      font-size: clamp(1.9rem, 6.9cqi, 3.5rem);
    }
  }

  @container (min-width: 68rem) {
    .masthead__blurb {
      text-align: right;
    }
  }

  @keyframes masthead-blur-in {
    from {
      opacity: 0;
      filter: blur(4px);
    }
    to {
      opacity: 1;
      filter: blur(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .masthead__title,
    .masthead__blurb,
    .masthead__rule {
      animation: none;
      transition: none;
    }
  }
</style>

Similar components

Sky masthead

Sky masthead

Corner frame hero

Corner frame hero

Picture-letter headline

Picture-letter headline

Fog hero with fluid blob

Fog hero with fluid blob

Blossom notice

Blossom notice

Night title band

Night title band

Numbered plate

Numbered plate

Selection frame hero

Selection frame hero