@layer components {
  /* Big headings for each part of a page, with whatever explains them across from them */
  .section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--text-heading);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.04em;

    .icon {
      width: 24px;
      height: 24px;
      stroke-width: 1.8;
    }
  }

  /* Where a keep is from: its site's icon and name */
  .source {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--color-ink-secondary);
    font-size: var(--text-source);
    line-height: 1.43;
    font-weight: 500;
    letter-spacing: -0.005em;

    > span:last-child {
      min-width: 0;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }

  /* What kind of keep it is, in mono capitals on a pill */
  .label-chip {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    height: var(--chip-height);
    padding: 0 12px 0 10px;
    border-radius: 40px;
    background: color-mix(in srgb, currentColor 6%, transparent);
    font: 400 var(--text-label) / 1.3 var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;

    .icon {
      width: 14px;
      height: 14px;
      stroke-width: 1.8;
    }
  }

  .label-chip__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-coral);
  }

  .duration-chip {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    height: var(--chip-height);
    padding: 0 8px;
    border-radius: 10px;
    background: color-mix(in srgb, currentColor 10%, transparent);
    color: var(--color-ink-secondary);
    font: 500 var(--text-small) / 1.3 var(--font-mono);
    font-variant-numeric: tabular-nums;
  }
}
