@layer reset, base, site, layout;

@layer layout {
  #contact-heading + p + ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: 0;
    list-style: none;

    & a {
      display: grid;
      place-items: center;
      width: 2.35rem;
      aspect-ratio: 1;
      background: var(--surface-subtle);
      border: 1px solid var(--border);
      border-radius: 999px;
      text-decoration: none;

      &:hover {
        transform: translateY(-2px);
      }
    }
  }

  .about-content .about-subsection {
    margin-top: 1.75rem;
  }

  .about-content #credits-heading { margin-top: 2rem; }

  .about-content .website-credits {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }

  .website-credits > li {
    min-width: 0;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border-muted);
  }

  .website-credit-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .website-credit-name { font-weight: 700; }
  .website-credit-license { font-size: 0.8rem; white-space: nowrap; }
  .website-credits p { margin: 0.5rem 0 0; font-size: 0.95rem; }
  .website-credits .website-credit-author { color: var(--text-muted); font-size: 0.8rem; }

  @media (max-width: 640px) {
    .about-content .website-credits { grid-template-columns: minmax(0, 1fr); }
  }
}
