@layer components {
  .common-logo {
    align-items: center;
    color: var(--color-ink);
    display: inline-flex;
    gap: 0.5em;
    text-decoration: none;
  }

  .looksmith-logo__mark {
    align-items: center;
    background: var(--color-ink-lightest);
    border-radius: 0.3125em;
    box-shadow:
      0 0 0 1px oklch(var(--lch-ink-darkest) / 0.1),
      0 0.1em 0.2em -0.1em oklch(var(--lch-ink-darkest) / 0.05),
      0 0.2em 0.4em -0.2em oklch(var(--lch-ink-darkest) / 0.05),
      0 0.3em 0.6em -0.3em oklch(var(--lch-ink-darkest) / 0.05);
    display: inline-flex;
    height: 1.5em;
    justify-content: center;
    width: 1.5em;
  }

  .looksmith-logo__icon {
    height: 1.12em;
    overflow: visible;
    width: 1.12em;
  }

  .looksmith-logo__wordmark {
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: 1em;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
  }

  @media (hover: hover) {
    .common-logo {
      transition: transform 100ms ease-out;
      will-change: transform;
    }

    .looksmith-logo__mark {
      transition: box-shadow 100ms ease-out;
    }

    .common-logo:focus .looksmith-logo__mark,
    .common-logo:hover .looksmith-logo__mark {
      box-shadow:
        0 0 0 1px oklch(var(--lch-ink-darkest) / 0.14),
        0 0.15em 0.3em -0.12em oklch(var(--lch-ink-darkest) / 0.08),
        0 0.35em 0.8em -0.35em oklch(var(--lch-ink-darkest) / 0.14);
    }

    .common-logo:active {
      transform: scale(0.98) translateY(0.0125em);
    }
  }
}
