/* Components (BEM) */
@layer components {
  /* Background */
  .snow {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  /* Page */
  .page {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: var(--space-7) var(--gutter);
  }

  .card {
    display: grid;
    gap: var(--space-6);
    width: 100%;
    max-width: var(--content-width);
    animation: fade-up var(--duration-slow) var(--ease-out) both;
  }

  /* Profile */
  .profile {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }

  .avatar {
    display: grid;
    place-items: center;
    width: 3rem;
    aspect-ratio: 1;
    border-radius: var(--radius-full);
    background: var(--color-text);
    color: var(--color-bg);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  .profile__name {
    font-size: var(--text-base);
    font-weight: 600;
  }

  .profile__role {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
  }

  /* Status badge */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    justify-self: start;
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    font-weight: 500;
  }

  .badge__dot {
    position: relative;
    width: 0.375rem;
    aspect-ratio: 1;
    border-radius: var(--radius-full);
    background: var(--color-status);
  }

  .badge__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: pulse 2s var(--ease-out) infinite;
  }

  /* Content */
  .content {
    display: grid;
    gap: var(--space-3);
  }

  .content__title {
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
  }

  .content__text {
    color: var(--color-text-muted);
  }

  /* Links */
  .links {
    display: grid;
    padding: 0;
    border-top: 1px solid var(--color-border);
    list-style: none;
  }

  .link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-sm);
  }

  .link__label {
    font-weight: 500;
  }

  .link__meta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    transition: color var(--duration-fast) ease;
  }

  .link:hover .link__meta {
    color: var(--color-text);
  }

  .link__arrow {
    width: 0.875rem;
    height: 0.875rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--duration-fast) ease;
  }

  .link:hover .link__arrow {
    transform: translate(2px, -2px);
  }

  /* Footer */
  .footer {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
  }

  /* Animations */
  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }

  @keyframes pulse {
    75%,
    100% {
      transform: scale(2.5);
      opacity: 0;
    }
  }
}
