@layer utilities {
  /* Text */
  .txt-x-small { font-size: var(--text-x-small); }
  .txt-small { font-size: var(--text-small); }
  .txt-normal { font-size: var(--text-normal); }
  .txt-medium { font-size: var(--text-medium); }
  .txt-large { font-size: var(--text-large); }
  .txt-x-large { font-size: var(--text-x-large); }
  .txt-xx-large { font-size: var(--text-xx-large); }

  .txt-align-center { text-align: center; }
  .txt-align-start { text-align: start; }
  .txt-align-end { text-align: end; }

  .txt-ink { color: var(--color-ink); }
  .txt-subtle { color: var(--color-ink-dark); }
  .txt-negative { color: var(--color-negative); }
  .txt-positive { color: var(--color-positive); }
  .txt-link { color: var(--color-link); text-decoration: underline; }

  .txt-tight-lines { line-height: 1.2; }
  .txt-nowrap { white-space: nowrap; }
  .txt-balance { text-wrap: balance; }
  .txt-uppercase { text-transform: uppercase; }

  .font-weight-normal { font-weight: 400; }
  .font-weight-semibold { font-weight: 600; }
  .font-weight-bold { font-weight: 700; }

  /* Flexbox */
  .flex { display: flex; }
  .flex-inline { display: inline-flex; }
  .flex-column { flex-direction: column; }
  .flex-wrap { flex-wrap: wrap; }
  .flex-1 { flex: 1; }

  .justify-start { justify-content: start; }
  .justify-center { justify-content: center; }
  .justify-end { justify-content: end; }
  .justify-space-between { justify-content: space-between; }

  .align-start { align-items: start; }
  .align-center { align-items: center; }
  .align-end { align-items: end; }

  .gap { column-gap: var(--inline-space); row-gap: var(--block-space); }
  .gap-half { column-gap: var(--inline-space-half); row-gap: var(--block-space-half); }
  .column-gap-double { column-gap: var(--inline-space-double); }

  /* Sizing */
  .full-width { inline-size: 100%; }
  .min-width { min-inline-size: 0; }

  .overflow-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Padding */
  .pad { padding: var(--block-space) var(--inline-space); }
  .pad-block { padding-block: var(--block-space); }
  .pad-block-start { padding-block-start: var(--block-space); }
  .pad-inline { padding-inline: var(--inline-space); }
  .unpad { padding: 0; }

  /* Margins */
  .margin-block { margin-block: var(--block-space); }
  .margin-block-start { margin-block-start: var(--block-space); }
  .margin-block-end { margin-block-end: var(--block-space); }
  .margin-inline { margin-inline: var(--inline-space); }
  .margin-none { margin: 0; }
  .center { margin-inline: auto; }

  /* Fills */
  .fill { background-color: var(--color-canvas); }
  .fill-shade { background-color: var(--color-ink-lightest); }
  .fill-selected { background-color: var(--color-selected); }

  .translucent { opacity: 0.66; }

  /* Borders */
  .border { border: var(--border); }
  .border-top { border-block-start: var(--border); }
  .border-bottom { border-block-end: var(--border); }

  .shadow { box-shadow: var(--shadow); }

  /* Lists */
  .list-style-none { list-style: none; margin: 0; padding: 0; }

  /* Accessibility */
  .visually-hidden {
    block-size: 1px;
    clip-path: inset(50%);
    inline-size: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
  }

  [hidden] { display: none !important; }
}
