/* === TOKENS === */

:root {
  --font-family: "Inter", sans-serif;
  --color-bg: #ffffff;
  --color-card: #f5f5f4;
  --color-body: #000000;
  --color-light: #444444;
  --color-text-secondary: #888;
  --color-link: #1a1a1a;
  --color-spotify: #1db954;
  --radius-card: 18px;
  --radius-icon: 8px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --grid-gap: 18px;
}

/* === RESET === */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === BASE === */

html {
  font-family: var(--font-family);
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* === PAGE === */

.page {
  padding: 4rem;
  display: flex;
  gap: var(--spacing-3xl);
  align-items: start;
}

/* === PROFILE === */

.profile {
  flex: 1 1 370px;
  min-width: 300px;
  max-width: 480px;
  position: sticky;
  top: var(--spacing-3xl);
}

.profile-avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--spacing-xl);
}

.profile-name {
  font-size: 44px;
  color: var(--color-body);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  letter-spacing: -2px;
}

.profile-bio {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-light);
}

.profile-bio p {
  margin-bottom: var(--spacing-md);
}

.profile-bio p:last-child {
  margin-bottom: 0;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--spacing-lg);
  font-size: 20px;
}

.profile-links a {
  color: var(--color-text);
}

.profile-links a:hover {
  opacity: 0.6;
}

/* === COLLECTION === */

.collection {
  flex: 3 1 700px;
  min-width: 0;
}

.collection-header {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

/* === GRID === */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--grid-gap);
}

/* === CARD === */

.card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border-radius: var(--radius-card);
  padding: var(--spacing-lg);
  position: relative;
  aspect-ratio: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: auto;
}

.card-icon.icon-rounded {
  border-radius: 50%;
}

.card-icon-letter {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-icon);
  background: var(--color-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: auto;
}

.card-icon-svg {
  width: 36px;
  height: 36px;
  color: var(--color-text-secondary);
  margin-bottom: auto;
}

.card-body {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-domain {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.card-meta {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  align-self: flex-start;
  margin-top: var(--spacing-sm);
}

.card-btn.spotify {
  background: var(--color-spotify);
  color: #fff;
}

/* === RESPONSIVE === */

@media (max-width: 900px) {
  .page {
    flex-direction: column;
    padding: var(--spacing-xl) var(--spacing-md);
    gap: var(--spacing-xl);
  }

  .profile {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    position: static;
  }

}
