kitbash Sign in Connect agent
Components

Night title band

A blush blackletter initial over a near-black band with one widely tracked title that opens at load and credits between ticks.

Part of the style

Blackletter Credit Stack

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --paper: #f2f2f2;
  --paper-lift: #ffffff;
  --ink: #1d0c0c;
  --ink-deep: #000000;
  --night: #000000;
  --night-ink: #e7e7e6;
  --rule: #000000;
  --oxblood: #a1393e;
  --blush: #f5cfcd;
}
</style>

<section class="night-title">
  <span class="night-title__mark" aria-hidden="true">O</span>
  <div class="night-title__stage">
    <h2 class="night-title__word">VESPERINE</h2>
    <p class="night-title__credits">
      <span class="night-title__credit">Colour plates, 48 leaves</span>
      <span class="night-title__credit">Meridian Quarterly</span>
    </p>
  </div>
</section>

<style>
  .night-title {
    position: relative;
    background: var(--night);
    color: var(--night-ink);
    overflow: hidden;
  }
  .night-title__mark {
    display: block;
    padding-left: calc(var(--edge) * 0.4);
    font-family: var(--font-mark);
    font-size: var(--mark-small);
    line-height: 0.9;
    letter-spacing: 0;
    color: var(--blush);
    background: var(--paper);
  }
  .night-title__stage {
    display: grid;
    place-items: center;
    align-content: center;
    gap: var(--space-l);
    min-height: clamp(360px, 44vw, 620px);
    padding: var(--space-l) var(--edge);
  }
  .night-title__word {
    margin: 0;
    padding-left: var(--track-wide);
    font-family: var(--font-small);
    font-size: var(--display);
    font-weight: 500;
    line-height: 1;
    letter-spacing: var(--track-wide);
    text-align: center;
    animation: night-title-open 1400ms var(--ease-out) both;
  }
  @keyframes night-title-open {
    from { letter-spacing: 0.1em; opacity: 0; }
    to { letter-spacing: var(--track-wide); opacity: 1; }
  }
  .night-title__credits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    font-family: var(--font-small);
    font-size: var(--text-s);
    line-height: 1.5;
    letter-spacing: var(--track-small);
    text-transform: uppercase;
  }
  /* Credits sit between short vertical ticks, the band's only rules. */
  .night-title__credit {
    padding: 2px var(--space-m);
    border-inline: var(--hair) solid currentColor;
  }
  .night-title__credit + .night-title__credit {
    border-left: 0;
  }

  @media (max-width: 52rem) {
    .night-title__word {
      font-size: clamp(26px, 8vw, 56px);
      letter-spacing: 0.24em;
      padding-left: 0.24em;
    }
    @keyframes night-title-open {
      from { opacity: 0; }
      to { opacity: 1; }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .night-title__word { animation: none; }
  }
</style>

Similar components

Swash masthead

Swash masthead

Blossom notice

Blossom notice

Entry sheet

Entry sheet

Hello column

Hello column

Run-on intro

Run-on intro

Cover

Cover

Corner frame hero

Corner frame hero

Picture-letter headline

Picture-letter headline