kitbash Sign in Connect agent
Components

Spread-letter practice

A section head spread letter by letter across the width, three short columns of text and a small table of press and awards.

Part of the style

Corner Serif Frame

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #1c0e05;
  --ink-soft: #2e1a0c;
  --paper: #958260;
  --veil: rgba(149, 130, 96, 0.3);
  --wash: #8c7a59;
}
</style>

<section class="practice" aria-labelledby="practice-head">
  <h2 class="practice__head" id="practice-head">Workshop</h2>
  <div class="practice__columns">
    <p class="practice__text">Nauve began on a kitchen table in 2016 with a single chair, a scalpel and a book of measured drawings. It is now four people in a long room with good light, working on two or three rooms a year.</p>
    <p class="practice__text">Every room starts as a survey: we draw the real one, or a lost one from inventories and paintings, then reduce it to one twelfth. Nothing is bought finished. Fabric is woven narrow, glass is blown small, and drawers open.</p>
    <p class="practice__text">We take commissions from collectors, museums and schools, and teach a short course each winter. Rooms travel in their own crates and arrive lit, ready to be looked into.</p>
  </div>
  <table class="practice__table">
    <caption class="practice__caption">Press and awards</caption>
    <thead>
      <tr><th scope="col">Year</th><th scope="col">Title</th><th scope="col">From</th></tr>
    </thead>
    <tbody>
      <tr><td>2025</td><td>Small rooms, long hours</td><td>Quarterly of the Applied Arts</td></tr>
      <tr><td>2024</td><td>Prize for scale craft, first place</td><td>Guild of Model Makers</td></tr>
      <tr><td>2023</td><td>A parlour you can hold</td><td>Weekend Interiors</td></tr>
      <tr><td>2021</td><td>Heritage craft fellowship</td><td>Foundation for Hand Work</td></tr>
    </tbody>
  </table>
</section>

<style>
  .practice {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-xl) var(--gap);
    padding: var(--section-space) var(--edge);
    background: var(--paper);
    color: var(--ink);
    font-size: var(--text-s);
    line-height: var(--leading);
  }
  .practice__head {
    position: relative;
    grid-column: 1 / -1;
    height: 1em;
    margin: 0;
    font-family: var(--font-letter);
    font-size: var(--letter);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
  }
  .practice__letter {
    position: absolute;
    top: 0;
    left: calc(var(--u) * 100%);
    translate: calc(var(--u) * -100%) 0;
    opacity: 0;
    transition: opacity 600ms linear calc(var(--i) * 80ms);
  }
  .practice.is-seen .practice__letter {
    opacity: 1;
  }
  .practice__columns {
    grid-column: 4 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
  }
  .practice__text {
    margin: 0;
    max-width: 34em;
  }
  .practice__table {
    grid-column: 4 / -1;
    width: 100%;
    border-collapse: collapse;
  }
  .practice__caption {
    padding-bottom: var(--space-m);
    color: var(--ink-soft);
    text-align: left;
  }
  .practice__table th {
    padding: 0 var(--gap) var(--space-s) 0;
    color: var(--ink-soft);
    font-weight: 400;
    text-align: left;
  }
  .practice__table td {
    padding: var(--space-xs) var(--gap) var(--space-xs) 0;
    vertical-align: top;
  }
  .practice__table td:first-child,
  .practice__table th:first-child {
    width: 6em;
  }
  .practice__table td:nth-child(2) {
    font-weight: 500;
  }

  @media (max-width: 860px) {
    .practice__columns,
    .practice__table {
      grid-column: 1 / -1;
    }
  }
  @media (max-width: 600px) {
    .practice {
      gap: var(--space-l) var(--gap);
      font-size: var(--text-m);
    }
    .practice__columns {
      grid-template-columns: 1fr;
    }
    .practice__table td:first-child,
    .practice__table th:first-child {
      width: 3.4em;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .practice__letter {
      opacity: 1;
      transition: none;
    }
  }
</style>

<script>
  (() => {
    // Spread the head word letter by letter across the full width.
    const spread = (el) => {
      const word = el.textContent.trim();
      const chars = [...word].filter((c) => c.trim());
      el.setAttribute('aria-label', word);
      el.textContent = '';
      chars.forEach((c, i) => {
        const span = document.createElement('span');
        span.className = 'practice__letter';
        span.setAttribute('aria-hidden', 'true');
        span.textContent = c;
        const u = chars.length > 1 ? i / (chars.length - 1) : 0;
        span.style.cssText = `--u:${u};--i:${i}`;
        el.append(span);
      });
    };
    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.1 });
    document.querySelectorAll('.practice').forEach((root) => {
      const head = root.querySelector('.practice__head');
      if (head) spread(head);
      seen.observe(root);
    });
  })();
</script>

Similar components

Drifting statement

Drifting statement

Process reader

Process reader

Serif statement and lists

Serif statement and lists

Serif statement and mono log

Serif statement and mono log

Wiped statement

Wiped statement

Small caps statement

Small caps statement

Script statement

Script statement

Quote and three rails

Quote and three rails