kitbash Sign in Connect agent
Components

Swash masthead

The centred title: roman capitals over two lines of swash italic, framed by six corner words and a short sans line below.

Part of the style

Line Screen Folio

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --night: #0000ff;
  --night-raised: #0238f0;
  --night-warm: #0b45f2;
  --ivory: #f3f4ff;
  --ivory-soft: rgba(243, 244, 255, 0.62);
  --ivory-faint: rgba(243, 244, 255, 0.32);
  --rule: rgba(243, 244, 255, 0.16);
  --paper: #f0f2ff;
  --paper-shade: #e2e5ff;
  --ink: #033af0;
  --ink-soft: #295de0;
  --screen-ice: #565872;
  --black: #0124a6;
  --rule-faint: rgba(243, 244, 255, 0.06);
  --night-panel: #0236e4;
  --silver: #c9cdfc;
  --screen-blue: #5153df;
  --folder-deep: #ecf0ff;
  --screen-steel: #b3bade;
  --screen-night: #41465d;
  --folder-light: #f6f8ff;
  --screen-sepia: #b5c5fb;
  --copper: #a8bcff;
}
</style>

<section class="masthead" aria-labelledby="masthead-title">
  <div class="masthead__frame">
    <ul class="masthead__corners masthead__corners--top" aria-label="What the folio is">
      <li class="masthead__corner">Maritime</li>
      <li class="masthead__corner">Underwritten</li>
      <li class="masthead__corner">Archive</li>
    </ul>
    <h2 class="masthead__title" id="masthead-title">
      <span class="masthead__line masthead__line--caps">The Quillmere</span>
      <span class="masthead__line masthead__line--caps">Folio <span class="masthead__colon">:</span></span>
      <span class="masthead__line masthead__line--italic">Made to Outlast the</span>
      <span class="masthead__line masthead__line--italic">Weather it Insures<span class="masthead__swash" aria-hidden="true"><svg viewBox="0 0 120 40" focusable="false"><path d="M2 30 C 28 30, 40 16, 62 22 S 104 36, 116 14" /></svg></span></span>
    </h2>
    <ul class="masthead__corners masthead__corners--bottom" aria-label="How it is made">
      <li class="masthead__corner">Patient</li>
      <li class="masthead__corner">Exacting</li>
      <li class="masthead__corner">Seaworthy</li>
    </ul>
  </div>
  <p class="masthead__lede">Two centuries of ship ledgers—redrawn for the people who still read them.</p>
</section>

<style>
  .masthead {
    padding: var(--section-space) var(--edge);
    background: var(--night);
    color: var(--ivory);
    text-align: center;
  }
  .masthead__frame {
    display: grid;
    gap: clamp(1.2rem, 2.4vw, 2.2rem);
    max-width: 1040px;
    margin: 0 auto;
  }
  .masthead__corners {
    display: flex;
    justify-content: space-between;
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .masthead__corner {
    color: var(--ivory-soft);
    font-family: var(--font-sans);
    font-size: var(--text-s);
    letter-spacing: var(--track-label);
    line-height: 1.5;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity var(--fade) var(--ease);
    transition-delay: 700ms;
  }
  .masthead__title {
    display: grid;
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--display-xl);
    font-weight: 300;
    line-height: 0.92;
    text-wrap: balance;
  }
  .masthead__line {
    display: block;
    opacity: 0;
    transform: translateY(0.18em);
    transition: opacity var(--fade) var(--ease), transform var(--fade) var(--ease);
    transition-delay: calc(var(--order, 0) * 120ms);
  }
  .masthead__line--caps {
    letter-spacing: var(--track-caps);
    text-transform: uppercase;
  }
  .masthead__line--italic {
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
  }
  .masthead__colon { font-weight: 400; }
  .masthead__swash {
    display: inline-block;
    width: 0.9em;
    height: 0.3em;
    margin-left: -0.08em;
    vertical-align: -0.02em;
  }
  .masthead__swash svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
  }
  .masthead.is-seen .masthead__line,
  .masthead.is-seen .masthead__corner {
    opacity: 1;
    transform: none;
  }
  .masthead.is-seen .masthead__corner { opacity: 0.85; }
  .masthead__lede {
    margin: var(--space-xl) auto 0;
    max-width: 32ch;
    color: var(--ivory);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    letter-spacing: var(--track-label);
    line-height: 1.55;
  }

  @media (max-width: 40rem) {
    .masthead__corners { flex-wrap: wrap; justify-content: center; column-gap: var(--space-m); }
  }
  @media (prefers-reduced-motion: reduce) {
    .masthead__line,
    .masthead__corner { opacity: 1; transform: none; transition: none; }
  }
</style>

<script>
  (() => {
    const seen = new IntersectionObserver((entries) => {
      for (const entry of entries) {
        if (!entry.isIntersecting) continue;
        entry.target.classList.add('is-seen');
        seen.unobserve(entry.target);
      }
    }, { threshold: 0.15 });
    for (const root of document.querySelectorAll('.masthead')) {
      root.querySelectorAll('.masthead__line').forEach((line, order) => line.style.setProperty('--order', order));
      seen.observe(root);
    }
  })();
</script>

Similar components

Night title band

Night title band

Entry sheet

Entry sheet

Blossom notice

Blossom notice

Hello column

Hello column

Run-on intro

Run-on intro

Blue light hero

Blue light hero

Picture-letter headline

Picture-letter headline

Stacked confession

Stacked confession